A noise-robust Monte Carlo method for electric field calculations in EMC3
William De Deyn, Ruben De Wolf, Vince Maes, Giovanni Samaey
TL;DR
This work introduces a noise-robust Monte Carlo Gradient Approximation (MCGA) to directly evolve the electric field $\mathbf{E}$ in 2D, bypassing noisy finite-difference gradients of the electric potential $\varphi$ used in EMC3. By deriving the evolution equation $\partial_t \mathbf{E} = \nabla\cdot\left(D(\mathbf{r})\nabla \mathbf{E}\right) + \nabla\cdot\left(\nabla D(\mathbf{r}) \otimes \mathbf{E}\right)$ and decomposing into $E_x$ and $E_y$, the method enables Monte Carlo estimation of the electric-field gradient with reduced noise amplification, at the cost of neglecting a cross-component source term $\partial_y E_y$ in practice. Numerical tests using manufactured solutions demonstrate that MCGA has lower relative error than finite-difference approaches and exhibits superior noise robustness when grid resolution is refined. The approach advances EMC3 physics by enabling more reliable self-consistent $E\times B$ drift modeling, with potential extensions to Bohm boundary conditions and non-rectangular grids in future work.
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 E x 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 E x B drift requires the approximation of the electric field E, which is proportional to the gradient of the electric potential $ \varphi $. In previous work, 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, 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.
