vmec_jax.profiles¶
VMEC profile evaluation.
This module implements the VMEC2000 profile logic used by the bundled examples:
power-series, two-power, and tabulated spline profiles for pressure, iota, and
toroidal current. The spline boundary conditions follow STELLOPT/VMEC2000’s
spline_cubic.f and spline_akima.f conventions: endpoint derivatives are
fixed by a quadratic fit to the first/last three knots.
We intentionally keep this code:
- dependency-light (NumPy for parsing, JAX-compatible math via vmec_jax._compat.jnp)
- pure (no I/O, no global state)
- easy to extend later (additional VMEC profile families, pedestal variants, etc.)
Functions
|
Evaluate VMEC profiles on a radial grid. |
|
Convert a pressure profile in Pascals to VMEC |
|
Return concrete ascending polynomial coefficients for simple profiles. |
|
Extract and normalize profile inputs from an |
|
Return the standard finite-beta profile bundle used in stage-one runs. |
|
Return only the standard finite-beta pressure profile in Pascals. |
|
Return a copy of |
Classes
|
Small JAX-compatible radial-profile base class. |
|
Profile-related inputs extracted from &INDATA. |
|
Density, temperature, and pressure profiles for finite-beta studies. |