8 Constructing model tokamak magnetic field

In some cases (e.g., turbulence simulation), model tokamak magnetic field, which is not an exact solution to the GS equation, is often used. In the model, the safety factor profile q(ψ), toroidal field function g(ψ), and the magnetic surface shape (R(ψ,𝜃),Z(ψ,𝜃)) are given. To use this model in a simulation, we need to calculate its poloidal magnetic field, which is determined by the poloidal magnetic flux function Ψ. To determine Ψ, we need to use Eq. (160), i.e.,

             ∫ 2π
q(ψ) = −-1-g-     𝒥-d𝜃,
        2π Ψ′  0  R2
(218)

and re-organize the formula as

dΨ      1 g(ψ )∫ 2π 𝒥
---= − -------    --2d𝜃,
dψ     2π q(ψ ) 0  R
(219)

which can be integrated to obtain Ψ and thus the poloidal magnetic field Bp = Ψ ×∇ϕ, where 𝒥 = [(ψ ×∇𝜃) ⋅∇ϕ]1. The toroidal magnetic field can be obtained from g(ψ) by Bϕ = g∕R. In most papers, g(ψ) is chosen to be a constant.

A typical magnetic surface shape used in simulations is the Miller shape, which is given by

R (r,𝜃) = R0 (r)+ r cos[𝜃+ (sin−1δ(r))sin𝜃]
Z (r,𝜃) = κ(r)rsin 𝜃
(220)

where r = ψ is the radial coordinate, R0(r), δ(r), and κr(r) are the Shafronov shift, triangularity, and elongation profiles, which can be arbitrarily specified. For the special case of R0 being a constant, δ(r) = 0, and κ(r) = 1, this shape reduces to a concentric-circular magnetic field. An example of calculating the poloidal field of the model field is given in Sec. 12. This kind of model field can be called theoretical physicists’ tokamak. Computational physicists often use this model for code benchmarking purpose. The famous DIII-D cyclone base case is an example, which was extensively used for benchmarking gyrokinetic simulation of ion temperature driven turbulence.