desc.geometry.FourierRZCurve.compute_length
- FourierRZCurve.compute_length(R_n=None, Z_n=None, grid=None)[source]
Compute the length of the curve using specified nodes for quadrature.
- Parameters:
R_n (array-like) – fourier coefficients for R, Z. If not given, defaults to values given by R_n, Z_n attributes
Z_n (array-like) – fourier coefficients for R, Z. If not given, defaults to values given by R_n, Z_n attributes
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:
length (float) – length of the curve approximated by quadrature