5.7 Boundary conditions

5.7.1 Zero order term: the Fokker-Planck equation

Momentum dynamics

Internal boundaries Momentum dynamics is described in spherical coordinates, because collisions is the dominant physical process for current drive and matrices are therefore expected to be well conditionned. Consequently, internal boundaries must be specified at p = 0 and |ξ0| = 1 which correspond to the condition

f(00)(ψ, - p,ξ0) = f(00)(ψ, p,- ξ0)
(5.459)

Here Neumann type boundary conditions are used, and therefore only gradients must be specified at the internal boundaries4. One must thus determine (Δp, Δ ξ0) at p = 0 and |ξ0| = 1 for the flux grid only, since the distribution and flux grids are interlaced by definition. Therefore, starting from grids definition given in Sec. 5.2,

       Δ-ξ0,1∕2 +-Δ-ξ0,--1∕2                        (        )
Δξ0,0 =         2         = Δ ξ0,1∕2 = ξ0,1 - ξ0,0 = 2 ξ0,1∕2 + 1
(5.460)

as Δξ0,12 = Δξ0,-12, ξ0,12 = ξ0,1+ξ0,0
---2---et ξ0,0 = -1.

Much in the same way,

         Δ ξ0,n +1∕2 + Δ ξ0,n -1∕2
Δ ξ0,nξ = -----ξ-----------ξ----= Δ ξ0,nξ-1∕2 = ξ0,nξ - ξ0,nξ-1 = 1 - ξ0,nξ-1
                   2
(5.461)

since Δξ0,nξ+12 = Δξ0,nξ-12. Furthermore, since by definition,

ξ       =  ξ0,nξ +-ξ0,nξ--1=  1+-ξ0,nξ--1
 0,nξ-1∕2         2             2
(5.462)

one obtains finally

          (           )
Δξ    = 2  1- ξ
  0,nξ          0,nξ- 1∕2
(5.463)

A similar technique may be used for the momentum grid p. Hence

       1(               )
Δp0 =  2 Δp1 ∕2 + Δp -1∕2 = Δp1∕2
(5.464)

using Δp-12 = Δp12. Since Δp12 = p1 - p0, and p12 = p+p
12-0- one obtains finally,

Δp0 = 2p1∕2
(5.465)

because p0 = 0.

It is important to note that internal boundary conditions are only needed in the evaluation of the cross-derivative terms, since in the discrete form of the Fokker-Planck equation using two grids, as shown, in Sec. 5.4.1, they are automatically fullfiled for other terms. Indeed, at fixed ψl+12,

                                            (    (0)) |(k+1)
 ^q(ψ )        (0)||(k+1 )              ^ql+1∕2  ∂  p2Sp   ||
------p2∇p  ⋅Sp ||              =   ------------------||
B0 (ψ)           l+1 ∕2,1∕2,j+1∕2      B0,l+1∕2    ∂p     |l+1∕2,1∕2,j+1∕2

                                  - -^ql+1∕2----p1∕2----×
                                    B0,l+1∕2 λl+1∕2,j+1 ∕2
                                    ∂ ( ∘ ------           )||(k+1)
                                   ----   1 - ξ20λ(ψ,ξ0)S (0ξ) ||          (5.466)
                                   ∂ξ0                       l+1∕2,1∕2,j+1∕2
gives

                |                            (0)(k+1)
 ^q(ψ)  2      (0)|(k+1)              q^l+1∕2 p21Sp,l+1∕2,1,j+1∕2
B--(ψ)p ∇p  ⋅Sp ||              =  B------------Δp--------
  0              l+1∕2,1∕2,j+1∕2       0,l+1∕2        1∕2
                                    -^ql+1-∕2-----p1∕2----
                                  - B0,l+1 ∕2 λl+1∕2,j+1∕2 ×
                                      ( ∘ ------           )|(k+1)
                                   -∂--   1-  ξ2λ (ψ,ξ )S(0) ||          (5.467)
                                   ∂ξ0        0      0  ξ   |l+1∕2,1∕2,j+1∕2
since p02Sp,l+12,0,j+12(0)(k+1) = 0 with the flux grid here considered, at p0 = 0. In a similar way,
                    |
    -^q(ψ)- 2      (0)||(k+1)
    B0 (ψ)p ∇p  ⋅Sp |
              (     )l+1|∕2,i+1∕2,1∕2
            ∂  p2S(0) |(k+1)
=   -^ql+1∕2--------p---||                            (5.468)
    B0,l+1∕2     ∂p    ||
                       l+1∕2,i+1∕2,1∕2
      q^l+1∕2----pi+1∕2---
    - B0,l+1∕2λl+1∕2,j+1∕2 ×
    ∘ -------
      1 - ξ02,1λ(ψ,ξ0,1) S(ξ0),l(+k1+∕12,)i+1∕2,1
    -------------------------------                (5.469)
                Δ ξ0,1∕2
and
    ^q (ψ )           ||(k+1)
    ------p2∇p ⋅S(p0)||
    B0(ψ )          l+1∕2,i+1∕2,nξ0-1∕2
             ( 2  (0))||(k+1 )
    ^ql+1∕2  ∂ p S p  |
=  B------- ---∂p----||
     0,l+1∕2          |l+1 ∕2,i+1∕2,nξ -1∕2
      ^q        p                 0
   + --l+1∕2-----i+1∕2---×
     B0,l+1∕2 λl+1∕2,j+1∕2
   ∘ -----2----- l+1∕2,nξ0- 1 (0)(k+1)
   --1---ξ0,nξ0-1λ---------S-ξ,l+1∕2,i+1∕2,nξ0-1
                  Δ ξ0,nξ -1∕2                           (5.470)
                        0
