desc.geometry.FourierRZCurve.compute_coordinates

FourierRZCurve.compute_coordinates(R_n=None, Z_n=None, grid=None, dt=0, basis='rpz')[source]

Compute values using specified coefficients.

Parameters:
  • R_n (array-like) – fourier coefficients for R, Z. Defaults to self.R_n, self.Z_n

  • Z_n (array-like) – fourier coefficients for R, Z. Defaults to self.R_n, self.Z_n

  • grid (Grid or array-like) – toroidal coordinates to compute at. Defaults to self.grid If an integer, assumes that many linearly spaced points in (0,2pi)

  • dt (int) – derivative order to compute

  • basis ({"rpz", "xyz"}) – coordinate system for returned points

Returns:

values (ndarray, shape(k,3)) – R, phi, Z or x, y, z coordinates of the curve at specified grid locations in phi.