desc.basis.ChebyshevDoubleFourierBasis
- class desc.basis.ChebyshevDoubleFourierBasis(L, M, N, NFP=1, sym=False)Source
3D basis: tensor product of Chebyshev polynomials and two Fourier series.
Fourier series in both the poloidal and toroidal coordinates.
- Parameters:
L (int) – Maximum radial resolution.
M (int) – Maximum poloidal resolution.
N (int) – Maximum toroidal resolution.
NFP (int) – Number of field periods.
sym ({
'cos','sin',False}) –'cos'for cos(m*t-n*z) symmetry'sin'for sin(m*t-n*z) symmetryFalsefor no symmetry (Default)
Methods
change_resolution(L, M, N[, NFP, sym])Change resolution of the basis to the given resolutions.
copy([deepcopy])Return a (deep)copy of this object.
equiv(other)Compare equivalence between DESC objects.
evaluate(grid[, derivatives, modes])Evaluate basis functions at specified nodes.
get_idx([L, M, N, error])Get the index of the
'modes'array corresponding to given mode numbers.load(load_from[, file_format])Initialize from file.
save(file_name[, file_format, file_mode])Save the object.
Attributes
Maximum radial resolution.
Maximum poloidal resolution.
Maximum toroidal resolution.
Number of field periods.
whether this basis is compatible with fft in the poloidal direction.
whether this basis is compatible with fft in the toroidal direction.
Indices of unique_LM_idx that recover the LM mode pairs.
Indices of unique_L_idx that recover the radial modes.
Indices of unique_M_idx that recover the poloidal modes.
Indices of unique_N_idx that recover the toroidal modes.
Mode numbers [l,m,n].
Total number of modes in the spectral basis.
Type of indexing used for the spectral basis.
Type of symmetry.
Indices of unique radial/poloidal mode pairs.
Indices of unique radial modes.
Indices of unique poloidal modes.
Indices of unique toroidal modes.