desc.geometry.FourierRZCurve
- class desc.geometry.FourierRZCurve(R_n=10, Z_n=0, modes_R=None, modes_Z=None, NFP=1, sym='auto', grid=None, name='')[source]
Curve parameterized by fourier series for R,Z in terms of toroidal angle phi.
- Parameters:
R_n (array-like) – Fourier coefficients for R, Z.
Z_n (array-like) – Fourier coefficients for R, Z.
modes_R (array-like, optional) – Mode numbers associated with R_n. If not given defaults to [-n:n].
modes_Z (array-like, optional) – Mode numbers associated with Z_n, If not given defaults to modes_R.
NFP (int) – Number of field periods.
sym (bool) – Whether to enforce stellarator symmetry.
grid (Grid) – Default grid for computation.
name (str) – Name for this curve.
Methods
change_resolution
([N, NFP])Change the maximum toroidal resolution.
compute_coordinates
([R_n, Z_n, grid, dt, basis])Compute values using specified coefficients.
compute_curvature
([R_n, Z_n, grid])Compute curvature using specified coefficients.
compute_frenet_frame
([R_n, Z_n, grid, basis])Compute Frenet frame vectors using specified coefficients.
compute_length
([R_n, Z_n, grid])Compute the length of the curve using specified nodes for quadrature.
compute_torsion
([R_n, Z_n, grid])Compute torsion using specified coefficients.
copy
([deepcopy])Return a (deep)copy of this object.
eq
(other)Compare equivalence between DESC objects.
flip
(normal)Flip the curve about the plane with specified normal.
get_coeffs
(n)Get Fourier coefficients for given mode number(s).
load
(load_from[, file_format])Initialize from file.
rotate
([axis, angle])Rotate the curve by a fixed angle about axis in xyz coordinates.
save
(file_name[, file_format, file_mode])Save the object.
set_coeffs
(n[, R, Z])Set specific Fourier coefficients.
translate
([displacement])Translate the curve by a rigid displacement in x, y, z.
Attributes
Maximum mode number.
Number of field periods.
Spectral basis for R_fourier series.
Spectral coefficients for R.
Spectral basis for Z_fourier series.
Spectral coefficients for Z.
Default grid for computation.
Name of the curve.
Whether this curve has stellarator symmetry.