desc.profiles.FourierZernikeProfile
- class desc.profiles.FourierZernikeProfile(params=None, modes=None, sym='auto', NFP=1, name='')Source
Possibly anisotropic profile represented by Fourier-Zernike basis.
- Parameters:
params (array-like, shape(k,)) – coefficients of the series. If modes is not supplied, assumed to be only radial modes in ascending order with no missing values. If modes is given, coefficients can be in any order or indexing.
modes (array-like, shape(k,3)) – mode numbers for the associated coefficients. eg a[modes[i]] = params[i]. If None, assumes params are only the m=0 n=0 modes
sym ({"auto", "sin", "cos", False}) – Whether the basis should be stellarator symmetric.
name (str) – name of the profile.
Methods
change_resolution([L, M, N])Set a new maximum mode number.
compute(grid[, params, dr, dt, dz])Compute values of profile at specified nodes.
copy([deepcopy])Return a (deep)copy of this object.
equiv(other)Compare equivalence between DESC objects.
from_values(r, t, z, f[, L, M, N, NFP, w, name])Fit a FourierZernikeProfile from point data.
get_params(l, m, n)Get Fourier-Zernike coefficients for given mode number(s).
load(load_from[, file_format])Initialize from file.
save(file_name[, file_format, file_mode])Save the object.
set_params(l, m, n[, a])Set specific Fourier-Zernike coefficients.
to_fourierzernike([L, M, N, NFP, xs, w])Convert this profile to a FourierZernikeProfile.
to_mtanh([order, xs, w, p0, pmax, pmin])Convert this profile to modified hyperbolic tangent + poly form.
to_powerseries([order, xs, sym, rcond, w])Convert this profile to a PowerSeriesProfile.
to_spline([knots, method])Convert this profile to a SplineProfile.
Attributes
Spectral basis for Fourier-Zernike series.
Name of the profile.
Parameter values.