Hostname: page-component-6898cfcb55-cbk24 Total loading time: 0 Render date: 2026-11-11T04:38:34.008Z Has data issue: false hasContentIssue false

Continuous-in-time approach to flow shear in a linearly implicit local $\delta f$ gyrokinetic code

Published online by Cambridge University Press:  04 May 2021

Nicolas Christen*
Affiliation:
Rudolf Peierls Centre for Theoretical Physics, University of Oxford, Oxford, OX1 3PU, UK
Michael Barnes
Affiliation:
Rudolf Peierls Centre for Theoretical Physics, University of Oxford, Oxford, OX1 3PU, UK
Felix I. Parra
Affiliation:
Rudolf Peierls Centre for Theoretical Physics, University of Oxford, Oxford, OX1 3PU, UK
*
†Email address for correspondence: nicolas.christen@physics.ox.ac.uk
Rights & Permissions [Opens in a new window]

Abstract

A new algorithm for toroidal flow shear in a linearly implicit, local $\delta f$ gyrokinetic code is described. Unlike the current approach followed by a number of codes, it treats flow shear continuously in time. In the linear gyrokinetic equation, time-dependences arising from the presence of flow shear are decomposed in such a way that they can be treated explicitly in time with no stringent constraint on the time step. Flow shear related time dependences in the nonlinear term are taken into account exactly, and time dependences in the quasineutrality equation are interpolated. Test cases validating the continuous-in-time implementation in the code GS2 are presented. Lastly, nonlinear gyrokinetic simulations of a JET discharge illustrate the differences observed in turbulent transport compared with the usual, discrete-in-time approach. The continuous-in-time approach is shown, in some cases, to produce fluxes that converge to a different value than with the discrete approach. The new approach can also lead to substantial computational savings by requiring radially narrower boxes. At fixed box size, the continuous implementation is only modestly slower than the previous, discrete approach.

Information

Type
Research Article
Copyright
Copyright © The Author(s), 2021. Published by Cambridge University Press
Figure 0

Figure 1.(a) Sketch of a portion of the $x=0$ flux surface; (b) view from the top. In panel (a), the shaded grey area corresponds to the outboard midplane. Looking down onto this plane from above in panel (b), the edges of the flux tube are shown in solid blue lines as it intersects with the plane at $\theta =0$ and $\theta =2{\rm \pi}$. The dashed blue lines indicate exact copies of the intersection at $\theta =0$.

Figure 1

Figure 2.Cartoon illustrating how the wavenumber remapping amounts to moving the computational domain in $\theta$. Initially (a) the structure is twisted by magnetic shear. Over a period of time $T_{\text {map}}$, flow shear contributes to the twisting, enhancing it at one end and decreasing it at the other (b). In order to always include radially extended structures in the simulation, the computational domain is shifted in $\theta$ via a wavenumber remap (c). Times: (a) $t=0$; (b) $t=T_{\text {map}}$ before remap (c) $t=T_{\text {map}}$ after remap.

Figure 2

Figure 3.Time evolution of the normalised electrostatic potential for a single twist-and-shift chain, summed over the parallel coordinate:(a) discrete-in-time; (b) continuous-in-time.

Figure 3

Figure 4.Time evolution of $\varPsi$ in the laboratory frame, according to (4.1). The discrete-in-time approach (a–e) does not include the phase factor appearing in Fourier transforms, whereas the continuous-in-time approach (f–j) does. Both methods become equivalent at $t=T$, when the NGP approximation is exact. The dashed black line corresponds to $y^*=0$ and shows the tilt that flow shear should be producing.

Figure 4

Figure 5.Analytical solution to (4.5) and (4.6) for $\varPsi$, and comparison with numerical solutions obtained with the discrete- and continuous-in-time approaches. At $t=T$, the NGP approximation is exact, making both approaches equivalent for that time step. (a–e) Analytical time evolution of $\varPsi$; (f–j) $\lvert \Delta \varPsi \rvert =\lvert \varPsi _{\text {num}}-\varPsi \rvert$, using the discrete-in-time approach; (k–o) $\lvert \Delta \varPsi \rvert =\lvert \varPsi _{\text {num}}-\varPsi \rvert$, using the continuous-in-time approach.

Figure 5

Figure 6.Here $\lvert \Delta \varPsi \rvert =\lvert \varPsi _{\text {num}}-\varPsi \rvert$ for the nominal $\Delta k _x$ and for $\Delta k _x$ halved, with both discrete- and continuous-in-time approaches. (a) Discrete-in-time, $\Delta k _x = 0.025$. Identical to $t/T=0.25$ in figure 5(f–j). (b) Discrete-in-time, $\Delta k _x = 0.0125$. (c) Continuous-in-time, $\Delta k _x = 0.025$. Identical to $t/T=0.25$ in figure 5(k–o). (d) Continuous-in-time, $\Delta k _x = 0.0125$.

Figure 6

Table 1.Simulation parameters for the JET discharge #68448. The gradient length of any quantity $Q$ is given by $L_Q=1/[\textrm {d}\log (Q)/\textrm {d}r_\psi ]$.

Figure 7

Figure 7.Turbulent heat flux, plotted for different $\Delta k _x$ in panel (a), and for different $T_{\text {map}}(k_y)/T_F$ in panel (b) (where $k_y$ is the wavenumber with the largest amplitudes). All points in panels (a,b) are identical, except for the ones highlighted by square boxes, for which both $\Delta k _x$ and $\Delta k_y$ were modified.

Figure 8

Figure 8.Amplitude of the electrostatic potential for the box-scale zonal mode in solid black and for the dominant non-zonal mode in dashed red. (a) Discrete approach, no phase factor. (b) Continuous approach with phase factor.

Figure 9

Table 2.Indices used in discrete notations.