desc.basis.PowerSeries

class desc.basis.PowerSeries(L, sym='even')Source

1D basis set for flux surface quantities.

Power series in the radial coordinate.

Parameters:
  • L (int) – Maximum radial resolution.

  • sym ({"even", False}) – Type of symmetry. “even” has only even powers of rho, for an analytic profile on the disc. False uses the full (odd + even) powers.

Methods

change_resolution(L)

Change resolution of the basis to the given resolution.

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

L

Maximum radial resolution.

M

Maximum poloidal resolution.

N

Maximum toroidal resolution.

NFP

Number of field periods.

modes

Mode numbers [l,m,n].

num_modes

Total number of modes in the spectral basis.

spectral_indexing

Type of indexing used for the spectral basis.

sym

{'cos', 'sin', False} Type of symmetry.