In preparation for extending the JOREK nonlinear MHD code to stellarators, a hierarchy of stellarator-capable reduced and full MHD models has been derived and tested. The derivation was presented at the EFTC 2019 conference. Continuing this line of work, we have implemented the reduced MHD model (arXiv:1907.12486) as well as an alternative model which was newly derived using a different set of projection operators for obtaining the scalar momentum equations from the full MHD vector momentum equation. With the new operators, the reduced model matches the standard JOREK reduced models for tokamaks in the tokamak limit and conserves energy exactly, while momentum conservation is less accurate than in the original model whenever field-aligned flow is present.
In recent years, the nonlinear 3D magnetohydrodynamic codes JOREK, M3D-C$^1$ and NIMROD developed the capability of modelling realistic 3D vertical displacement events (VDEs) including resistive walls. In this paper, a comprehensive 3D VDE benchmark is presented between these state of the art codes. The simulated case is based on an experimental NSTX plasma but with a simplified rectangular wall. In spite of pronounced differences between physics models and numerical methods, the comparison shows very good agreement in the relevant quantities used to characterize disruptions such as the 3D wal…
A simulated annealing (SA) relaxation method is used for calculation of high-beta reduced magnetohydrodynamics (MHD) equilibria in toroidal geometry. The SA method, based on artificial dynamics derived from the MHD Hamiltonian structure, is used to calculate equilibria of large-aspect-ratio and circular-cross-section tokamaks as well as toroidally averaged stellarators. Tokamak equilibria including incompressible poloidal rotations are obtained and the Shafranov shift is seen to increase nearly quadratically in the rotation speed. A mapping procedure between non-rotating and poloidally rotatin…
In the linear collisionless limit, a zonal potential perturbation in a toroidal plasma relaxes, in general, to a non-zero residual value. Expressions for the residual value in tokamak and stellarator geometries, and for arbitrary wavelengths, are derived. These expressions involve averages over the lowest order particle trajectories, that typically cannot be evaluated analytically. In this work, an efficient numerical method for the evaluation of such expressions is reported. It is shown that this method is faster than direct gyrokinetic simulations performed with the GENE and EUTERPE codes. C…
A benchmark exercise for the modeling of vertical displacement events (VDEs) is presented and applied to the 3D nonlinear magneto-hydrodynamic codes M3D-C$^1$, JOREK and NIMROD. The simulations are based on a vertically unstable NSTX equilibrium enclosed by an axisymmetric resistive wall with rectangular cross section. A linear dependence of the linear VDE growth rates on the resistivity of the wall is recovered for sufficiently large wall conductivity and small temperatures in the open field line region. The benchmark results show good agreement between the VDE growth rates obtained from line…
3D free boundary equilibrium computations have recently been used to model external kinks and edge harmonic oscillations (EHOs), comparing with linear MHD stability codes, and nonlinear analytic theory [Kleiner et al, PPCF 61 084005 (2019)]. In this study, results of the VMEC equilibrium code are compared further with nonlinear reduced MHD simulations, using the JOREK code. The purpose of this investigation is to understand the extent to which the modelling approaches agree, and identify the important physical effects which can modify the dynamics. For the simulated external kink, which is dom…
In this work, the role which three-dimensional shaping plays in the generation of rotational transform in toroidal magnetically confinement devices is explored. The susceptance matrix as defined by Strand & Houlberg (2001) is presented and compared to simulations of three dimensional MHD equilibria. The dependence of the edge rotational transform on axisymmetric shaping is briefly explored. It is then shown how simple three dimensional shaping can drive rotational transform in a simply shaped stellarator. It is found that modes with high poloidal mode number drive edge transform with little ef…
One metric for comparing confinement properties of different magnetic fusion energy configurations is the linear critical gradient of drift wave modes. The critical gradient scale length determines the ratio of the core to pedestal temperature when a plasma is limited to marginal stability in the plasma core. The gyrokinetic turbulence code GS2 was used to calculate critical temperature gradients for the linear, collisionless ion temperature gradient (ITG) mode in the National Compact Stellarator Experiment (NCSX) and a prototypical shaped tokamak, based on the profiles of a JET H-mode shot an…
XGC (X-point Gyrokinetic Code) is a whole-volume, total-f gyrokinetic particle-in-cell code developed for modelling tokamaks. In recent work, XGC has been extended to model more general 3D toroidal magnetic configurations, such as stellarators. These improvements have resulted in the XGC-S version. In this paper, XGC-S is benchmarked for linear electrostatic ion temperature gradient-driven microinstabilities, which can underlie turbulent transport in stellarators. An initial benchmark of XGC-S in tokamak geometry shows good agreement with the XGC1, ORB5, and global GENE codes. A benchmark betw…
Energetic particle (EP) driven instabilities will be of strongly increased relevance in future burning plasmas as the EP pressure will be very large compared to the thermal plasma. Understanding the interaction of EPs and bulk plasma is crucial for developing next-generation fusion devices. In this work, the JOREK MHD code is extended to allow for the simulation of EP instabilities at high EP pressures using realistic plasma and EP parameter in a full-f formulation with anisotropic pressure coupling to the bluid background. The code is first benchmarked linearly for the ITPA-TAE as well as the…
Characterizing Flux-Surface Shapes in Tokamaks and Quasi-Symmetric Stellarators
University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Max Planck Institute for Plasma Physics(马普等离子体物理研究所);Dutch Institute for Fundamental Research(荷兰基础研究所);Eindhoven University of Technology(埃因霍温理工大学);Ruhr-Universität Bochum(波鸿鲁尔大学)
In order to contribute to the understanding of runaway electron generation mechanisms during tokamak disruptions, a test particle tracker is introduced in the JOREK 3D non-linear MHD code, able to compute both full and guiding center relativistic orbits. Tests of the module show good conservation of the invariants of motion and consistency between full orbit and guiding center solutions. A first application is presented where test electron confinement properties in a JET massive gas injection-triggered disruption simulation are investigated. It is found that electron populations initialised be…
Reduced magnetohydrodynamic (MHD) equations are used to study the nonlinear dynamics of external kinks in a quasi-axisymmetric (QA) stellarator with varying fractions of external rotational transform. The large bootstrap currents associated with high beta plasmas may make QA configurations susceptible to low n external modes, limiting their operational space. The violence of the nonlinear dynamics, and, in particular, when these modes lead to a disruption, is not yet understood. In this paper, the nonlinear phase of external kinks in an unstable QA configuration with an edge safety factor belo…
We demonstrate a fast adjoint-based method to optimize tokamak and stellarator equilibria against a pressure-driven instability known as the infinite-$n$ ideal ballooning mode. We present three finite-$β$ (the ratio of thermal to magnetic pressure) equilibria: one tokamak equilibrium and two stellarator equilibria that are unstable against the ballooning mode. Using the self-adjoint property of ideal MHD, we construct a technique to rapidly calculate the change in the growth rate, a measure of ideal ballooning instability. Using the~\texttt{SIMSOPT} framework, we then implement our fast adjoin…
The dynamics of large scale plasma instabilities can strongly be influenced by the mutual interaction with currents flowing in conducting vessel structures. Especially eddy currents caused by time-varying magnetic perturbations and halo currents flowing directly from the plasma into the walls are important. The relevance of a resistive wall model is directly evident for Resistive Wall Modes (RWMs) or Vertical Displacement Events (VDEs). However, also the linear and non-linear properties of most other large-scale instabilities may be influenced significantly by the interaction with currents in …
The JOREK extended magneto-hydrodynamic (MHD) code is a widely used simulation code for studying the non-linear dynamics of large-scale instabilities in divertor tokamak plasmas. Due to the large scale-separation intrinsic to these phenomena both in space and time, the computational costs for simulations in realistic geometry and with realistic parameters can be very high, motivating the investment of considerable effort for optimization. In this article, a set of developments regarding the JOREK solver and preconditioner is described, which lead to overall significant benefits for large produ…
A limit for the edge density, ruled by radiation losses from light impurities, is established by a minimal cylindrical magneto-thermal equilibrium model. For ohmic tokamak and reversed field pinch the limit scales linearly with the plasma current, as the empirical Greenwald limit. The auxiliary heating adds a further dependence, scaling with the 0.4 power, in agreement with L-mode tokamak experiments. For a purely externally heated configuration the limit takes on a Sudo-like form, depending mainly on the input power, and is compatible with recent Stellarator scalings.
For the simulation of disruptions in tokamak fusion plasmas, a fluid model describing the evolution of relativistic runaway electrons and their interaction with the background plasma is presented. The overall aim of the model is to self-consistently describe the nonlinear coupled evolution of runaway electrons (REs) and plasma instabilities during disruptions. In this model, the runaway electrons are considered as a separate fluid species in which the initial seed is generated through the Dreicer source, which eventually grows by the avalanche mechanism (further relevant source mechanisms can …
Implementation and verification of the avalanche source in a 3D full-f particle-in-cell model of relativistic electrons for studies of tokamak disruptions
JOREK is a massively parallel fully implicit non-linear extended MHD code for realistic tokamak X-point plasmas. It has become a widely used versatile code for studying large-scale plasma instabilities and their control developed in an international community. This article gives a comprehensive overview of the physics models implemented, numerical methods applied for solving the equations and physics studies performed with the code. A dedicated section highlights some of the verification work done for the code. A hierarchy of different physics models is available including a free boundary and …
We use the non-linear reduced-MHD code JOREK to study ELMs in the geometry of the ASDEX Upgrade tokamak. Toroidal mode numbers, poloidal filament sizes, and radial propagation speeds of filaments into the scrape-off layer are in good agreement with observations for type-I ELMs in ASDEX Upgrade. The observed instabilities exhibit a localization of perturbations which is compatible with the "solitary magnetic perturbations" recently discovered in ASDEX Upgrade [R.Wenninger et.al., Solitary Magnetic Perturbations at the ELM Onset, Nucl.Fusion, submitted]. This localization can only be described i…