MRX documentation

MRX is a framework for performing 3D MHD equilibrium solves without the assumption of nested flux surfaces.

The design of MRX is guided by several principles:

  • Thorough unit testing, regression testing, and continuous integration.

  • Extensibility: It should be possible to add new codes and terms to the objective function without editing modules that already work, i.e. the open-closed principle. This is because any edits to working code can potentially introduce bugs.

  • JAX-based: Everything is written in a way that is compatible with JAX and jit-compilation.

MRX is fully open-source, and anyone is welcome to use it, make suggestions, and contribute. We gratefully acknowledge funding from the Simons Foundation’s Hidden symmetries and fusion energy project.

MRX is one of several available codes for performing stellarator optimization. Others include VMEC, DESC, and SPEC. The main difference is that MRX does not assume nested flux surfaces, and is designed to be used in a JAX-based optimization framework.

Indices and tables

Tutorials

Examples

Tutorial Scripts

Configuration Scripts

Interactive Scripts