TORAX: A Fast and Differentiable Tokamak Transport Simulator in JAX

ORAL

Abstract

We introduce TORAX, an open-source differentiable tokamak core transport simulator targeting fast and accurate core-transport simulation for pulse planning and optimization, and unlocking broad capabilities for controller design and advanced surrogate physics. TORAX is written in Python using JAX, and solves coupled time-dependent 1D PDEs for core ion and electron heat transport, particle transport, and current diffusion. JAX's just-in-time compilation provides fast computation, while maintaining Python's ease of use and extensibility. JAX auto-differentiability enables gradient-based optimization techniques and trajectory sensitivity analysis for controller design, without time-consuming manual Jacobian calculations. JAX's inherent support for neural network development and inference facilitates coupling ML-surrogates of physics models, key for fast and accurate simulation. Code verification is obtained by comparison with the established RAPTOR code on ITER-like and SPARC scenarios. Application of TORAX is demonstrated within a pulse planning workflow designed for optimization of SPARC actuator trajectories. TORAX is an open source tool, and aims to be a foundational component of wider workflows built by the wider community for future tokamak integrated simulations.

Publication: https://arxiv.org/abs/2406.06718
https://github.com/google-deepmind/torax
https://torax.readthedocs.io/

Presenters

  • Jonathan Citrin

    Google DeepMind

Authors

  • Jonathan Citrin

    Google DeepMind

  • Ian Goodfellow

    Google DeepMind

  • Akhil Raju

    Google DeepMind

  • Sebastian Bodenstein

    Google DeepMind

  • Craig Donner

    Google DeepMind

  • Federico Felici

    Google DeepMind

  • Anushan Fernando

    Google DeepMind

  • Philippe Hamel

    Google DeepMind

  • Andrea Huber

    Google DeepMind

  • Tamara Norman

    Google DeepMind

  • David Pfau

    Google DeepMind

  • Brendan Tracey

    Google DeepMind

  • Devon J Battaglia

    Commonwealth Fusion Systems

  • Anna A Teplukhina

    Commonwealth Fusion Systems

  • Josiah Wai

    Commonwealth Fusion Systems