vmec_jax.vmec_tomnsp¶
VMEC Fourier transform conventions (fixaray + tomnsps) for parity work.
VMEC does not use a plain unweighted DFT for its force/residual transforms. Instead it uses:
symmetry-aware theta grids (ntheta1/2/3) and endpoint weights,
mode normalization scalings (mscale, nscale),
precomputed trig tables (cosmu/sinmu, cosnv/sinnv) and their derivative companions (cosmum/sinmum, cosnvn/sinnvn).
This module implements the core pieces needed for parity diagnostics:
vmec_trig_tables(…) : build VMEC-style trig and weight tables
tomnsps_rzl(…) : real-space -> Fourier-space force transform
Scope¶
This is intended for diagnostics/regressions against VMEC2000 wout outputs. It currently implements the lasym=False and lasym=True tables, but the transform itself is primarily exercised for the parity kernel work.
Functions
|
VMEC tomnspa asymmetric force transform (real-space -> Fourier-space). |
|
Temporarily override auto TOMNSPS FFT policy when the solver device is explicit. |
|
Precompute parity/evolution masks for tomnsps/tomnspa. |
|
VMEC real-space -> Fourier-space force transform (core of tomnsps). |
|
Build the VMEC internal (theta,zeta) grid implied by read_indata.f. |
|
Reproduce VMEC read_indata.f theta sizes. |
|
Build VMEC-style trig and weight tables. |
Classes
|
Precomputed parity/evolution masks for tomnsps/tomnspa. |