journal article·2025-09-01

CRATOS-GS: A free-boundary, hierarchical adaptive mesh refinement Grad–Shafranov solver

A. Farmakalides, N. Nikiforakis, S. Millmore, M. Romanelli, P. F. Buxton

AIP Advances· Volume 15· Issue 9
Publisher page

Abstract

We present CRATOS-GS, a free-boundary hierarchical adaptive mesh refinement (AMR) Grad–Shafranov solver, discretized on Cartesian meshes. The solver is suitable for stand-alone equilibrium calculations, as a foundational component of reduced modeling, and also as an integrated component of non-linear extended magnetohydrodynamic codes. The solver employs a geometric multigrid method to efficiently solve the underlying elliptic system for static inverse as well as forward problems. It supports a wide range of physics-based and geometric constraints, including optional plasma shape features (X-points, iso-flux surfaces, and fixed flux points), equilibrium properties (total plasma current and a choice of poloidal beta or central pressure), and multiple choices for defining coil connections and current bounds. The plasma region is delineated by a fast-marching algorithm, and a level-set function is used to define the arbitrarily complex geometry of the first wall, which allows for efficient calculation of limited plasma profiles. In addition, toroidal rotation is supported for spatially varying velocity fields, which enables the effects of real operational conditions, such as neutral beam injection, to be taken into account in the equilibrium state. In order to ensure reliable convergence, particularly for the forward problem, a vertical stabilization technique is implemented. CRATOS-GS is validated by means of a comprehensive suite of benchmarks, including fixed-boundary problems with analytic solutions and free-boundary case studies for realistic reactor configurations. Additional benchmarks are used to assess the efficacy of AMR in capturing steep gradients while reducing computational costs compared to unigrid calculations.
Source: crossref · Quality: baseline

Affiliations

Laboratory of Scientific Computing, University of Cambridge, Cavendish Laboratory 1 , JJ Thomson Avenue, Cambridge CB3 0HE,

Tokamak Energy Ltd. 2 , 173 Brook Drive, Milton Park, Abingdon OX14 4SD,

Funding

Tokamak Energy Ltd.

References (85)

