desc.geometry.FourierXYZCurve.compute_coordinates

FourierXYZCurve.compute_coordinates(X_n=None, Y_n=None, Z_n=None, grid=None, dt=0, basis='xyz')[source]

Compute values using specified coefficients.

Parameters:
  • X_n (array-like) – fourier coefficients for X, Y, Z. If not given, defaults to values given by X_n, Y_n, Z_n attributes

  • Y_n (array-like) – fourier coefficients for X, Y, Z. If not given, defaults to values given by X_n, Y_n, Z_n attributes

  • Z_n (array-like) – fourier coefficients for X, Y, Z. If not given, defaults to values given by X_n, Y_n, Z_n attributes

  • grid (Grid or array-like) – dependent 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)) – X, Y, Z or R, phi, Z coordinates of the curve at specified grid locations in phi.