5.4 Zero order term: the Fokker-Planck equation

5.4.1 Momentum dynamics

Fokker-Planck equation In this section, only the electron dynamics in momentum space is discussed, at fixed ψl+12. Hence

       (0)||
^q-p2∂f---||
B0    ∂p |l+12,i+12,j+12(k+1) =  ^q
--l+1-∕2--
B0,l+1 ∕2  (      )|
∂  p2S(p0) ||
----------||
    ∂p    |l+12,i+12,j+12(k+1)
--^ql+1∕2--
B0,l+1∕2---pi+1∕2---
λl+1∕2,j+1∕2×
 ∂  (∘ ------  (0)) ||
----   1 - ξ20λSξ   ||
∂ξ0l+12,i+12,j+12(k+1) (5.43)

where

(                           ----
{   (0)      (0)∂f(00)     (0)√-1--ξ02∂f0(0)    (0) (0)
   Sp  = - D pp ∂p  + Dpξ √ p---∂ξ0 + F p f0
(  S(0)= - D (0)∂f(00) + D (0)--1--ξ02∂f0(0)+ F (0)f(0)
    ξ        ξp ∂p     ξξ   p   ∂ξ0     ξ  0
(5.44)

Here, diffusion cross-terms between momentum and configuration spaces are neglected, i.e. D(0) = Dψp(0) = Dξψ(0) = Dψξ(0) = 0. By definition, the discretization procedure must preserve the conservative nature of the momentum dynamics, as discussed in Sec. 3.5.1, and therefore, careful attention must be paid how to proceed from Eq. 5.4.1, in particular when diffusion or convection coefficients vary strongly on a grid step. Moreover, boundary conditions on flux grid must be as much as possible naturaly satisfied by the discrete form of the Fokker-Planck equation. Indeed, cross-derivatives never satisfy this condition simultaneously along the momentum and pitch-angle directions, and consequently additional external boundary conditions must be added to enforce this condition.

There are several ways to perform the discretization of the cross-derivatives. Since D(0) and Dξp(0) terms do not contribute to the Maxwellian solution when no external perturbation is applied, it is not necessary to perform an interpolation between full and half grids for cross-derivatives in order to ensure a correct numerical flux balance in momentum space. In that case, the usual procedure is simply to center differences, as done in this section. However, there is a much more complex approach, but also more consistent one with respect to the use two grids, one for the fluxes and the other for the distribution, which is also presented in Appendix F. However, because of its complexity, it has not been yet implemented in the code even if this approach is in principle better designed for non-uniform grids with strong localized variations of D(0) and Dξp(0).

The starting point of the discretization procedure is the following expressions

  (      )
∂  p2Sp(0)
----------
    ∂p =  ∂
---
∂p(                         )
         ∂f (0)
  - p2D (p0)p--0- + p2F(p0)f (00)
           ∂p
+ ∘ ------
  1- ξ20-∂-
∂p(      )
  pD(p0ξ)   (0)
∂f-0-
 ∂ξ0
+ ∘ ------
  1- ξ20pD(0)∂2f(0)
∂p∂0ξ-
     0 (5.45)

 ( ∘ ----2-  (0))
∂----1--ξ0λS-ξ---
       ∂ξ0 = -∂--
∂ξ0(
   (0)1---ξ20  ∂f(00)-
 D ξξ   p  λ ∂ ξ0
  ∘ ------        )
+   1 - ξ2λF (0)f(0)
         0  ξ   0
--∂--
∂ξ0( ∘ ------     )
    1- ξ20λD (0)
            ξp  (0)
∂f0--
 ∂p
-∘  ------
   1- ξ20λDξp(0)∂2f(0)
---0--
∂ξ0∂p (5.46)

where cross-derivatives terms have been developped directly from analytical formulas, and considered in separately. Here, it is assumed in an implicit manner that derivatives of pD(0) and ∘ ------
  1 - ξ20λDξp(0) exists.

Hence

        (0)|(k+1)                    m=8
-^q- 2∂f0--||                 -^ql+1∕2--∑    [m ]
B0 p   ∂t ||              =  B0,l+1∕2    T
           l+1∕2,i+1∕2,j+1∕2          m=1
(5.47)

with

                              (0)||(k+1)
      - p2  D(0)            ∂f0-|             + p2  F(0)          f (0)(k+1)
 [1]  ---i+1--pp,l+1∕2,i+1,j+1∕2-∂p-|l+1∕2,i+1,j+1∕2----i+1--p,l+1∕2,i+1,j+1∕2-0,l+1∕2,i+1,j+1∕2
T   =                                   Δpi+1∕2
(5.48)

                        (0)||(k+1)
      p2iD (0pp),l+1∕2,i,j+1∕2 ∂f0∂p-||          - p2iFp(0,)l+1∕2,i,j+1∕2f(00),l(+k1+∕21,)i,j+1∕2
T[2] = ---------------------l+1∕2,i,j+1∕2------------------------------
                                 Δpi+1∕2
(5.49)

                      (      )
        ∘ -----------∂  pD (0) ||                 (0)||(k+1)
T [3] = +  1- ξ2      -----pξ--||               ∂f0-||
              0,j+1∕2    ∂p    ||                ∂ξ |
                               l+1∕2,i+1∕2,j+1∕2      l+1∕2,i+1∕2,j+1∕2
(5.50)

                                                  |(k+1)
  [4]    ∘ -----2-----       (0)              ∂2f0(0)||
T   = +   1 - ξ0,j+1∕2pi+1∕2D pξ,l+1∕2,i+1∕2,j+1∕2 ∂p∂ξ ||
                                                   l+1∕2,i+1∕2,j+1∕2
(5.51)

T[5] = -   p
-l+1i+∕12∕,j2+1∕2
λ⌊                                          |
    (0)            (     2   )  l+1∕2,j+1 ∂f(00)||(k+1)
|| Dξξ,l+1∕2,i+1∕2,j+1 1 - ξ0,j+1  λ         ∂ξ |
|| ------------------------------------------l+1∕2,i+1∕2,j+1-
⌈                      pi+1∕2Δ ξj+1∕2
+      ∘ ---------          (0)            (0)(k+1 )      ⌋
pi+1∕2  1 - ξ20,j+1λl+1∕2,j+1Fξ,l+1∕2,i+1∕2,j+1f 0,l+1∕2,i+1∕2,j+1
------------------------------------------------------⌉
                       Δ ξj+1∕2 (5.52)

T[6] = ---pi+1∕2---
λl+1∕2,j+1∕2⌊
    (0)          (       )        ∂f(0)||(k+1 )
| D ξξ,l+1∕2,i+1∕2,j  1- ξ20,j  λl+1 ∕2,j-∂0ξ-||
|| ------------------------------------l+1∕2,i+1∕2,j-
|⌈                  pi+1∕2Δ ξj+1∕2
+      ∘ -------                                ⌋
pi+1∕2  1 - ξ20,jλl+1∕2,jF(0)        f (0)(k+1)
----------------------ξ,l+1∕2,i+1∕2,j-0,l+1∕2,i+1∕2,j⌉
                   Δ ξj+1∕2 (5.53)
        p            (∘ ------     ) ||                 (0)||(k+1)
T[7] = ---i+1∕2----∂--   1 - ξ20λD (0)  |              ∂f0--||
      λl+1∕2,j+1∕2 ∂ξ0             ξp  |l+1∕2,i+1∕2,j+1 ∕2  ∂p  |l+1∕2,i+1∕2,j+1∕2
(5.54)

         p       ∘ -----------                              2 (0)||(k+1)
T [8] = ---i+1∕2--- 1 - ξ2     λl+1∕2,j+1∕2D (0)              ∂--f0-||
       λl+1∕2,j+1∕2       0,j+1∕2            ξp,l+1∕2,i+1∕2,j+1∕2∂ ξ0∂p|l+1∕2,i+1∕2,j+1∕2
(5.55)

Discrete expressions of the partial derivatives are,

  (0)||(k+1)            (0)(k+1)             (0)(k+1)
∂f0--||            =  f0,l+1∕2,i+3∕2,j+1∕2 --f0,l+1∕2,i+1∕2,j+1∕2
 ∂p  |                             Δpi+1
     l+1∕2,i+1,j+1∕2
(5.56)

     |
∂f(0)||(k+1)            f0(0,)l+(k1+∕12),i+3∕2,j+1∕2 - f(00,l)(+k1+∕12),i-1∕2,j+1∕2
--0--|              = -----------------------------------
 ∂p  |l+1∕2,i+1∕2,j+1∕2               Δpi+1 + Δpi
(5.57)

     |
∂f(0)||(k+1)         f(00,)l+(k1+∕12),i+1∕2,j+1∕2 - f(00,)l+(k1+∕12),i-1∕2,j+1∕2
--0--|          =  -----------------------------------
 ∂p  |l+1∕2,i,j+1∕2                  Δpi
(5.58)

     |
∂f(0)|(k+1)           f(0)(k+1)         - f (0)(k+1)
--0--||            =  -0,l+1∕2,i+1∕2,j+3∕2---0,l+1∕2,i+1∕2,j+1∕2-
 ∂ξ0 |l+1∕2,i+1∕2,j+1                  Δξ0,j+1
(5.59)

     |
∂f(0)||(k+1)            f0(0,)l+(k1+∕12),i+1∕2,j+3∕2 - f(00,l)(+k1+∕12),i+1∕2,j- 1∕2
--0--|              = -----------------------------------
 ∂ξ0 |l+1∕2,i+1∕2,j+1∕2              Δξ0,j+1 + Δ ξ0,j
(5.60)

     |
∂f(0)||(k+1)         f(00,)l+(k1+∕12),i+1∕2,j+1∕2 - f(00,)l+(k1+∕12),i+1∕2,j-1∕2
--0--|          =  -----------------------------------
 ∂ξ0 |l+1∕2,i+1∕2,j                  Δξ0,j
(5.61)

and cross-derivatives

      |
∂2f0(0)||
∂p ∂ξ0||l+12,i+12,j+12(k+1) =       |
∂2f(00)||
∂ξ0∂p ||l+12,i+12,j+12(k+1)
= f(00,)l+(k1+∕12),i+3∕2,j+3∕2 + f(00,l)(+k1+∕12),i-1∕2,j-1∕2
-----------------------------------
  (Δpi+1 + Δpi )(Δξ0,j+1 + Δ ξ0,j)
-f (0)(k+1)         + f(0)(k+1)
-0,l+1∕2,i+3∕2,j-1∕2----0,l+1∕2,i--1∕2,j+3∕2
   (Δpi+1 + Δpi) (Δ ξ0,j+1 + Δξ0,j) (5.62)

while other derivatives become in discrete form

  (     )|
∂  pD (0p)ξ ||                 pi+1D (0pξ),l+1∕2,i+1,j+1∕2 - piD (0p)ξ,l+1∕2,i,j+1∕2
---------||               = --------------------------------------
    ∂p   |l+1∕2,i+1∕2,j+1∕2                  Δpi+1 ∕2
(5.63)

and

   ( ∘ ------     )|
-∂--   1- ξ2λD (0) ||
∂ξ0        0   ξp  |l+12,i+12,j+12
= ∘ ----2---- l+1∕2,j+1  (0)
--1--ξ0,j+1-λ-------D-ξp,l+1∕2,i+1∕2,j+1-
             Δ ξ0,j+1∕2
-∘ -------
  1- ξ20,jλl+1∕2,jD (0ξp),l+1∕2,i+1∕2,j
------------------------------
          Δ ξ0,j+1∕2 (5.64)

By definition, cross-derivatives are symmetric. Furthermore, the derivative

   ( ∘ ------     )
-∂--   1 - ξ2λD (0)
∂ξ0         0   ξp
(5.65)

must be taken on the flux grid in order to fullfil naturally boundary condition at |ξ0| = 1 and avoid to specify Dξp(0) at this momentum space location. It is a crucial point, especially for the Lower Hybrid and the Ohmic current drive problems, since this domain of the momentum space plays a very important role for the determination of the plasma current level.

Since the distribution function is defined on the half grid, while fluxes on the full grid, it is necessary to interpolate, because in some derivatives, values of f0(0) are taken on the full grid. In a general way, whatever the detailed value of the weighting factor δ(0) which will be discussed in the Sec. 5.4.3, one may write for the terms proportional to Dpp(0) and Fp(0),

f0,l+12,i+1,j+12(0)(k+1) = (                  )
 1- δ(0)
     p,l+1∕2,i+1,j+1∕2f0,l+12,i+32,j+12(0)(k+1)
+ δp,l+12,i+1,j+12(0)f 0,l+12,i+12,j+12(0)(k+1) (5.66)

f0,l+12,i,j+12(0)(k+1) = (    (0)         )
 1- δp,l+1∕2,i,j+1∕2f0,l+12,i+12,j+12(0)(k+1)
+ δp,l+12,i,j+12(0)f 0,l+12,i-12,j+12(0)(k+1) (5.67)

and for terms proportional to Dξξ(0) and Fξ(0)

f0,i+12,j+1(0)(k+1) = (                  )
 1- δ(ξ0,)l+1∕2,i+1∕2,j+1f0,l+12,i+12,j+32(0)(k+1)
+ δξ,l+12,i+12,j+1(0)f 0,l+12,i+12,j+12(0)(k+1) (5.68)

f0,i+12,j(0)(k+1) = (                )
 1- δ(0)
     ξ,l+1∕2,i+1∕2,jf0,l+12,i+12,j+12(0)(k+1) (5.69)
+ δξ,l+12,i+12,j(0)f 0,l+12,i+12,j-12(0)(k+1) (5.70)

Gathering all terms, corresponding matrix coefficients for the zero order Fokker-Planck equation may be expressed as

        (0)||(k+1)                    i′=∑i+1 j′=∑j+1---
-^q-p2∂f---||              =  -^ql+1∕2--          M--(0)    ′    ′    f(0)(k+1 )′     ′
B0    ∂p  |l+1∕2,i+1∕2,j+1∕2   B0,l+1∕2i′=i-1 j′=j-1   p,l+1∕2,i+1 ∕2,j+1∕2 0,l+1 ∕2,i+1∕2,j+1∕2
(5.71)

where

Mp,l+12,i+32,j+32(0) = ---pi+1∕2----
Δpi+1 + Δpi ∘ -----------
   1- ξ2
-------0,j+1∕2--
Δξ0,j+1 + Δ ξ0,jDpξ,l+12,i+12,j+12(0)
+ ----pi+1∕2---
Δpi+1 +  Δpi ∘ -----2-----
---1---ξ0,j+1∕2-
Δ ξ0,j+1 + Δ ξ0,jDξp,l+12,i+12,j+12(0) (5.72)

Mp,l+12,i+12,j+32(0) =  p
--i+1---
Δpi+1∕2 ∘ -----------
   1 - ξ20,j+1∕2
---------------
Δ ξ0,j+1 + Δξ0,jDpξ,l+12,i+1,j+12(0)
----pi---
Δpi+1 ∕2 ∘ -----------
   1-  ξ2
-------0,j+1-∕2--
Δ ξ0,j+1 + Δ ξ0,jDpξ,l+12,i,j+12(0)
-        2
----1--ξ0,j+1----
Δ ξ0,j+1∕2Δ ξ0,j+1  l+1∕2,j+1
-λ---------
λl+1∕2,j+1∕2Dξξ,l+12,i+12,j+1(0)
- pi+12∘ -----2---
--1--ξ0,j+1-
 Δ ξ0,j+1∕2(     (0)           )
 1 - δξ,l+1∕2,i+1∕2,j+1×
  l+1∕2,j+1
-λ---------
λl+1∕2,j+1 ∕2Fξ,l+12,i+12,j+1(0) (5.73)

Mp,l+12,i-12,j+32(0) = -   pi+1∕2
------------
Δpi+1 + Δpi ∘ -----------
   1 - ξ20,j+1∕2
---------------
Δ ξ0,j+1 + Δξ0,jDpξ,l+12,i+12,j+12(0)
-----pi+1∕2---
Δpi+1 +  Δpi ∘ -----------
   1 - ξ2
--------0,j+1∕2-
Δ ξ0,j+1 + Δ ξ0,jDξp,l+12,i+12,j+12(0) (5.74)

Mp,l+12,i+32,j+12(0) = -----p2i+1-----
Δpi+1Δpi+1 ∕2Dpp,l+12,i+1,j+12(0)
+    pi+1∕2
Δp----+-Δp--
   i+1      i∘ ---------
  1 - ξ20,j+1
-Δ-ξ-------
    0,j+1∕2×
-λl+1∕2,j+1-
λl+1∕2,j+1∕2Dξp,l+12,i+12,j+1(0)
----pi+1∕2---
Δpi+1 + Δpi∘ -----2-
--1---ξ0,j
Δ ξ0,j+1∕2×
   l+1∕2,j
--λ--------
λl+1∕2,j+1∕2Dξp,l+12,i+12,j(0)
+   p2i+1
Δp------
   i+1∕2(     (0)           )
 1-  δp,l+1∕2,i+1,j+1∕2Fp,l+12,i+1,j+12(0) (5.75)

Mp,i+12,j+12(0) =      2
----pi+1-----
Δpi+1∕2Δpi+1Dpp,l+12,i+1,j+12(0)
+    2
--pi+1--
Δpi+1 ∕2Fp,l+12,i+1,j+12δp,l+12,i+1,j+12(0)
+      p2
------i----
Δpi+1 ∕2ΔpiDpp,l+12,i,j+12(0)
----p2i---
Δpi+1 ∕2(     (0)         )
 1 - δp,l+1∕2,i,j+1∕2Fp,l+12,i,j+12(0)
+         2
----1--ξ0,j+1----
Δ ξ0,j+1∕2Δ ξ0,j+1  l+1∕2,j+1
-λ---------
λl+1∕2,j+1∕2Dξξ,l+12,i+12,j+1(0)
- pi+12∘ ---------
  1- ξ20,j+1
-Δ-ξ-------
    0,j+1∕2δξ,l+12,i+12,j+1(0)×
-λl+1∕2,j+1--
λl+1∕2,j+1 ∕2Fξ,l+12,i+12,j+1(0)
+     1- ξ2
--------0,j----
Δ ξ0,jΔ ξ0,j+1∕2  λl+1∕2,j
-l+1∕2,j+1∕2
λDξξ,l+12,i+12,j(0)
+ pi+12∘ -------
  1- ξ2
------0,j
Δ ξ0,j+1∕2(                )
 1 - δ(0)
      ξ,l+1∕2,i+1∕2,j×
   l+1 ∕2,j
--λ--------
λl+1∕2,j+1 ∕2Fξ,l+12,i+12,j(0) (5.76)

Mp,l+12,i-12,j+12(0) = -     2
----pi-----
Δpi+1∕2ΔpiDpp,l+12,i,j+12(0)
-   pi+1∕2
Δp----+-Δp--
   i+1      i∘ ---------
  1- ξ20,j+1
-Δ-ξ-------
    0,j+1∕2×
-λl+1∕2,j+1-
λl+1∕2,j+1∕2Dξp,l+12,i+12,j+1(0)
+ ---pi+1∕2----
Δpi+1 + Δpi∘ ----2--
--1--ξ0,j
Δ ξ0,j+1∕2×
   l+1∕2,j
--λ--------
λl+1∕2,j+1∕2Dξp,l+12,i+12,j(0)
---p2i---
Δp
   i+1∕2δp,i,j+12(0)F p,l+12,i,j+12(0) (5.77)

Mp,l+12,i+32,j-12(0) = ----pi+1∕2---
Δpi+1 + Δpi ∘ -----2-----
---1---ξ0,j+1∕2-
Δ ξ0,j+1 + Δξ0,jDpξ,l+12,i+12,j+12(0)
-    pi+1∕2
------------
Δpi+1 +  Δpi ∘ -----------
   1 - ξ20,j+1∕2
---------------
Δ ξ0,j+1 + Δ ξ0,jDξp,l+12,i+12,j+12(0) (5.78)

Mp,l+12,i+12,j-12(0) = --pi+1---
Δpi+1∕2 ∘ -----------
   1 - ξ2
--------0,j+1∕2-
Δ ξ0,j+1 + Δξ0,jDpξ,l+12,i+1,j+12(0)
+ ---pi---
Δp
   i+1∕2∘ -----2-----
--1---ξ0,j+1∕2--
Δξ0,j+1 + Δ ξ0,jDpξ,l+12,i,j+12(0)
-        2
---1---ξ0,j----
Δ ξ0,j+1∕2Δ ξ0,j-λl+1∕2,j---
λl+1∕2,j+1∕2Dξξ,l+12,i+12,j(0)
+ pi+12∘ -------
  1 - ξ20,j
---------
Δ ξ0,j+1∕2δξ,l+12,i+12,j(0)×
--λl+1∕2,j--
λl+1∕2,j+1∕2Fξ,l+12,i+12,j(0) (5.79)

Mp,l+12,i-12,j-12(0) =    p
----i+1∕2----
Δpi+1 + Δpi ∘ -----------
   1- ξ20,j+1∕2
---------------
Δξ0,j+1 + Δ ξ0,jDpξ,l+12,i+12,j+12(0)
+ ----pi+1∕2---
Δpi+1 +  Δpi ∘ -----------
   1 - ξ2
--------0,j+1∕2-
Δ ξ0,j+1 + Δ ξ0,jDξp,l+12,i+12,j+12(0) (5.80)

For each coefficient, identical diffusion and convection terms appear, which must be evaluated for all physical processes that take place in the plasma (RF, Ohmic electric field, ...),

       (|    (0)
       |||  D pp,l+1∕2,i+1,j+1∕2
       ||||  D (0p)p,l+1∕2,i,j+1∕2
       ||||    (0)
       |||  D pξ,l+1∕2,i+1,j+1∕2
       ||||  D (0ξ)p,l+1∕2,i+1∕2,j+1
--     ||{    (0)
D (0p) →    D pξ,l+1∕2,i+1∕2,j+1∕2
       |||  D (0ξ)p,l+1∕2,i+1∕2,j+1∕2
       ||||  D (0)
       |||    p(0ξ,)l+1∕2,i,j+1∕2
       ||||  D ξp,l+1∕2,i+1∕2,j
       ||||  D (0)
       |||    ξ(0ξ,)l+1∕2,i+1∕2,j+1
       (  D ξξ,l+1∕2,i+1∕2,j
(5.81)

and

       (
       | F (0)
       ||||   p(,l+0)1 ∕2,i+1,j+1 ∕2
-(0)   { F p,l+1 ∕2,i,j+1∕2
Fp  →  | F (0)
       ||||   ξ(,l+0)1 ∕2,i+1∕2,j+1
       ( F ξ,l+1 ∕2,i+1∕2,j
(5.82)

Knock-on source term The knock-on source term must be evaluated at each radial position ψl+12, and also at each momentum and pitch-angle positions (p    ,ξ      )
  i+1∕2 0,j+1∕2in momentum space. However, the poloidal position of the birth of the secondary electron plays a crucial role in the calculations, that significantly increases the difficulty of the problem.

As discussed in Sec. 7.2,

       ∫t         -                      ⌊              ⌋
S (0)=  --∞-⟨Γ R-⟩V-dt1---1----B0----|ξ0|---⌈ |-1-|--r--1--⌉
  R       π ln Λ†   p γ(γ - 1)λ ^q(1 - ξ2)2  ||^ψ ⋅^r|| BP |Ψ′|
                                      0                  θ*
(5.83)

where γ = ∘ ---------
  1 + β†2p2
       th, ξ*2 =   ---------------
∘ (γ - 1)∕ (γ + 1) and the poloidal angle θ* is defined by the relation

      *    1-  ξ*2          2
Ψ (ψ,θ ) = 1---ξ2-=  ------(-----2)-
                0    (1 + γ) 1 - ξ0
(5.84)

.On the discrete mesh, the source term SR(0) at grid point (l + 1 ∕2,i+ 1∕2,j + 1∕2) becomes

                       ∫t         -||                                         |      |
 (0)                   - ∞ ⟨Γ R⟩V dt|l+1∕2 1           1          B0,l+1∕2     |ξ0,j+1∕2|
SR,l+1∕2,i+1∕2,j+1∕2  =  ----------†-------------------(---------)-----------(-----------)2
                           πlnΛ  Rp     pi+1∕2γi+1∕2  γi+1∕2 - 1 λl+1∕2^ql+1∕2 1 - ξ20,j+1∕2
                        ⌊             ⌋
                            r   1   1
                      × ⌈ ||^--||B-- |Ψ-′|⌉                                            (5.85)
                          |ψ ⋅^r|  P      θ*
                                         l+1∕2,i+1∕2,j+1∕2
where θl+12,i+12,j+12* is determined from the relation
  (        *             )              2
Ψ  ψl+1∕2,θl+1∕2,i+1∕2,j+1∕2 =  (---------)(-----2-----)-
                              1+ γi+1∕2  1 - ξ0,j+1∕2
(5.86)

on each flux surface ψl+12. Here

|  |                           (                     )
||Ψ ′||             =  ---1---dB-  ψ     ,θ*
    θ*l+1∕2,i+1∕2,j+1∕2   B0,l+1∕2 dθ   l+1∕2  l+1∕2,i+1∕2,j+1∕2
(5.87)

For numerical convenience and for avoiding singularities at boundaries of the integration domain, the source term SR,l+12,i+12,j+12(0) must be multiplied by a part of the Jacobian J, i.e.JψJp, and matrix coefficients in the Fokker-Planck equations are

                                     -          |
                                   ∫ t  ⟨Γ ⟩  dt|                              |      |
-^ql+1-∕2--2     (0)                  ---∞---R-V---|l+1∕2pi+1∕2--------1-----------|ξ0,j+1∕2|---
B0,l+1∕2pi+1∕2SR,l+1∕2,i+1∕2,j+1∕2 =        πlnΛ †Rp     λl+1∕2γ     (γ     - 1)(     2     )2
                                                            i+1∕2  i+1∕2      1 - ξ0,j+1∕2
                                     ⌊             ⌋
                                     ⌈ |-r-|-1- -1-⌉
                                   ×   |^  |BP  |Ψ ′|                                 (5.88)
                                       |ψ ⋅^r|         θ*l+1∕2,i+1∕2,j+1∕2

5.4.2 Spatial dynamics

In this section, only the electron dynamics in configuration space is discussed, at fixed pi+12 and ξ0,j+12,

           (0)||(k+1)
    -^q-p2∂f---||
    B0    ∂ψ  |l+1∕2,i+1 ∕2,j+1∕2
       2
=   --pi+1∕2---×
    λl+1∕2,j+1∕2
     ∂ (    B        )||(k+1)
    ---  R0^q--P0λS (0ψ) ||                              (5.89)
    ∂ψ       B0        l+1∕2,i+1∕2,j+1∕2
where
 (0)      (0)      ∂f0(0)    (0) (0)
Sψ  = - D ψψ|∇ ψ|0 ∂ψ   + Fψ f0
(5.90)

since cross-terms between momentum and configuration spaces are neglected, i.e. D(0) = Dψp(0) = Dξψ(0) = Dψξ(0) = 0.

Therefore,

       (0)||(k+1)                2      m=4
q^p2 ∂f--||               = --p-i+1∕2---∑   T[m]
B0    ∂ψ |                 λl+1∕2,j+1∕2 m=1
          l+1∕2,i+1∕2,j+1∕2
(5.91)

with

                           [                         ]
                                      B2
T[1] =   - D (ψ0)ψ,l+1,i+1∕2,j+1∕2 R20,l+1^ql+1-P-0,l+1-λl+1,j+1∕2 ×
                                      B0,l+1
           (0)||(k+1)
         ∂f0--||            ∕Δ ψl+1∕2                            (5.92)
          ∂ψ  |l+1,i+1∕2,j+1∕2
                         [                         ]
  [2]       (0)                      BP-0,l+1 l+1,j+1∕2
T     =  F ψ,l+1,i+1∕2,j+1∕2  R0,l+1^ql+1 B0,l+1 λ         ×
          (0)(k+1)
         f0,l+1,i+1∕2,j+1∕2∕Δψl+1∕2                               (5.93)
                          [     B2          ]
T [3] =   +D (0)            R20,l^ql--P0,lλl,j+1∕2 ×
            ψψ,l,i+1∕2,j+1∕2        B0,l
            (0)||(k+1)
         ∂f-0-|
          ∂ ψ ||           ∕Δψl+1∕2                         (5.94)
               l,i+1 ∕2,j+1∕2
  [4]        (0)         [     BP 0,l l,j+1∕2]
T    =   - F ψ,l,i+1∕2,j+1∕2 R0,lq^l-B--λ       ×
                                0,l
         f(00,l)(,ik++11∕)2,j+1∕2∕Δ ψl+1∕2                            (5.95)
and discrete expressions of the partial derivatives are,
  (0)||(k+1)           f(0)(k+1)         - f (0)(k+1)
∂f0--||            =  -0,l+3∕2,i+1∕2,j+1∕2---0,l+1∕2,i+1∕2,j+1∕2-
 ∂ψ  |l+1,i+1∕2,j+1∕2                 Δ ψl+1
(5.96)

  (0)||(k+1)         f(0)(k+1)         - f(0)(k+1)
∂f0--||          =  -0,l+1∕2,i+1∕2,j+1∕2---0,l-1∕2,i+1∕2,j+1∕2-
 ∂ψ  |l,i+1∕2,j+1∕2                  Δ ψl
(5.97)

As for the dynamics in momentum space, interpolation between full and half grids must be performed, since some values of the distribution function f0(0) must be determined on the flux grid. Therefore

 (0)(k+1)            (     (0)           )  (0)(k+1)
f0,l+1,i+1∕2,j+1∕2  =    1 - δψ,l+1,i+1∕2,j+1∕2  f0,l+3∕2,i+1∕2,j+1∕2
                      (0)            (0)(k+1)
                    +δψ,l+1,i+1 ∕2,j+1∕2f0,l+1∕2,i+1∕2,j+1∕2            (5.98)
 (0)(k+1)          (     (0)         )  (0)(k+1)
f0,l,i+1∕2,j+1∕2  =    1 - δψ,l,i+1∕2,j+1∕2  f0,l+1∕2,i+1∕2,j+1∕2
                    (0)          (0)(k+1)
                  +δψ,l,i+1∕2,j+1∕2f0,l-1∕2,i+1∕2,j+1 ∕2              (5.99)

Gathering all terms, matrix coefficients for the zero order Fokker-Planck equation, according to the relation,

             |
 ^q(ψ)   ∂f (0)||(k+1 )                 p2i+1∕2
------p2-----|                =  --l+1∕2,j+1∕2 ×
B0 (ψ)   ∂ ψ |l+1 ∕2,i+1∕2,j+1∕2     λ
                                 l′=l+1---
                                  ∑   M--(0)′             f(0)(k+1 )
                                  ′      ψ,l+1∕2,i+1∕2,j+1∕2 0,l′+1∕2,i+1∕2,j+1∕2
                                 l=l-1
                                                                       (5.100)
are

                             (0)
---(0)                    --α-l+1,j+1-∕2---              (0)
M  ψ,l+3∕2,i+1∕2,j+1∕2  =  - Δ ψl+1∕2Δψl+1 R0,l+1BP 0,l+1D ψψ,l+1,i+1∕2,j+1∕2
                           (0)
                         α-l+1,j+1∕2  (0)            (     (0)           )
                       +  Δ ψ     F ψ,l+1,i+1∕2,j+1∕2 1 - δψ,l+1,i+1∕2,j+1∕2(5.101)
                             l+1∕2
---                        α(0)
M-(0)              =   + ---l+1,j+1∕2--R0,l+1BP 0,l+1D (0)
  ψ,l+1∕2,i+1∕2,j+1∕2       Δ ψl+1∕2Δ ψl+1              ψψ,l+1,i+1∕2,j+1∕2
                          (0)
                       + αl+1,j+1∕2F (0)           δ(0)
                          Δψl+1∕2  ψ,l+1,i+1∕2,j+1∕2 ψ,l+1,i+1∕2,j+1∕2
                            (0)
                         --αl,j+1∕2---         (0)
                       + Δ ψl+1∕2Δ ψlR0,lBP0,lD ψψ,l,i+1∕2,j+1∕2
                          (0)
                         αl,j+1∕2  (0)          (     (0)         )
                       - Δ-ψ----F ψ,l,i+1∕2,j+1∕2 1 - δψ,l,i+1∕2,j+1∕2     (5.102)
                            l+1∕2
---                        α(0)
M (ψ0,)l- 1∕2,i+1∕2,j+1∕2  =  - ---l,j+1∕2--R0,lBP 0,lD (0)
                         Δ ψl+1∕2Δ ψl          ψψ,l,i+1∕2,j+1∕2
                           (0)
                       - α-l,j+1∕2-F(0)         δ(0)               (5.103)
                         Δ ψl+1∕2  ψ,l,i+1∕2,j+1∕2 ψ,l,i+1∕2,j+1∕2
with
α (0)    = R  ^q BP-0,lλl,j+1∕2
  l,j+1∕2    0,ll B0,l
(5.104)

 (0)                 BP-0,l+1 l+1,j+1∕2
αl+1,j+1∕2 = R0,l+1^ql+1 B0,l+1 λ
(5.105)

As expected, spatial transport corresponds to a simple tridiagonal matrix.

5.4.3 Grid interpolation

Momentum grid interpolation The usual method for determining interpolation coefficients δp,l+12,i+1,j+12(0), δp,l+12,i,j+12(0), δξ,l+12,i+12,j+1(0) and δξ,l+12,i+12,j(0) so that the distribution function f0(0) may be estimated on the full grid (flux grid) from its value on the half grid (distribution grid) is to satisfy the constraint that numerically, the stationary solution limt+f0(0) = fM is an exact Maxwellian whithout any external accelerating mechanism (RF wave or Ohmic electric field). In this case, under the influence of collisional slowing-down and pitch-angle only, coefficients D(0) = Dξp(0) = 0, and

    |                                   f(0)(∞ )          - f(0)(∞)
S (0)||(∞ )           =  - D(0)            -0,l+1∕2,i+3-∕2,j+1∕2----0,l+1-∕2,i+1∕2,j+1∕2
 p  l+1∕2,i+1,j+1∕2        pp,l+1∕2,i+1,j+1∕2               Δpi+1
                      +F (0)           f(0)(∞ )                           (5.106)
                         p,l+1∕2,i+1,j+1∕2 0,l+1∕2,i+1,j+1∕2
    |                                (0)(∞)              (0)(∞)
S (0)|(∞ )         =  - D(0)          f0,l+1∕2,i+1∕2,j+1∕2---f0,l+1∕2,i-1∕2,j+1∕2
  p |l+1∕2,i,j+1∕2        pp,l+1∕2,i,j+1∕2                Δpi
                       (0)          (0)(∞ )
                    +F p,l+1∕2,i,j+1∕2f0,l+1∕2,i,j+1∕2                       (5.107)
                                          --------- (0)(∞ )        (0)(∞ )
  (0)||(∞ )                  (0)            ∘      2   f0,i+1∕2,j+3∕2 --f0,i+1∕2,j+1∕2
S ξ |l+1∕2,i+1∕2,j+1  =  +D  ξξ,l+1∕2,i+1∕2,j+1  1 - ξ0,j+1       pi+1∕2Δ ξ0,j+1
                          (0)            (0)(∞)
                      +F ξ,l+1∕2,i+1∕2,j+1f0,l+1∕2,i+1∕2,j+1                    (5.108)
   |                               ∘ ------- (0)(∞)         (0)(∞)
S(0)||(∞ )         =  +D  (0)            1 - ξ2 f0,i+1∕2,j+1∕2---f0,i+1∕2,j-1∕2-
 ξ  l+1∕2,i+1∕2,j         ξξ,l+1∕2,i+1∕2,j       0,j        pi+1∕2Δ ξ0,j
                       (0)          (0)(∞)
                   +F ξ,l+1∕2,i+1∕2,jf0,l+1∕2,i+1∕2,j                       (5.109)
or
          |(∞ )                                (
Δpi+1 S (0p)||              =  - D (0)             f (0)(∞ )
           l+1∕2,i+1,j+1∕2         pp,l+1∕2,i+1,j+1∕2   0,l+)1∕2,i+3∕2,j+1∕2
                                 - f (0)(∞ )
                                   0,l+1∕2,i+1∕2,j+1∕2
                            + Δpi+1F (0)           f(0)(∞ )          (5.110)
                                     p,l+1 ∕2,i+1,j+1∕2 0,l+1∕2,i+1,j+1∕2
     (0)||(∞)                (0)           ( (0)(∞)              (0)(∞ )          )
Δpi Sp |l+1∕2,i,j+1∕2  =   - D pp,l+1∕2,i,j+1∕2 f0,l+1∕2,i+1∕2,j+1∕2 - f 0,l+1∕2,i-1∕2,j+1∕2
                              (0)          (0)(∞ )
                        +ΔpiF p,l+1∕2,i,j+1∕2f0,l+1∕2,i,j+1∕2                   (5.111)
              (0)||(∞ )                  (0)            ∘ -----2---
pi+1∕2Δ ξ0,j+1 S ξ |l+1∕2,i+1∕2,j+1 =  +D  ξξ,l+1∕2,i+1∕2,j+1  1-  ξ0,j+1 ×
                                  (  (0)(∞ )             (0)(∞ )         )
                                    f0,l+1∕2,i+1∕2,j+3∕2 - f0,l+1∕2,i+1∕2,j+1∕2
                                                  (0)            (0)(∞)
                                  +pi+1 ∕2Δ ξ0,j+1Fξ,l+1∕2,i+1∕2,j+1f0,l+1∕2,i+1∕2,j+1
                                                                         (5.112)
               |                              ∘  -------
p     Δξ   S(0)||(∞ )        =   +D (0)            1- ξ2  ×
 i+1∕2  0,j ξ  l+1∕2,i+1∕2,j        ξξ,l+1∕2,i+1 ∕2,j      0,j
                               ( (0)(∞ )             (0)(∞)          )
                                f0,l+1∕2,i+1∕2,j+1∕2 - f0,l+1∕2,i+1∕2,j-1∕2
                                            (0)          (0)(∞ )
                               +pi+1∕2Δ ξ0,jFξ,l+1∕2,i+1 ∕2,jf0,l+1∕2,i+1∕2,j (5.113)

Since this constraint corresponds to the relation

      ∂f(00)-        (0)
tl→im+∞   ∂t  = - ∇pS p  = 0
(5.114)

one can deduce,

   Δpi+1F (0)           f(0)(∞)
          p,l+1∕2,i+1,j+(1∕2 0,l+1 ∕2,i+1,j+1∕2                  )
=  D (0)             f(0)(∞ )          - f(0)(∞)                (5.115)
     pp,l+1∕2,i+1,j+1∕2   0,l+1∕2,i+3 ∕2,j+1∕2    0,l+1 ∕2,i+1∕2,j+1∕2
        (0)          (0)(∞)
   ΔpiF p,l+1∕2,i,j+1∕(2f0,l+1∕2,i,j+1∕2                      )
=  D (0)           f(0)(∞ )          - f(0)(∞)                 (5.116)
     pp,l+1∕2,i,j+1∕2   0,l+1∕2,i+1∕2,j+1∕2    0,l+1∕2,i-1∕2,j+1∕2
                  (0)            (0)(∞)
    pi+1 ∕2Δ ξ0,j+1Fξ,l+1∕∘2,i+1∕2,j+1f0,l(+1∕2,i+1∕2,j+1
=   - D (0)             1- ξ2     f(0)(∞)
       ξξ,l+1∕2,i+1∕2,j+1     ) 0,j+1   0,l+1∕2,i+1∕2,j+3∕2
        - f(0)(∞)                                           (5.117)
           0,l+1∕2,i+1∕2,j+1∕2
               (0)          (0)(∞ )
   pi+1∕2Δξ0,jF ξ,l+1 ∕2,i+1∕2,jf0,l+1∕2,i+1∕2,j
       (0)          ∘ ----2--( (0)(∞ )             (0)(∞)          )
=  - D ξξ,l+1∕2,i+1∕2,j  1- ξ0,j f0,l+1∕2,i+1∕2,j+1∕2 - f0,l+1∕2,i+1∕2,j-1∕2  (5.118)
and replacing the distribution functions on the full grid by their interpolated values, according to the relations
                    (                  )
f(00,l)(+k1+∕12,)i+1,j+1∕2 =    1 - δ(0p),l+1 ∕2,i+1,j+1 ∕2  f(00),l(+k1+∕21,)i+3∕2,j+1∕2

                    + δ(0p,)l+1∕2,i+1,j+1∕2f(00,l)(+k1+∕12,)i+1 ∕2,j+1∕2           (5.119)
 (0)(k+1)          (     (0)         )  (0)(k+1)
f0,l+1∕2,i,j+1∕2 =    1 - δp,l+1 ∕2,i,j+1∕2  f0,l+1∕2,i+1∕2,j+1∕2
                     (0)          (0)(k+1)
                  + δp,l+1∕2,i,j+1∕2f0,l+1∕2,i- 1∕2,j+1∕2             (5.120)
and
  (0)(k+1)        (     (0)           )  (0)(k+1)
f0,i+1∕2,j+1  =    1- δξ,l+1∕2,i+1∕2,j+1 f0,l+1∕2,i+1∕2,j+3∕2
                  (0)            (0)(k+1 )
                +δξ,l+1∕2,i+1∕2,j+1f 0,l+1 ∕2,i+1∕2,j+1∕2             (5.121)
  (0)(k+1)      (     (0)         )  (0)(k+1)
f0,i+1∕2,j  =    1- δξ,l+1∕2,i+1∕2,j f0,l+1∕2,i+1∕2,j+1∕2
                (0)          (0)(k+1)
              +δξ,l+1∕2,i+1∕2,jf0,l+1∕2,i+1∕2,j-1∕2               (5.122)
one finds,
           (0)           [(     (0)           ) (0)(k+1)
    Δpi+1Fp,l+1∕2,i+1,j+1∕2  1 - δp,l+1∕2,]i+1,j+1∕2 f0,l+1∕2,i+3∕2,j+1 ∕2
    +δ(0)           f(0)(k+1)
      p,l+1∕2,i+1,j+1∕2(0,l+1∕2,i+1∕2,j+1∕2                    )
=   D(0)             f(0)(∞ )          - f(0)(∞)                   (5.123)
     pp,l+1∕2,i+1,j+1∕2  0,l+1∕2,i+3∕2,j+1∕2    0,l+1∕2,i+1∕2,j+1∕2
         (0)         [(     (0)         )  (0)(k+1)
    ΔpiFp,l+1∕2,i,j+1∕2  1 - δp,l+1∕2,i,j+1∕2 f0,l+1∕2,i+1 ∕2,j+1∕2
       (0)          (0)(k+1)        ]
    + δp,l+1∕2,i,j+1∕2f0,l+1∕2,i- 1∕2,j+1∕2
     (0)          ( (0)(∞ )             (0)(∞)          )
=   Dpp,l+1∕2,i,j+1∕2 f0,l+1∕2,i+1∕2,j+1∕2 - f0,l+1∕2,i- 1∕2,j+1∕2        (5.124)
                               [(                  )
   pi+1∕2Δξ0,j+1F (ξ0,l)+1∕2,i+1∕2,j+1   1- δ(ξ0,)l+1∕2,i+1∕2,j+1 f0(0,)l+(k1+∕12),i+1∕2,j+3∕2
                                    ]
   + δ(ξ0,l)+1∕2,i+1 ∕2,j+1f (00,)l+(k1+∕12),i+1∕2,j+1∕2
                     ∘ ---------(
=  - D (0ξξ),l+1∕2,i+1∕2,j+1  1-  ξ02,j+1  f(00,l)+(∞1∕)2,i+1∕2,j+3∕2
                         )
        - f0(0,)l+(∞1∕)2,i+1∕2,j+1∕2                                         (5.125)
                          [(                 )
   p     Δξ  F (0)            1- δ(0)          f(0)(k+1)
    i+1∕2  0,j ξ,l+1 ∕2,i+1∕2,j       ξ,l]+1∕2,i+1∕2,j  0,l+1∕2,i+1∕2,j+1∕2
   + δ(0)        f (0)(k+1)
      ξ,l+1∕2,i+1 ∕2,j0,∘l+1∕2,i+1∕2(,j-1∕2                              )
=  - D (0)            1- ξ2   f(0)(∞ )          - f(0)(∞)            (5.126)
       ξξ,l+1∕2,i+1∕2,j      0,j  0,l+1∕2,i+1∕2,j+1∕2    0,l+1∕2,i+1∕2,j-1∕2

Hence, the ratios are

     (0)(∞ )
   f0,l+1∕2,i+3∕2,j+1∕2
     (0)(∞ )
   f0,l+1∕2,i+1∕2,j+1∕2
       D(0)            + Δpi+1F (0)          δ(0)
=  -----pp,l+1∕2,i+1,j+1∕2---------p,l+1∕2,i+1,j+1(∕2p,l+1∕2,i+1,j+1∕2--)  (5.127)
   D (p0p),l+1∕2,i+1,j+1∕2 - Δpi+1F (p0),l+1 ∕2,i+1,j+1 ∕2  1- δ(p0,)l+1∕2,i+1,j+1∕2
   f (0)(∞ )
   -0,l+1∕2,i+1∕2,j+1∕2
   f (0)(∞ )
    0,l+1∕2,i-1∕2,j+1∕2
       D(p0p),l+1∕2,i,j+1∕2 + ΔpiF (p0,l)+1∕2,i,j+1∕2δ(p0,)l+1∕2,i,j+1∕2
=  --(0)-----------------(0)----------(----(0)---------)      (5.128)
   D pp,l+1∕2,i,j+1∕2 - ΔpiF p,l+1 ∕2,i,j+1∕2 1- δp,l+1∕2,i,j+1∕2

   f (0)(∞ )
   --0,(0l+)1(∞∕2),i+1∕2,j+3∕2
   f 0,l+1∕2,i+1∕2,j+1∕2
          (0)           ∘ ---------                (0)            (0)
       - D ξξ,l+1∕2,i+1∕2,j+1 1 - ξ20,j+1 + pi+1∕2Δ ξ0,j+1Fξ,l+1∕2,i+1∕2,j+1 δξ,l+1∕2,i+1∕2,j+1
=  ----(0)------------∘------2-------------------(0)-----------(-----(0)-----------)
   - D ξξ,l+1∕2,i+1∕2,j+1  1 - ξ0,j+1 - pi+1∕2Δξ0,j+1F ξ,l+1∕2,i+1∕2,j+1 1-  δξ,l+1∕2,i+1∕2,j+1
                                                                            (5.129 )

    f(0)(∞ )
    -0,l+1∕2,i+1-∕2,j+1∕2-
    f(0)(∞ )
     0,l+1∕2,i+1 ∕2,j- 1∕2   ∘ -------
        - D (ξ0ξ),l+1∕2,i+1∕2,j 1 - ξ20,j + pi+1∕2Δ ξjF (ξ0,l)+1∕2,i+1∕2,jδ(ξ0,l)+1∕2,i+1∕2,j
=   ----------------∘---------------------------------(----------------)-
    - D(ξ0ξ),l+1∕2,i+1∕2,j  1- ξ20,j - pi+1∕2Δ ξ0,jFξ(0,l)+1∕2,i+1∕2,j 1 - δ(0ξ),l+1 ∕2,i+1∕2,j

                                                                      (5.130)
which may be recast in a compact form
 (0)(∞ )                     (0)(u)          (0)
f0,l+1∕2,i+3∕2,j+1∕2-  ----1--w-p,l+1∕2,i+1,j+1-∕2δp,l+1∕2,i+1,j+1∕2---
f(0)(∞ )          =       (0)(u)         (     (0)           )
 0,l+1∕2,i+1∕2,j+1∕2   1 + w p,l+1∕2,i+1,j+1∕2  1- δp,l+1∕2,i+1,j+1∕2
(5.131)

f(00,l)(+∞1∕)2,i+1∕2,j+1 ∕2         1 - w(p0,i)(,ju+)1∕2δ(p0),l+1∕2,i,j+1 ∕2
-(0)(∞-)----------=  -----(0)(u)-------(-----(0)---------)-
f0,l+1∕2,i-1∕2,j+1 ∕2    1+ w p,l+1∕2,i,j+1∕2  1- δp,l+1∕2,i,j+1∕2
(5.132)

f(0)(∞ )                1- w (0)(u)         δ(0)
-0,l+1∕2,i+1∕2,j+3-∕2-= ---------ξ,l+1∕2,i+1∕2,j(+1-ξ,l+1∕2,i+1∕2,j+1---)
f(0)(∞ )            1 + w (u)             1- δ(0)
 0,l+1∕2,i+1∕2,j+1 ∕2         ξ,l+1∕2,i+1∕2,j+1      ξ,l+1∕2,i+1∕2,j+1
(5.133)

 (0)(∞ )                     (0)(u)       (0)
f0,l+1∕2,i+1∕2,j+1∕2-   ---1---wξ,l+1∕2,i+1-∕2(,jδξ,l+1∕2,i+1∕2,j--)-
f(0)(∞ )          =  1+ w (0)(u)         1- δ(0)
 0,,l+1∕2,i+1∕2,j-1∕2        ξ,l+1∕2,i+1∕2,j      ξ,l+1∕2,i+1∕2,j
(5.134)

with

                           (0)
 (0)(u)                    Fp,l+1∕2,i+1,j+1∕2
wp,l+1∕2,i+1,j+1∕2 = - Δpi+1--(0)-------------
                         D pp,l+1∕2,i+1,j+1∕2
(5.135)

                     F (0)
w(0)(u)       =  - Δpi--p,l+1∕2,i,j+1-∕2-
 p,l+1∕2,i,j+1∕2        D (0)
                       pp,l+1∕2,i,j+1∕2
(5.136)

                                       (0)
w (0)(u)          = +p     ∘-Δ-ξ0,j+1---Fξ,l+1∕2,i+1∕2,j+1
  ξ,l+1∕2,i+1∕2,j+1      i+1∕2  1 - ξ2   D (0)
                                0,j+1  ξξ,l+1∕2,i+1∕2,j+1
(5.137)

                                  (0)
  (0)(u)                 --Δ-ξ0,j--Fξ,l+1∕2,i+1∕2,j
wξ,l+1∕2,i+1∕2,j = +pi+1∕2∘ -----2-  (0)
                         1-  ξ0,jD ξξ,l+1∕2,i∕2,j
(5.138)

Furthermore, since pSp(0) = 0, one deduces naturally that

      df (0)(∞ )
- D (p0p)-0----+ F (p0)f(00)(∞ )= 0
        dp
(5.139)

  ∘ ------      (0)(∞ )
  --1--ξ20- (0)df0------   (0) (0)(∞ )
+    p   D ξξ   dξ0  + F ξ f0     = 0
(5.140)

and since Fξ(0) = 0 for collisions, because of the isotropic nature of pitch-angle scattering

∂f (0)(∞ )   ( F(0))
--0(∞)--=    -p(0)  ∂p
  f0         Dpp
(5.141)

∂f(0)(∞ )
--0-----= 0
  ∂ξ0
(5.142)

which indicates that when collisions is the single physical process considered, f0(0)() is independent of ξ0. Therefore, ∂∕∂p d∕dp, and integrating the first equation of (5.141) leads to the relation

           (     )
   (0)  ∫    F(p0)
lnf0  =      -(0)  dp+  Cte
             Dpp
(5.143)

Values of f0(0)() on the respective half grid positions (l + 1∕2,i+ 3 ∕2,j + 1∕2) and (l + 1∕2,i+ 1∕2,j + 1∕2) are then

                            (     (               ))
   (0)(∞)             ∫ pi+3∕2  Fp(0) ψl+1∕2,p,ξ0,j+1∕2
ln f0,l+1∕2,i+3∕2,j+1∕2 =          --(0)(---------------)  dp + Cte
                      0       D pp  ψl+1∕2,p,ξ0,j+1∕2
(5.144)

                            (     (               ))
   (0)(∞)             ∫ pi+1∕2  Fp(0) ψl+1∕2,p,ξ0,j+1∕2
ln f0,l+1∕2,i+1∕2,j+1∕2 =          --(0)(---------------)  dp + Cte
                      0       D pp  ψl+1∕2,p,ξ0,j+1∕2
(5.145)

and ratios are finally easily determined

 (0)(∞)                 [∫      (     (               ))   ]
f0,l+1∕2,i+3∕2,j+1∕2-         pi+3∕2  F(p0)-ψl+1∕2,p,ξ0,j+1∕2-
 (0)(∞)           = exp             (0)(               )  dp
f0,l+1∕2,i+1∕2,j+1∕2         pi+1∕2   Dpp  ψl+1∕2,p,ξ0,j+1∕2
(5.146)

 (0)(∞ )                [       (     (               ))   ]
f0,l+1∕2,i+1∕2,j+1∕2        ∫ pi13∕2   F(p0) ψl+1∕2,p,ξ0,j+1∕2
-(0)(∞-)----------= exp           -(0)(---------------)  dp
f0,l+1∕2,i-1∕2,j+1∕2         pi- 1∕2   Dpp  ψl+1∕2,p,ξ0,j+1∕2
(5.147)

while, since f0(0)() does not depend of ξ0,

f(00),l(+∞1)∕2,i+1∕2,j+3∕2   f(00,l)(+∞1∕)2,i+1∕2,j+1∕2
-(0)(∞)-----------= -(0)(∞-)----------= 1
f0,l+1∕2,i+1∕2,j+1∕2   f0,l+1∕2,i+1∕2,j-1∕2
(5.148)

It is then straightforward to evaluate coefficients δp,l+12,i+1,j+12(0) et δp,l+12,i,j+12(0) by the trapezoidal method,

           (               )
∫ pi+3∕2Fp(0) ψl+1∕2,p,ξ0,j+1∕2
       --(0)(---------------)dp ≃
 pi+1∕2 D pp ψl+1∕2,p,ξ0,j+1∕2
  F (0)
1--p,l+1∕2,i+1∕2,j+1∕2Δpi+1-∕2
2D (0)                 2
   pp,l+1∕2,i+1∕2,j+1∕2
 1  F(p0,l)+1∕2,i+1,j+1∕2Δpi+1 ∕2
+2---(0)----------------2---
   D pp,l+1∕2,i+1,j+1∕2
     (0)
+1--Fp,l+1∕2,i+1,j+1∕2Δpi+3-∕2
 2 D (0)                2
     pp,l+1∕2,i+1,j+1∕2
 1  F(p0,l)+1∕2,i+3∕2,j+1∕2 Δpi+3 ∕2
+----(0)----------------------                    (5.149)
 2 D pp,l+1∕2,i+3∕2,j+1∕2   2
and
∫ pi+1∕2Fp(0)(ψ     p,ξ      )
       --(0)(--l+1∕2,--0,j+1∕2)dp ≃
 pi-1∕2 D pp ψl+1∕2,p,ξ0,j+1∕2
    (0)
1-Fp,l+1∕2,i-1∕2,j+1∕2Δpi--1∕2
2D (0)                 2
   pp,l+1∕2,i- 1∕2,j+1∕2
 1  F(p0,l)+1∕2,i- 1∕2,j+1∕2 Δpi- 1∕2
+----(0)----------------------
 2 D pp,l+1∕2,i-1∕2,j+1∕2   2
     (0)
 1--Fp,l+1∕2,i,j+1∕2-Δpi+1-∕2
+2 D (0)             2
     pp,l+1∕2,i,j+1∕2
 1  F(0)             Δp
+----p,l+1∕2,i+1∕2,j+1∕2----i+1-∕2-                    (5.150)
 2 D (0p)p,l+1∕2,i+1∕2,j+1∕2   2
then gathering terms pi+32, pi+1 and pi+12, one obtains
   ∫  pi+3∕2 F (0)(ψ     p,ξ      )
           -p--(-l+1∕2,--0,j+1∕2)dp ≃
     pi+1∕2  D (0pp) ψl+1∕2,p,ξ0,j+1∕2
       (0)            (                  )
    1-Fp,l+1∕2,i+1,j+1∕2-  Δpi+1∕2-  Δpi+3∕2-
    2D (0)                  2   +     2
       pp,l+1 ∕2,i+1,j+1 ∕2
      F (0)             Δp
   + --p,l+1∕2,i+1∕2,j+1∕2----i+1∕2
     D (p0p),l+1∕2,i+1∕2,j+1∕2   4
        (0)
     -Fp,l+1∕2,i+3∕2,j+1∕2-Δpi+3-∕2
   +   (0)                4
     D pp,l+1∕2,i+3∕2,j+1∕2
    F (0)
=   --p,l+1∕2,i+1,j+1∕2-Δpi+1-
    D(p0p),l+1∕2,i+1,j+1∕2  2
        (0)
      Fp,l+1∕2,i+1∕2,j+1∕2 Δpi+1 ∕2
   + --(0)----------------4----
     D pp,l+1∕2,i+1∕2,j+1∕2
      F (0)
   + --p,l+1∕2,i+3∕2,j+1∕2-Δpi+3-∕2                        (5.151)
     D (0)                4
       pp,l+1∕2,i+3∕2,j+1∕2
or
∫ pi+3∕2F (0)(ψ     p,ξ      )
       -p--(--l+1∕2,--0,j+1∕2)dp =
 pi+1∕2 D (0p)p ψl+1∕2,p,ξ0,j+1∕2
        (0)
     -Fp,l+1∕2,i+1,j+1∕2-
Δpi+1D (0)
       pp,l+1∕2,i+1,j+1∕2
  F (0)              Δp
+--p,l+1∕2,i+1∕2,j+1∕2 --i+1∕2-
 D (p0p),l+1∕2,i+1 ∕2,j+1∕2    4
    (0)
 -Fp,l+1∕2,i+3∕2,j+1∕2 Δpi+3∕2-
+  (0)                 4
 D pp,l+1∕2,i+3 ∕2,j+1∕2
        F (0)
- Δpi+1--p,l+1∕2,i+1,j+1∕2-                         (5.152)
    2  D (p0p),l+1∕2,i+1,j+1∕2

Since

 F(0)
--p,l+1∕2,i+1,j+1∕2-=
D (p0)p,l+1∕2,i+1,j+1∕2
                    (0)
     Δpi+3∕2      Fp,l+1∕2,i+1∕2,j+1∕2
Δp------+-Δp-------(0)-------------
   i+1 ∕2      i+3∕2D pp,l+1∕2,i+1∕2,j+1∕2
                    F(0)
+ -----Δpi+1∕2-------p,l+1∕2,i+3∕2,j+1∕2-              (5.153)
  Δpi+1∕2 + Δpi+3 ∕2D (0)
                     pp,l+1∕2,i+3∕2,j+1∕2
one obtains
  (0)
-Fp,l+1∕2,i+1,j+1∕2--
D (0)             =
  pp,l+1∕2,i+1,j+1∕2
Δp      F (0)
---i+3∕2--p,l+1∕2,i+1∕2,j+1∕2-
2Δpi+1  D(p0p),l+1∕2,i+1∕2,j+1∕2
           (0)
  Δpi+1∕2-Fp,l+1∕2,i+3∕2,j+1∕2-
+ 2Δpi+1   (0)                                 (5.154)
         D pp,l+1 ∕2,i+3∕2,j+1∕2
and after gathering all terms
∫ p      (0)(               )
   i+3∕2F-p--ψl+1∕2,p,ξ0,j+1∕2-dp =
 pi+1∕2 D (p0)p (ψl+1∕2,p,ξ0,j+1 ∕2)
        (0)
      F p,l+1∕2,i+1,j+1∕2
Δpi+1 -(0)-------------
      Dpp,l+1∕2,i+1,j+1∕2
                    F(0)
+ Δpi+3∕2 --Δpi+1-∕2-p,l+1∕2,i+3∕2,j+1∕2-
          4        D (0)
                     pp,l+1∕2,i+3∕2,j+1∕2
  Δpi+3∕2 - Δpi+1 ∕2 F(p0,l)+1∕2,i+1∕2,j+1∕2
- -------------------(0)--------------              (5.155)
          4        D pp,l+1∕2,i+1∕2,j+1∕2

Much as the same way, using index conversion pi+32 pi+12, pi+1 pi and pi+12 pi-12 in the previous relation, one obtains for the second integral,

∫ p      (0)(               )
   i+1∕2F-p--ψl+1∕2,p,ξ0,j+1∕2-dp ≃
 pi-1∕2 D (p0)p (ψl+1∕2,p,ξ0,j+1 ∕2)
      (0)
    Fp,l+1∕2,i,j+1∕2
Δpi -(0)----------
    Dpp,l+1∕2,i,j+1∕2
                     (0)
+ Δpi+1∕2 --Δpi--1∕2-Fp,l+1∕2,i+1∕2,j+1∕2
          4        D (0)
                     pp,l+1∕2,i+1∕2,j+1∕2
  Δpi+1∕2 - Δpi -1∕2 F(p0,l)+1∕2,i- 1∕2,j+1∕2
- -------------------(0)--------------              (5.156)
          4        D pp,l+1∕2,i-1∕2,j+1∕2

From the two formulations of the ratios

f (0)(∞ )
-0,l+1∕2,i+3∕2,j+1∕2
f0(0,)l+(∞1∕)2,i+1∕2,j+1∕2
(5.157)

one obtains easily

 (0)                 -------1-------
δp,l+1∕2,i+1,j+1∕2  =    (0)(u)
                    wp,l+1∕2,i+1,j+1∕2
                     ---------------------1--------------------
                    -    [ (0)(u)             (0)(nu)       ]       (5.158)
                     exp  wp,l+1∕2,i+1,j+1∕2 + w p,l+1∕2,i+1,j+1∕2 - 1
with
                                          (0)
 (0)(nu)               Δpi+3∕2---Δpi+1∕2-Fp,l+1∕2,i+3∕2,j+1∕2-
wp,l+1∕2,i+1,j+1∕2  =  -         4          (0)
                                       D pp,l+1∕2,i+3∕2,j+1∕2
                      Δp      - Δp      F (0)
                    + ---i+3∕2------i+1∕2--p,l+1∕2,i+1∕2,j+1∕2-      (5.159)
                              4        D (p0p),l+1∕2,i+1∕2,j+1∕2

Much in the same way,

 (0)            ------1------   ------------------1-------------------
δp,l+1∕2,i,j+1∕2 =   (0)(u)       -     [ (0)(u)           (0)(nu)      ]
               w p,l+1∕2,i,j+1 ∕2   exp  wp,l+1∕2,i,j+1∕2 + w p,l+1∕2,i,j+1∕2 - 1
(5.160)

with ß

                                      F(0)
w(0)(nu)        =  - Δpi+1∕2---Δpi-1∕2--p,l+1∕2,i+1∕2,j+1∕2-
 p,l+1∕2,i,j+1∕2               4        D (p0)p,l+1∕2,i+1∕2,j+1∕2
                                       (0)
                    Δpi+1∕2 - Δpi-1∕2 Fp,l+1∕2,i-1∕2,j+1∕2
                  + --------4----------(0)--------------       (5.161)
                                     D pp,l+1∕2,i- 1∕2,j+1∕2

For a uniform grid, wp,l+12,i,j+12(0)(nu) = 0, and the well known expression of the Chang and Cooper function is recovered,

g(x) = 1-- ---1--
       x   ex - 1
(5.162)

with x = wp(0)(u). In the limit where x 1, an expansion of the function gives g(x ) = 0.5 - x∕12 + x3720 + O( 4)
 x with limx0g(x) = 1
2, as shwon in Fig.5.2. For a non-uniform grid, a generalized Chang and Cooper function must be introduced, with two arguments

         1       1
g(x,y) = x-- ex+y---1
(5.163)

where the term y = wp(0)(nu) is zero for the uniform case, as shown in Ref.[?].


cmcmcmPIC

Figure 5.2: Chang and Cooper weightingfunction


With this definition,

f(0)(∞ )              cc    cc
-0,l+1∕2,i+3∕2,j+1∕2-=  T1-=  T4--
f(0∞,l+)1∕2,i+1∕2,j+1∕2    Tc2c   Tc5c
(5.164)

where

                           ⌊
                                    1
Tc1c  =  1 - w(p0,l)(+u1)∕2,i+1,j+1∕2⌈ -(0)(u)----------
                             wp,,l+1∕2,i+1,j+1∕2
                                                    ⌋
          --------------------1---------------------
        -     [ (0)(u)             (0)(nu)        ]    ⌉        (5.165)
          exp  wp,l+1∕2,i+1,j+1∕2 + w p,l+1∕2,i+1,j+1∕2 - 1
  cc        (0)(u)               cc
T2  = 1+ w p,l+1∕2,i+1,j+1∕2 (1- T3 )
(5.166)

and

 cc   -------1-------   --------------------1---------------------
T3 =   (0)(u)         -     [  (0)(u)             (0)(nu)        ]
      wp,l+1∕2,i+1,j+1∕2   exp  w p,l+1∕2,i+1,j+1∕2 + wp,l+1∕2,i+1,j+1∕2 - 1
(5.167)

whilewith

                   w(p0,)(l+u1)∕2,i+1,j+1∕2
Tc4c=  ---[--(0)(u)-------------(0)(nu)--------]----
      exp  w p,l+1∕2,i+1,j+1∕2 + wp,l+1∕2,i+1,j+1∕2 - 1
(5.168)

and

                                      (0)(u)
Tcc=  w(0)(u)         + ----[---------wp,l+1∕2,i+1,j+1∕2--------]----
 5     p,l+1∕2,i+1,j+1∕2  exp  w(0)(u)         + w (0)(nu)         - 1
                             p,l+1∕2,i+1,j+1∕2    p,l+1∕2,i+1,j+1∕2
(5.169)

This expression simplifies and becomes

 (0)(∞ )
f0,l+1∕2,i+3∕2,j+1∕2       [   (0)(u)             (0)(nu)        ]
-(0)(∞-)----------= exp  - w p,l+1∕2,i+1,j+1∕2 - w p,l+1∕2,i+1,j+1∕2
f0,l+1∕2,i+1∕2,j+1∕2
(5.170)

Furthermore, when plasma relaxation by collisions is the single process considered, the relation

F(p0)(ψ,p,ξ0)
-(0)---------~= - p
Dpp (ψ,p,ξ0)
(5.171)

holds2, since f0(0)() must be Maxwellian fM, and one finds

f(00,l)(+∞1∕)2,i+3 ∕2,j+1∕2       [             Δpi+3 ∕2 - Δpi+1 ∕2 (            )]
-(0)(∞-)----------= exp  - Δpi+1pi+1 ---------4--------  pi+3∕2 - pi+1∕2
f0,l+1∕2,i+1 ∕2,j+1∕2
(5.172)

Using identities introduced in Sec. 5.2,

{
   pi+3∕2 = pi+1 + Δpi+3∕2
                 Δpi2+1∕2
   pi+1∕2 = pi+1 -   2
(5.173)

it is easy to demonstrate that

        (              )    ( Δp        Δp     )
pi+1 = 1-pi+3∕2 + pi+1∕2 - 1  ---i+3∕2-- ---i+1∕2-
       2                  2      2         2
(5.174)

and

         1(                 )
Δpi+1 =  2 Δpi+3 ∕2 + Δpi+1∕2 =  pi+3∕2 - pi+1∕2
(5.175)

Finally, since

                 Δpi+3∕2 --Δpi+1-∕2(            )
   - Δpi+1pi+1 -         4         pi+3∕2 - pi+1∕2
     (             ) [1 (             )   1(                 )]
=  -  pi+3∕2 - pi+1∕2   -- pi+3∕2 + pi+1∕2 - --Δpi+3 ∕2 - Δpi+1∕2
                      2                   4
     Δpi+3∕2 --Δpi+1∕2(              )
   -         4         pi+3∕2 - pi+1∕2
     1-(             )(             )
=  - 2 pi+3∕2 + pi+1∕2 pi+3∕2 - pi+1∕2
     1 ( 2       2   )
=  - 2- pi+3∕2 - pi+1∕2                                            (5.176)
one obtains the following relation
f (0)(∞ )                [  p2    - p2    ]
-0,l+1∕2,i+3∕2,j+1∕2= exp  - -i+3∕2---i+1∕2-
f (0)(∞ )                         2
 0,l+1∕2,i+1∕2,j+1∕2
(5.177)

which is exactly corresponding to a numerical Maxwellian distribution function. Hence, numerical errors do not propagate with the weighting here considered.

Finally, for the non-uniform p grid, the final results for interpolation rules are

       (  (0)            )
 (0)     δp,l+1∕2,i+1,j+1∕2
δp  →    δ(0)
          p,l+1∕2,i,j+1∕2
(5.178)

with

 (0)                     1                               1
δp,l+1∕2,i+1,j+1 ∕2 = --(0)(u)--------- - ----[-(0)(u)-------------(0)(nu)--------]----
                 w p,l+1∕2,i+1,j+1 ∕2   exp  wp,l+1∕2,i+1,j+1∕2 + w p,l+1∕2,i+1,j+1∕2 - 1
(5.179)

and

δ(0)          = ------1------ - ----[-------------1--------------]----
 p,l+1∕2,i,j+1∕2   w (p0),l(+u1)∕2,i,j+1 ∕2   exp  w(p0,)(l+u1)∕2,i,j+1∕2 + w (0p),l(+nu1)∕2,i,j+1∕2 - 1
(5.180)

and where

         (   (0)(u)          )
w(0)(u)→     wp,l+1∕2,i+1,j+1∕2
 p          w(p0,l)(+u1)∕2,i,j+1∕2
(5.181)

with

                          F(0)
w(0)(u)         =  - Δpi+1--p,l+1∕2,i+1,j+1∕2--
 p,l+1∕2,i+1,j+1∕2          D (0pp),l+1∕2,i+1,j+1∕2
(5.182)

and

                     F (0)
w(0)(u)       =  - Δpi--p,l+1∕2,i,j+1-∕2-
 p,l+1∕2,i,j+1∕2        D (0pp),l+1∕2,i,j+1∕2
(5.183)

Much in the same way,

          (    (0)(nu)         )
w (0)(nu) →    w p,l+1∕2,i+1,j+1∕2
  p          w (0p,)i,(nju+)1∕2
(5.184)

where

                                     ⌊ F(0)                F (0)             ⌋
w(0)(nu)        = - Δpi+3-∕2---Δpi+1∕2 ⌈--p,l+1∕2,i+3-∕2,j+1∕2-- --pl+1∕2,i+1∕2,j+1∕2-⌉
 p,l+1∕2,i+1,j+1∕2            4          D (0)                D (0)
                                        ppl+1∕2,i+3∕2,j+1∕2    ppl+1∕2,i+1∕2,j+1∕2
(5.185)

and

                              ⌊   (0)                 (0)             ⌋
w (0)(nu)  = - Δpi+1∕2---Δpi-1∕2⌈ -Fpl+1∕2,i+1∕2,j+1∕2-- -Fpl+1∕2,i-1∕2,j+1∕2-⌉
 p,i,j+1∕2             4          D (0)                D (0)
                                  ppl+1∕2,i+1 ∕2,j+1∕2     ppl+1∕2,i-1∕2,j+1∕2
(5.186)

It is important to note that since only collisions are considered for evaluating interpolating coefficients δp(0), momentum and pitch-angle dynamics are naturally decoupled. Consequently, the ratios Fp(0)∕Dpp(0) are only functions of p, and it is the reason why they haves similar values at different pitch-angle grid points ξ0.

By definition, δp(0) must be lower than unity, a condition that is naturaly satisfied for the uniform momentum grid, as shown in Fig.5.2. However, special care must be taken for the non-uniform case, since there is no exact cancellation between 1∕x and 1(ex+y - 1). In the limit y < x 1, it can be easily shown that

            y
g(x,y) ≃ x-(x-+-y)-
(5.187)

and the condition g(x,y) 1 is equivalent to the relation

--y∕x--
1 + y∕x < x
(5.188)

For a uniform grid, this condition is always fulfilled, since it corresponds to y = 0. For the non-uniform case, it is clear that the range of validity of the extended Chang and Cooper function is much more restricted, since y∕x is finite. Consequently, if x pΔp is small, y which is proportional to the variation of the grid step as function of p must be significantly smaller which means that the momentum grid is nearly uniform in this region of the phase space. For larger values of x, the condition is easier to satisfy, which indicates that the non-uniformity must be a growing function of the momentum value p, and nearly flat close to p = 0.

There are however additional limitations on the choice of the momentum for large p values. Indeed, in this domain, other mechanismes are at play, and the usual technique is to extrapolate calculations carried out for collisions to other accelaration mechanismes (Ohmic electric field, RF waves,...), using the generalized weighting factor based on the simple rule,

    |
Fp(0)||          ∑   F(p0)(m )
--(0)|       =  ∑-m--(0)(m-)
D pp |effective     m Dpp
(5.189)

where m is the sum over all the physical processes m that take place in the plasma. Since the same syntax may be kept, one obtains simply

                              |
  (0)(u)                    F(p0)||l+1∕2,i+1,j+1∕2
w p,l+1∕2,i+1,j+1∕2 = - Δpi+1 --(0)|
                          D pp |effective
(5.190)

and

                          |
  (0)(u)                F(p0)||l+1∕2,i,j+1∕2
w p,l+1 ∕2,i,j+1∕2 = - Δpi --(0)|
                      Dpp |effective
(5.191)

for the uniform contribution, while for the non-uniform one

                                     ⌊     |                     |             ⌋
  (0)(nu)             Δpi+3∕2 - Δpi+1 ∕2 Fp(0)||l+1∕2,i+3∕2,j+1∕2   F(p0)||l+1∕2,i+1∕2,j+1∕2
w p,l+1∕2,i+1,j+1∕2 = - -----------------⌈ --(0)||              -  -(0)||             ⌉
                            4          D pp effective          Dpp  effective
(5.192)

and

                                   ⌊                                         ⌋
                  Δp     - Δp          (0)||l+1∕2,i+1∕2,j+1∕2    (0)||l+1∕2,i-1∕2,j+1∕2
w (0p,)l+(n1u∕)2,i,j+1∕2 = - ---i+1∕2-----i-1∕2⌈ Fp--||              -  Fp--||             ⌉
                          4          D (0pp)|effective          D(p0p)|effective
(5.193)

In that case, the interpolating weights exhibit a dependence with ξ0. This has however a weak importance for the accuracy of the calculations, since in the domain where fluxes are strongly modified since usually    |
F(p0)||
D(p0)p|effective 0 in presence of RF quasilinear diffusion. The Maxwellian distribution function is consequently no more the solution of the Fokker-Planck equation.

The reason why an effective expression of Fp(0)∕Dpp(0) is used for evaluating δp(0) where collisions are not the single process is based on the fact that the Chang and Cooper function tends towards δp(0) 12 for a uniform mesh when  (0)||
Fp(0)||
Dppeffective increases. In that case, it corresponds exactly to the standard linear interpolation, i.e. the well known arithmetic mean. The interpolation procedure is therefore consistent with the grid, an important characteristic for reducing the rate of convergence.

Unfortunately, such a property is not valid for a non-uniform grid, and the interpolation may be wrong , leading to possible an anomalous behaviour of the code. Consequently, even at larger values of p, only a uniform mesh may provide a consistent solution with the numerical grid in presence of external sources of acceleration. From this analysis, it turns out that the only purpose for using a non-uniform momentum mesh is to establish a link between the fine mesh in the vicinity of p = 0, and a coarse grid in the region where other physical mechanismes are at play. Consequently, the momentum mesh is build from the relation

       (             )                (             )
Δpi =  -Δpnp-1---Δp0--tanh (i - iref)+  -Δpnp-1-+-Δp0--
              2                              2
(5.194)

with the recurrence relation

pi+1 = Δpi + pi
(5.195)

where p0 = 0, Δpnp-1 = pmax(n  - 1)
  p and Δp0 is an arbitrary value. Here iref is the index value corresponding to the transition between the fine and the coarse grids. When Δp0 = Δpnp-1, the case of an uniform mesh is well recovered, whatever iref. Here Δp0 and iref must be chosen so that the non-uniform part of the momentum grid is far enough from p = 0 in order the relation δp(0) > 1 is satisfied, but also far from the region where external forces play a role3.

Finally, wp(0)(nu) require evaluations of the quantities at the respective grid points (l + 1∕2,i- 1∕2,j + 1∕2) and (l + 1∕2,i+ 3∕2,j + 1∕2 ). The usual method to deal with this problem is shifting indexes, according to the relation

(l + 1∕2,i+ 1∕2,j + 1∕2) ∈ {[1 : nψ],[1 : np],[1 : nξ]}
(5.196)

and

{  (l + 1∕2,i- 1∕2,j + 1∕2) ∈ {[1 : nψ],[X, 1 : np - 1],[1 : nξ]}
   (l + 1∕2,i+ 3∕2,j + 1∕2) ∈ {[1 : n ],[2 : n ,X ],[1 : n ]}
                                  ψ      p          ξ
(5.197)

Hence, all quantities have the same size (n ψ,np,nξ), which is crucial for the 3 - D matrix representation. Furthermore, boundary conditions are naturally satisfied with this technique, since arbitrary values may be attributed to the variable X at these grid points.

Pitch-angle grid interpolation For the pitch-angle terms, calculation is very simple, and from previous relations, one deduces directly that wξ,l+12,i+12,j+1(0) = wξ,l+12,i+12,j(0) = 0 since Fξ(0) = 0. Therefore, δξ,l+1:2,i+12,j+1(0) may be defined in an arbitrary manner. It is important to note that this choice is different from the one described in Ref. [?], where the pitch-angle weighting factors are defined in the same way as for the momentum p. However, it turns out that in presence of RF waves, this leads sometimes to spurious numerical evolutions, while the simple approach here described avoid them.

The most natural way is therefore to perform a linear interpolation, between f0,l+12,i+12,j+32(0)() and f0,l+12,i+12,j+32(0)(), and also between f0,l+1:2,i+12,j+12(0)() and f0,l+12,i+12,j-12(0)() according to the relations

 (0)(∞)              (      Δ ξ0,j+1∕2     )  (0)(∞ )
f0,l+1∕2,i+1∕2,j+1  =     Δξ------+-Δ-ξ------- f0,l+1∕2,i+1∕2,j+3∕2
                      ( 0,j+1∕2     0,j+3∕2  )
                    +  ------Δ-ξ0,j+3∕2-----  f(0)(∞ )             (5.198)
                       Δ ξ0,j+1∕2 + Δ ξ0,j+3∕2  0,l+1∕2,i+1 ∕2,j+1∕2
                  (                    )
f(0)(∞)        =    ------Δ-ξ0,j-1∕2-----  f(0)(∞ )
 0,l+1∕2,i+1∕2,j       Δ ξ0,j-1∕2 + Δ ξ0,j+1∕2  0,l+1∕2,i+1 ∕2,j+1∕2
                    (      Δ ξ           )
                  +  ---------0,j+1∕2------  f(00,l)(+∞1∕)2,i+1 ∕2,j- 1∕2     (5.199)
                     Δ ξ0,j-1∕2 + Δ ξ0,j+1∕2

Taking into account of the non-uniform grid steps

δ(0)            = ------Δ-ξ0,j+3-∕2------
 ξ,l+1∕2,i+1∕2,j+1   Δ ξ0,j+1∕2 + Δ ξ0,j+3∕2
(5.200)

 (0)                  Δ ξ0,j+1 ∕2
δξ,l+1∕2,i+1∕2,j = Δ-ξ------+-Δ-ξ------
                  0,j-1∕2     0,j+1∕2
(5.201)

and for a uniform grid, the relation δξ,l+12,i+12,j+1(0) = δξ,l+12,i+12,j(0) = 12 are exactly recovered.

Finally, for the non-uniform pitch-angle grid ξ, the interpolation rules are

      (                        Δξ
 (0)   {  δ(ξ0),l+1∕2,i+1∕2,j+1 = Δ-ξ----0,+j+3Δ∕ξ2----
δξ →  (   (0)            ----0Δ,j+ξ10,∕j+21∕2-0,j+3∕2
         δξ,l+1∕2,i+1∕2,j = Δ ξ0,j-1∕2+ Δξ0,j+1∕2
(5.202)

Furthermore, δξ(0) require evaluations of the quantities at the respective grid points (l + 1∕2,i+ 1∕2,j - 1∕2) and (l + 1∕2,j + 1∕2,j + 3∕2). As for the momentum grid interpolation, indexes are shifted,

{  (l + 1∕2,i+ 1∕2,j - 1∕2) ∈ {[1 : nψ],[1 : np],[X,1 : n ξ - 1]}
   (l + 1∕2,i+ 1∕2,j + 3∕2) ∈ {[1 : n ],[1 : n ],[2 : n ,X ]}
                                  ψ      p       ξ
(5.203)

Spatial grid interpolation The determination of δψ(0) is based on the same method used for δξ(0), since no specific condition is required for interpolating f0(0) on the flux grid. A linear interpolation is considered between f0,l+32,i+12,j+12(0)() and f0,l+12,i+12,j+12(0)() and also between f0,l+12,i+12,j+12(0)() and f0,l-12,i+12,j+12(0)(),

                    (                  )
 (0)(∞)                -----Δψl+1∕2------  (0)(∞ )
f0,l+1,i+1∕2,j+1∕2  =     Δψ     + Δ ψ       f0,l+3∕2,i+1 ∕2,j+1∕2
                      (  l+1∕2      l+3∕2  )
                    +   -----Δψl+3∕2------ f(0)(∞ )              (5.204)
                        Δψl+1∕2 + Δ ψl+3∕2  0,l+1∕2,i+1 ∕2,j+1∕2

                  (                  )
f(0)(∞)        =     ----Δ-ψl-1∕2------ f(0)(∞ )
 0,l,i+1∕2,j+1∕2        Δψl-1∕2 + Δ ψl+1∕2  0,l+1∕2,i+1∕2,j+1∕2
                    (     Δ ψ          )
                  +   --------l+1∕2------ f(00,l)(-∞1)∕2,i+1∕2,j+1∕2      (5.205)
                      Δψl-1∕2 + Δ ψl+1∕2
taking into account of the non-uniform nature of the grid
 (0)          Δψl+3∕2
δψ,l+1 = Δ-ψ-----+-Δψ------
           l+1∕2      l+3∕2
(5.206)

           Δψ
δ(0ψ),l = --------l+1∕2------
      Δ ψl- 1∕2 + Δψl+1∕2
(5.207)

For a uniform grid the relation δψ,l+1(0) = δψ,l(0) = 12 is well recovered.

Furthermore, δψ(0) require evaluations of the quantities at the respective grid points (l - 1∕2,i+ 1∕2,j + 1∕2) and (l + 3∕2,j + 1∕2,j + 1∕2). As for the momentum grid interpolation, indexes are shifted according to the rule

{
   (l - 1∕2,i+ 1∕2,j + 1∕2) ∈ {[X,1 : nψ - 1],[1 : np ],[1 : nξ]}
   (l + 3∕2,i+ 1∕2,j + 1∕2) ∈ {[2 : nψ,X ],[1 : np],[1 : n ξ]}
(5.208)

5.4.4 Discrete description of physical processes

5.4.5 Collisions

According to the bounce averaged expression,

         (
         ||  DC (0)           = Al+1 ∕2,i+1
         |||   pCp,l(0+)1∕2,i+1,j+1∕2
         ||||  Dpp,l+1∕2,i,j+1∕2 = Al+1 ∕2,i
         ||||  DCpξ(0,l)+1∕2,i+1,j+1∕2 = 0
         |||   C (0)
         ||||  Dξp,l+1∕2,i+1∕2,j+1 = 0
--C(0)   |{  DCpξ(0,l)+1∕2,i+1∕2,j+1 ∕2 = 0
D p   →      C (0)
         ||||  Dξp,l+1∕2,i+1∕2,j+1 ∕2 = 0
         ||||  DCpξ(0,l)+1∕2,i,j+1∕2 = 0
         |||   C (0)
         ||||  Dξp,l+1∕2,i+1∕2,j = 0 (                  )
         |||  DCξξ(0,l)+1∕2,i+1∕2,j+1 =   λl+21,-∕12,,j0+1∕λl+1∕2,j+1  Bt,l+1∕2,i+1∕2
         |||(   C (0)           (  l+1∕2,j   l+1∕2,j)
            Dξξ,l+1∕2,i+1∕2,j =  λ2,-1,0 ∕λ       Bt,l+1∕2,i+1∕2
(5.209)

and

         (|   C(0)
         |||| F p,l+1∕2,i+1,j+1∕2 = - Fl+1∕2,i+1
--C(0)   { F Cp(,l0+)1∕2,i,j+1 ∕2 = - Fl+1 ∕2,i
F p   →  |   C(0)
         |||| F ξ,l+1∕2,i+1∕2,j+1 = 0
         ( F Cξ(,l0+)1∕2,i+1∕2,j = 0
(5.210)

where each coefficient is the sum of the electron-electron and electron-ion interactions.

Electron-electron collision operator

Belaiev-Budker relativistic collision model Here, coefficients corresponding to the Belaiev-Budker collision operator that ranges from non-relativistic to fully relativistic regimes may be expressed as, according to the notation used in Ref.[?],

              (                         )
  ee          -F1,l+1∕2,i+1∕2-+-F2,l+1∕2,i+1∕2---
A l+1∕2,i+1∕2 =            vi+1∕2            Te,l+1∕2
(5.211)

  ee
Fl+1∕2,i+1∕2 = F1,l+1∕2,i+1∕2 + F2,l+1∕2,i+1∕2
(5.212)

with

              --4π--               --4π--
F1,l+1∕2,i+1∕2 = v2    F11,l+1∕2,i+1∕2 + p2    F12,l+1∕2,i+1∕2
               i+1∕2                i+1∕2
(5.213)

                4π  (     γ    ζ     )
F2,l+1∕2,i+1∕2 = ------  1-  -i+1∕2-,i+1∕2- F21,l+1∕2,i+1∕2
              vi+1∕2         zi+1∕2
(5.214)

Expressions of coefficients F11,l+12,i+12, F12,l+12,i+12 and F21,l+12,i+12 are

               ∫
                 i+1∕2  ′′   (        ′)   ′
F11,l+1∕2,i+1∕2 =  0     pv fM  ψl+1∕2,p  dp
(5.215)

               ∫ i+1∕2 ′ ′(    γ′ζ′)    (       ′)  ′
F12,l+1∕2,i+1∕2 =       p v  1 - -z′- fM   ψl+1 ∕2,p  dp
                 0
(5.216)

               ∫ ∞        (        )
F21,l+1∕2,i+1∕2 =      p′fM  ψl+1∕2,p′ dp′
                i+1∕2
(5.217)

Coefficients Aee and Fee must be also calculated on the flux grids and therefore, according to the previous definition,

          (                  )
 ee       -F1,l+1∕2,i +-F2,l+1∕2,i--
Al+1∕2,i =          vi         T e,l+1∕2
(5.218)

and

 ee
Fl+1 ∕2,i = F1,l+1∕2,i + F2,l+1∕2,i
(5.219)

where

           4π-           4π-
F1,l+1∕2,i = v2 F11,l+1∕2,i + p2 F12,l+1∕2,i
            i              i
(5.220)

           4π (    γiζi)
F2,l+1∕2,i = --- 1 - ---- F21,l+1∕2,i
           vi       zi
(5.221)

and

            ∫ i ′ ′  (        ′)  ′
F11,l+1∕2,i =   p vfM  ψl+1∕2,p  dp
             0
(5.222)

           ∫ i    (    γ ′ζ′)    (        )
F12,l+1∕2,i =   p′v′  1- --′-  fM  ψl+1∕2,p′dp ′
             0          z
(5.223)

           ∫ ∞
F21,l+1∕2,i =    p′fM (ψl+1∕2,p′) dp′
            i
(5.224)

for the grid points i, while for the grid points i + 1, one has just to replace i by i + 1 in the set of above expressions.

Furthermore, the expression of coefficient Btee is

 ee
Bt,l+1∕2,i+1∕2 = Bt1,l+1∕2,i+1∕2 + Bt2,l+1∕2,i+1∕2
(5.225)

with

                  ∑5
Bt1,l+1∕2,i+1∕2 = 4π    B [n]
                 n=1  t1,l+1∕2,i+1∕2
(5.226)

and

                  ∑5   [n]
Bt2,l+1∕2,i+1∕2 = 4π    Bt2,l+1∕2,i+1∕2
                 n=1
(5.227)

where

 [1]              1   ∫ i+1∕2      (        )
Bt1,l+1∕2,i+1∕2 = -------       p′2fM  ψl+1∕2,p′ dp′
               2vi+1∕2  0
(5.228)

                             ∫  i+1∕2
B [2]         = - -----1------       p′4f  (ψ    ,p′)dp′
  t1,l+1∕2,i+1∕2    6vi+1∕2p2i+1∕2  0        M   l+1∕2
(5.229)

 [3]                1      ∫ i+1∕2 ′2J′1   (        ′)   ′
Bt1,l+1∕2,i+1∕2 = 8γ2---z2----       p  γ′fM  ψl+1∕2,p  dp
                 i+1∕2i+1∕2  0
(5.230)

 [4]                1   ∫  i+1∕2 ′2J′2   (        ′)   ′
Bt1,l+1 ∕2,i+1∕2 = - 4z2----      p  γ′fM  ψl+1∕2,p  dp
                   i+1∕2  0
(5.231)

                         ∫ i+1∕2  ′2(       ′)
B [5]         =  ----1---        p-- γ′ - ζ- fM (ψ     ,p′)dp′
  t1,l+1∕2,i+1∕2    4 γ2i+1∕2  0     γ′       z′       l+1∕2
(5.232)

and

                  ∫
  [1]            1-  ∞   p′2-  (        ′)   ′
B t2,l+1∕2,i+1∕2 = 2       v′ fM ψl+1∕2,p  dp
                   i+1∕2
(5.233)

 [2]             γ2i+1∕2 ∫ ∞    p′2    (        )
Bt2,l+1∕2,i+1∕2 = - ------      -′2-′fM  ψl+1∕2,p′ dp′
                   6    i+1∕2 γ v
(5.234)

                           ∫ ∞    ′2
B[3]         = ---J1,i+1∕2---      p---1-fM (ψl+1∕2,p′) dp′
 t2,l+1∕2,i+1∕2   8γi+1∕2z2i+1∕2  i+1∕2 v′γ′2
(5.235)

                             ∫
 [4]             γi+1∕2J2,i+1∕2- ∞   p-′2-1-   (        ′)   ′
Bt2,l+1∕2,i+1∕2 = -    4z2        i+1∕2 v′γ ′2fM  ψl+1∕2,p  dp
                      i+1∕2
(5.236)

                              (              ) ∫
  [5]             ------1-----          ζi+1∕2    ∞    ′2 ′   (       ′)  ′
B t2,l+1∕2,i+1∕2 = - 4γi+1∕2p2    γi+1∕2 - zi+1∕2  i+1∕2 p v fM  ψl+1∕2,p  dp
                         i+1∕2
(5.237)

Here,

                         (   3            )
J1,i+1∕2 = - 3γi+1∕2 + ζi+1∕2 ------+ 2zi+1∕2
                           zi+1∕2
(5.238)

J       = γ     + ζi+1∕2- 2-γ    z2
  2,i+1 ∕2    i+1∕2  zi+1∕2  3  i+1∕2 i+1∕2
(5.239)

with

z     = β †2p
 i+1∕2    th i+1∕2
(5.240)

        ∘ ---------
γ     =   1 + z2
 i+1∕2          i+1∕2
(5.241)

and

ζ     = sinh- 1z
 i+1∕2          i+1 ∕2
(5.242)

Coefficients A, Bt and F for the Beliaev-Budker relativistic collision operator need to calculate accurately integrals of type

(  ∫
{   p0iXdp ′
   ∫pi+1∕2Xdp ′
(  ∫0pi+1 Xdp ′
    0
(5.243)

which require a special attention in the vicinity of p = 0, and also of type,

(  ∫∞ Xdp ′
|{  ∫p∞i       ′
|  ∫pi+1∕2 Xdp
(   ∞p   Xdp ′
     i+1
(5.244)

The goal is to ensure an acceptable numerical accuracy which preserves the conservative nature of the equations to be solved by numerical method, without any use of ad-hoc boundary conditions to compensate spurious particle leak arisinf from an improper flux balance at each grid point. For this purpose, a new momentum grid called “super-grid” is introduced, correponding to a refined mesh. Since no specific condition is required as compared to the links between distribution and flux grids, the momentum super-grid is simply defined as a sum of two different meshes for integrals of type 0pi+12 Xdp

        [        [
{   s    p1∕2-       ′   {   s   }
   pi′ ∈ [ nsp ,p1∕2 ,i] → 0{,np - 1 }
   psi′ ∈ p1∕2,pi+1∕2 ,i′ →  0,nsp - 1
(5.245)

one for very fine calculations below p12, and a second, less refined up to pi+12. For integrals of type 0piXdp and 0pi+1Xdp, the corresponding super-grids are defined in the same way,

{      [       ]
   ps∈   p1∕2,p  ,i′ → {0,ns- 1 }
    i′s    nsp   1′   {   s  p }
   pi′ ∈ [p1,pi],i →  0,np - 1
(5.246)

and

{      [       ]      {        }
   psi′ ∈  p1n∕s2,p1 ,i′ →  0,nsp - 1
   ps∈ [p p,p   ],i′ → {0,ns - 1}
    i′    1  i+1          p
(5.247)

It is important to note that p1 correponds to the second point of the grid pi while it is the first one for the grid pi+1, so that numerical integration starts at the same momentum value. Much in the same way, integrals of type piXdp , pi+12Xdp and pi+1Xdp are simply defined on the following super-grids

(  ps∈ [p ,p   -  Δp  ],i′ → {0,ns - 1}
|{   i′  [ i  max     npΔpnp- 1∕2]   p  {        }
|  psi′ ∈ pi+1∕2,pmax - -{-2----,i′} →  0,nsp - 1
(  ps′ ∈ [pi+1,pmax],i′ → 0,nsp - 1
    i
(5.248)

All integrals are performed by the trapezoidal method, even if any more accurate technique like the Simpson method may be used in that case. A crucial point is that integrals exactly end or start at points pi, pi+12 or pi+1 so that no overlap between 0pi+12 Xdp and pi+12Xdp can take place. This is especially important to avoid spurious numerical particle leak, that could break the conservative nature of the equations to be solved.

Concerning the first order Legendre correction that ensures momentum conservation, one must calculate

               3 λ1,1,0    (     (0)(m=1))
{C (fM,f )} ≃ - ------ξ0I  fM ,f0
               2  λ
(5.249)

on the distribution function grid, where

  (0)(m=1 )          ∫  +1   (0)
f0       (p,ξ0,ψ ) =     ξ0f0  (p,ξ0,ψ )dξ0
                     -1
(5.250)

as shown in Sec. 4.1.6.

Therefore, by definition,

                               -l+1∕2,j+1∕2
           (k)                3λ1,1,0------        (      (0)(m=1 ))(k)
{C (fM ,f)}l+1∕2,i+1∕2,j+1∕2 = - 2λl+1∕2,j+1∕2ξ0,j+1∕2I  fM,,f0        l+1∕2,i+1∕2,j+1∕2
(5.251)

where for the Belaiev-Budker relativistic collision operator,

     (       (0)(m=1 )) (k)
I     f0M,,f0        l+1∕2,i+1∕2,j+1∕2
         4π   (
     =  ------ f(00),l(=k1),l+1∕2,i+1∕2,j+1∕2
        γi+1∕2
       --1---  (      (0)(m=1 ))(k)
     + p     I1 fM,,f0        l+1∕2,i+1∕2,j+1∕2
        i+1∕2   (            )              )
     +p     I2  fM,,f(0)(m=1 ) (k)                         (5.252)
        i+1∕2         0        l+1∕2,i+1∕2,j+1∕2
with
  (      (0)(m=1 ))(k)               1∑0  [n](k)
I1 fM,, f0       l+1∕2,i+1∕2,j+1∕2 =    I1,l+1∕2,i+1∕2,j+1∕2
                                  n=1
(5.253)

and

  (             )                  7
I  f   ,f(0)(m=1 ) (k)            =  ∑  I[n](k)
 2  M,   0       l+1∕2,i+1∕2,j+1∕2       2,l+1∕2,i+1∕2,j+1∕2
                                  n=1
(5.254)

The set of coefficients I1[n] is

                       1    ∑i  p3′
I[11],l(+k)1∕2,i+1 ∕2,j+1∕2 = ---------   --i+1∕2 f(0,0)l+(1m∕=21,)i′(k+)1∕2Δpi ′+1∕2
                   3T e,l+1∕2 i′=0γi′+1∕2
(5.255)

 [2](k)               -2γi+1-∕2--∑i  3     (0)(m=1)(k)
I1,l+1∕2,i+1∕2,j+1∕2 = - 3T-         pi′+1∕2f0,,l+1∕2,i′+1∕2Δpi ′+1∕2
                        e,l+1∕2 i′=0
(5.256)

                            ∑i  p5
I[3](k)            = -γi+1∕2--   --i′+1∕2 f(0)(m=1)′(k) Δpi ′+1∕2
 1,l+1∕2,i+1 ∕2,j+1∕2   5T 2e,l+1∕2 i′=0γi′+1∕2 0,l+1∕2,i+1∕2
(5.257)

 [4](k)             ∑i  pi′+1∕2(          ζi′+1∕2 )  (0)(m=1 )(k)
I1,l+1∕2,i+1∕2,j+1∕2 =     γ′----  γi′+1∕2 - z′---- f 0,l+1∕2,i′+1 ∕2Δpi ′+1∕2
                   i′=0  i+1∕2            i+1∕2
(5.258)

                             i   3
 [5](k)                γi+1∕2-∑   pi′+1∕2J2,i′+1∕2 (0)(m=1)(k)
I1,l+1∕2,i+1∕2,j+1∕2 = - Te,l+1∕2    γi′+1∕2 z2′    f0,l+1∕2,i′+1∕2Δpi′+1∕2
                            i′=0         i+1∕2
(5.259)

                      γi+1 ∕2p2    - 5T-e,l+1∕2 ∑i  p3′
I[16],l(+k)1∕2,i+1 ∕2,j+1∕2  =   ------i+1∕22-----------   --i+1∕2 f(0,0)l+(1m∕=21,)i′(k+)1∕2Δpi ′+1∕2
                            6 Te,l+1∕2       i′=0γi′+1∕2
                        (                          )
                      ×  1 + --3--- - 3γi′+1∕2ζi′+1∕2                    (5.260)
                             z2i′+1∕2      z3i′+1∕2
 [7](k)                 γi+1∕2   ∑ i p3i′+1∕2J3,i′+1∕2 (0)(m=1)(k)
I1,l+1 ∕2,i+1∕2,j+1∕2 = --†2-2-----    --------------f0,l+1∕2,i′+1∕2Δpi′+1∕2
                   2βthTe,l+1∕2i′=0 γi′+1∕2 zi′+1∕2
(5.261)

 [8](k)             --γi+1∕2--∑i  p3i′+1∕2J1,i′+1-∕2- (0)(m=1 )(k)
I1,l+1∕2,i+1∕2,j+1∕2 = 2T-          γ′     z2′     f0,l+1∕2,i′+1 ∕2Δpi ′+1∕2
                      e,l+1∕2 i′=0  i+1∕2  i+1∕2
(5.262)

                    p2     ∑i        (                )
I[9](k)            = --i+1∕2-    pi′+1∕2  γi′+1∕2ζi′+1∕2 - 1  f(0)(m=1)′(k)  Δpi′+1 ∕2
 1,l+1∕2,i+1∕2,j+1∕2   Te,l+1∕2 i′=0γi′+1∕2     zi′+1 ∕2          0,l+1∕2,i+1∕2
(5.263)

  [10](k)                 γ2i+1∕2    ∑i p3i′+1∕2 J4,i′+1∕2  (0)(m=1 )(k)
I1,l+1∕2,i+1∕2,j+1∕2 = -----†2--2----    ------ -------f0,l+1∕2,i′+1∕2Δpi′+1∕2
                     12βthT e,l+1∕2 i′=0γi′+1∕2  zi′+1∕2
(5.264)

and the coefficients I2[n] are

 [1](k)                 1    np∑-1   1    (0)(m=1)(k)
I2,l+1∕2,i+1∕2,j+1∕2 = ---------    γ′----f0,l+1∕2,i′+1∕2Δpi′+1∕2
                   3Te,l+1∕2 i′=i  i+1∕2
(5.265)

                   (                2     ) np- 1
 2(k)                  -2γi+1∕2-  --pi+1∕2--  ∑    (0)(m=1)(k)
I2,l+1∕2,i+1∕2,j+1∕2 =  - 3T-      + 5T-2           f0,l+1∕2,i′+1∕2Δpi′+1∕2
                         e,l+1∕2      e,l+1∕2   i′=i
(5.266)

                   (         ζ     )       n∑p- 1
I2[3,](l+k1)∕2,i+1∕2,j+1∕2 =  γi+1 ∕2 - -i+1∕2-  -21---    ---1--f0(0,)l+(m1=∕12,i)(′+k1)∕2Δpi′+1∕2
                             zi+1∕2   pi+1∕2 i′=i γi′+1∕2
(5.267)

 [4](k)                  J2,i+1∕2    n∑p- 1 (0)(m=1)(k)
I2,l+1∕2,i+1∕2,j+1∕2 = - -2-----------    f0,l+1∕2,i′+1∕2Δpi′+1∕2
                     zi+1∕2Te,l+1∕2 i′=i
(5.268)

                     (                         )
I[5](k)             =    1+  --3---- 3γi+1∕2ζi+1∕2  ----1----
 2,l+1 ∕2,i+1∕2,j+1∕2           z2i+1∕2      z3i+1∕2     6T-2
                           (                 --     e),l+1 ∕2
                       np∑-1  γi′+1 ∕2p2i′+1∕2 - 5Te,l+1∕2   (0)(m=1)(k)
                     ×       ---------γ′------------  f0,l+1∕2,i′+1∕2Δpi′+1∕2
                        i′=i            i+1∕2
                                                                       (5.269)
                      (
 [6](k)                       J3,i+1∕2           J1,i+1∕2
I2,l+1∕2,i+1∕2,j+1∕2  =    --------†2-2-----+  --2-----------
                       2zi+1∕2βthTe,l+1∕2   2zi+1∕2T e,l+1∕2
                                         )   np∑-1
                      - -----J4,i+1∕2------ ×      f(0)(m=1)′(k) Δp  ′
                        12zi+1∕2β†t2hT2e,l+1∕2     i′=i  0,l+1∕2,i+1∕2   i+1∕2

                                                                     (5.270)
 [7](k)                      1       (γi+1∕2ζi+1∕2    )
I2,l+1∕2,i+1∕2,j+1∕2  =   -2----------- ---z------- - 1
                      pi+1∕2Te,l+1∕2      i+1 ∕2
                       np∑-1 p2′
                     ×      -i+1∕2f(00,l)(+m1=∕12,)i′(+k)1∕2Δpi′+1∕2        (5.271)
                        i′=i γi′+1∕2
where
           3γi+1∕2ζi+1∕2   --3---          2- 3
J3,i+1∕2 = -    zi+1∕2    + zi+1∕2 + zi+1∕2 - 5 zi+1∕2
(5.272)

                    (          )
                        15           15
J4,i+1∕2 = γi+1∕2ζi+1∕2 -2----+ 6  -  ------+ 11zi+1∕2
                      zi+1∕2        zi+1∕2
(5.273)

and

                   nξ -1
  (0)(l=1)(k)          ∑0          (0)(k)
f0,l+1∕2,i+1∕2,j+1∕2 =     ξ0,j′+1∕2f0,l+1∕2,i+1∕2,j′+1∕2Δξ0,j′+1∕2
                    j′=0
(5.274)

For this case, integrals are simply calculated according to the rule

{  ∫pi+1∕2        ∑i
   ∫0    Xdp ′ → ∑ i′=0 Xi′+1∕2Δpi′+1∕2
    ∞p    Xdp ′ →   nip′=-i1Xi ′+1∕2Δpi′+1∕2
     i+1∕2
(5.275)

so that f0,l+12,i+12,j+12(0)(l=1)(k) must not be interpolated between 0 and pi+12 for refined calculations as done for coefficients Aee, Btee and Fee. Even if by this techniqe, the numerical accuracy is poor in the vicinity of p = 0, consequences are fairly negligible for the momentum conservation and the current level, since first-order Legendre corrections are weighted by p.

Relativistic Maxwellian background The relativistic Maxwellian background corresponds to that case where the first order Legendre correction for momentum conservation is neglected. Matrix coeffients Aee, Btee and Fee determined in the previous section are used.

Non-relativistic Maxwellian background For this case, matrix coefficients are

  ee               ne,l+1∕2      [   (          )                ′(          )]
A l+1∕2,i+1∕2 = 2v----u2--------- erf ul+1∕2,i+1 ∕2  - ul+1 ∕2,i+1∕2erf  ul+1∕2,i+1∕2
                i+1∕2 l+1∕2,i+1∕2
(5.276)

             n-      [   (          )                 (          )]
Flee+1∕2,i+1∕2 = --e,2l+1∕2  erf  ul+1∕2,i+1∕2  - ul+1∕2,i+1∕2erf′ ul+1∕2,i+1∕2
              vi+1∕2
(5.277)

and

Bt,l+12,i+12ee =      ne,l+1 ∕2
4v----u2---------
  i+1∕2 l+1∕2,i+1∕2[(  2            )    (          )
  2ul+1∕2,i+1∕2 - 1 erf  ul+1∕2,i+1∕2
                (          )]
+ul+1∕2,i+1∕2erf′ ul+1∕2,i+1∕2 (5.278)

where

             -vi+1∕2-
ul+1∕2,i+1∕2 = 2ne,l+1∕2
(5.279)

For values of the matrix coefficients Aee, Btee and Fee on the momentum flux grids, one just has to replace i + 12 by i or i + 1.

High velocity limit Though the high velocity limit corresponds to a restricted range of application regarding the full collision operator, it can contribute to useful comparisons with some theoretical calculations. Therefore, this possibility has been implemented in the code. In that case, expressions of the coefficients are greatly simplified,

                1  --     --
Aeel+1∕2,i+1∕2 = -3---ne,l+1∕2Te,l+1∕2
              vi+1∕2
(5.280)

and

Fele+1∕2,i+1∕2 = --1---ne,l+1∕2
             v2i+1∕2
(5.281)

while

Bee         =  --1---n-     -  --1---n-     T-
  t,l+1∕2,i+1∕2   2vi+1∕2 e,l+1∕2   2v3i+1∕2  e,l+1∕2  e,l+1∕2
(5.282)

Since no integrals appear in the coefficients, the expressions at momentum flux grid points i and i + 1 can be obtained in a straightforward manner, by just replacing i + 12 by the corresponding index values. In that limit, the first-order Legendre correction is neglected. In the calculations, both electron-electron and electron-ion collision model in the high velocity limit are used for a consistent description of the collisions.

Non-relativistic Lorentz model This very simple case corresponds to

Aele+1∕2,i+1∕2 = Flee+1∕2,i+1∕2 = Beet,l+1∕2,i+1∕2 = 0
(5.283)

and also on the momentum flux grid points i and i + 1. Obviously, the first-order Legendre correction is also neglected in that case.

Electron-ion collision operator

Non-relativistic Maxwellian background In that case matrix coefficients are

  ei             ---1---∑   ∑  -----1-----[    ( ss′       )
A l+1∕2,i+1∕2  =  2vi+1∕2       uss′2        erf  ul+1∕2,i+1∕2
                        s   s′  l+(1∕2,i+1∕2   )]
                - ul+1∕2,i+1∕2erf′ uss′         Z2 ′nss′,l+1∕2      (5.284)
                                   l+1∕2,i+1∕2    ss

Fl+12,i+12ei =   1
-2----
vi+1∕2 s s[    (   ′      )
 erf  usls+1∕2,i+1∕2
  ss′          ′( ss′      )]
- ul+1∕2,i+1∕2erf  ul+1∕2,i+1∕2Zss2--
nss′,l+1∕2
   ms (5.285)

and

 ei              ---1---∑  ∑   -----1-----[(  ss′2          )    ( ss′      )
Bt,l+1∕2,i+1∕2  =   4vi+1∕2       uss′2         2ul+1∕2,i+1∕2 - 1 erf  ul+1∕2,i+1∕2
                         s  s′  l+(1∕2,i+1∕2   ) ]
                 +uss′       erf′ uss′         Z2 ′nss′,l+1∕2              (5.286)
                    l+1∕2,i+1∕2      l+1∕2,i+1∕2    ss
where
                v               v
usls+′1∕2,i+1∕2 = ----i+1∕2-- = -∘----i+1∕2-----
             2vt†h,ss′,l+1∕2   2   Tss′,l+1∕2∕ms

In the case Tss,l+12 = 0, to avoid a singularity,

Aei        = Bei          = 0
  l+1∕2,i+1∕2    t,l+1∕2,i+1∕2
(5.287)

while

                             --
 ei          --1---∑  ∑    2 nss′,l+1-∕2
Fl+1∕2,i+1∕2 = v2          Z ss′   ms
              i+1∕2  s  s′
(5.288)

since erf(+∞ ) = 1 and erf(+∞ ) = 0.

Finally, for values of the matrix coefficients Aei,Fei and Btei on the momentum flux grids, one just has to replace i + 12 by i or i + 1.

High-velocity limit In this limit, matrix coefficients are

                                      --
  ei            1   ∑  ∑    2 nss′,l+1∕2T ss′,l+1∕2
A l+1∕2,i+1∕2 = -3----      Z ss′-------m---------
              vi+1∕2  s  s′             s
(5.289)

                   ∑  ∑      --
Fei       =  --1---      Z2ss′nss′,l+1-∕2
 l+1∕2,i+1∕2   v2i+1∕2  s  s′       ms
(5.290)

The double sum s s takes into account of all ions species s in ionization state s. Here, nss,l+12 is the normalized ion density at ψl+12, as introduced in Sec. 6.3.1, and ms is the ion rest mass normalized to the electron rest mass me.

Coefficients Aei and Fei must be also calculated on the flux grids and therefore, according to the previous definition,

          1 ∑   ∑      n-′     T- ′
Aeli+1∕2,i = -3       Z2ss′-ss,l+1∕2-ss,l+1∕2-
          vi s  s′           ms
(5.291)

and

                       --
F ei    =  1-∑   ∑  Z2 ′nss′,l+1∕2
 l+1∕2,i   v2i s   ′  ss   ms
                s
(5.292)

for the grid points i, while for the grid points i + 1, one has just to replace i by i + 1 in the set of above expressions.

Furthermore, the expression of coefficient Btei is

                                        (          --       )
Bei         = ---1---∑   ∑  Z2 ′n-′       1- --1---T-ss′,l+1∕2-
 t,l+1∕2,i+1∕2   2vi+1∕2 s   ′  ss  ss,l+1∕2     v2i+1∕2   ms
                         s
(5.293)

Non-relativistic Lorentz model In that limit

 ei            ei
Al+1∕2,i+1∕2 = Fl+1∕2,i+1∕2 = 0
(5.294)

while

Bei         = 1∕2
 t,l+1∕2,i+1∕2
(5.295)

A straightforward extrapolation may be done for the momentum flux grid i by i + 1.

5.4.6 Ohmic electric field

According to the bounce averaged expression,

        (|    E(0)
        ||||  D pp,l+1∕2,i+1,j+1∕2 = 0
        |||  DEpp(0,)l+1∕2,i,j+1∕2 = 0
        ||||  DE (0)           =  0
        ||||    pξE,(0l+)1∕2,i+1,j+1∕2
        |||  D ξp,l+1∕2,i+1∕2,j+1 = 0
-E (0)   ||{  DE (0)             = 0
Dp   →       pξE,(0l+)1∕2,i+1∕2,j+1∕2
        |||  D ξp,l+1∕2,i+1∕2,j+1∕2 = 0
        ||||  DE (0)         =  0
        |||    pξE,(0l+)1∕2,i,j+1∕2
        ||||  D ξp,l+1∕2,i+1∕2,j = 0
        ||||  DE (0)           =  0
        |||    ξξE,(0l+)1∕2,i+1∕2,j+1
        (  D ξξ,l+1∕2,i+1∕2,j = 0
(5.296)

and

         (                   (--                    )        --
         ||  FE(0)          =  λl+1,1-∕12,2,j+1∕2∕λl+1∕2,j+1 ∕2  ξ0,j+1∕2E∥0,l+1∕2
         ||||   pE,l(+01)∕2,i+1,j+1∕2(--l+1∕2,j+1∕2           )       --
--E(0)   {  Fp,l+1∕2,i,j+1∕2 =  λ 1,-(1,2     ∕λl+1∕2,j+1∕2 )ξ0∘,j+1∕2E-∥0,l+1∕2
F p   →  |  FE(0)          = -  λl+1∕2,j+1∕λl+1∕2,j+1    1- ξ2   E-
         ||||   ξ,l+1∕2,i+1∕2,j+1   (--  1,-1,2       )∘ ---------  0,j+1  ∥0,l+1∕2
         |(  FE(0)        = -  λl+1,1-∕12,2,j∕λl+1∕2,j   1 - ξ20,jE ∥0,l+1∕2
             ξ,l+1∕2,i+1∕2,j
(5.297)

where E0,l+12 is the parallel component of the Ohmic electric field along the magnetic field line direction normalized to the Dreicer field taken at the poloidal position where the magnetic field B is minimum, as explained in Sec.4.2.

It is important to recall that the Ohmic electric field operator has a cylindrical symmetry, while the description of the electron dynamics in momentum space is based on the spherical symmetry of the collision operator. As a consequence, there is a fundamental contradiction for the internal boundary at p = 0 where p2Sp = 0. Indeed, for large values of E0, the maximum of the distribution function f0(0) is no more at p = 0, but may be significantly shifted along the axis p = 0. Since in that extrem case p2Sp0 at p = 0 while it is naturally enforced to be null by construction with the grid definition, the distribution function has a wrong shape close to p = 0 and the conservative scheme is no more preserved. It is also important to note that the external boundary ∂f0(0)∕∂ξ0 = 0 at ξ0 = 0 is also no more consistent with initial bounce averaged assumptions, which represents also an important failure of the use of the code.

Consequently, in order to avoid a misuse of the code, the range of validity of E0 is restricted so that condition

|     |
||FEp-(0)||
|| C (0)|| ≪ 1
 Fp
(5.298)

is fullfiled at p∕pth = 1. Using the high-velicity limit of the collision operator, this corresponds roughly to

--
E∥0-≃ E-∥0 ≪  1
ne
(5.299)

since ne 1 in normalized units, as defined in Sec.6.3.1. Consequently, flux surface averaged value of the Ohmic electric field ⟨--⟩
 E should be restricted to 0.05, in Dreicer units. A warning is indicated when this value is exceeded.

Radio-frequency waves

From the expressions given in Sec. 4.3.7, the components of the tensor DpRF(0) are

DRF (0)          =  ∑+ ∞   ∑  (1 - ξ2    )DRF (0)
  pp,l+1∕2,i+1,j+1∕2 ∑   n=-∞∑    b     0,j+1∕2RFb(,n0,)l+1∕2,i+1,j+1∕2
DRFpp,(0l+)1∕2,i,j+1∕2 =   +n∞=-∞    b(1 - ξ20,j+1∕2)D b,n,l+1∕2,i,j+1∕2
                   ∑      ∑     ∘1-ξ20,j+1∕2 [             nΩ        ]--RF(0)
DRFpξ,(0l+)1∕2,i+1,j+1∕2 =   +n∞=-∞    b- -ξ0,j+1∕2--- 1- ξ20,j+1∕2 - --0,l+1ω∕b2,i+1- D b,n,l+1∕2,i+1,j+1∕2
                   ∑      ∑     ∘1-ξ2---[                    ]--
DRFξp,(0l+)1∕2,i+1∕2,j+1 =   +n∞=-∞    b- -ξ--0,j+1-1 - ξ20 - nΩ0,l+1ω∕2,i+1∕2 DRFb,n(,l0+)1∕2,i+1∕2,j+1
                                 ∘01,j+-1ξ2----[           b        ]--
DRF (0)            = ∑+n=∞-∞ ∑b - -----0,j+1∕2 1 - ξ20 - nΩ0,l+1∕2,i+1∕2 DRFb,n(,0l+)1∕2,i+1∕2,j+1∕2
  pξ,l+1∕2,i+1∕2,j+1∕2                ∘ ξ0,j+12∕2--[             ωb     ]
DRF (0)            = ∑+  ∞   ∑  - --1-ξ0,j+1∕2 1 - ξ2- nΩ0,l+1∕2,i+1∕2 DRF (0)
  ξp,l+1∕2,i+1∕2,j+1∕2     n= -∞  ∘b---2ξ0,j+1∕[2        0       ω]b        b,n,l+1∕2,i+1∕2,j+1∕2
DRF (0)        = ∑+  ∞   ∑   ---1-ξ0,j+1∕2 1 - ξ2-  nΩ0,l+1∕2,i DRF (0)
  pξ,l+1∕2,i,j+1∕2     n=-∞   b  ∘ ξ0,j+1∕2        0      ωb      b,n,l+1∕2,i,j+1∕2
  RF(0)          ∑+  ∞   ∑    --1-ξ20,j[     2    nΩ0,l+1∕2,i+1∕2]--RF(0)
D ξp,l+1∕2,i+1∕2,j =   n=-∞   b -  ξ0,j [ 1 - ξ0,j -     ωb    ] D b,n,l+1∕2,i+1∕2,j
DRF (0)          =  ∑+ ∞   ∑   -21-- 1- ξ2  - nΩ0,l+1∕2,i+1∕2 2DRF (0)
  ξξ,l+1∕2,i+1∕2,j+1     n=-∞   b ξ0,[j+1      0,j       ωb ]2--    b,n,l+1∕2,i+1∕2,j+1
DRF (0)        = ∑+  ∞   ∑   -12- 1-  ξ2 - nΩ0,l+1∕2,i+1∕2  DRF (0)
  ξξ,l+1∕2,i+1∕2,j     n=-∞   b ξ0,j     0,j       ωb         b,n,l+1∕2,i+1 ∕2,j
(5.300)

and

         (|   RF(0)
         ||||  Fp,l+1∕2,i+1,j+1∕2 = 0
-RF(0)   {  FRpF,l(+01)∕2,i,j+1∕2 = 0
Fp    →  |   RF(0)
         ||||  Fξ,l+1∕2,i+1∕2,j+1 = 0
         (  FRξF,l(+01)∕2,i+1∕2,j = 0
(5.301)

where Ω0,l+12,i+12 is the electron cyclotron frequency taken at the minimum B value

               Ωi+1∕2
Ω0,l+1∕2,i+1∕2 = Ψ-----
                l+1∕2
(5.302)

Here the dependence of Ω0,l+12,i+12 with the index i arises from relativistic down-shift. The indexes n and b correspond respectively to the wave harmonics and the narrow beam label (for ray-tracing calculations). The discrete expression of the quasilinear diffusion coefficient Db,n,l+12,i+12,j+12RF(0) is

--                                                    r       B θb       ξ2
DRFb,n(0,l)+1∕2,i+1∕2,j+1∕2  =   --γi+1|∕2pTe--|-------1---------θb,l+1∕2--l+1∕2-----0,j+12----
                        pi+1∕2|ξ0,j+1∕2|λl+1∕2,j+1∕2^ql+1∕2  Rp   B θPb,l+1∕2ξ2θb,l+1∕2,j+1∕2
                                 --RF,θb
                       × Ψ θb,l+1∕2D b,n,0,l+12H (θb - θmin)H (θmax - θb)
                         [   ∑  ]   (                         )|                   |2
                       ×   1-     δ  Nb∥ - N∥θbres,l+1∕2,i+1∕2,j+1∕2 ||Θbk,,(nθ),l+1∕2,i+1∕2,j+1∕2||
                           2  σ  T                                  b
                                                                              (5.303)
where

  b,(n)                   -1-     -iαb    (  θb             )
Θ k,θb,l+1∕2,i+1∕2,j+1∕2  =   √2-eb0,+e    Jn-1 zb,l+1∕2,i+1∕2,j+1∕2
                           1               (                )
                        + √--eb0,- e+iαbJn+1  zθbb,l+1∕2,i+1∕2,j+1∕2
                            2                           (                )
                        + ∘-------ξθb,l+1∕2---------e  J   zθb
                                     (    2     )  b0,∥  n  b,l+1∕2,i+1∕2,j+1∕2
                            Ψ θb,l+1∕2  1- ξ0,j+1∕2

                                                                        (5.304)
                                      (         n′Ψ      ω    )
N∥θbres,l+1∕2,i+1∕2,j+1∕2 = -1-------pTe-----  γi+1∕2 - ---θb,l+1∕2-ce,0
                     βT epi+1∕2ξθb,l+1∕2                ωb
(5.305)

--                                                fl+1∕2
DRFb,,n,θ0b,l+1∕2 = -------1------- -----1--------21------inc,b-Pb,inc
             rθb,l+1∕2R θb,l+1 ∕2 me ln Λl+1∕2ωbωpe,l+1∕2 |Φb|
(5.306)

with

                                        ∘ -----------
                                  p       1-  ξ02,j+1 ∕2
zbθb,l+1∕2,i+1∕2,j+1∕2 = - Nb⊥---ωb-----i+1∕2--∘-----------
                         ωce,0,l+1∕2 mec     Ψ θb,l+1∕2
(5.307)

and

ψ^ θb,l+12 = ψ^ (ψl+12b) (5.308)
rθb,l+12 = r(        )
 ψl+1∕2,θb (5.309)
Rθb,l+12 = R(         )
 ψl+1∕2,θb (5.310)
Bl+12θb = B(         )
 ψl+1∕2,θb (5.311)
BP,l+12θb = BP (        )
 ψl+1∕2,θb (5.312)
Ψθb,l+12 =   (        )
B--ψ(l+1-∕2,θb)--
 B0 ψl+1∕2 =   θb
-Bl+1∕2-
B0,l+1 ∕2 (5.313)
ξθb,l+12,j+12 = ξ(ψ    ,θ ,ξ      )
  l+1∕2  b  0,j+1∕2 = σ∘ ------------(----------)-
  1- Ψ         1- ξ2
       θb,l+1∕2      0,j+1∕2 (5.314)

All coefficients corresponding to different indexes may be obtained readily by performing the adequate index transformation, i + 12 (i,i+ 1) and j + 12 (j,j + 1)