Implementation and verification of a new free boundary module for Resistive Wall Modes simulations with the nonlinear 3D full MHD code SpeCyl
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Physics. The day in general physics: instruments, methods and results across the field.
Kai: I'm Kai.
Mira: And I'm Mira, here with Lev.
Kai: We're looking at the paper: "Implementation and verification of a new free boundary module for Resistive Wall Modes simulations with the nonlinear 3D full MHD code SpeCyl".
Mira: Here's the gist of the paper. Self-consistent numerical simulations of free boundary instabilities, such as resistive wall modes (RWMs) and external kink modes, require special attention given their relevance on the path towards magnetic fusion based nuclear reactors This work presents a new implementation and a verification benchmark for the nonlinear three-dimensional (3D) full magneto-hydrodynamics (MHD) code SpeCyl, which selfconsistently combines a free flow 3D treatment with double resistive wall thin shell magnetic boundary conditions The new boundary module is expected to increase the realism of the simulations performed with the new version of SpeCyl, especially when investigating RWMs Implementation Details The implementation involves a new boundary module in SpeCyl that combines a free flow 3D treatment for the edge plasma velocity with double resistive wall thin shell magnetic boundary conditions The setup consists of two coaxial resistive shells surrounding the plasma, which are implemented in the computational tool for visco-resistive MHD plasma simulations The thin shell treatment assumes that the radial component of B is continuous throughout the thin shell, i.e., Bm,nr/(r+wr−wr=0 The physical properties of the thin wall are contained in the adjustable wall time constant τw: τw = µ0rwδwσw Verification Against Analytical Theory The new boundary module is extensively verified against Shafranov’s analytic theory, valid for a circular cross section large aspect ratio tokamak and assuming a flat current profile The correctness of newly implemented Boundary Conditions (BCs) is confirmed by the good agreement obtained for the linear growth rates of (m = 2, n = 1) RWM and external kink, over a wide range of wall positions The study of linear growth rates for the (m = 2, n = 1) RWM is discussed by varying the outer shell resistivity in SpeCyl from an ideal wall case to increasingly large wall resistivity Benchmarking Against Experimental Models A benchmark study with respect to previous realistic tokamak successful modelling related to RFX-mod is discussed, and serves to anticipate a future more systematic validation of SpeCyl against experimental results The second verification study adopts a class of large aspect ratio equilibria initially studied by Wesson5,44, which replaces the FCM used for the just discussed extensive verification The natural growth rates computed by SpeCyl fall in the correct order of magnitude as predicted by RFXlocking and observed in the target RFX-mod experiments Verification of Growth Rates The verification of the new BCs focuses on the (m = 2, n = 1) mode and involves three tests to reproduce the FCM growth rates The first test shows SpeCyl reproduces the analytical growth rates with good agreement, especially in the RWM regime when the wall position b/a is close to the edge of the plasma The second test confirms that growth rates are reported for two discrete wall positions b/a and with the wall time constant τw/τA covering six decades Comparison with RFX-mod Device Modelling The second verification study compares SpeCyl linear growth rates prediction with those obtained with RFXlocking simulations, using the same setup aiming at reproducing tokamak experiments in the RFX-mod device The resulting growth rates fall in the correct order of magnitude as predicted by RFXlocking and observed in the target RFX-mod experiments The new implementation of SpeCyl achieved with this work allows for further physics-based studies aiming to closely reproduce the experimental settings The magneto-fluid boundary conditions are now addressed in the SpeCyl code with high-fidelity and self-consistency, enabling a reliable estimation of growth rates for free boundary instability scenarios The coupling between internal MHD dynamics and a realistic magnetic front-end in the RFP configuration will be the subject of future investigations concerning the magnetic feedback control of the experiments The double shell implementation will improve the estimation of the expected MHD perturbation levels at the RFX-mod2 boundary, which is crucial for a quantification of plasma-wall interaction determining the attainable high current plasma regimes The new implementation of SpeCyl achieved with this work allows for further physics-based studies aiming to closely reproduce the experimental settings Author Contributions Francesco Galeazzi: Conceptualization (lead); Software (lead); Formal analysis (lead); Investigation (lead); Methodology (lead); Visualization (lead); Writing – original draft (lead); Writing – review & editing (lead) Daniele Bonfiglio: Conceptualization (lead); Writing – original draft (equal); Writing – review & editing (lead); Formal analysis (equal); Investigation (equal); Methodology (lead) Luca Spinicci: Conceptualization (equal); Writing – review & editing (lead); Formal analysis (equal); Investigation (equal); Methodology (equal) Susanna Cappello: Conceptualization (equal); Writing – review & editing (equal); Investigation (equal); Methodology (equal) Acknowledgments The authors would like to thank the colleagues G.
Kai: Marchiori and P.
Mira: Zanca for helpful discussions and valuable suggestions during the development of this paper This work has been partially supported by the Program Implementation Agreement PRN MASE - ENEA of 2024/07/12 for activities set out in Art.3 c1d D.M.
Kai: n.
Paper summary: Kai: So we're looking at this paper, "Implementation and verification of a new free boundary module for Resistive Wall Modes simulations with the nonlinear three dee full MHD code SpeCyl <ref:2610.13428#pg1,Implementation and verification of a new free boundary module for Resistive Wall>." It’s about making sure the way we model these instabilities in fusion reactors is actually realistic.
Mira: Right, so the core idea here is that self-consistent numerical simulations of things like resistive wall modes and external kink modes need special attention because they’re relevant for magnetic fusion based nuclear reactors. This work introduces a new implementation and a verification benchmark for this nonlinear three-dimensional full magneto-hydrodynamics code called SpeCyl.
Lev: What's the actual claim? Basically, they’ve built this SpeCyl code that combines a free flow three dimensional treatment with double resistive wall thin shell magnetic boundary conditions.
Kai: That boundary module is supposed to capture the essential features of common setups in experimental devices, especially when you’re looking at resistive wall modes. It sets up two coaxial resistive shells surrounding the plasma, and they can adjust their relative positions and time constants on purpose.
Mira: And they've verified this new module against Shafranov’s analytic theory for a circular cross section with a large aspect ratio tokamak, assuming a flat current profile.
Lev: The verification confirms the linear growth rates for the two m equals two, n equals one resistive wall mode and external kink over a wide range of wall positions. They even tested varying the outer shell resistivity to see how it affects those growth rates.
Kai: I’m interested in what they did with comparison against previous work, specifically related to RFX-mod modeling and Wesson's large aspect ratio equilibria. That seems like a way to check if this new setup holds up against successful tokamak models from before.
Mira: They used the same setup for the second verification study as was initially studied by Wesson, replacing a different approach they used earlier in their work. The natural growth rates computed by SpeCyl fall in the correct order of magnitude as predicted by RFXlocking and observed in target RFX-mod experiments.
Paper summary: Lev: And to be specific about those growth rates, they did three tests to reproduce the FCM growth rates, and the first test shows SpeCyl reproduces those analytical growth rates with good agreement, especially in the resistive wall mode regime when the wall position b over a is close to the edge of the plasma.
Kai: The second test confirms that they report growth rates for two discrete wall positions b over a and with the wall time constant tau w over tau A covering six decades. That’s pretty detailed about how sensitive these modes are to those boundary conditions.
Mira: And when they compared SpeCyl’s linear growth rates prediction with those obtained from RFXlocking simulations, they used the same setup aimed at reproducing tokamak experiments in the RFX-mod device. The resulting growth rates fall in the correct order of magnitude as predicted by RFXlocking and observed in the target RFX-mod experiments.
Lev: What this means for us on hardware is that this new boundary module allows for further physics based studies aiming to closely reproduce the experimental settings with high fidelity and self consistency. The coupling between internal magnetohydrodynamic dynamics and a realistic magnetic front end in the RFP configuration will be the subject of future investigations concerning magnetic feedback control of experiments.
Kai: So, looking at the title, "Implementation and verification of a new free boundary module for Resistive Wall Modes simulations with the nonlinear three dee full MHD code SpeCyl," it really sounds like they’ve built a tool that brings us closer to simulating what we see in actual fusion devices <ref:2610.13428#pg1,Implementation and verification of a new free boundary module for Resistive Wall>.
Mira: Exactly. The implication is that we can now do more reliable estimations of growth rates for free boundary instability scenarios because the magneto fluid boundary conditions are now addressed in the SpeCyl code with high fidelity and self consistency.
Lev: The double shell implementation they introduced will improve the estimation of expected magnetohydrodynamic perturbation levels at the RFX-mod two boundary, which is crucial for quantifying plasma wall interaction determining attainable high current plasma regimes.
Kai: It sounds like this work allows for further physics based studies aiming to closely reproduce experimental settings. We're moving toward having a more reliable way to understand how these instabilities behave in real machine environments.
Paper summary: Mira: And that coupling between the internal MHD dynamics and a realistic magnetic front end in the RFP configuration will be the subject of future investigations concerning magnetic feedback control of the experiments, which is key for those fusion reactors.
Lev: So we’re looking at a tool that lets us test things on real hardware models before we try to control them experimentally. The paper itself also lays out how they set up the simulations and what equations they are using in Section II, and then dives into the thin shell treatment in Section III, which is detailed numerically in Section IV.
Kai: So, before we wrap up this part of the discussion on this paper, it seems like the main thing is that they took a complex physical problem—modeling instabilities near a resistive boundary—and built a new numerical tool to verify it against theory and existing experimental models.
Mira: That’s right. The implication is that we can now use this SpeCyl code with much higher confidence when investigating RWMs and external kink modes relevant for fusion reactors because of this new boundary treatment.
Lev: And the limitation they mention is that their verification against previous successful realistic RFX-mod modelling is a benchmark, which anticipates a future more systematic validation against experimental results. So it's a strong step forward, but it’s still anticipating the final validation there.
Kai: So to sum up, this paper presents this new implementation of SpeCyl which selfconsistently combines free flow three dimensional treatment with double resistive wall thin shell magnetic boundary conditions for resistive wall modes simulations. It gives us a reliable estimation of growth rates for those instability scenarios.
Mira: And the conclusion is that this work allows for further physics based studies aiming to closely reproduce the experimental settings by addressing the magneto fluid boundary conditions in SpeCyl with high fidelity and self consistency.
Lev: The coupling between internal MHD dynamics and a realistic magnetic front end in the RFP configuration will be the subject of future investigations concerning magnetic feedback control of experiments, and this work will improve the estimation of expected magnetohydrodynamic perturbation levels at the RFX-mod two boundary.
Kai: So we’re looking at this paper as a way to get a more accurate picture of how instabilities behave in fusion environments by building a better numerical tool for those edge plasma conditions.
Conclusion: Kai: So, we've been looking at this paper about implementing and verifying a new free boundary module for Resistive Wall Modes simulations using the SpeCyl code.
Mira: It basically means they've taken a complex physical problem and built a better numerical tool to test against theory and existing models.
Lev: The title points to making sure these boundary conditions are actually correct for simulating what happens near a resistive wall in fusion reactors.
Kai: Right, so they’re focusing on the nonlinear three dimensional full magneto hydrodynamics code SpeCyl, which combines a free flow three dimensional treatment with double resistive wall thin shell magnetic boundary conditions.
Mira: This new setup is supposed to increase the realism of simulations when you're looking at those resistive wall modes specifically.
Lev: The key thing here is that they’ve verified this new module against Shafranov’s analytic theory, which is valid for a circular cross section with a large aspect ratio tokamak and assuming a flat current profile.
Kai: So they checked it against the theoretical baseline first to make sure the physics makes sense before looking at more complicated stuff.
Mira: And they confirmed the linear growth rates for both m equals two n equals one resistive wall mode and external kink over quite a wide range of wall positions.
Lev: They even varied the outer shell resistivity in SpeCyl, going from an ideal wall case to much larger wall resistivity, to see how that changes things.
Kai: That suggests they’re not just checking a single point but looking at how sensitive these modes are across different real-world scenarios for the boundary condition.
Mira: Then they did some benchmarking against previous realistic tokamak modeling related to RFX mod, which is important because it helps anticipate future validation against experimental results.
Lev: They also used a class of large aspect ratio equilibria initially studied by Wesson, replacing the FCM they used earlier in their work for this second verification study.
Kai: What this tells us is that the growth rates they calculated fall in the correct order of magnitude as predicted by RFXlocking and what’s actually observed in those target RFX mod experiments.
Mira: The conclusion is that this new implementation lets them do further physics based studies aiming to closely reproduce experimental settings with high fidelity and self consistency for free boundary instabilities.
Lev: And they suggest the coupling between the internal magnetohydrodynamic dynamics and a realistic magnetic front end in the RFP configuration will be a focus for future investigations concerning magnetic feedback control of those experiments.
Kai: So, this work gives us a more reliable way to estimate growth rates because the magneto fluid boundary conditions are now addressed in SpeCyl with high fidelity and self consistency.
Mira: This double shell implementation should improve the estimation of expected magnetohydrodynamic perturbation levels at the RFX mod two boundary, which is crucial for quantifying plasma wall interaction determining attainable high current plasma regimes.
Lev: It’s a big step toward using this code to model what happens at a more realistic edge plasma, and that will be essential when we think about controlling these kinds of instabilities in actual hardware.
Consorzio RFX Padua Italy · Politecnico di Milano Milan Italy · CNR Institute of Science and Technology of Padua Italy · UKAEA Culham UK
physics.plasm-ph, physics.comp-ph
Submitted: 2026-10-09
Updated: 2026-11-06
Comments: 39 pages, 10 figures, 3 appendixes, v2: corrected typo in Eq. (39); numerical results unaffected
Project page: https://tds-scidac.github.io/gallery
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 100/100
The gist: Self-consistent numerical simulations of free boundary instabilities, such as resistive wall modes (RWMs) and external kink modes…
Key concepts
- Resistive Wall Modes (RWMs)
- These are specific types of instabilities that occur at the edge of a plasma when resistive effects are considered. They are important for understanding plasma behavior and control, especially in fusion reactor scenarios.
- Full Magneto-Hydrodynamics (MHD) Code SpeCyl
- SpeCyl is a sophisticated numerical tool used to simulate complex plasma physics by solving the full equations of MHD. This code allows researchers to model how magnetic fields and fluid motion interact within the plasma.
- Double Resistive Wall Thin Shell Magnetic Boundary Conditions
- This is a specific mathematical method used at the edge of the simulation domain. It models a physical wall using two coaxial resistive shells, ensuring that magnetic field continuity is maintained across these boundaries for more realistic simulations.
Terminology
Summary
Self-consistent numerical simulations of free boundary instabilities, such as resistive wall modes (RWMs) and external kink modes, require special attention given their relevance on the path towards magnetic fusion based nuclear reactors This work presents a new implementation and a verification benchmark for the nonlinear three-dimensional (3D) full magneto-hydrodynamics (MHD) code SpeCyl, which selfconsistently combines a free flow 3D treatment with double resistive wall thin shell magnetic boundary conditions The new boundary module is expected to increase the realism of the simulations performed with the new version of SpeCyl, especially when investigating RWMs
Implementation Details
The implementation involves a new boundary module in SpeCyl that combines a free flow 3D treatment for the edge plasma velocity with double resistive wall thin shell magnetic boundary conditions The setup consists of two coaxial resistive shells surrounding the plasma, which are implemented in the computational tool for visco-resistive MHD plasma simulations The thin shell treatment assumes that the radial component of B is continuous throughout the thin shell, i.e., Bm,nr/(r+wr−wr=0 The physical properties of the thin wall are contained in the adjustable wall time constant τw: τw = µ0rwδwσw
Verification Against Analytical Theory
The new boundary module is extensively verified against Shafranov’s analytic theory, valid for a circular cross section large aspect ratio tokamak and assuming a flat current profile The correctness of newly implemented Boundary Conditions (BCs) is confirmed by the good agreement obtained for the linear growth rates of (m = 2, n = 1) RWM and external kink, over a wide range of wall positions The study of linear growth rates for the (m = 2, n = 1) RWM is discussed by varying the outer shell resistivity in SpeCyl from an ideal wall case to increasingly large wall resistivity
Benchmarking Against Experimental Models
A benchmark study with respect to previous realistic tokamak successful modelling related to RFX-mod is discussed, and serves to anticipate a future more systematic validation of SpeCyl against experimental results The second verification study adopts a class of large aspect ratio equilibria initially studied by Wesson5,44, which replaces the FCM used for the just discussed extensive verification The natural growth rates computed by SpeCyl fall in the correct order of magnitude as predicted by RFXlocking and observed in the target RFX-mod experiments
Verification of Growth Rates
The verification of the new BCs focuses on the (m = 2, n = 1) mode and involves three tests to reproduce the FCM growth rates The first test shows SpeCyl reproduces the analytical growth rates with good agreement, especially in the RWM regime when the wall position b/a is close to the edge of the plasma The second test confirms that growth rates are reported for two discrete wall positions b/a and with the wall time constant τw/τA covering six decades
Comparison with RFX-mod Device Modelling
The second verification study compares SpeCyl linear growth rates prediction with those obtained with RFXlocking simulations, using the same setup aiming at reproducing tokamak experiments in the RFX-mod device The resulting growth rates fall in the correct order of magnitude as predicted by RFXlocking and observed in the target RFX-mod experiments
Conclusion
The new implementation of SpeCyl achieved with this work allows for further physics-based studies aiming to closely reproduce the experimental settings The magneto-fluid boundary conditions are now addressed in the SpeCyl code with high-fidelity and self-consistency, enabling a reliable estimation of growth rates for free boundary instability scenarios The coupling between internal MHD dynamics and a realistic magnetic front-end in the RFP configuration will be the subject of future investigations concerning the magnetic feedback control of the experiments The double shell implementation will improve the estimation of the expected MHD perturbation levels at the RFX-mod2 boundary, which is crucial for a quantification of plasma-wall interaction determining the attainable high current plasma regimes The new implementation of SpeCyl achieved with this work allows for further physics-based studies aiming to closely reproduce the experimental settings
Author Contributions
Francesco Galeazzi: Conceptualization (lead); Software (lead); Formal analysis (lead); Investigation (lead); Methodology (lead); Visualization (lead); Writing – original draft (lead); Writing – review & editing (lead) Daniele Bonfiglio: Conceptualization (lead); Writing – original draft (equal); Writing – review & editing (lead); Formal analysis (equal); Investigation (equal); Methodology (lead) Luca Spinicci: Conceptualization (equal); Writing – review & editing (lead); Formal analysis (equal); Investigation (equal); Methodology (equal) Susanna Cappello: Conceptualization (equal); Writing – review & editing (equal); Investigation (equal); Methodology (equal)
Acknowledgments
The authors would like to thank the colleagues G. Marchiori and P. Zanca for helpful discussions and valuable suggestions during the development of this paper This work has been partially supported by the Program Implementation Agreement PRN MASE - ENEA of 2024/07/12 for activities set out in Art.3 c1d D.M. n.
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Improved AI system can accurately predict nonlinear growth rates of Resistive Wall Modes (RWMs) in 3D full MHD simulations by self-consistently combining a free flow 3D treatment for edge plasma velocity with double resistive wall thin shell magnetic boundary conditions.
-
The improved system can perform rigorous verification against Shafranov’s analytic theory, specifically confirming the correctness of newly implemented Boundary Conditions (BCs) for the (m = 2, n = 1) RWM growth rates over a wide range of wall positions and resistive shell time constants.
-
The system can robustly model free boundary MHD instabilities in large aspect ratio magnetic confinement configurations by utilizing a flexible setup characterized by two coaxial cylindrical shells with independently adjustable resistivity and mutual distances.
-
The improved AI can predict the dispersion relation for (m = 2, n = 1) RWM and external kink modes as a function of wall proximity b/a, incorporating plasma inertia through the full dispersion relation derived in Equation (35).
-
The system can compare SpeCyl growth rate estimates with previous realistic RFX-mod modelling simulations, demonstrating predictive capability for experimental scenarios by matching growth rates close to measured values like gamma = 44 s-1.
-
The AI can perform sensitivity analysis on the boundary module to determine how the RWM growth rate depends on the inner wall time constant tau w a, showing that for transparent wall conditions at r = a, gamma is insensitive to it while for large tau w a, it decays.
-
The system can accurately predict the transition threshold between an RWM and an external kink mode by correctly identifying the critical proximity threshold (b/a)lim = 1.189 in simulations, which is marked by a black dotted vertical line in Figure 6.
-
The improved system can assess the impact of varying equilibrium configurations, such as different safety factor profiles q(a), confirming that the average relative error remains around 6% and showing better agreement for RWM regimes with small growth rates.
-
The AI can reproduce spontaneous (m = 2, n = 1) RWM growth rates observed in the RFX-mod machine by comparing SpeCyl results with RFXlocking simulations, confirming the improved predictive capabilities of the new code version.
Abstract
Self-consistent numerical simulations of free boundary instabilities, such as resistive wall modes (RWMs) and external kink modes, require special attention given their relevance on the path towards magnetic fusion based nuclear reactors. In this work, a new implementation and a verification benchmark are presented for the nonlinear three-dimensional (3D) full magneto-hydrodynamics (MHD) code SpeCyl, which self-consistently combines a free flow 3D treatment for the edge plasma velocity with double resistive wall thin shell magnetic boundary conditions, capable of capturing the essential features of common setups in experimental devices. Two coaxial resistive shells surround the plasma. Vacuum conditions are assumed between and outside the resistive shells, whose relative positions and time constants can be varied on purpose. The implementation is extensively verified against Shafranov's analytic theory, valid for a circular cross section large aspect ratio tokamak and assuming a flat current profile. The correctness of newly implemented Boundary Conditions (BCs) is confirmed by the good agreement obtained for the linear growth rates of (m=2,n=1) RWM and external kink, over a wide range of wall positions, resistive shell time constants, and for different initial reference equilibria. The (m=2,n=1) RWM growth rates are also benchmarked against previous different RWMs modelling and successful validation studies for RFX-mod tokamak plasmas. The new BCs make SpeCyl a flexible and robust tool to investigate free boundary MHD modes in large aspect ratio magnetic confinement configurations, such as those achieved with the RFX-mod machine and expected in RFX-mod2.
Sources
Related papers
- System Size Dependence of Collisionless Reconnection Rate
- SPECTRE: A robust solver for 3D equilibria with arbitrary topology
- High-quality electron beam generation from laser wakefield accelerators for driving compact free electron lasers
- Deflation Techniques for Stellarator Equilibrium and Optimization
- Rapid Vacuum Response Calculations for Non-axisymmetric Plasma Geometries
- Quasi-symmetric error field correction and applications to ITER