knosos, a fast neoclassical code for three-dimensional
TRANSCRIPT
KNOSOS, a fast neoclassical code for three-dimensionalmagnetic configurations
J. L. Velasco1, I. Calvo1, F.I. Parra2, V. d’Herbemont2,3, H.M. Smith4,D. Carralero1, T. Estrada1 and the W7-X team
Laboratorio Nacional de Fusión
1 Laboratorio Nacional de Fusion, CIEMAT, Madrid, Spain2 Rudolf Peierls Centre for Theoretical Physics, University of Oxford, Oxford, U.K.
3 Mines ParisTech, Paris, France4 Max-Planck Institute for Plasma Physics, Greifswald, Germany
28th IAEA Fusion Energy Conference
10-15 May 2021
Motivation
Stellarators: intrinsically three-dimensional configurations.
� Collisions + inhomogeneity of the magnetic field driveneoclassical transport that is very different from theone in axisymmetric tokamaks.
� Relevant contribution to energy fluxes in the core ofreactor-relevant plasmas, even larger than turbulence,e.g. [Dinklage, NF (2013)].
� Configuration optimized with respect to neoclassical transport, crucial for achievingbest performance of Wendelstein 7-X, e.g. [Beidler, submitted to Nature].
� This talk: neoclassical calculations of radial transport with the novel code KNOSOS
(KiNetic Orbit-averaging SOlver for Stellarators).
I More efficient stellarator optimization.I Improved transport analyses.
Velasco et al., KNOSOS, a fast neoclassical code Motivation and goal 1 / 13
General goal: fast and accurate calculation of neoclassicaltransport at low collisionality
Radial transport in several neoclassical regimes as calculated with standard codes likeDKES [Hirshman, PoF (1986)] (overview in [Beidler, NF (2011)]):
� At high collisionality, same as in
axisymmetric tokamaks:
I Pfirsch-Schlueter and plateau.I Numerical calculation is fast.
� At low collisionality, stellarator-
specific regimes. For standard values
of Er :
I ε3/2 � ν∗ � ρ∗/ε⇒1/ν regime.
I ν∗ � ρ∗/ε⇒√ν or ν.
(ρ∗ = ρ/R is the normalized Larmor radius, ν∗ = Rν/(ιv) the collisionality, ε = a/R the inverseaspect ratio)
For small ν∗ and large Er , the piece of distribution function that is important for transportbecomes increasingly localized in phase space ⇒ large computational cost.
Velasco et al., KNOSOS, a fast neoclassical code Motivation and goal 2 / 13
Goal I: fast and accurate calculation of neoclassicaltransport at low ν∗ and Er of standard size
The 1/ν flux can be computed fast with the code NEO [Nemov, PoP (2007)], but noequivalently fast code exists for the
√ν and ν regimes for arbitrary stellarator geometry.
For this reason, stellarator optimizationtargets (successfully) the 1/ν flux, e.g.[Beidler, submitted to Nature]:
� Transport of electrons (that are inthe 1/ν regime) is reduced.
� This causes negative Er thatindirectly reduces transport of ions(that are in the
√ν or ν regimes).
Addressing directly the√ν or ν flux as well could lead to more efficient optimization.
This requires a fast code and could be beneficial when additional optimization criteria(MHD, turbulence...) exist.
Velasco et al., KNOSOS, a fast neoclassical code Motivation and goal 3 / 13
Goal II: fast and accurate calculation of neoclassicaltransport at low ν∗ and small Er
The component of the magnetic drift that is tangent to the flux-surface is typicallyignored in the particle orbits.
This is accurate if
� the aspect ratio 1/ε is large and,
� Er has the standard size∼ Ti/(a Zie).
But there are other scenarios:
� compact stellarators (down to1/ε = 2.5 [Ku, FST (2007)]), or
� small Er (close to zero at thecrossover between core Er > 0 andEr < 0, e.g. [Pablant, PoP (2018)]).
In these situations, for ν∗ � ρ∗, an additional regime may appear:superbanana-plateau (instead of the 1/ν seen by DKES).
Velasco et al., KNOSOS, a fast neoclassical code Motivation and goal 4 / 13
1 Motivation and goal
2 Equations
3 Result I: fast and accurate calculation of neoclassical transportat low ν∗ and Er of standard size
4 Result II: fast and accurate calculation of neoclassical transportat low ν∗ and small Er
5 Summary and plans
Velasco et al., KNOSOS, a fast neoclassical code Motivation and goal 4 / 13
1 Motivation and goal
2 Equations
3 Result I: fast and accurate calculation of neoclassical transportat low ν∗ and Er of standard size
4 Result II: fast and accurate calculation of neoclassical transportat low ν∗ and small Er
5 Summary and plans
Velasco et al., KNOSOS, a fast neoclassical code Equations 4 / 13
Coordinates on phase space
Spatial coordinates:
� ψ = |Ψt | is the radial coordinate.
I 2πΨt is the toroidal magnetic flux.
� α = θ − ιζ labels magnetic field lines on the
surface.
I θ and ζ are Boozer angles and ι is therotational transform.
� l is the arc length along the magnetic field line.
Velocity coordinates:
� v = |v| is the particle velocity.
� λ = v 2⊥/(v 2B) is the pitch-angle coordinate.
� σ = v‖/v is the sign of the parallel velocity.
0
1
0 1
θ/(2π)
ζ/(2π/N)
0.00
0.25
0.50
0.75
1.00
α/(2π
)
B = Ψ′t∇ψ ×∇α ,v‖ = v · B/B ,
v⊥ =√
v 2 − v 2‖ .
For each species b: compute the deviation of the distribution function from a MaxwellianFM,b for trapped particles, gb(ψ, α, λ, v).
Velasco et al., KNOSOS, a fast neoclassical code Equations 5 / 13
Drift kinetic equation
∫ lb2
lb1
dl
|v‖|
(vM,b +
B
〈B〉vE
)· ∇α (∂α + ∂αλ|J∂λ) gb −
∫ lb2
lb1
dl
|v‖|C linb [gb] =
= −∫ lb2
lb1
dl
|v‖|(vM,b + vE ) · ∇ψΥbFM,b .
At boundary between trapping and passing particles, gb = 0. Here:
� Coefficients of the equation: integrals over l between bounce points lb1 and lb2 (wherev‖ = 0): ∫ lb2
lb1
dl
|v‖|(...) =
1
v
∫ lb2
lb1
dl√1− λB(α, l)
(...) .
� C linb [gb] =
νλ,bv||v2B
∂λ(v||λ∂λgb
)is the linearized pitch-angle collision operator.
� Υb =∂ψFM,bFM,b
=∂ψnbnb
+∂ψTb
Tb
(mbv
2
2Tb− 3
2
)+
Zbe∂ψϕ0
Tbis a combination of
thermodynamical forces.
� vM,b = mbv2
Zbe
(1− λB
2
)B×∇B
B3 and vE = −∇ϕ×BB2 are the magnetic and E × B drifts.
� ϕ(ψ, α, l) = ϕ0(ψ) + ϕ1(ψ, α, l), with |ϕ1| � |ϕ0| .
� The term with ∂αλ|J ≡ −(∫ lb2
lb1
dl|v‖|
λ∂αB)/(∫ lb2
lb1
dl|v‖|
B)
ensures conservation of J.
Velasco et al., KNOSOS, a fast neoclassical code Equations 6 / 13
Assumptions (details in [Calvo (2017) PPCF, d’Herbemont (in preparation)])
At low collisionality, motion of trapped particlesalong B (i.e. in l) much faster than collisions.
⇒ Distribution function independent of arc-length l .
⇒ Coefficients of the equation: integrals over lbetween bounce points:
⇒ Differential equation in two variables: λ and α.
⇒ Fast computation.
Common to most codes: in order to describe neoclassical transport with a radially localequation (instead of a global code such as FORTEC-3D [Satake (2008), PFR] ) themagnetic configuration needs to
� have large aspect-ratio∗ [d’Herbemont (in preparation)] and/or
(∗ this also allows to use the pitch-angle collision operator)
� be close to omnigeneity, i.e., to perfect neocl. optimization [Calvo (2017) PPCF].
As a result of this, our radially-local bounce-averaged equation is valid in two limits,corresponding to the two calculations that we will present next.
Velasco et al., KNOSOS, a fast neoclassical code Equations 7 / 13
1 Motivation and goal
2 Equations
3 Result I: fast and accurate calculation of neoclassical transportat low ν∗ and Er of standard size
4 Result II: fast and accurate calculation of neoclassical transportat low ν∗ and small Er
5 Summary and plans
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 7 / 13
Drift kinetic equation in the limit of large-aspect ratio
In this section, ε� 1 and Er ∼ T/(a Ze). Therefore, in equation∫ lb2
lb1
dl
|v‖|
(vM,b +
B
〈B〉vE
)· ∇α (∂α + ∂αλ|J∂λ) gb −
∫ lb2
lb1
dl
|v‖|C linb [gb] =
= −∫ lb2
lb1
dl
|v‖|(vM,b + vE ) · ∇ψΥbFM,b ,
the terms vM,b · ∇α and vE · ∇ψ terms are negligible. We are left with∫ lb2
lb1
dl
|v‖|B
〈B〉vE · ∇α (∂α + ∂αλ|J∂λ) gb −∫ lb2
lb1
dl
|v‖|C linb [gb] = −
∫ lb2
lb1
dl
|v‖|vM,b · ∇ψΥbFM,b .
This equation models rigorously the transport of large aspect-ratio stellarators at lowcollisionality [d’Herbemont (in preparation)]. Specifically, it describes:
� ε3/2 � ν∗ � ρ∗/ε⇒ 1/ν regime.
� ν∗ � ρ∗/ε⇒√ν or ν regimes.
For large aspect ratio, this equation coincides with the orbit average of the equationsolved by DKES.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 8 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X low-mirror (AIM), s = 0.046 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−8
10−7
10−6
10−5
10−4
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X standard (EIM), s = 0.046 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−8
10−7
10−6
10−5
10−4
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X high-mirror (KJM), s = 0.046 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−8
10−7
10−6
10−5
10−4
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X high-iota (FTM), s = 0.046 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−8
10−7
10−6
10−5
10−4
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X low-iota (DBM), s = 0.046 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−8
10−7
10−6
10−5
10−4
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X low-mirror (AIM), s = 0.413 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−7
10−6
10−5
10−4
10−3
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X standard (EIM), s = 0.413 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−7
10−6
10−5
10−4
10−3
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X high-mirror (KJM), s = 0.413 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−7
10−6
10−5
10−4
10−3
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X high-iota (FTM), s = 0.413 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−7
10−6
10−5
10−4
10−3
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
Monoenergetic transport coefficient in the 1/ν and√ν
regimes: comparison between KNOSOS vs. DKES
� Calculate D11 as a function of s = ψψLCMS
, ν∗ and ErvB00
, with Qb ∼∫dvFM,bΥbD11.
� W7-X low-iota (DBM), s = 0.413 (other devices at [Velasco, JCP (2020)])
10−4
10−3
10−2
10−1
100
101
102
10−6 10−5 10−4 10−3
D11[A
.U.]
ν∗
DKESKNOSOS
10−7
10−6
10−5
10−4
10−3
Er/v
B00
� Overall good agreement.
� Calculation of a flux-surface takes seconds in a single processor (instead of hours).
I Fast enough to be included in a stellarator optimization suite.
Velasco et al., KNOSOS, a fast neoclassical code Fast calculation at low ν∗ and Er of standard size 9 / 13
1 Motivation and goal
2 Equations
3 Result I: fast and accurate calculation of neoclassical transportat low ν∗ and Er of standard size
4 Result II: fast and accurate calculation of neoclassical transportat low ν∗ and small Er
5 Summary and plans
Velasco et al., KNOSOS, a fast neoclassical code Accurate calculation at low ν∗ and small Er 9 / 13
Drift kinetic equation for small Er in optimized stellarators
In this section, ε� 1 but Er � T/(a Ze). Therefore, in equation∫ lb2
lb1
dl
|v‖|
(vM,b +
B
〈B〉vE
)· ∇α (∂α + ∂αλ|J∂λ) gb −
∫ lb2
lb1
dl
|v‖|C linb [gb] =
= −∫ lb2
lb1
dl
|v‖|(vM,b + vE ) · ∇ψΥbFM,b ,
the terms vM,b · ∇α and vE · ∇ψ are not negligible [Calvo (2017) PPCF]:
� The term ∂αλ|J∂λ is small in this limit, but we retain it in order to deal numericallywith very deeply trapped particles [Velasco (2020) JCP].
This equation models rigorously the transport of optimized large-aspect ratio stellaratorsat low collisionality [Velasco (2020) JCP]. Specifically, for small Er , it describes:
� ε3/2 � ν∗ � ρ∗ ⇒ 1/ν regime.
� ν∗ � ρ∗ ⇒ superbanana-plateau or√ν regimes.
Velasco et al., KNOSOS, a fast neoclassical code Accurate calculation at low ν∗ and small Er 10 / 13
Relevance of the tangential magnetic drift vM · ∇α for thetransport analysis of experimental discharges
� Compare correct calculation againstDKES-like calculation with vM · ∇α = 0(vE · ∇ψ ∼ ϕ1 is set to 0 in both cases).
� Input: experimental profiles and
configuration (EIM) of W7-X shot
#180918041 [Estrada (2021) NF].
I High performance, reduced turbulentcontribution to ion energy transport.
� Well-known qualitative behaviour: peakin Qi reduced and moved towardsnegative Er (opposite effect, not shown,for the electrons).
� Results change quantitatively:
neoclassical flux is 10 % larger:
I Relative weight of neoclassical/turbulent transport not altered.
I Effect is small but systematic.
100
101
−10 −5 0 5 10
ambipolar Er
Qi(r/a=
0.5)
[MW
]
Er [kV/m]
w/o vM · ∇αw. vM · ∇α
10−1
100
0 0.2 0.4 0.6 0.8 1
Qi[M
W]
r/a =√s
w/o vM · ∇αw. vM · ∇α
Velasco et al., KNOSOS, a fast neoclassical code Accurate calculation at low ν∗ and small Er 11 / 13
Parameter dependence of the role of the tangentialmagnetic drift vM · ∇α
Effect of tangential magnetic drift, not solarge in W7-X due to large aspect ratio.
� Large in LHD [Velasco, JCP (2020)].
� Larger for the high-mirror (KJM)configuration of W7-X, specially athigher β due to diamagnetic effect.
� Even for standard (EIM) configuration ofW7-X, will become important at highertemperature.
Repeat comparison using representativeprofiles from [Carralero, EPS (2021)]:
� δQi/Qi large for small niT−5/2i and |Er |.
� δQi/Qi ∼ 1 possible in next campaignsof W7-X.
100
101
−10 −5 0 5 10
ambipolar Er
Qi(r/a=
0.5)
[MW
]
Er [kV/m]
w/o vM · ∇αw. vM · ∇α
Velasco et al., KNOSOS, a fast neoclassical code Accurate calculation at low ν∗ and small Er 12 / 13
1 Motivation and goal
2 Equations
3 Result I: fast and accurate calculation of neoclassical transportat low ν∗ and Er of standard size
4 Result II: fast and accurate calculation of neoclassical transportat low ν∗ and small Er
5 Summary and plans
Velasco et al., KNOSOS, a fast neoclassical code Summary and plans 12 / 13
Summary
We have shown that KNOSOS is a powerful low-collisionality neoclassical code that:
� is extremely fast, and at the same time,
� can calculate physical effects usually neglected: tangential magnetic drift and ϕ1.
There is a wide variety of plasma physics problems that it can be applied to:
� analysis of experimental discharges,
� stellarator optimization (installed at CIEMAT branch of STELLOPT; part ofEUROfusion’s main (TSVV) task on stellarator optimization),
� input for impurity transport simulations (Er and ϕ1) and for gyrokinetic simulations(distribution function gb) and other transport simulations (D11 to e.g. neotransp).
KNOSOS is publicly available at
https://github.com/joseluisvelasco/KNOSOS
Velasco et al., KNOSOS, a fast neoclassical code Summary and plans 13 / 13