vmec_jax.woutΒΆ

Minimal wout_*.nc reader helpers.

This module is intentionally small and only depends on netCDF4 when used. It is meant for regression comparisons against VMEC2000 outputs.

Functions

equilibrium_aspect_ratio_from_state(*, ...)

Compute VMEC's equilibrium aspect ratio directly from a solved state.

equilibrium_iota_profiles_from_state(*, ...)

Compute VMEC-consistent current/iota profiles from a solved state.

read_wout(path)

Read a subset of wout_*.nc needed for regression comparisons.

state_from_wout(wout)

Build a VMECState from wout Fourier coefficients.

wout_minimal_from_fixed_boundary(*, path, ...)

Build a minimal WoutData from an input-only fixed-boundary run.

write_wout(path, wout, *[, overwrite])

Write a minimal VMEC-style wout_*.nc file.