as
({  ∘ ----2-- l+1∕2,0  (0)
   ∘ 1--ξ0,0λ--    S ξ,l+1∕2,i+1∕2,0 = 0
(    1- ξ20,n λl+1∕2,nξ0S(0)            = 0
           ξ0          ξ,l+1∕2,i+1∕2,nξ0
(5.471)

with ξ0,02 = ξ0,nξ 02 = 1

External boundaries The other boundaries are inserted into the problem in violation of the true physical picture, mainly because the momentum domain extends off to infinity, while only a subspace is considered in computations. The upper limit of the domain is therefore chosen so that the interesting physics may be accurately described, i.e. pmax pth for studying the Maxwellian distribution function, pmax γ(ω∕k )max for the RF waves and pmax pDreicer for the runaway electrons. These conditions must ensure the conservative nature of the problem here addressed, i.e. that plasma cannot enter or leave the domain of integration. This corresponds to the local condition

Sp ⋅ ^n = 0
(5.472)

where ^n is the normal to the external boundary. Because of the symmetry of the collision operator, the subspace considered for computations is a sphere of radius pmax, ^n = ^p . When the condition (5.472) is fullfiled, external boundary conditions have almost a negligible influence, and the numerical solution in the subspace is usually close to the theoretical one. It is usually the case for most RF problems except for the Lower Hybrid wave in very hot plasmas, since the range of resonant interaction between the wave and the electrons is well localized in momentum space, far enough from the boundary so that no electron can leave the domain of integration.

The Fokker-Planck equation reduces to an hyperbolic equation in the vicinity of pmax (high velocity limit), and therefore no boundary condition must be specified. In this condition, the standard upstream differencing applies. Since for collisions, DppC(0)∕v ~ 1∕v4 and FpC(0) ~ 1∕v2, one can consider that DppC(0) 0 at p = pmax. Here, the pitch-angle scattering term DξξC(0)requires no special handling, because it causes diffusion in a direction which is parallel to the boundary.

Nevertheless, since cross-derivative terms potentially involves points outside the computational domain, the following rule is used, even if the exact value of Δpmax has no specific importance,

                1 (                   )
Δpnp = Δpmax  = 2- Δpnp+1∕2 + Δpnp-1∕2 =  Δpnp-1∕2 = pnp - pnp-1
(5.473)

As by definition pnp+12 = pnp+p2np-1 = pmax+p2np-1-, it results

         (            )
Δpnp = 2  pnp - pnp-1∕2
(5.474)

or in equivalent manner,

Δp    = 2 (p   -  p     )
   max      max    np- 1∕2
(5.475)

Runaway electron problem If an electric field is present, then in the real problem, some electrons will runaway and leave the domain of integration. In that case, the condition Sp ^p = 0 is no more fullfiled, leading to an effective loss of electrons. Since the Fokker-planck differential equation is of hyperbolic type, no specific modification must be applied to the limit of the integration domain. However, one must ensure that the total number of electrons is kept constant. Several techniques may be used to avoid a decay of the number of electrons at the runaway rate ΓR(0), as defined in Sec. 3.6.

A possibility is to perform the following substitution

                                [  ∫ t  (0)    ′   ]
f(00)(t,ψ,p,ξ0) → f0(0)(ψ,p,ξ0)exp  -    Γ-R-(ψ,t-)dt′
                                    0   ne(ψ )
(5.476)

in the Fokker-Planck equation, so that f0(0)(t → ∞ ) is independent of t. In that case, the momentum matrix coefficients Mp,l+12,i+12,j+12(0) must be modified according to the prescription

--(0)(k)              --(0)                (0)(k)
M p,l+1∕2,i+1∕2,j+1∕2 → M p,l+1∕2,i+1∕2,j+1∕2 - ΓR,l+1∕2
(5.477)

where ΓR,l+12(0)(k) is the runaway rate calculated at ψl+12 and time step k as defined in Sec. 5.2. As a consequence, the Fokker-Planck equation becomes slightly non-linear, since ΓR,l+12(0)(k) is an integral over the distribution function f0(0)(k) determined at time step k. However, since the runaway population is usually very small as compared to the bulk, the non-linearity remains fairly weak. Nevertheless, this approach has two major drawbacks: the Fokker-Planck equation has no more an intrinsic conservative form, and in addition matrix Mp(0) must be recalculated at each time step, since it is time dependent. All the advantages of the numerical implicit time scheme for a fast and stable rate of convergence are therefore lost. For this reason, this method is not considered in the code.

Another technique is to inject cold electrons at p = 0, in order to compensate runaway losses and keep the electron density constant at ψl+12. Such an approach has the main advantage to have a clear physical meaning. Indeed, the loss of electrons will generate locally an electric field which in turn will force a flux of particles to compensate this local depletion. By definition, the number of electrons leaving the integration domain is simply ΓR(0). In principle, without particle losses, p02Sp,l+12,0,j+12(0) = 0, though Sp,l+12,0,j+12(0) is infinite at p = 0, since, by definition, the Maxwellian distribution is an exact eigenfunction of the Fokker-Planck operator. Compensation of hot electron losses by cold ones leads to the relation

  nξ∑0-1
2π     p2S (0)(k+1)     Δ ξ0,j+1∕2 = Γ (0)(k+1)
   j=0  0  p,l+1∕2,0,j+1∕2             R,l+1∕2
(5.478)

By definition, Sp,l+12,0,j+12(0)(k+1) is assumed uniform in pitch-angle, since no specific direction can be physicaly priviledged. Therefore,

                 nξ -1
   2 (0)(k+1)      ∑0                 2 (0)(k+1)         (0)(k+1)
2πp0Sp,l+1∕2,0,j+1∕2     Δ ξ0,j+1∕2 = 4 πp0Sp,l+1∕2,0,j+1∕2 = ΓR,l+1∕2
                  j=0
(5.479)

and

                   (0)(k+1)
 2 (0)(k+1 )       Γ-R,l+1∕2
p0Sp,l+1∕2,0,j+1∕2 =   4π
(5.480)

for all j values.

Expression (5.467) is then modified according to the relation

                                      (                                   )
            ||(k+1)                       p2S (0)(k+1)        p2S (0)(k+1)
q^p2∇p  ⋅S(p0)|              =   -^ql+1∕2-( -1--p,l+1∕2,1,j+1∕2 - -0--p,l+1∕2,0,j+1∕2 )
B0          |l+1∕2,1∕2,j+1∕2      B0,l+1∕2       Δp1 ∕2            Δp1 ∕2

                              - -^ql+1∕2----p1∕2----×
                                B0,l+1∕2 λl+1∕2,j+1∕2
                                  ( ∘ ------    ) ||(k+1)
                               -∂--   1 - ξ20λS(0) |                     (5.481)
                               ∂ξ0            ξ   |l+1∕2,1∕2,j+1∕2
or
                                       (                           )
 ^q  2      (0)||(k+1)              ^ql+1∕2   p21S(p0,)(l+k1+∕12),1,j+1∕2   Γ (R0,)(l+k1+1∕2)
B--p ∇p ⋅S p ||              =  B-------( -----Δp-------- - 4πΔp----)
  0           l+1∕2,1∕2,j+1∕2       0,l+1∕2           1∕2             1∕2
                                  ^ql+1∕2     p1∕2
                               - ---------l+1∕2,j+1∕2 ×
                                 B0,l+1∕2λ
                                ∂  ( ∘ ------  (0))||(k+1)
                               ∂-ξ-    1- ξ20λS ξ  ||                  (5.482)
                                  0                l+1∕2,1∕2,j+1 ∕2

Since ΓR,l+12(0)(k+1) is a weak function of f0(0), it is possible to replace ΓR,l+12(0)(k+1) by its explicit form ΓR,l+12(0)(k), so that one may avoid to recalculate matrix Mp,l+12,i+12,j+12(0) at each iteration, an extremely time consuming procedure. Consequently, with this scheme, the zero order Fokker-Planck equation becomes simply

                f (0)(k+1)         - f(0)(k)
   -^ql+1∕2-p2i+1∕2-0,l+1∕2,i+1∕2,j+1∕2----0,l+1∕2,i+1∕2,j+1∕2
   B0,l+1∕2                     Δt
      ^q           ||(k+1)
   + ---p2∇p  ⋅S(p0)||
     B0            l+1∕2,i+1∕2,j+1∕2
      ^q           ||(k+1)
   + ---p2∇ ψ ⋅S(ψ0)||
     B0            l+1∕2,i+1∕2,j+1∕2
             Γ (0)(k)
   - -^ql+1∕2---R,l+1∕2-
     B0,l+1∕2 4πΔp1∕2
=  0                                                       (5.483)

The condition to maintain density constant at each radial location ψl+12 leads therefore to an additional term, that adds to the operator which describes damping of Maxwellian electrons on suprathermal ones. With this approach, the Fokker-Planck equation is slightly non-linear, provided the fraction of runaway electrons remain small as compared to the bulk one.

Furthermore, the electron distribution function is not a Maxwellian in the vicinity of p = 0, since an ad-hoc source term of particle with no velocity is added. This approach is therefore questionable for its validity, owing to the basic assumptions that are used to derive the linearized Fokker-Planck equation around a Maxwellian bulk. Therefore, in order to avoid this singularity, an alternative approach may be to add a source term normalized to ΓR,l+12(0)(k) but, whose distribution function is an exact Maxwellian corresponding to the electron temperature at ψl+12.

In that case, in steady-state regime, the flux divergence p Sp(0) is no more null at each plasma location, but is given by the relation

          |                         Γ (0)(k)       [           p2            ]
p2∇p ⋅S (0p)||(k+1)          = p2    [---R,l+1∕2]---exp  - (---------i+1∕2-)-------
          l+1∕2,i+1∕2,j+1∕2    i+1∕2 2πTe,l+1∕23∕2        1 + γl+1∕2,i+1∕2 Te,l+1∕2
(5.484)

where Te(      )
 ψl+1∕2 = Te,l+12, which corresponds to the existence of an external Maxwellian source term. By definition,

2π j=0nξ0-1 i=0np-1   Γ (0)(k)
[----R,l+1∕2]---
 2πTe,l+1∕2 3∕2 exp[           p2            ]
 - (---------i+1∕2-)-------
    1 + γl+1∕2,i+1∕2 Te,l+1∕2
× pi+122Δp i+12Δξ0,j+12 = ΓR,l+12(0)(k) (5.485)

and the Fokker-Planck equation becomes simply

                f(0)(k+1)         - f(0)(k)
   -^ql+1∕2-p2   -0,l+1∕2,i+1∕2,j+1∕2----0,l+1∕2,i+1∕2,j+1∕2
   B0,l+1∕2  i+1∕2                Δt
                  ||(k+1)
   + -^q-p2∇p ⋅ S(0p)||
     B0            l+1∕2,i+1∕2,j+1∕2
                  ||(k+1)
   + -^q-p2∇ ψ ⋅S(ψ0)||
     B0            l+1∕2,i+1∕2,j+1∕2
              2    (0)(k)      [            2            ]
   - -^ql+1∕2--pi+1∕2ΓR,l+1∕2exp  - (--------pi+1∕2-)-------
     B0,l+1∕2[2πTe,l+1∕2]3∕2        1+ γl+1∕2,i+1∕2 Te,l+1∕2

=  0                                                          (5.486)

Though this technique is in principle the most consistent with the underlying physics, it has also still some numerical drawbacks, because of the forward time differencing. It is well known that such terms put strong limitations on the time step value Δt, in order to preserve numerical stability. A coarse estimate of its level can be deduced from the condition

   Γ (0)(k)         [          p2             ]   f (0)(k)
[----R,l+1∕2]---exp  - (---------i+1∕2)--------  ≪ -0,l+1∕2,i+1∕2,j+1∕2
 2πTe,l+1∕2 3∕2        1+ γl+1∕2,i+1∕2 Te,l+1∕2           Δt
(5.487)

Assuming f0,l+12,i+12,j+12(0)(k) f0M,l+12,i+12,j+12(0), it turns out that

    (0)(k)
Δt-ΓR,l+1∕2 ≪  1
  ne,l+1∕2
(5.488)

where ne,l+12 = ne(      )
 ψl+1∕2 is the local electron density. In normalized units, as defined in Sec.6.3, time step of the order of Δt ~ 10+3 - 10+4 are used to reach in few iterations the steady-state solution. Therefore, ΓR,l+12(0)(k)∕ne,l+12 must be lower than 10-5 - 10-6 in order to avoid onset of numerical instabilities, which corresponds usually to normalized Ohmic electric field less than 0.05.

Finally, the ultimate and most simple approach to deal with the loss of runaway electrons is to enforce the electron distribution function at each time step. Defining a numerical density ne,l+12(k) at time step k ,

   nξ∑0- 1n∑p-1
2π          f(00,l)(+k1)∕2,i+1∕2,j+1 ∕2p2i+1∕2Δpi+1∕2Δξ0,j+1∕2 = n(ek,l)+1∕2
    j=0 i=0
(5.489)

this procedure corresponds to the following replacement

f(0)(k)           →  ne,l+1∕2f(0)(k)
 0,l+1∕2,i+1∕2,j+1 ∕2    n(k)     0,l+1 ∕2,i+1∕2,j+1∕2
                     e,l+1∕2
(5.490)

This procedure is equivalent to reinject electrons in the plasma so that local density is steadily maintained. The main advantage of this method is that it preserves the implicit or backward numerical time advancing. Furthermore, it avoids flux calculations in order to determine the runaway rate at ech time step, a procedure which slows down the rate of convergence. Finally, the normalization procedure is general and may be applied for any process that leads to local electron losses, like radial transport, magnetic ripple losses. For this reason, this method is chosen, if needed, for the code. However, even if this technique is numericaly very powerful, and physicaly justified, it may hinder some artificial numerical electron losses resulting from an improper numerical flux balance in each cell. Consequently, it is crucial to benchmark the Fokker-Planck code without this option, in order to verify that the conservative scheme is well satisfied and that electron losses remain always small.

Lower hybrid wave and very high temperature plasmas For the Lower Hybrid current drive problem, difficulties similar to the runaway problem may take place in the core region of the plasma, when the electron temperature is very high. For this quasi-electrostatic wave, the resonant interaction with the plasma takes place along the magnetic field line, as discussed in Sec. 4.3.2, and therefore, a tail of very energetic electrons is pulled out from the bulk in the parallel direction p as for the Ohmic electric field. Unlike the Ohmic case, the domain of interaction for the Lower Hybrid wave is bounded in momentum space, and is given by the well known wave-particle resonance condition

vLH   ≤ p∥ ≤ vLH
 ∥ min    γ    ∥max
(5.491)

where the relativistic factor γ = ∘ ---------2
  1 + (βthp), β th = vth∕c and p2 = p 2 + p2. On the axis p = 0, the resonance domain is given by the relation

 LH,0   0    LH,0
p∥min ≤ p∥ ≤ p∥max
(5.492)

where

               LH
pLH,0 = ∘-----v∥min------
 ∥min         (    LH  )2
          1 -  βthv∥min
(5.493)

and

              vLH
pL∥Hm,a0x = ∘-----(∥max----)--
          1 -  β  vLH   2
                th ∥max
(5.494)

When p0, the lower bound of the resonance condition becomes

(  LH  ) 2
( p∥min)  - β2 p2 = 1
  pLH,0      th ⊥
   ∥min
(5.495)

while the upper limit is

(      ) 2
  pL∥Hmax       2 2
( -LH,0)  - β thp⊥ = 1
  p∥max
(5.496)

For very cold plasmas, i.e. when βth2pmax2 1 since ppmax,

{
   pL∥Hmin ≃ pL∥Hm,i0n
    LH      LH,0
   p∥max ≃ p∥max
(5.497)

and resonance domain boundaries are straight lines parallel to p = 0 axis. In that case, electron losses are naturally very weak, since at the intersection of the resonance and integration domains, the wave-induced flux is nearly tangent to the boundary of the integration domain. Since pmax ranges usualy between 20 - 30, βth must be much less than 0.01, which corresponds to electron temperatures less than 0.06keV . Such a condition is never encountered in tokamak plasmas, except close to the very edge.


cmcmcmPIC

Figure 5.3: Lower Hybrid boundary problem


Because of relativistic corrections, lower and upper boundaries of the Lower Hybrid resonance domain are hyperbolic functions of p, which indicates that the wave induced particle flux always crosses the integration domain. The curvature of the resonance domain boundaries as a function of p depends directly of βth as shown in Fig. 5.3 and therefore, one may expect that particle flux induced by the wave may be nearly perpendicular to the integration domain boundary. This is the worst situation, for which important losses of electrons may take place if the quasilinear diffusion is very large between p minLH and p maxLH, as for the runaway problem. In such a regime, a tail of very energetic electrons is pulled out from the bulk up to the integration domain, and the accuracy of the current driven by the wave as calculated by the code is highly questionable, when a significant fraction of this population leaves the integration domain.

This difficulty becomes rapidly important when βth increases as a consequence of the forward peaking of the electron dynamic because of the relativistic corrections. In that case, the total kinetic energy comes into play, and therefore electrons with a high p component will interact resonantly with the wave at larger p values because of their increasing mass.

It is difficult to introduce an unambiguous criterion which defines limits beyond which electron losses become important, since there is an interplay between the shape of the resonant domain, and also the absolute level of the quasilinear diffusion rate. As discussed in Sec. 4.3.2, its value is given by the relation

--                           θb  2   --     |        |2
DRFb,n(0)(p,ξ0) =   γpT-e-1-rθb-B---ξ0Ψ θbDRFb,,n,θ0b||Θb,n (kb)|| ×
                 p |ξ0|λ^q R0 BθPbξ2θb            k,θb
                                          [  ∑  ]   (           )
                 H (θb - θmin)H (θmax - θb) 1-      δ N ∥b - N θb   (5.498)
                                           2  σ  T           ∥res
which roughly decreases as p-1. This dependence, usually neglected since the shape of the plateau in the distribution function is independent of the value of Db,nRF(0) when the quasilinear diffusion rate is very large, is however very important when the 2 - D momentum dynamics is fully taken into account. This is in fact the only way to avoid unacceptable electrons losses, and pmax must determined so that Db,nRF(0) 1 at the boundary of the integration domain. Indeed, curvatures of the resonance domain boundaries as p increases are not favorable for a reduction of the losses, since at high energy, the flux of particles induced by the Lower Hybrid wave becomes more and more perpendicular to the integration domain.

As shown in Fig. 5.3, the only possibility for particle losses to remain at an acceptable small level whatever the quasilinear diffusion level, is that the upper boundary of the Lower Hybrid resonance domain crosses the integration domain at p∕pmax > 1√--
 2. This purely geometrical effect put very strong limitations on the lowest level of the parallel refractive index n minLH that can be studied. Indeed, , p maxLH,0(p⊥ = 0) is therefore given by the relation,

           ∘ ----------
 LH,0         2
p∥ max = 1∕  p2---+ β2th
              max
(5.499)

or

         1      pmax
vL∥Hmax =  √--∘------------
          2   1+ β2thp2max
(5.500)

In term of parallel refractive wave index, the previous condition is equivalent to the simple relation

             -----------
           ∘     2  2
nLH  = √2----1+-βthpmax-
 ∥min        βthpmax
(5.501)

where the usual resonance relation

 LH     -1- --1---
v∥max = βth nLH
             ∥min
(5.502)

is used. In the limit βth2pmax2 1, v maxLH becomes independent of pmax

 LH      1   1
v∥max ≃ √---β--
          2  th
(5.503)

which equivalent to

  LH    √ --
n ∥min ≳  2 ≃ 1.4
(5.504)

This result confirms that increasing pmax is useless in order to reduce particle losses, if the quasilinear diffusion coefficient Db,nLH(0) remains very large over all the quasilinear resonance domain, except if the parallel refractive index is small. In most calculations, pmax 20 - 30, and since in the core of the plasma βth ranges between 0.14 and 0.17, βth2pmax2 7.8 - 26, which fully justify this approximation.

As discussed for the runaway problem, particle losses are compensated by the normalization of the electron distribution function at each time step. However, when n minLH exceeds √--
 2, a warning is send by the code, in order to indicate that strong particle losses may take place if the quasilinear diffusion coefficient is large at the boundary of the integration domain.

Treatment of the trapped region Since characteristic times for collision, RF quasilinear diffusion and Ohmic electric field acceleration are all much larger than the bounce time in the weak collision “banana” regime, f0(0)(ψ,p,ξ0) = f0(0)(ψ,p,- ξ0) when |ξ0|ξ0T . Therefore, symmetrically place points around ξ0 = 0 are equivalent in the trapped region, a physical property that is described by the term [ ∑  ]
 12  σT in the bounce averaging procedure in Sec. 2.2.1. This effect introduces a new internal boundary corresponding to the trapped-passing transition, and an external one at ξ0 = 0, since by symmetry,

∂f-(00)
 ∂ξ0  (ξ0 = 0) = 0
(5.505)

The Fokker-Planck equation is then solved in a reduced domain of integration, where the momentum phase space corresponding to -ξ0T ξ0 0 is removed. Once determined in this reduced domain, the distribution function is recovered on the whole space, by enforcing the condition f0(0)(ψ,p,- ξ0) = f0(0)(ψ,p,ξ0) in the interval |ξ0| ξ0T .


cmcmcmPIC

Figure 5.4: Trapped domain and related flux connections


A specific treatment of the new internal boundary must be considered, so that flux continuity is correctly described between co- and counter-passing regions, despite the reduction of the phase space domain. Let define grid points

(|     (                +          )
|||  1 :(l + 1∕2,i + 1∕2,jT,l+1∕2 - 1∕2)
||||  2 : l + 1∕2,i + 1∕2,j+    + 1∕2
{     (                T,l+1∕2     )
|  3 : l + 1∕2,i + 1∕2,j-T,l+1∕2 + 1∕2
||||     (                -          )
|||(  4 : l + 1∕2,i + 1∕2,jT,l+1∕2 - 1∕2
   5 : (l + 1∕2,i+ 1∕2,jT0 + 1∕2)
(5.506)

where jT0 = (n   + 1)
   ξ02 = (                )
 j+     +  j-
  T,l+1∕2   T,l+1∕22, as indicated in Fig.5.4. Here jT,l+12- is the index that corresponds to the trapped/passing boundary ξ0 = -ξ0T , while jT,l+12+ corresponds to the symmetric boundary with respect to the axis ξ0 = 0, i.e. ξ0 = ξ0T .

By definition, grid points 1 and 3 are in the trapped region, just placed below and above co- and counter-passing boundaries respectively at opposite sides of the axis ξ0 = 0 and with the same distance to this axis, while grid points 2 and 4 have a similar arrangement but are placed in the co- and counter-passing regions respectively right after the trapped-passing boundary. The grid point 5 is placed on the right side of the axis ξ0 = 0, in the trapped sub-domain 0 ξ0 ξ0T .

Before performing the reduction of the domain of integration, the symmetry inside the trapped region must be enforced according to the relation

--(0)                 (--(0)                --(0)              )
M p,l+1∕2,i+1∕2,j++1∕2 =  M p,l+1∕2,i+1∕2,j++1∕2 + M p,l+1∕2,i+1∕2,j-+1∕2 ∕2
(5.507)

where jT0 = (j+ + j- )2, with jT,l+12- < j- < jT0 or an in equivalent manner jT0 < j+ < jT,l+12+. This procedure allows to correctly account for some processes that are not symmetric in p, like wave-particle interaction.

The reduction of the domain of integration in the momentum phase space leads to introduce a new matrix, ^--
Mp(0) whose coefficients are defined as follows

-^-(0)                --(0)
M  p,l+1 ∕2,i+1∕2,j′+1∕2 = M p,l+1∕2,i+1∕2,j+1∕2
(5.508)

with j = j, when 0 j < jT,l+12-, and j = j - nξ0T,l+12, when jT0 j nξ0 - 1. Here, nξ0T,l+12 = (  +        -    )
  jT,l+1 ∕2 - jT,l+1∕22 corresponds to the number of grid points removed in the pitch-angle direction, and with this definition, it can be easily cross-checked that jT0 - nξ0T,l+12 = jT,l+12-.


cmcmcmPIC

Figure 5.5: Momentum flux connections for grid point 1 in the trapped region


Furthermore, since grid point 3 is no more considered in the calculations while grid points 3 and 1 are equivalent, flux relations between neighboring grid points 4 and 3 must then be replaced by new relations wich link grid points 4 and 1. Much in the same way, flux relations between grid points 2 and 3 no more exist, and therefore, the flux relation between grid points 2 and 1 must be modified accordingly. This procedure leads to add six new set of coefficients to the matrix ^M--p(0), namely

(
||  ^-(0)        [         ]
|||{  M p,l+1∕2,i-1∕2, j′T-,l+1∕2- 1∕2 +nξ0T,l+1∕2
   ^-(0)        [         ]
||  M p,l+1∕2,i+1∕2, j′T-,l+1∕2- 1∕2 +nξ0T,l+1∕2
|||(  ^-(0)        [         ]
   M p,l+1∕2,i+3∕2, j′T-,l+1∕2- 1∕2 +nξ0T,l+1∕2
(5.509)

and

(
||  ^-(0)        [′+       ]
|||{  M p,l+1∕2,i-1∕2, jT,l+1∕2- 1∕2 -nξ0T,l+1∕2
   ^-(0)        [′+       ]
||  M p,l+1∕2,i+1∕2, jT,l+1∕2- 1∕2 -nξ0T,l+1∕2
|||(  ^-(0)        [         ]
   M p,l+1∕2,i+3∕2, j′T+,l+1∕2- 1∕2 -nξ0T,l+1∕2
(5.510)

while matrix coefficients

(
|  ^--(0)        [         ]
||||  M  p,l+1∕2,i-1∕2,j′-T,l+1∕2-1∕2+1
{  ^--(0)        [         ]
|  M  p,l+1∕2,i+1∕2,j′-T,l+1∕2-1∕2+1
||||  ^--(0)        [         ]
(  M  p,l+1∕2,i+3∕2,j′-T,l+1∕2-1∕2+1
(5.511)

and

(
||  ^--(0)        [         ]
|||  M  p,l+1∕2,i-1∕2,j′+T,l+1∕2-1∕2+1
{  ^--(0)        [         ]
||  M  p,l+1∕2,i+1∕2,j′+T,l+1∕2-1∕2+1
|||  ^--(0)        [         ]
(  M  p,l+1∕2,i+3∕2,j′+T,l+1∕2-1∕2+1
(5.512)

where jT,l+12′- = jT,l+12- and jT,l+12+ = jT,l+12+ - nξ0T,l+12 must be modified accordingly.


cmcmcmPIC

Figure 5.6: Momentum flux connections for grid point 4 in the counter-passing region


As shown in a graphic form in Figs. 5.5 and 5.6,

(
|| ^--(0)        [         ]
||| M  p,l+1∕2,i-1∕2,j′-T,l+1∕2-1∕2+1 = 0
{ ^--(0)        [         ]
|| M  p,l+1∕2,i+1∕2,j′-T,l+1∕2-1∕2+1 = 0
||| ^--(0)        [         ]
( M  p,l+1∕2,i+3∕2,j′-T,l+1∕2-1∕2+1 = 0
(5.513)

since the distribution function at grid 4 is no more connected with the one at grid point 3 or 5, but to the grid point 1 only. Furthermore, since grid points 1 and 3 are equivalent, their clockwise flux links with grid point 2 are only half in order to avoid counting them twice. Therefore,

^--(0)        [         ]        --(0)         [         ]
M  p,l+1∕2,i-1∕2,j′+T,l+1∕2-1∕2+1  =   M p,l+1∕2,i- 1∕2,j′T+,l+1∕2-1∕2 +1+nξ0T,l+1∕2∕2
---(0)                           ---
^M  p,l+1∕2,i+1∕2,[j′+    -1∕2]+1  =   M (0)         [+        ]           ∕2
               T,l+1∕2              p,l+1∕2,i+1 ∕2,jT,l+1∕2-1∕2 +1+nξ0T,l+1∕2
^--(0)        [         ]        --(0)         [         ]
M  p,l+1∕2,i+3∕2,j′+T,l+1∕2-1∕2+1  =   M p,l+1∕2,i+3 ∕2,j+T,l+1∕2-1∕2 +1+nξ0T,l+1∕2∕2

                                                                     (5.514)

Moreover, since counterclockwise flux that links grid points 3 and 4 is equivalent by symmetry with clockwise flux that links grid points 1 and 2 , one obtains,

^-(0)        [         ]              --(0)        [         ]
M p,l+1∕2,i-1∕2, j′T-,l+1∕2- 1∕2 +nξ0T,l+1∕2  =  M p,l+1∕2,i-1∕2,jT′+,l+1∕2-1∕2 +1+nξ0T,l+1∕2
--(0)                                 --(0)
^M p,l+1∕2,i+1∕2,[j′-   - 1∕2]+n         =  M            [ ′+       ]
              T,l+1∕2      ξ0T,l+1∕2       p,l+1∕2,i+1∕2,jT,l+1∕2-1∕2 +1+nξ0T,l+1∕2
^-(0)        [         ]              --(0)        [         ]
M p,l+1∕2,i+3∕2, j′T-,l+1∕2- 1∕2 +nξ0T,l+1∕2  =  M p,l+1∕2,i+3∕2,jT′+,l+1∕2-1∕2 +1+nξ0T,l+1∕2
                                                                       (5.515)
and
^-(0)        [         ]              --(0)        [         ]
M p,l+1∕2,i-1∕2, j′T+,l+1∕2- 1∕2 -nξ0T,l+1∕2  =  M p,l+1∕2,i-1∕2,j′T+,l+1∕2-1∕2 +1+nξ0T,l+1∕2∕2
--(0)                                 --(0)
^M p,l+1∕2,i+1∕2,[j′+   - 1∕2]-n         =  M            [′+       ]           ∕2
              T,l+1∕2      ξ0T,l+1∕2       p,l+1∕2,i+1∕2,jT,l+1∕2-1∕2 +1+nξ0T,l+1∕2
^-(0)        [         ]              --(0)        [         ]
M p,l+1∕2,i+3∕2, j′T+,l+1∕2- 1∕2 -nξ0T,l+1∕2  =  M p,l+1∕2,i+3∕2,j′T+,l+1∕2-1∕2 +1+nξ0T,l+1∕2∕2
                                                                        (5.516)

Finally, for the external boundary at ξ0 = 0, all matrix coefficients at grid point jT0 + 12 are forced to zero, except two,

^-(0)        [         ]
M p,l+1∕2,i-1∕2, j′T-   +1 ∕2 +nξ        =  1
               ,l+1∕2       0T,l+1∕2
^-(0)        [         ]
M p,l+1∕2,i-1∕2, j′T-,l+1∕2+3 ∕2 +nξ0T,l+1∕2  =  - 1              (5.517)
since jT,l+12′- = jT0 - nξ0T,l+12 = jT0.

Magnetic ripple losses Super-trapped electrons with p∕p1 are very sensitive to all the details of the magnetic configuration, and may be lossed in the local magnetic wells because of the finite number of toroidal magnetic field coils. This effect requires in principle a full 3 -D spatial calculation, that is beyond the present theoretical frame here described, as for the stellarator magnetic configuration. Nevertheless, some interesting results may be obtained, by considering that super-trapped electrons whose banana tips fall in the magnetic well drift vertically in an irreversible manner and leave therefore the plasma. This process takes place provided their kinetic energy is large enough so that the detrapping probability by collisions remain negligible.

Describing this effect is consequently equivalent to introduce new external boundaries in the trapped region, in order to describe in an ad-hoc manner this physical effect. This approach is justified because the drifting time across the plasma is short enough for the locally trapped electrons in the magnetic ripple to neglect their contributions to the overall momentum dynamics.


cmcmcmPIC

Figure 5.7: Heuristic magnetic ripple modeling. The trapped/supertrapped boundary varies as well as the collision detrapping threshold are both functions of the radial location


For this purpose, an Krook term is introduced in the Fokker-Planck equation

  (0)||(k+1)
∂f0--||              = νMR,l+1∕2,i+1∕2,j′+1∕2f(0)(k+1)    ′
 ∂t  |l+1∕2,i+1∕2,j+1∕2                       0,l+1∕2,i+1∕2,j +1∕2
(5.518)

where νMR,l+12,i+12,j+12 is an effective loss frequency, whose value is a function of the super-trapped domain as shown in Fig. 5.7. This loss frequency varies therefore with the radial location ψl+12, but also with momentum pi+12 and pitch-angle ξ0,j+12. Outside this domain, νMR,l+12,i+12,j+12 is set to a zero so that losses are always negligible on the time scale for the steady-state distribution function to build-up. Conversely, inside the domain characterized by the pitch-angle boundary 0 ξ0,j+12 ξ0,jMR,l+12++12 and pi+12 pMR,l+12, where jMR,l+12+ is the index below which particle are lossed in the magnetic ripple, and pMR,l+12 is the momentum detrapping threshold by collisions, νMR,l+12,i+12,j+12 is usually taken constant and much larger than τt-1 which is the smallest time scale here considered, namely the transit time. The matrix is then simply modified according to the following rule

---(0)                ---(0)
^M  p,l+1∕2,i+1∕2,j′+1∕2 → M^ p,l+1 ∕2,i+1∕2,j′+1∕2 - νMR,l+1∕2,i+1 ∕2,j′+1∕2
(5.519)

With this method, it is not necessary to introduce additional specific conditions and moreover the implicit time scheme is fully preserved. By definition, the Fokker-Planck equation is no more conservative, but particle losses are compensated by the normalization technique at each time step, as for the runaway problem. This is an acceptable technique, provided level of losses due to magnetic ripple is small as compared to the electron bulk density.

Spatial dynamics

Internal boundary For the dynamics in configuration space, since the problem has only one dimension, the internal boundary must be only specified at ψ = ψ0 = 0, which corresponds to the condition

f(00)(ψ, p,ξ0) = f(00)(- ψ, p,ξ0)
(5.520)

Using the same approach as for the momentum dynamics, Δψ must be defined at this location. Hence

Δ ψ  = 1-(Δ ψ   + Δ ψ    ) = Δ ψ
    0  2     1∕2     - 1∕2       1∕2
(5.521)

using Δψ-12 = Δψ12. Since Δψ12 = ψ1 - ψ0, and ψ12 = ψ1+ψ0
  2 one obtains finally,

Δψ0 = 2ψ1 ∕2
(5.522)

because ψ0 = 0.

It is important to note that internal boundary conditions are also only needed for the evaluation of cross-derivative terms, since in the discrete form of the Fokker-Planck equation using two grids, as shown, in Sec. 5.4.2, it is automatically fullfiled for other terms. Indeed, at fixed pi+120,j+12,

                              |(k+1)
                 -^q-p2∇ ψ ⋅S (0)||
                 B0         ψ |1∕2,i+1∕2,j+1∕2
    p2               (            ) |(k+1)
=  --i+1∕2-×     -∂-  R0 ^qBP-0λS(0) ||                      (5.523)
   λ1∕2,j+1∕2      ∂ ψ      B0    ψ   |1∕2,i+1∕2,j+1∕2
or
                  ^q           ||(k+1)
                 ---p2∇ ψ ⋅ S(ψ0)||
                 B0            1∕2,i+1∕2,j+1∕2
    p2                 B
=  -1i∕+2,1j∕+21∕2-×    R0,1^q1-P-0,1λ1,j+1∕2S(ψ01)(,ki++11∕)2,j+1∕2           (5.524)
   λ                   B0,1
since R0,0BP0,0Sψ0,i+12,j+12(0)(k+1) = 0. Indeed, BP0,0 = 0 on the magnetic axis.

External boundary As discussed for the momentum dynamics, a primary condition of the code is that electron density profile is preserved. As for the particle losses in momentum space, this can be performed by injecting an equivalent number of particles at p = 0, in order to compensate the particle flux leaving the integration domain because of diffusion across magnetic flux surfaces. It corresponds to a reaction of the bulk, because of the occurence of a small electric field, generated by the electron transport so that the overall electron density profile is kept constant. By this method, a steady state regime may be achieved, and it is not necessary to specify which type of mechanism is at play, diffusion or convection.

Let define the local variation of the electron density Δne,l+12(k) at time step k because of spatial transport by the simple relation

            ∫∫  [                                ]
Δn (ek)(ψ) =      f(00)(k)(ψ, p,ξ0) - f(00)(k-1)(ψ,p,ξ0) λ(ψ, ξ0) p2dpdξ0
(5.525)

It can be expressed in term of a loss rate

  (0)(k)         (k)
Γ T   (ψ ) = Δn e (ψ)∕Δt

by introducing the integration time step Δt and the flux balance gives on the discrete mesh is

                  n∑ξ0-1
2πp2S (0)               Δξ0,j+1∕2 = 4πp2S(0)          = Γ (0)
   0  p,l+1∕2,0,j+1 ∕2  j=0                0 p,l+1∕2,0,j+1∕2    T,l+1∕2
(5.526)

assuming like for losses in momentum space that the flux has no pitch-angle dependence at p0. The zero order Fokker-Planck equation becomes simply

                f (0)(k+1)         - f(0)(k)
   -^ql+1∕2-p2   -0,l+1∕2,i+1∕2,j+1∕2----0,l+1∕2,i+1∕2,j+1∕2
   B0,l+1∕2 i+1∕2                Δt
      ^q           ||(k+1)
   + ---p2∇p  ⋅S(p0)||
     B0            l+1∕2,i+1∕2,j+1∕2
      ^q           ||(k+1)
   + ---p2∇ ψ ⋅S(ψ0)||
     B0            l+1∕2,i+1∕2,j+1∕2
             Γ (0)(k) + Γ (0)(k)
   - -^ql+1∕2---R,l+1∕2----T,l+1∕2
     B0,l+1∕2     4πΔp1 ∕2
=  0                                                       (5.527)
in order to maintain electron density at each time step. By definition, radial transport or runaway play a similar role, and as a result their respective contributions are equivalent in the Fokker-Planck equation. If the electrons that are reinjected have a Maxwellian distribution function corresponding to the electron temperature at ψl+12, one may obtain, as for the runaway problem,

                 f(0)(k+1)        - f (0)(k)
    -^ql+1∕2-p2i+1∕2-0,l+1∕2,i+1∕2,j+1∕2---0,l+1∕2,i+1∕2,j+1∕2
    B0,l+1∕2                      Δt
       ^q          ||(k+1)
    + ---p2∇p ⋅S(p0)||
      B0           l+1∕2,i+1∕2,j+1∕2
       ^q           ||(k+1)
    + ---p2∇ψ ⋅S(ψ0)||
      B0           l+1∕2,i+1 ∕2,j+1∕2
                  Γ (0)(k)  + Γ (0)(k)    [           p2            ]
    --^ql+1∕2-p2   --R[,l+1∕2---T,]l+1-∕2 exp  -(---------i+1∕2)-------
     B0,l+1∕2 i+1∕2   2πTe,l+1∕2 3∕2         1 + γl+1∕2,i+1∕2 Te,l+1∕2

=   0                                                              (5.528)

Finally, for cross-derivative terms, one have to determine Δψnψ at the boundary of the integration domain. It is readily given by relation,

         (             )     (            )
Δψn ψ = 2 ψn ψ - ψn ψ-1∕2 = 2 ψa - ψnψ- 1∕2
(5.529)

as done for p, since ψnψ = ψa.

Treatment of the trapped region The radial transport equation is greatly complicated by the presence of trapped electrons, since the diffusion across magnetic field lines may contribute to trap or detrap particles who are in the close vicinity of the trapped/passing boundary, because of the radial dependence of this boundary, as shown in Fig. 5.8. By definition, this process takes place intrinsically at fixed magnetic moment, a fundamental assumption of the flux conservative form of the bounce averaged Fokker-Planck equation, as shown in Sec.3.5.1.


cmcmcmPIC

Figure 5.8: Trapping and detrapping process induced by radial transport


The matrix build-up is therefore quite complex, since one has to take into account that counter-passing electrons may be trapped when they diffuse towards lower magnetic regions of the plasma, while conversely, trapped electrons may be detrapped by crossing magnetic flux surfaces in the high magnetic field side direction.

Let define three neighboring grid points at radial locations ψl-12, ψl+12 and ψl+32 and corresponding trapped/passing boundaries ξ0T,jT,l-12±, ξ0T,jT,l+12±, and ξ0T,jT,l+32±, since non-uniform pitch-angle grid mesh is designed so that each boundary is exactly placed on the flux grid. By definition, since

- ξ  -     < - ξ   -     < - ξ  -     < ξ   +     < ξ   +     < ξ   +
  0T,jT,l+3∕2     0T,jT,l+1∕2     0T,jT,l-1∕2   0T,jT,l-1∕2   0T,jT,l+1∕2    0T,jT,l+3∕2
(5.530)

the following relation holds

j-     < j-     <  j-     < jT0 < j+     < j+     <  j+
 T,l+3∕2   T,l+1∕2    T,l-1∕2         T,l- 1∕2    T,l+1∕2   T,l+3∕2
(5.531)

Here jT0 is the index of the grid point corresponding to the axis ξ0 = 0 in the trapped region at ψl+12. This defines naturaly eight different regions in momentum space at ψl+12, where spatial fluxes must be considered. Since matrix is reduced in momentum space, because the region jl+12- < jl-12- < jT0,l+12 is not considered in the calculations, one has therefore to consider effectively only six regions, namely corresponding to

 -         -
jT,l+3∕2 < jT,l+1∕2
(5.532)

and

j  < j+      < j+     < j+
 T0   T,l- 1∕2    T,l+1∕2   T,l+3∕2
(5.533)

or using relations jT,l+12′- = jT,l+12- and jT,l+12+ = jT,l+12+ - nξ0T,l+12

j′-    <  j′-     < j′+    <  j′+     < j′+
 T,l+3∕2    T,l+1∕2    T,l-1∕2   T,l+1 ∕2    T,l+3∕2
(5.534)

As for the momentum dynamics, the reduction of the domain of integration in the momentum phase space leads to introduce a new matrix, ---
^Mψ(0). Obviously, the main diagonal is fully preserved, and therefore

^-(0)                --(0)
M ψ,l+1∕2,i+1∕2,j′+1∕2 = M ψ,l+1∕2,i+1∕2,j′+1∕2
(5.535)

provided j < jT,l+12′-, while

--(0)                --(0)
^M ψ,l+1∕2,i+1∕2,j′+1 ∕2 = M ψ,l+1∕2,i+1∕2,[j′+1∕2]+nξ
                                           0T,l+1∕2
(5.536)

when for j > jT,l+12+. Only off-diagonal matrix coefficients have to be modified, because of the presence of trapped and circulating electrons. Indeed, these coefficients reflect the particle flux transfer between different location.

If j < jT,l+32′-, matrix coefficients are given by

(
{  ^-(0)                 --(0)
   M ψ,l-1∕2,i+1∕2,j′+1∕2 = M-ψ,l-1∕2,i+1∕2,j′+1∕2
(  ^M-(0)          ′   =  M-(0)          ′
     ψ,l+3∕2,i+1∕2,j+1∕2     ψ,l+3∕2,i+1∕2,j+1∕2
(5.537)

and for jT,l+32′- < j < jT,l+12′-, the simple relation still holds for one matrix coefficient only

                     ---
^M-(0)         ′    = M-(0)         ′
  ψ,l-1∕2,i+1∕2,j+1∕2     ψ,l-1∕2,i+1∕2,j+1∕2
(5.538)

since the trapped region is narrower at ψl-12 as compared to ψl+12. But since counter-circulating electrons become trapped by diffusion from ψl+12 ψl+32 and electron dynamics in the domain jT,l+32- < j < jT0 is removed and replaced by its counterpart in the positive pitch-angle region jT0 < j < jT,l+32+, it turns out that

---(0)
M^ ψ,l+3∕2,i+1 ∕2,j′+1∕2 = 0
(5.539)

and the flux link must be replaced by

^M--(0)          ′           ′              = M--(0)         ′
   ψ,l+3∕2,i+1∕2,[j+1∕2]+2(jT0-(j +1∕2))-nξ0T,l+3∕2     ψ,l+3∕2,i+1 ∕2,j+1∕2
(5.540)

taking into account of the mirror indexing around the axis ξ0 = 0, and the fact that matrix blocks corresponding to different radii have different sizes.

In a general way, when j > jT,l+12′-, the following rule applies

(  ---(0)
{  ^M  ψ,l-1∕2,i+1∕2,j′+1∕2 = 0
(  ^--(0)
   M  ψ,l+3∕2,i+1∕2,j′+1∕2 = 0
(5.541)

all corresponding matrix coefficients being replaced by new ones according to the relations

(    (0)                                     ---
|{  ^M--           ′     (                ) = M-(0)         ′
     ψ,l-1∕2,i+1∕2,[j+1 ∕2]+ nξ0T,l+1∕2- nξ0T,l-1∕2    --ψ,l- 1∕2,i+1∕2,[j+1∕2]+nξ0T,l+1∕2
|(  ^M-(0)          ′     (                ) = M-(0)         ′
     ψ,l+3∕2,i+1∕2,[j+1 ∕2]+ nξ0T,l+1∕2- nξ0T,l+3∕2      ψ,l+3∕2,i+1∕2,[j+1∕2]+nξ0T,l+1∕2
(5.542)

wether electrons remains trapped or co-passing, or become trapped by the outward radial transport or detrapped by the inward cross-field diffusion. Since nξ0T,l+12 - nξ0T,l-12 > 0 and nξ0T,l+12 - nξ0T,l+32 < 0,

(            (                   )
{   ′                                 ′
  [j + 1∕2]+ ( nξ0T,l+1∕2 - nξ0T,l-1∕2) > j + 1∕2
( [j′ + 1∕2]+  nξ0T,l+1∕2 - nξ0T,l+3∕2 < j′ + 1∕2
(5.543)

which indicates that diagonals shrink when trapped/passing boundary is crossed, i.e. j > jT,l+12′-. Therefore, matrix ---
^Mψ(0) contains much more diagonals than Mψ(0) which has only three ones.

At ψ = 0, there is no need to specify the spatial flux Sψ(0), with the two grids technique. Since by construction Rmin,0BP min,0Sψ0,i+12,j+12(0)(k+1) = 0, no particle accumulation occurs naturaly at ψ , and at this singular point f0,12,i+12,j+12(0)(k+1) = f0,-12,i+12,j+12(0)(k+1) is well fullfiled.

At the plasma edge ψa, i.e. at the boundary of the integration domain, there is also no need to specify any condition on the flux of fast particles are leaving the plasma definitively, as for the runaway problem. Consequently, even without any external perturbation, the fact that radial transport of fast transport leads to strong departure from the Maxwellian momentum dependence at all radius.

As for the dynamics in momentum space, Δψ must be specified at the boundaries of the domain of integration. One finds that

Δψ0 = 2ψ1 ∕2
(5.544)

since ψ0 = 0, and

         (             )     (            )

Δψn ψ = 2 ψn ψ - ψn ψ-1∕2 = 2 ψa - ψnψ- 1∕2
(5.545)

noting that ψnψ = ψa.

5.7.2 Up to first order term: the Drift Kinetic equation

Since the first order bounce-averaged drift kinetic equation may be expressed in the same conservative form as for zero order Fokker-Planck bounce-averaged equation, most of the boundary conditions apply in a natural way without additional specifications, in particular at p = 0 and |ξ0| = 1, as a consequence of the two grids technique, one for the fluxes and the other for the distribution function.

In matrix form, the general expression of the first order bounce averaged drift kinetic equation

                             {  (  )}   {  (  )}   {  (  )}
{C(g)} + {Q (g)} + {E (g)} = -   C f^   -  Q   ^f   -  E  f^
(5.546)

becomes

   i′∑=i+1 j′′=∑j+1 ---
               M (p0,l)+1∕2,i′+1∕2,j′′+1∕2g(0)(k)  ′    ′′
   i′=i- 1j′′=j- 1                    0,l+1∕2,i+1∕2,j+1∕2
               (                                         )
   +p2    C (0) fM,l+1∕2,i+1∕2,j+1∕2, 3-ξ0,j+1∕2g(0)(m=1)(k)
      i+1∕2                       2        l+1∕2,i+1∕2,j+1∕2
     i′=∑i+1 j′′=∑j+1 --(0)
=  -             ^M p,l+1∕2,i′+1∕2,j′′+1∕2^f(0)   ′    ′′
     i′=i- 1j′′=j- 1                    l+1∕2,i+1∕2,j +1∕2
      ′    ′
     i=∑i+1 l=∑l+1 ^-(0)               (0)
   -            H ψ,l′+1∕2,i′+1∕2,j+1 ∕2f0,l′+1∕2,i′+1∕2,j+1∕2
     i′=i- 1l′=l- 1(                                         )
      2    ^(0)                   3-       ^(0)(m=1 )
   - pi+1∕2C     fM,l+1∕2,i+1∕2,j+1∕2,2 ξ0,j+1∕2fl+1∕2,i+1∕2,j+1∕2      (5.547)
or
   i′∑=i+1 j′′=∑j+1 --(0)               (0)(k)
               M p,l+1∕2,i′+1∕2,j′′+1∕2g0,l+1∕2,i′+1∕2,j′′+1∕2
   i′=i- 1j′′=j- 1
               (                  3        (0)(m=1)(k)    )
   +p2i+1∕2C (0) fM,l+1∕2,i+1∕2,j+1∕2,--ξ0,j+1∕2gl+1∕2,i+1∕2,j+1∕2
                                  2
=  W^l(0+)1∕2,i+1∕2,j+1 ∕2                                            (5.548)
where
                       i′=∑i+1 j′′=∑j+1 --(0)
^W (0)             =  -             ^M p,l+1∕2,i′+1∕2,j′′+1∕2^f(0)(k) ′    ′′
  l+1∕2,i+1∕2,j+1∕2       i′=i-1 j′′=j- 1                    l+1∕2,i+1∕2,j +1∕2
                        ′    ′
                       i=∑i+1 l=∑l+1 ^-(0)               (0)(k)
                     -            H ψ,l′+1∕2,i′+1 ∕2,j+1∕2f0,l′+1 ∕2,i′+1∕2,j+1∕2
                       i′=i-1 l′=l-(1                                         )
                        2    ^(0)                    3-       ^(0)(m=1 )
                     - pi+1∕2C     fM,l+1∕2,i+1∕2,j+1∕2,2ξ0,j+1∕2fl+1∕2,i+1∕2,j+1∕2

                                                                         (5.549)

Here, (k) is the iteration index number, while C(0) and ^C(0) are the electron-electron self-collision operators that make the equation non-linear.

Internal boundaries for function g(0)

In the weak collision “banana” regime, it is shown in Sec.3.4 that g(0)(ψ,p,ξ0) = 0 for trapped electrons. Therefore, the drift kinetic equation must be solved in a reduced domain of integration, as for f0(0)(ψ,p,ξ0), but with different and more simple internal boundary conditions. Indeed, the only constraint is to enforce the condition g(0)(ψ, p,ξ0) = 0 for |ξ |
 0 ξ0T .


cmcmcmPIC

Figure 5.9: Trapped domain for the first order distribution g


Let define grid points

(     (                           )
||  1 : l + 1∕2,i + 1∕2,j+    - 1∕2
|||     (                T,l+1∕2     )
|{  2 : l + 1∕2,i + 1∕2,j+T,l+1∕2 + 1∕2
|     (                -          )
|||  3 :(l + 1∕2,i + 1∕2,jT,l+1∕2 + 1∕2)
||(  4 : l + 1∕2,i + 1∕2,j-    - 1∕2
                       T,l+1∕2
(5.550)

as indicated in Fig.5.9. Here jT,l+12- is the index that corresponds to the trapped/passing boundary ξ0 = -ξ0T , while jT,l+12+ corresponds to the symmetric boundary with respect to the axis ξ0 = 0, i.e. ξ0 = ξ0T .

Since g(0) is prescribed in the trapped domain, all the region may be removed from the calculations, and the reduction of the domain of integration in the momentum phase space leads to introduce a new matrix ^^M p(0) whose coefficients are defined as follows

   (0)                ---
M^^            ′    = M-(0)
   p,l+1 ∕2,i+1∕2,j +1∕2     p,l+1∕2,i+1∕2,j+1∕2
(5.551)

with j = j, when 0 j < jT,l+12-, and j = j - mξ0T,l+12, when jT,l+12+ < j nξ0. Here, mξ0T,l+12 = jT,l+12+ - jT,l+12- corresponds to the number of grid points removed in the pitch-angle direction, and with this definition, it is easy to cross-check that jT,l+12+ -jT,l+12′- = jT,l+12+ -jT,l+12--mξ0T,l+12 = 0. Since grid points 2 and 4 are not connected, the following condition applies

(
|| ^^ (0)        [         ]
|||{ M  p,l+1∕2,i-1∕2,j′T,l+1∕2-1∕2+1 = 0
  ^^ (0)        [         ]
|| M  p,l+1∕2,i+1∕2,j′T,l+1∕2-1∕2+1 = 0
|||( ^  (0)        [         ]
  M^ p,l+1∕2,i+3∕2,j′T,l+1∕2-1∕2+1 = 0
(5.552)

and conversely

(
|| ^^ (0)        [         ]
||| M  p,l+1∕2,i-1∕2,j′T,l+1∕2+1∕2-1 = 0
{ ^  (0)        [         ]
| M^ p,l+1∕2,i+1∕2,j′T,l+1∕2+1∕2-1 = 0
|||| ^  (0)        [         ]
( M^ p,l+1∕2,i+3∕2,j′T,l+1∕2+1∕2-1 = 0
(5.553)

where jT,l+12′- = jT,l+12+ = jT,l+12. As internal boundaries match already existing diagonals of the matrix Mp,l+12,i+12,j+12(0), ^^M p,l+12,i+12,j+12(0) remains a simple nine diagonal matrix, and is therefore less complex than the 15 diagonals matrix ^--
Mp,l+12,i+12,j+12(0) corresponding to the Fokker-Planck equation.

Internal boundaries for f^

Since no inversion is required for calculating the vector ^Wl+12,i+12,j+12(0), it is consequently evaluated at all grid points, including those corresponding to trapped electron domain. Consequently, the reduction along the pitch-angle direction that results from the condition g(0)(ψ,p,ξ0) = 0 is only performed after the calculation of ^Wl+12,i+12,j+12 over the full ξ0 grid. Once done, the prescription on the index number j that holds for the matrix conversion

---                    (0)
M--(0)             →  ^^M                          ′
   p,l+1∕2,i+1∕2,j+1∕2     l+1∕2,i+1∕2,j+1∕2p,l+1∕2,i+1∕2,j+1∕2
(5.554)

may be then applied in a similar way for ^
Wl+12,i+12,j+12, which leads to define a new vector ^^W p,l+12,i+12,j+12(0) whose size is reduced

                     (0)
^W (0)           →  ^^W             ′
  l+1 ∕2,i+1∕2,j+1∕2     p,l+1∕2,i+1∕2,j+1∕2
(5.555)

and finally the drift kinetic equation on the reduced grid is simply given by the relation

i′=∑i+1 j′′=∑j′+1  (0)                                    (0)
            ^^M p,l+1∕2,i+1∕2,j′′+1∕2g (0)(k)  ′    ′′    = ^^W p,l+1∕2,i+1∕2,j′+1∕2
i′=i-1 j′′=j′-1                   0,l+1∕2,i+1∕2,j+1∕2
(5.556)

where all the trapped electron domain is removed.

External boundaries

The problem of external boundaries discussed in Sec. 5.7.1 for the zero-order Fokker-Planck equation may be applied in a straightforward manner to the first-order drift kinetic ones, since it may be expressed in a similar conservative form. Consequently, if the zero-order Fokker-Planck equation conserves the total number of particles without specific conditions, the solution g may be found without additional constraints at the boundaries of the integration domain. Conversely, if Dirichlet conditions are considered for the Fokker-Planck equation, like enforcing the Maxwellian solution at p = 0, similar and consistent conditions must be also applied for the drift kinetic equation.