Show source-provided references
1. Computation of ideal MHD equilibria10.1016/0010-4655(76)90008-4 ↗
2. Equilibrium of a toroidal plasma in a magnetic field10.1088/0368-3281/5/4/307 ↗
3. Isoparametric bicubic Hermite elements for solution of the Grad-Shafranov equation10.1142/S0129183191000512 ↗
4. The CHEASE code for toroidal MHD equilibria10.1016/0010-4655(96)00046-x ↗
5. 3D MHD equilibrium calculations for tokamaks with the HINT2 code
6. Development of a free-boundary tokamak equilibrium solver for advanced study of tokamak equilibria10.3938/jkps.67.843 ↗
7. Review of the equilibrium fitting for non-circular tokamak10.1088/1009-0630/4/2/002 ↗
8. The spider code - solution of direct and inverse problems for free boundary tokamak plasma equilibrium
9. B. Dudson , “Freegs Grad-Shafranov solver,” https://github.com/freegs-plasma/freegs (2016) (Online; accessed 15 January 2025).
10. Equilibrium design for the Compass-U tokamak
11. High performance plasma vertical position control system for upgraded MAST10.1016/j.fusengdes.2013.10.001 ↗
12. METIS: A fast integrated tokamak modelling tool for scenario design10.1088/1741-4326/aad5b1 ↗
13. TokaMaker: An open-source time-dependent Grad-Shafranov tool for the design and modeling of axisymmetric fusion devices10.1016/j.cpc.2024.109111 ↗
14. 2014
15. The JOREK non-linear extended MHD code and applications to large-scale instabilities and their control in magnetically confined fusion plasmas10.1088/1741-4326/abf99f ↗
16. MHD stability in x-point geometry: Simulation of ELMs10.1088/0029-5515/47/7/016 ↗
17. Axisymmetric simulations of vertical displacement events in tokamaks: A benchmark of M3D-C1, NIMROD, and JOREK10.1063/1.5127664 ↗
18. 3D simulations of vertical displacement events in tokamaks: A benchmark of M3D-C1, NIMROD, and JOREK10.1063/5.0037115 ↗
19. Tokamak equilibria with nearly zero central current: The current hole10.1088/0029-5515/50/11/113001 ↗
20. An adaptive discontinuous Petrov–Galerkin method for the Grad–Shafranov equation10.1137/19m1309894 ↗
21. Adaptive hybridizable discontinuous Galerkin discretization of the Grad–Shafranov equation by extension from polygonal subdomains10.1016/j.cpc.2020.107239 ↗
22. A hybridizable discontinuous Galerkin solver for the Grad–Shafranov equation10.1016/j.cpc.2018.09.013 ↗
23. Multilevel Monte Carlo methods for the Grad-Shafranov free boundary problem10.1016/j.cpc.2024.109099 ↗
24. D. A. Serino , Q.Tang, X.-Z.Tang, T. V.Kolev, and K.Lipnikov, “An adaptive Newton-based free-boundary Grad-Shafranov solver,” arXiv:2407.03499 (2024).
25. Multi-region approach to free-boundary three-dimensional tokamak equilibria and resistive wall instabilities10.1063/1.4948722 ↗
26. Adaptive mesh refinement for hyperbolic partial differential equations10.1016/0021-9991(84)90073-1 ↗
27. Local adaptive mesh refinement for shock hydrodynamics10.1016/0021-9991(89)90035-1 ↗
28. 2005
30. A full-field simulation methodology for sonic boom modeling on adaptive Cartesian cut-cell meshes10.1016/j.jcp.2020.109271 ↗
31. An immersed interface adaptive mesh refinement algorithm for Li-ion battery simulations. I. Development of a fast P2D solver10.1063/5.0281614 ↗
32. Highly parallelisable simulations of time-dependent viscoplastic fluid flow with structured adaptive mesh refinement10.1063/1.5049202 ↗
33. An experimentally-based in-situ combustion model with adaptive meshing10.1016/j.combustflame.2014.09.018 ↗
34. A three-dimensional, adaptive, Godunov-type model for global atmospheric flows10.1175//2568.1 ↗
35. Ghost fluid method for strong shock interactions Part 1: Fluid-fluid interfaces10.2514/1.43148 ↗
36. Ghost fluid method for Strong Shock interactions Part 2: Immersed solid boundaries10.2514/1.43153 ↗
37. Numerical modeling of imposed magnetohydrodynamic effects in hypersonic flows10.1063/5.0115424 ↗
38. A unified diffuse interface method for the interaction of rigid bodies with elastoplastic solids and multi-phase mixtures10.1063/5.0079970 ↗
39. A Cartesian cut cell method for compressible flows Part A: Static body problems10.1017/s0001924000066690 ↗
40. A dimensionally split Cartesian cut cell method for the compressible Navier–Stokes equations10.1016/j.jcp.2018.09.023 ↗
41. A moving boundary flux stabilization method for Cartesian cut-cell grids using directional operator splitting10.1016/j.jcp.2018.04.048 ↗
42. LBNL, NREL, and ANL, “The AMReX framework,” https://amrex-codes.github.io (2017) (Online; accessed 14 March 2020).
43. P. Colella , D. T.Graves, T.Ligocki, D. F.Martin, D.Modiano, D.Serafini, and B.Van Straalen, “Chombo software package for AMR applications design document,” available at the Chombo website: http://seesar.lbl.gov/ANAG/chombo/ (September 2008) (2009), Vol. 9.
44. Overture: An object-oriented framework for solving partial differential equations on overlapping grids
45. AMReX: A framework for block-structured adaptive mesh refinement10.21105/joss.01370 ↗
46. ERF: Energy research and forecasting10.21105/joss.05202 ↗
47. White dwarf mergers on adaptive meshes. I. Methodology and code verification10.3847/0004-637x/819/2/94 ↗
48. Nyx: A massively parallel AMR code for computational cosmology10.1088/0004-637x/765/1/39 ↗
49. PeleC: An adaptive mesh refinement solver for compressible reacting flows10.1177/10943420221121151 ↗
50. An all Mach number scheme for visco-resistive magnetically-dominated MHD flows10.1016/j.jcp.2024.113229 ↗
51. Solving the Grad–Shafranov equation using spectral elements for tokamak equilibrium with toroidal rotation10.1016/j.cpc.2020.107264 ↗
52. Tokamak coordinate conventions: COCOS10.1016/j.cpc.2012.09.010 ↗
53. 2010
54. AMReX: Block-structured adaptive mesh refinement for multiphysics applications10.1177/10943420211022811 ↗
55. Numerical determination of axisymmetric toroidal magnetohydrodynamic equilibria10.1016/0021-9991(79)90129-3 ↗
56. 1989
57. A fast marching level set method for monotonically advancing fronts10.1073/pnas.93.4.1591 ↗
58. Fast marching methods10.1137/s0036144598347059 ↗
59. Solutions of ill-posed problems (A. N. Tikhonov and V. Y. Arsenin)10.1137/1021044 ↗
60. G. Guennebaud and B.Jacob, “Eigen v3,” http://eigen.tuxfamily.org (2010).
61. S. G. Johnson , “The NLopt nonlinear-optimization package,” https://github.com/stevengj/nlopt (2007).
62. 1994
63. A parallel cut-cell algorithm for the free-boundary Grad–Shafranov problem10.1137/20m1385470 ↗
64. High-resolution magnetohydrodynamic equilibrium code for unity beta plasmas10.1016/j.jcp.2005.12.005 ↗
65. Multi-level adaptive solutions to boundary-value problems10.1090/s0025-5718-1977-0431719-x ↗
66. 2001
67. The design and implementation of hypre, a library of parallel high performance preconditioners10.1007/3-540-31619-1 ↗
68. S. Balay , S.Abhyankar, M. F.Adams, S.Benson, J.Brown, P.Brune, K.Buschelman, E. M.Constantinescu, L.Dalcin, A.Dener, V.Eijkhout, J.Faibussowitsch, W. D.Gropp, V.Hapla, T.Isaac, P.Jolivet, D.Karpeev, D.Kaushik, M. G.Knepley, F.Kong, S.Kruger, D. A.May, L. C.McInnes, R. T.Mills, L.Mitchell, T.Munson, J. E.Roman, K.Rupp, P.Sanan, J.Sarich, B. F.Smith, S.Zampini, H.Zhang, H.Zhang, and J.Zhang, “PETSc Web page,” https://petsc.org/ (2024).
69. FreeGSNKE: A Python-based dynamic free-boundary toroidal plasma equilibrium solver10.1063/5.0188467 ↗
70. 2006
71. Bulk plasma rotation in the TCV tokamak in the absence of external momentum input10.1088/0741-3335/49/12b/s18 ↗
72. Neutral beam heating on the TCV tokamak10.1016/j.fusengdes.2017.02.076 ↗
73. Plasma rotation and transport in MAST spherical tokamak10.1088/0029-5515/51/6/063006 ↗
74. ‘PROCESS’: Systems studies of spherical tokamaks10.1016/j.fusengdes.2020.111530 ↗
75. Influence of rotation on axisymmetric plasma equilibria: Double-null DTT scenario10.1088/1361-6587/ac30cc ↗
76. EFIT tokamak equilibria with toroidal flow and anisotropic pressure using the two-temperature guiding-centre plasma10.1088/0029-5515/53/11/113040 ↗
77. Numerical study of tokamak equilibria with arbitrary flow10.1063/1.1637918 ↗
78. Validation of the static forward Grad–Shafranov equilibrium solvers in FreeGSNKE and Fiesta using EFIT++ reconstructions from MAST-U10.1088/1402-4896/ada192 ↗
79. Computation of fixed boundary tokamak equilibria using a method based on approximate particular solutions10.1016/j.camwa.2015.07.013 ↗
80. Fixed boundary Grad-Shafranov solver using finite difference method in nonhomogeneous meshgrid10.1088/1742-6596/1159/1/012017 ↗
81. Computing ideal magnetohydrodynamic equilibria10.13182/fst06-a1112 ↗
82. Plasma confinement in closed magnetic systems10.1007/978-1-4615-7793-5_1 ↗
83. ‘One size fits all’ analytic solutions to the Grad–Shafranov equation10.1063/1.3328818 ↗
85. Volume-fraction techniques: Powerful tools for wind engineering10.1016/b978-0-444-81688-7.50036-x ↗