-
Towards Robust Solvers for Nuclear Fusion Simulations Using JOREK: A Numerical Analysis Perspective
Authors:
Alex Quinlan,
Vandana Dwarka,
Ihor Holod,
Matthias Hoelzl
Abstract:
One of the most well-established codes for modeling non-linear Magnetohydrodynamics (MHD) for tokamak reactors is JOREK, which solves these equations with a Bézier surface based finite element method. This code produces a highly sparse but also very large linear system. The main solver behind the code uses the Generalized Minimum Residual Method (GMRES) with a physics-based preconditioner, but eve…
▽ More
One of the most well-established codes for modeling non-linear Magnetohydrodynamics (MHD) for tokamak reactors is JOREK, which solves these equations with a Bézier surface based finite element method. This code produces a highly sparse but also very large linear system. The main solver behind the code uses the Generalized Minimum Residual Method (GMRES) with a physics-based preconditioner, but even with the preconditioner there are issues with memory and computation costs and the solver does not always converge well. This work contains the first thorough study of the mathematical properties of the underlying linear system. It enables us to diagnose and pinpoint the cause of hampered convergence. In particular, analyzing the spectral properties of the matrix and the preconditioned system with numerical linear algebra techniques, will open the door to research and investigate more performant solver strategies, such as projection methods.
△ Less
Submitted 30 August, 2023;
originally announced August 2023.
-
Energy conservation and numerical stability for the reduced MHD models of the non-linear JOREK code
Authors:
Emmanuel Franck,
Matthias Hoelzl,
Alexander Lessig,
Eric Sonnendrücker
Abstract:
In this paper we present a rigorous derivation of the reduced MHD models with and without parallel velocity that are implemented in the non-linear MHD code JOREK. The model we obtain contains some terms that have been neglected in the implementation but might be relevant in the non-linear phase. These are necessary to guarantee exact conservation with respect to the full MHD energy.
For the second…
▽ More
In this paper we present a rigorous derivation of the reduced MHD models with and without parallel velocity that are implemented in the non-linear MHD code JOREK. The model we obtain contains some terms that have been neglected in the implementation but might be relevant in the non-linear phase. These are necessary to guarantee exact conservation with respect to the full MHD energy.
For the second part of this work, we have replaced the linearized time stepping of JOREK by a non-linear solver based on the Inexact Newton method including adaptive time stepping. We demonstrate that this approach is more robust especially with respect to numerical errors in the saturation phase of an instability and allows to use larger time steps in the non-linear phase.
△ Less
Submitted 30 January, 2015; v1 submitted 9 August, 2014;
originally announced August 2014.
-
Non regression testing for the JOREK code
Authors:
Guillaume Latu,
Marina Becoulet,
Guilhem Dif-Pradalier,
Virginie Grandgirard,
Matthias Hoelzl,
G. Huysmans,
Xavier Lacoste,
Eric Nardon,
Francois Orain,
Chantal Passeron,
Pierre Ramet,
Ahmed Ratnani
Abstract:
Non Regression Testing (NRT) aims to check if software modifications result in undesired behaviour. Suppose the behaviour of the application previously known, this kind of test makes it possible to identify an eventual regression, a bug. Improving and tuning a parallel code can be a time-consuming and difficult task, especially whenever people from different scientific fields interact closely. The…
▽ More
Non Regression Testing (NRT) aims to check if software modifications result in undesired behaviour. Suppose the behaviour of the application previously known, this kind of test makes it possible to identify an eventual regression, a bug. Improving and tuning a parallel code can be a time-consuming and difficult task, especially whenever people from different scientific fields interact closely. The JOREK code aims at investing Magnetohydrodynamic (MHD) instabilities in a Tokamak plasma. This paper describes the NRT procedure that has been tuned for this simulation code. Automation of the NRT is one keypoint to keeping the code healthy in a source code repository.
△ Less
Submitted 16 November, 2012;
originally announced November 2012.