vmec_jax.finite_betaΒΆ
Finite-beta optimization diagnostics and residual helpers.
These helpers are intentionally VMEC-state based and JAX differentiable. They cover the global stage-one finite-beta quantities that are cheap and stable to differentiate through the fixed-boundary discrete-adjoint path: aspect ratio, iota bounds, volume-averaged field proxy, and total beta.
Functions
|
Build global finite-beta residuals for stage-one surface optimization. |
|
Return JAX-differentiable finite-beta scalar diagnostics from a VMEC state. |
|
Return the differentiable VMEC magnetic-well proxy for an equilibrium. |
|
Return the VMEC/SIMSOPT magnetic-well proxy from half-mesh |
|
Return VMEC Mercier |
|
Return VMEC bss.f geometry channels for covariant |
|
Return VMEC bss half-mesh geometry corrections used for |
|
Return VMEC jxbforce |
|
Return VMEC jxbforce |
|
Average half-mesh |
|
Return VMEC half-mesh |
|
Return VMEC Mercier contravariant |
|
Return VMEC even/odd real-space R/Z geometry channels for Mercier. |
|
Return differentiable VMEC Mercier terms from a VMEC state. |
|
Return VMEC half-mesh |
|
Return VMEC-state geometry needed by the Redl bootstrap formula. |
|
Return differentiable VMEC-vs-Redl bootstrap-current mismatch. |
Classes
|
Targets and weights for stage-one finite-beta fixed-boundary objectives. |