desc.basis.FourierSeries
- class desc.basis.FourierSeries(N, NFP=1, sym=False)Source
1D basis set for use with the magnetic axis.
Fourier series in the toroidal coordinate.
- Parameters:
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) symmetryFalse
for no symmetry (Default)
Methods
change_resolution
(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
(nodes[, derivatives, modes, unique])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.
Mode numbers [l,m,n].
Total number of modes in the spectral basis.
Type of indexing used for the spectral basis.
{
'cos'
,'sin'
,False
} Type of symmetry.