viriato: a fourier-hermite spectral code for strongly ...kunz/site/pcts_files/advancing gk theory...

40
VIRIATO: a Fourier-Hermite spectral code for strongly magnetised, fluid-kinetic plasma dynamics N. F. Loureiro (IPFN, IST Portugal) Collaborators: W. Dorland, A. Kanekar , A. Mallet , A. Schekochihin, M. S. Vilelas, A. Zocco Stability, Energetics, and Turbulent Transport in Astrophysical, Fusion, and Solar Plasmas Princeton, 8 th April 2013

Upload: others

Post on 22-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

VIRIATO: a Fourier-Hermite spectral code for strongly magnetised, �fluid-kinetic plasma dynamics

N. F. Loureiro (IPFN, IST Portugal)

Collaborators: W. Dorland, A. Kanekar, A. Mallet,

A. Schekochihin, M. S. Vilelas, A. Zocco

Stability, Energetics, and Turbulent Transport in

Astrophysical, Fusion, and Solar Plasmas Princeton, 8th April 2013

Page 2: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Introduction

•  Key problems (e.g., turbulence, reconnection) have seen tremendous progress over the last decade or so due to a combination of reduced descriptions [e.g., gyrokinetics (GK)] and high-performance-computing.

•  GK is (numerically) simpler than full kinetics but two-species, multiscale simulations remain very challenging.

•  This talk focuses on a new reduced-GK model (KREHM) + new code (VIRIATO). Only 4D (3+1). Goal is insight.

•  Usefulness of this approach exemplified with detailed analysis of the energetics of reconnection in weakly collisional, strongly magnetised plasmas.

Page 3: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

The KREHM model�[Zocco & Schekochihin, PoP 18, 102309 (2011)]

•  Minimal set of fluid-kinetic equations; captures electron Landau damping in low beta, strongly magnetised plasmas.

•  Rigorous limit of the GK equation when β ~ me/mi ; fully GK ions.

Page 4: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

The KREHM model�[Zocco & Schekochihin, PoP 18, 102309 (2011)]

•  Minimal set of fluid-kinetic equations; captures electron Landau damping in low beta, strongly magnetised plasmas.

•  Rigorous limit of the GK equation when β ~ me/mi ; fully GK ions.

Vorticity equation

Page 5: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

The KREHM model�[Zocco & Schekochihin, PoP 18, 102309 (2011)]

•  Minimal set of fluid-kinetic equations; captures electron Landau damping in low beta, strongly magnetised plasmas.

•  Rigorous limit of the GK equation when β ~ me/mi ; fully GK ions.

Vorticity equation

Ohm’s law

Page 6: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

The KREHM model�[Zocco & Schekochihin, PoP 18, 102309 (2011)]

•  Minimal set of fluid-kinetic equations; captures electron Landau damping in low beta, strongly magnetised plasmas.

•  Rigorous limit of the GK equation when β ~ me/mi ; fully GK ions.

Vorticity equation

Ohm’s law

Electron drift-kinetic equation

Page 7: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Hermite expansion Note no explicit dependence on If such a dependence is not introduced by the coll. op., can be integrated out => 4D description!

v⊥

v⊥

Page 8: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Hermite expansion Note no explicit dependence on If such a dependence is not introduced by the coll. op., can be integrated out => 4D description!

v⊥

v⊥It is convenient to introduce the Hermite expansion of ge:

ge(x, y, t, v�) =∞�

m=0

Hm(v�/vthe)gm(x, y, t)F0e(v�)√2mm!

Page 9: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Hermite expansion Note no explicit dependence on If such a dependence is not introduced by the coll. op., can be integrated out => 4D description!

v⊥

v⊥It is convenient to introduce the Hermite expansion of ge:

ge(x, y, t, v�) =∞�

m=0

Hm(v�/vthe)gm(x, y, t)F0e(v�)√2mm!

Coupled set of fluid-like equations for the Hermite coeficients

Page 10: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Closure

•  In a simulation, must chose how many m’s to keep. What to do about gM+1?

