Initializes variables to evaluate a VMEC dataset. In radial direction, a cubic spline is used to interpolate the data. Calls readin of VMEC "wout" datafile (netcdf format).
evaluate spline for specific mode at position s
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | mn_in(:) | |||
| integer, | intent(in) | :: | rderiv | |||
| real(kind=wp), | intent(in) | :: | rho_in(:) |
position to evaluate rho=[0,1], rho=sqrt(phi_norm) |
||
| type(t_cubspl), | intent(in) | :: | xx_Spl(:) |
Fit disrete data along flux surfaces as spline for each fourier mode
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | modes |
number of modes |
||
| integer, | intent(in) | :: | nFlux |
number of flux surfaces |
||
| integer, | intent(in) | :: | mabs(modes) |
filtered m-mode value |
||
| real(kind=wp), | intent(in) | :: | Xmn(modes,nFlux) |
fourier coefficients at all flux surfaces |
||
| type(t_cubspl), | intent(out) | :: | Xmn_Spl(modes) |
spline fitted fourier coefficients |
Fit disrete data along flux surfaces as spline for each fourier mode input is given on the half mesh 2:nFluxVMEC
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | modes |
number of modes |
||
| integer, | intent(in) | :: | nFlux |
number of flux surfaces |
||
| integer, | intent(in) | :: | mabs(modes) |
filtered m-mode value |
||
| real(kind=wp), | intent(in) | :: | Xmn_half(modes,nFlux) |
fourier coefficients at all flux surfaces |
||
| type(t_cubspl), | intent(out) | :: | Xmn_Spl(1:modes) |
spline fitted fourier coefficients |
Finalize VMEC module