JAX Version of VMEC2000
https://vmex.readthedocs.io β// readme
VMEX
VMEX is a JAX reimplementation of VMEC2000, the standard code for three-dimensional ideal-MHD equilibria of stellarators and tokamaks. It reads VMEC input decks, solves fixed- and free-boundary equilibria (NESTOR vacuum field driven by an MGRID table or coils), reproduces VMEC2000βs iteration and writes standard wout_*.nc files. Because the solver is written in JAX, VMEX also differentiates the converged equilibrium through the implicit function theorem, so boundary, profile and coil parameters can be optimized with derivatives of the discrete equilibrium equations.
The goal is fast, differentiable and VMEC2000-compatible equilibria for stellarator optimization, including single-stage design, in which the plasma boundary and the coils are optimized together. VMEX also computes Boozer transforms, fields and their derivatives, quasisymmetry, quasi-isodynamicity and stability diagnostics, and has a separate lane for open mirrors.
- Use existing workflows: VMEC2000
&INDATAdecks, VMEC++-style JSON inputs andwout_*.ncoutput,NS_ARRAYmultigrid continuation, hot restart from a saved WOUT, and DESC inputs and outputs read without DESC. - **Design withβ¦