•  Lots of work done on this in the past (Hammett, Dorland, Beer, Smith, etc.)

•  Adding collisions/hyper-collisions may provide a satisfactory way to close the system, regardless of the actual closure, though convergence may require many m’s.

Page 11: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Closure

Eq. for gm couples to gm+1. How to close the system at some m=M?

dgM+1

dt+ vtheb ·∇

��M + 2

2gM+2 +

�M + 1

2gM

�= DM+1gM+1

For sufficiently large m=M, must have DM � ω ⇒ gM+1

gM� 1

gM+1 =vthe

DM+1b ·∇

�M + 1

2gM

Nonlinear closure:

Page 12: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Closure: linear tests

KAW dispersion relation reproduced exactly with M=15 using hypercollisions

(with regular collisions, for need a few hundred m’s)

Dm = νH(m/M)4

νeiτA = 0.1

Page 13: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

VIRIATO Versatile code to solve three different sets of eqs.:

•  Zocco/Schekochihin reduced GK eqs. [Phys. Plasmas 18, 102309 (2011)]

•  Kinetic long wavelength slow mode eqs. [Schekochihin et al., ApJ 182:310 (2009)]

•  RMHD eqs. [Strauss, PoF 19, 134 (1976)]

Spectral in x-y (Fourier) and v|| (Hermite). Grid in z (MacCormack scheme). Parallel in x-y and z. Strang-split to handle separately perpendicular and parallel terms. Good scalability (weak and strong) to few thousand processors.

0.1

1

10

100

102 103 104

Tim

e pe

r tim

este

p (s

)

Number of processors

Strong Scaling; Problem size 2563x15; HPC-FF

Page 14: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

VIRIATO reproduces KAW correctly

Alfred Mallet

Page 15: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

VIRIATO agrees with AstroGK

(see Numata et al., Phys. Plasmas 2011)

Linear tearing mode benchmark

Page 16: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Simulations •  2D doubly-periodic tearing mode

setup. Finite amount of energy available.

•  Initial magnetic field:

Beq = Bz ez +By ey

•  Spatial hyper-diffusion in all eqs. •  Hyper-collisions in the gm eqs. ∼ (m/M)4

∼ (k⊥/kmax⊥ )6

Page 17: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Simulations •  2D doubly-periodic tearing mode

setup. Finite amount of energy available.

•  Initial magnetic field:

Beq = Bz ez +By ey

•  Spatial hyper-diffusion in all eqs. •  Hyper-collisions in the gm eqs. ∼ (m/M)4

∼ (k⊥/kmax⊥ )6

Total number of Hermite moments kept. M is proxy for collisions: higher M, less colls.

Page 18: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Simulations •  2D doubly-periodic tearing mode

setup. Finite amount of energy available.

•  Initial magnetic field:

Beq = Bz ez +By ey

•  Spatial hyper-diffusion in all eqs. •  Hyper-collisions in the gm eqs. ∼ (m/M)4

∼ (k⊥/kmax⊥ )6

Even small amount of collisions is enough to make the system irreversible. What happens to the converted magnetic energy?

Page 19: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Typical configuration

X

Y

Page 20: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Typical configuration

X

Y

Page 21: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Typical configuration

X

Y

Page 22: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Typical configuration

Lines are contours of magnetic flux, A||.

Colors are temperature fluctuations – extended along separatrix, where spatial gradients are sharper

X

Y

Page 23: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Weakly collisional �tearing mode saturation

-  Saturation is independent of collisions as long as Wsat exceeds the kinetic scales; RMHD solution recovered.

- This implies that the same amount of magnetic energy is converted during the evolution of the tearing mode, independent of collisions. How does it dissipate in the kinetic case?

Page 24: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Reconnection and dissipation rates

arXiv:1301.0338

Page 25: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Reconnection and dissipation rates

arXiv:1301.0338

Rec. rate independent of colls.

Page 26: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Reconnection and dissipation rates

arXiv:1301.0338

Rec. rate independent of colls.

Landau damping is the dominant damping channel

Page 27: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Reconnection and dissipation rates

arXiv:1301.0338

Rec. rate independent of colls.

