vmec_jax.energy¶
Energy functionals.
This module provides a minimal, differentiable magnetic energy functional, intended as the first objective for a fixed-boundary solver.
We match VMEC’s reported wb normalization:
wb = (1 / (2π)^2) * ∫ (B·B)/2 dV
where the integral is over the full torus.
Functions
|
Construct simple flux profiles (phipf/chipf) from &INDATA. |
|
Return NumPy flux profiles for the common non-RFP default-APHI path. |
|
Integrate density over the full torus using sqrtg and grid spacings. |
|
Compute VMEC-style wb and a small diagnostics dict. |
Classes
|
Simple 1D flux functions. |