desc.vmec.VMECIO.vmec_interpolate
- static VMECIO.vmec_interpolate(Cmn, Smn, xm, xn, theta, phi, s=None, si=None, sym=True)Source
Interpolate VMEC data on a flux surface.
- Parameters:
Cmn (ndarray) – cos(mt-np) Fourier coefficients
Smn (ndarray) – sin(mt-np) Fourier coefficients
xm (ndarray) – poloidal mode numbers
xn (ndarray) – toroidal mode numbers
theta (ndarray) – poloidal angles
phi (ndarray) – toroidal angles
s (ndarray) – radial coordinate, equivalent to normalized toroidal magnetic flux. Defaults to si (all flux surfaces)
si (ndarray) – values of radial coordinates where Cmn,Smn are defined. Defaults to linearly spaced on [0,1]
sym (bool) – stellarator symmetry (Default value = True)
- Returns:
if sym = True – C, S (tuple of ndarray): VMEC data interpolated at the points (s,theta,phi) where C has cosine symmetry and S has sine symmetry
if sym = False – X (ndarray): non-symmetric VMEC data interpolated at (s,theta,phi)