Landau damping is the dominant damping channel

Time lag: Peak dissipation occurs later than max rec. rate

Page 28: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Dissipation spectra

M = 30

Page 29: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Dissipation spectra

M = 30 M = 100

M = 300 M = 500

Page 30: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Equation for the spectrum

Define the Hermite spectrum as . Linearise; for m>>1 Em = |gm|2/2

dgmdt

=vtheBz

��m+ 1

2

�A�, gm+1

�+

�m

2

�A�, gm−1

��

− νcollm4gm

mγ =

�ky

By

Bz

vthe2√2γ

�2

mc =

�9

2√2ky

By

Bz

vtheνcoll

�2/9

Page 31: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Equation for the spectrum

mγ =

�ky

By

Bz

vthe2√2γ

�2

mc =

�9

2√2ky

By

Bz

vtheνcoll

�2/9

Does NOT depend on collisions While the mode is strongly growing, there can be no collisional dissipation

Page 32: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Equation for the spectrum

•  Since as the tearing mode approaches saturation, there will always be a time when

•  From then onwards, cutoff is determined by

•  In our simulations, this happens before the time of maximum dissipation rate, independent of M, so the cutoff should be determined by

γ → 0mγ > mc

mc

mc

mγ =

�ky

By

Bz

vthe2√2γ

�2

mc =

�9

2√2ky

By

Bz

vtheνcoll

�2/9

Does NOT depend on collisions While the mode is strongly growing, there can be no collisional dissipation

Page 33: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Maximum dissipation

The value of m=mpeak at which most energy is dissipated is the solution of:

This yields:

d(νcollm4Em)/dm = 0, mγ � mc

mpeak = (9/7)2/9mc

Page 34: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Maximum dissipation

The value of m=mpeak at which most energy is dissipated is the solution of:

This yields:

d(νcollm4Em)/dm = 0, mγ � mc

mpeak = (9/7)2/9mc

The electron heating we observe is the result of linear phase-mixing

arXiv:1301.0338

Page 35: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Maximum dissipation

The value of m=mpeak at which most energy is dissipated is the solution of:

This yields:

d(νcollm4Em)/dm = 0, mγ � mc

mpeak = (9/7)2/9mc

Lag shows weak, logarithmic dependence on collisions: dissipation occurs in finite time even for weak collisionality.

arXiv:1301.0338

Page 36: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Dissipation occurs on the separatrices

System at time of max. reconnection rate

System at time of max. dissipation rate

Page 37: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Spectra and �distribution function

arXiv:1301.0338

Electron free energy spectra

Dissipation spectra

Reduced distribution function

Page 38: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Weakly collisional �tearing mode saturation

-  Saturation is independent of collisions as long as Wsat exceeds the kinetic scales; RMHD solution recovered.

Page 39: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Weakly collisional �tearing mode saturation

- Saturation is independent of collisions as long as Wsat exceeds the kinetic scales; RMHD solution recovered.

- Electron inertia scale appears to set a lower limit on the saturation size. Could have important implications for e.m turbulence (suggests existence of a minimum fluctuation amplitude)

Flux contained by island of width de

Page 40: VIRIATO: a Fourier-Hermite spectral code for strongly ...kunz/Site/PCTS_files/Advancing gk theory and...Only 4D (3+1). Goal is insight. • Usefulness of this approach exemplified

Conclusions •  Reduced (4D) gyrokinetic formalism of Zocco & Schekochihin

[“KREHM”, Phys. Plasmas 18, 102309 (2011)]: nimble tool for exploring phase-space dynamics of strongly magnetised plasmas.

•  VIRIATO: new Fourier-Hermite code, reduced kinetic-fluid description (4D) --- can be used for reconnection, turbulence, slow modes (see A. Kanekar’s poster), etc.

•  Weakly collisional tearing mode reconnection: reconnection and heating are causally related, but spatially and temporally disconnected: heating happens after most flux has reconnected, and along the separatrices, not in the current sheet

•  Heating in weakly collisional tearing mode reconnection occurs via linear phase-mixing / Landau damping