Monketoo's picture
Add files using upload-large-folder tool
43e97d4 verified

Aligned interpolation and application to drift kinetic semi-Lagrangian simulations with oblique magnetic field in cylindrical geometry

G. Latu, M. Mehrenberger, M. Ottaviani, E. Sonnendrücker

December 24, 2014

Abstract

We introduce field aligned interpolation for Semi-Lagrangian schemes, adapting a method developed by Hariri-Ottaviani [7] to the semi-Lagrangian context. This approach is validated on the constant oblique advection equation and on a 4D drift kinetic model with oblique magnetic field in cylindrical geometry. The strength of this method is that one can reduce the number of points in the longitudinal direction. More precisely, we observe that we gain a factor $\frac{|n|}{|n+m\boldsymbol{i}|}$ (where $\boldsymbol{i}$ is the inverse safety factor), with respect to the classical approach, for the typical function $\sin(m\theta + n\varphi)$.

1 Introduction

In gyrokinetic simulations, it is observed that solution structures follow the field lines of the (strong) magnetic field and numerical methods have to be adapted to benefit from this fact. Different strategies exist for dealing with field alignement in gyrokinetic codes (see [9], [5] for example). We explore here an idea developed recently in [7] and adapt it in the context of a semi-Lagrangian code.

Our example of validation will be the following 4D drift-kinetic equation in cylindrical geometry, with oblique magnetic field. We look for $f = f(t, r, \theta, z, v)$ satisfying

tf+[ϕ,f]+vfϕvf=0, \partial_t f + [\phi, f] + v \nabla_{\parallel} f - \nabla_{\parallel} \phi \partial_v f = 0,

with

[ϕ,f]=θϕrB0rf+rϕrB0θf,=b, [\phi, f] = -\frac{\partial_{\theta}\phi}{rB_0}\partial_r f + \frac{\partial_r\phi}{rB_0}\partial_{\theta}f, \quad \nabla_{\parallel} = \mathbf{b} \cdot \nabla,

so that

tfθϕrB0rf+(rϕrB0+vbθr)θf+vbzzf(bθθϕr+bzzϕ)vf=0,(1) \partial_t f - \frac{\partial_\theta \phi}{r B_0} \partial_r f + \left( \frac{\partial_r \phi}{r B_0} + v \frac{b_\theta}{r} \right) \partial_\theta f + v b_z \partial_z f - \left( b_\theta \frac{\partial_\theta \phi}{r} + b_z \partial_z \phi \right) \partial_v f = 0, \quad (1)

for $(r, \theta, z, v) \in [r_{\min}, r_{\max}] \times [0, 2\pi] \times [0, 2\pi R] \times [-v_{\max}, v_{\max}]$. The self-consistent potential $\phi = \phi(r, \theta, z)$ solves the quasi-neutral equation without zonal flow

(r2ϕ+(1r+rn0n0)rϕ+1r2θ2ϕ)+1Teϕ=1n0(ffeqdv). -\left(\partial_r^2 \phi + \left(\frac{1}{r} + \frac{\partial_r n_0}{n_0}\right) \partial_r \phi + \frac{1}{r^2} \partial_\theta^2 \phi\right) + \frac{1}{T_e} \phi = \frac{1}{n_0} \left(\int f - f_{eq} dv\right).

Here the oblique magnetic field B whose norm is B (which can depend on r) writes

B=Bb,b=bzz^+bθθ^,bθ=c1+c2,bz=11+c2,c=irR, \mathbf{B} = B\mathbf{b}, \quad \mathbf{b} = b_z\hat{\mathbf{z}} + b_\theta\hat{\theta}, \quad b_\theta = \frac{c}{\sqrt{1+c^2}}, \quad b_z = \frac{1}{\sqrt{1+c^2}}, \quad c = \frac{ir}{R},