12 Concentric-circular magnetic configuration with a given safety factor profile

Assume magnetic surfaces of a magnetic configuration are known and given by

R (r,𝜃) = R0 + rcos𝜃,
(342)

Z(r,𝜃) = rsin 𝜃,
(343)

where (r,𝜃) are two parameters and r is magnetic surface label (i.e., ∂Ψ∕∂𝜃|r = 0). The above parametric equations specify a series of concentric-circular magnetic surfaces.

Assume the toroidal field function g(r) = RBϕ is given. Then the toroidal magnetic field is determined by Bϕ = g∕R. Further assume the safety factor profile q(r) is given, then the magnetic field is fully determined. Next, let us derive the explicit form of the poloidal magnetic field Bp, which is given by

Bp = ∇ Ψ × ∇ ϕ = 1-∇ Ψp × ∇ ϕ,
                2π
(344)

which involves the poloidal magnetic flux Ψp. Therefore our task is to express Ψp in terms of q and g. Using q(r) = t∕dΨp, we obtain

p = 1
qt,

Integrate the above equation over r, we obtain

∫ r      ∫ r1
   dΨp =    -dΨt,
 0        0 q
(345)

which an be written as

              ∫ r     (∫ r∫ π        )
Ψ (r)− Ψ (0) =    -1--d        B rdrd𝜃  ,
 p      p      0 q(r)   0  − π ϕ
(346)

where use has been made of Ψt = 0r ππBϕrdrd𝜃. Using Bϕ = g∕R and R = R0 + r cos𝜃, the above equation is written

              ∫ r     ( ∫ r∫ π               )
Ψp (r)− Ψp(0) =    -1-d         ----g-----rdrd𝜃
               0  q(r)    0  −π R0 + r cos𝜃
(347)

Using maxima (an open-source computer algebra system), the above integration over 𝜃 can be performed analytically, giving

∫ π     1            2π
    ----------d𝜃 = ∘--2---2.
 −π R0 + r cos𝜃      R 0 − r
(348)

Using this, equation (347) is written as

              ∫       (∫             )
                r-1--    r --2πgr---
Ψp(r)− Ψp(0) =  0 q(r)d   0  ∘R2-−-r2dr  ,
                              0
(349)

which can be simplified as

              ∫ r
Ψp(r) − Ψp(0) =    -1--∘-2πgr--dr.
               0 q(r)   R20 − r2
(350)

This is what we want—the expression of the poloidal magnetic flux in terms of q and g. [Another way of obtaining Eq. (350) is to use Eq. (160), i.e.,

dΨ     g ∫ 2π 𝒥
--p= − -     -2d𝜃,
dr     q  0  R
(351)

where 𝒥 is the Jacobian of the (r,𝜃,ϕ) coordinates and is given by 𝒥 = R(R𝜃Zr RrZ𝜃) = Rr. Then Eq. (351) is simplified as

       ∫ 2π        ∫ 2π
dΨp-= g     rd𝜃 = g     ----r-----d𝜃 = g r∘-2π---,
dr    q 0   R     q  0  R0 + r cos𝜃    q    R20 − r2
(352)

which, after being integrated over r, gives Eq. (350).]

Using Eq. (350), the poloidal magnetic field in Eq. (344) is written as

                (                  )
      ∇r×-∇-ϕ-∂-- ∫ r-1----2πgr---
Bp =    2π    ∂r   0 q(r) ∘R2-−-r2dr
                            0
   = ∇r × ∇ ϕ-1--∘--gr---.                            (353)
             q(r)  R20 − r2
[Using the formulas r = R𝒥-(Z𝜃RˆR𝜃ˆZ) and 𝒥 = R(R𝜃Zr RrZ𝜃), where 𝒥 is the Jacobian of the (r,𝜃,ϕ) coordinates, we obtain 𝒥 = Rr and r = cos𝜃Rˆ + sin𝜃ˆZ, ϕ = ˆϕ∕R. Then Eq. (353) is written as
     cos𝜃ˆZ − sin 𝜃ˆR  1     gr
Bp = ------------- ---∘---2---2
           R       q(r)  R 0 − r
(354)

This is the explicit form of the poloidal magnetic field in terms of g and q. The magnitude of Bp is written as

     -----1-------1-----gr----
Bp = (R0 + rcos𝜃)q(r) ∘R2-−-r2
                        0
(355)

Note that both Bp and Bϕ depend on the poloidal angle 𝜃.]

I use Eq. (350) to compute the 2D data of Ψ (Ψ = Ψp2π) on the poloidal plane when creating a numerical G-eqdsk file for the above magnetic configuration (Fortran code is at /home/yj/project_new/circular_configuration_with_q_given).

Assume that the poloidal plasma current is zero, then g(r) = RBϕ is a constant independent of r. This is always assumed by the authors who use concentric-circular configuration but is seldom explicitly mentioned.

In analytical work, 1∕R dependence on (r,𝜃) is often approximated as

1-
R = ----1-----
R0 + r cos𝜃 = -1-
R0----1----
1+ 𝜀 cos𝜃 -1-
R0(1 𝜀cos𝜃),

where 𝜀 = r∕R0 is the local inverse aspect ratio.

  12.1 Is the above B divergence-free?
  12.2 Is the above B a solution to the GS equation?
  12.3 Explicit expression for the generalized toroidal angle
  12.4 Metric elements
  12.5 Safety factor profile