Next, let us calculate the gradient of the generalized toroidal angle α, which is defined by Eq. (299),
i.e., α = ϕ −δ, where δ = ∫0𝜃d𝜃 = ∫0𝜃B ⋅∇ϕ∕(B ⋅∇𝜃)d𝜃. The gradient of α is written as
Using Eqs. (208) and (209), the above expression is written as
(Note that ∂δ∕∂ψ is discontinuous across the 𝜃 cut.) Then
Fig. 14: The value of 𝜃, α and their gradients on an annulus on the poloidal plane (R,Z). Note
that ∇𝜃 is single-valued while ∂α∕∂R and ∇α are multi-valued and thus there is a jump near
the branch cut when a single branch is chosen.
Fig. 15: The same as Fig. 14, but gradients are computed in cylindrical coordinates. The results
agrees with those of Fig. 14, which provides the confidence in the correctness of the numerical
implementation.