TORAX: Tokamak transport simulation in JAX

TORAX: Tokamak transport simulation in JAX#

TORAX is a differentiable tokamak core transport simulator aimed for fast and accurate forward modelling, pulse-design, trajectory optimization, and controller design workflows. TORAX is written in Python using the JAX library.

Flexible

Python facilitates coupling within various workflows and to additional physics models. Easy to install and JAX can seamlessly execute on multiple backends including CPU and GPU.

Fast and auto-differentiable

JAX provides just-in-time compilation for fast runtimes. JAX auto-differentiability enables gradient-based nonlinear PDE solvers and simulation sensitivity analysis while avoiding the need to manually derive Jacobians.

ML-surrogates

ML-surrogate coupling for fast and accurate simulation is greatly facilitated by JAX’s inherent support for neural network development and inference.

Installation & Quickstart

Install TORAX from PyPI or source and run your first simulation.

Installation Guide
Tutorials & Examples

Interactive Google Colab and Jupyter exercises for scenario design.

Tutorials
Simulation Configuration

Configure plasma profiles, transport models, sources, and solvers.

Simulation input configuration
Physics & Derivations

Governing 1D transport PDEs, FVM discretization, and physics models.

TORAX equation summary
Developer Guide

Codebase architecture, custom model integration, and JAX utilities.

TORAX code structure
Community & Roadmap

Development roadmap, contribution guidelines, and how to cite TORAX.

Contributing to TORAX