A noise-robust Monte Carlo method for electric field calculations in EMC3

William De Deyn, Ruben De Wolf, Vince Maes, Giovanni Samaey · 2025

Read A noise-robust Monte Carlo method for electric field calculations in EMC3 by William De Deyn, Ruben De Wolf, Vince Maes, Giovanni Samaey (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2509-19178.txt.

Introduction

William De Deyn and three co-authors fix a noise problem inside EMC3, a leading Monte Carlo code for plasma at the edge of stellarator fusion devices. The code does not yet handle the electric drift of plasma self-consistently. That drift needs the electric field, which comes from the slope of the electric potential. Plasma fields from Monte Carlo runs are noisy, and taking slopes the usual way amplifies the noise, worse on finer grids.

Their method, extended from a one-dimensional technique, derives an equation for the electric field itself. A Monte Carlo run can then estimate the field directly, with no slope-taking at all. Tests on manufactured solutions show noise growing far more slowly as the grid refines. The authors flag limits near X-points and in island divertors, and call the work a proof of concept.

Catalog record

CREATORWilliam De Deyn, Ruben De Wolf, Vince Maes, Giovanni Samaey
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE19 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2509-19178

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

A noise-robust Monte Carlo method for electric field calculations in EMC3 William De Deyn, Ruben De Wolf, Vince Maes, Giovanni Samaey Abstract One of the main codes to analyze and optimize stellarator configurations is the EMC3 code, which implements a state-of-the-art 3D Monte Carlo plasma edge transport code. However, so far, a self-consistent treatment of the 𝑬 × 𝑩 \bm{E}\times\bm{B} drift is absent. This plasma drift is known to significantly impact the particle and heat distribution in the plasma edge. It is desirable to incorporate this drift into EMC3 to improve the predictive capabilities of the code. The calculation of the 𝑬 × 𝑩 \bm{E}\times\bm{B} drift requires the approximation of the electric field 𝑬 \bm{E} , which is proportional to the gradient of the electric potential φ \varphi . In previous work [ 2 ] , the gradient was calculated with a least squares method based on a finite difference approximation of the electric potential. However, due to the stochastic nature of EMC3, the output plasma fields computed by the code are inherently noisy. The finite difference method further amplifies the noise, with the amplification growing as the grid size decreases. We continue from [ 1 ] , which introduced a new noise-robust method for 1D derivatives. We extend the noise-robust method to 2D and apply it to the electric potential. We show that a PDE can be derived that describes the evolution of the electric field in case of a uniform diffusion coefficient. This PDE allows us to approximate the electric field directly with a Monte Carlo simulation, thus avoiding the need for a finite difference approximation. We illustrate the accuracy of the method and the noise robustness with a test case. Keywords: Monte Carlo, gradient approximation, electric field, noise-robust 1 Introduction Nuclear fusion reactors have been a research topic for decades now. Over the years, countless of machine design were developed [ 6 ] . The most popular machine desgins are the tokamak and the stellerator. The stellerator omits the need of an induced plasma current to generate the poloidal magnetic field [ 7 ] . Instead, it relies on geometrically complex magnetic coils to induce spiraling magnetic field lines. Therefore, the mathematical models and corresponding numerical solvers have to deal with this complex 3D geometry. A popular code to perform simulations of the plasma edge in stellerator type devices is the EMC3-EIRENE code. The MC-MC coupled code estimates the density, momentum and energy of the plasma. The plasma edge simulations require an efficient and accurate computation of gradients. Important gradients include the temperature gradient, pressure gradient, gradient of the electrical potential and the magnetic field gradient [ 3 , 9 , 10 ] . Espescially the gradient of the electical potential \varphi plays an important role in plasma edge simulations, as it directly determines the electric field \bm{E} , through the relation \bm{E}=-\nabla\varphi . The electric field, in turn, is essential for modeling the \bm{E}\times\bm{B} drift, which is a key mechanism for improving the predictive capabilities of the EMC3 code [ 4 ] . The main objective is therefore to obtain an accurate representation of the electric field \bm{E} by reliably approximating the gradient of the electric potential \varphi . The electrical potential itself is approximated by the EMC3 code. In previous work [ 2 ] , a least squares method based on a finite difference (FD) approximation of the gradient was proposed. However, the finite difference method has the downside that it amplifies the noise introduced by the Monte Carlo approximation. We illustrate this with a simple one-dimensional example. Consider the potential, given by \varphi(t,x) , which is approximated with a Monte Carlo method. We quantify the variance, or noise, on the finite difference approximation as follows \text{Var}\left[\frac{\varphi_{i}-\varphi_{i-1}}{\Delta x}\right]=\frac{1}{\Delta x^{2}}\text{Var}\left[\varphi_{i}-\varphi_{i-1}\right]. (1) In Equation ( 1 ), the noise of the MC approximation is given by \text{Var}\left[\varphi_{i}-\varphi_{i-1}\right] . It is clear that the variance of the finite difference approximation scales quadratically with the inverse of the grid size \Delta x . As a consequence, the gradient approximations in EMC3 become too noisy for small grid sizes. In this paper, we propose a new method that is more robust for decreasing grid sizes than the finite difference method. The paper is based on the work in [ 1 ] , which introduced and discussed the Monte Carlo Gradient Approximation (MCGA) method for general 1D Fokker-Planck equations. In this paper, we extend the method to a specific 2D case. In Section 2 , we present the electric potential equation. The current approach to calculate the electric field uses a MC method to solve the electrical potential equation and then applies the FD method. Next, Section 3 introduces the Monte Carlo Gradient Approximation method where we derive a new equation that governs the evolution of the electric field directly. We additionaly highlight the challenges associated with this equation. Section 4 provides a numerical experiment to illustrate the ability and accuracy of the MCGA method. We also analyse the effect of grid resolution on the variance of both MCGA and FD approximations. Finally, Section 5 summarizes the main findings and presents the conclusions. 2 Electric Potential Equation In this section, we derive a reduced model for the electrostatic potential \varphi . Charge conservation requires the current density \mathbf{J} to be divergence-free, i.e. \nabla\cdot\mathbf{J}=0. (2) The current density is decomposed into parallel and perpendicular components, \mathbf{J}=\mathbf{J_{\parallel}}+\mathbf{J_{\perp}} . The parallel current \mathbf{J_{\parallel}} follows from the electron parallel momentum balance, \mathbf{J_{\parallel}}=\frac{\sigma_{\parallel}}{en_{e}}\left(\nabla_{\parallel}p_{e}-en_{e}\nabla_{\parallel}\varphi+0.71\,n_{e}\nabla_{\parallel}T_{e}\right), (3) where \sigma_{||} is the parallel conductivity, p_{e} and T_{e} denote the electron pressure and temperature, and n_{e} is the electron density. The perpendicular current \mathbf{J_{\perp}} accounts for diffusion and non-ambipolar convective drifts, \mathbf{J_{\perp}}=\mathbf{J}_{\text{drift}}-\sigma_{\perp}^{an}\nabla_{\perp}\varphi, (4) with \sigma_{\perp}^{an} representing the anomalous perpendicular conductivity. Substituting these expressions into Eq. ( 2 ) yields a diffusion equation for the electrostatic potential, \displaystyle\nabla\cdot\left(-\sigma_{\perp}\nabla_{\perp}\varphi-\sigma_{\parallel}\nabla_{\parallel}\varphi\right)=S, (5) \displaystyle S=-\nabla\cdot\bm{J}_{\text{drift}}-\nabla\cdot\left(\frac{\sigma_{\perp}}{e}\left(T_{e}\nabla_{\parallel}\ln(n)+1.71\nabla_{\parallel}T_{e}\right)\right). (6) For boundary conditions at the plates, Bohm boundary conditions of the form \frac{e\varphi}{T_{e}}=2.8+0.5\ln\left(\frac{m_{i}T_{e}}{m_{e}T}\right)-\ln\left(1-\frac{J_{\parallel}}{J_{sat}}\right), (7) are employed. Other boundary condition, such as reflective boundaries, are also possible. Equation ( 5 ) is a stationary diffusion-type equation. However, in Sections 3 and 4 , we consider a more general time-depenent diffusion equation. For clarity and simplicity, we adopt classical Dirichlet boundary conditions; however, the approach remains valid if Bohm boundary conditions are used instead. Equation ( 5 ) serves as the starting point for deriving a closed evolution equation for \bm{E} in the next section. 3 Monte Carlo Gradient Approximation In this section, we introduce the Monte Carlo Gradient Approximation method for computing gradients in 2D. For both the derivation and the numerical experiments, the electrical potential \varphi is modeled by a time-dependent linear diffusion equation with spatially varying isotropic diffusion coefficient D(\bm{r}) in a Cartesian coordinate system. The equation equals \partial_{t}\varphi(t,\bm{r})=\nabla\cdot\left(D(\bm{r})\nabla\varphi(t,\bm{r})\right), (8) where \bm{r}=\left(x,y\right)^{T} and \nabla=\left(\partial_{x},\partial_{y}\right)^{T} . The quantity of interest is the electric field \bm{E}=-\nabla\varphi . The idea of the Monte Carlo Gradient Approximation method is to derive an evolution equation directly for \bm{E} . Taking the gradient of Equation ( 8 ) and assuming sufficient smoothness of \varphi and D to interchange the order of differentiation, we obtain \displaystyle\nabla\partial_{t}\varphi(t,\bm{r})=\nabla\left(\nabla\cdot\left(D(\bm{r})\nabla\varphi(t,\bm{r})\right)\right). (9) Next, we swap the order of \nabla and \partial_{t} , and susbstitute \bm{E}=-\nabla\varphi . This results in \partial_{t}\bm{E}(t,\bm{r})=\nabla\left(\nabla\cdot\left(D(\bm{r})\bm{E}(t,\bm{r})\right)\right). (10)

Read the complete text