desc.geometry.FourierRZCurve.compute_torsion

FourierRZCurve.compute_torsion(R_n=None, Z_n=None, grid=None)[source]

Compute torsion 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)

Returns:

tau (ndarray, shape(k,)) – torsion of the curve at specified grid locations in phi