vmec_jax.namelist

Minimal parser for VMEC-style Fortran namelist (&INDATA).

Goals: - No third-party dependency (no f90nml) - Works on VMEC2000 input files used in the included python/tests - Handles indexed coefficient syntax: RBC(m,n)=…, including negative indices - Handles arrays split across multiple lines

This is not a full Fortran namelist implementation, but is intentionally targeted to VMEC inputs.

Functions

minimal_fixed_boundary_indata(*, nfp[, r0, ...])

Return a minimal fixed-boundary VMEC seed used by optimization examples.

read_indata(path)

Read &INDATA from a VMEC input file.

write_indata(path, indata)

Write a VMEC &INDATA namelist block.

Classes

InData(scalars, indexed[, source_path])