12.1 General toroidal angle ΞΆ

In Sec. 8.1, we introduced the local safety factor Λ†q (ψ,πœƒ). Equation (156) indicates that if the Jacobian is chosen to be of the particular form π’₯ = h(ψ)R2, then the local safety factor is independent of πœƒ, i.e., magnetic line is straight in (πœƒ,Ο•) plane. On the other hand, if we want to make field line straight in (πœƒ,Ο•) plane, the Jacobian must be chosen to be of the specific form π’₯ = h(ψ)R2. We note that, as mentioned in Sec. 8.3, the poloidal angle is fully determined by the choice of the Jacobian. The specific choice of π’₯ = Ξ±(ψ)R2 is usually too restrictive for achieve a desired poloidal resolution (for example, the equal-arc poloidal angle can not be achieved by this choice of Jacobian). Is there any way that we can make the field line straight in a coordinate system at the same time ensure that the Jacobian can be freely adjusted to obtain desired poloidal angle? The answer is yes. The obvious way to achieve this is to define a new toroidal angle ΞΆ that generalizes the usual toroidal angle Ο•. Define a new toroidal angle ΞΆ by[10]

ΞΆ = Ο•βˆ’ q(ψ)Ξ΄(ψ,πœƒ),
(250)

where Ξ΄ = Ξ΄(ψ,πœƒ) is a unknown function to be determined by the constraint of field line being straight in (πœƒ,ΞΆ) plane. Using Eq. (157), the new local safety factor in (ψ,πœƒ,ΞΆ) coordinates is written as

Λ†qnew ≑ B-β‹…βˆ‡-ΞΆ
      B β‹…βˆ‡ πœƒ
    = (βˆ‡-ϕ×-βˆ‡-ψ+-Λ†qβˆ‡-ψ-Γ—βˆ‡-πœƒ)β‹…βˆ‡-ΞΆ
      (βˆ‡ ϕ× βˆ‡ ψ+ Λ†qβˆ‡ ψ Γ—βˆ‡ πœƒ)β‹…βˆ‡ πœƒ
      βˆ‡-ϕ×-βˆ‡-ψ-β‹…βˆ‡ΞΆ-+qΛ†βˆ‡-ψ-Γ—-βˆ‡πœƒ-β‹…βˆ‡ΞΆ
    =        (βˆ‡Ο• Γ— βˆ‡Οˆ )β‹…βˆ‡πœƒ
      βˆ‡ ϕ× βˆ‡ ψ β‹…βˆ‡(βˆ’ qΞ΄)+ Λ†qβˆ‡ ψ Γ—βˆ‡ πœƒβ‹…βˆ‡ Ο•
    = ---------(βˆ‡Ο•-Γ—-βˆ‡Οˆ-)β‹…βˆ‡πœƒ---------

    = βˆ’ qβˆ‚Ξ΄+ Λ†q.                                       (251)
         βˆ‚πœƒ
To make the new local safety factor be independent of πœƒ, the right-hand side of Eq. (251) should be independent of πœƒ, i.e.,
   βˆ‚Ξ΄
βˆ’ q---+qΛ†= c(ψ ),
   βˆ‚πœƒ
(252)

where c(ψ) can be an arbitrary function of ψ. A convenient choice for c(ψ) is c(ψ) = q, i.e., making the new local safety factor be equal to the original global safety factor, i.e., Λ†q new = q. In this case, equation (252) is written as

βˆ‚Ξ΄   Λ†q
βˆ‚πœƒ-= q βˆ’ 1,
(253)

which, on a magnetic surface labed by ψ, can be integrated over πœƒ to give

                              ∫
Ξ΄(ψ,πœƒ) = Ξ΄(ψ,πœƒ )βˆ’ (πœƒβˆ’ πœƒ  )+ 1   πœƒ Λ†qdπœƒ,
             ref        ref   q  πœƒref
(254)

where πœƒref is an starting poloidal angle arbitrarily chosen for the integration, and Ξ΄(ψ,πœƒref) is the constant of integration. In the following, both πœƒref and Ξ΄(ψ,πœƒref) will be chosen to be zero. Then the above equations is written

         1∫ πœƒ
Ξ΄ = βˆ’ πœƒ +-   qΛ†dπœƒ.
         q 0
(255)

Substituting the above expression into the definition of ΢ (Eq. 250), we obtain

           ∫ πœƒ
ΞΆ = Ο• + qπœƒβˆ’   Λ†qdπœƒ,
            0
(256)

which is the formula for calculating the general toroidal angle. If πœƒ is a straight-field line poloidal angle, then ΞΆ in Eq. (256) reduces to the usual toroidal angle Ο•.

In summary, magnetic field line is straight in (πœƒ,ΞΆ) plane with slope being q if ΞΆ is defined by Eq. (256). In this method, we make the field line straight by defining a new toroidal angle, instead of requiring the Jacobian to take particular forms. Thus, the freedom of choosing the form of the Jacobian is still available to be used later to choose a good poloidal angle coordinate. Note that the Jacobian of the new coordinates (ψ,πœƒ,ΞΆ) is equal to that of (ψ,πœƒ,Ο•). [Proof:

  βˆ’1
π’₯ new = βˆ‡Οˆ Γ— βˆ‡ πœƒβ‹…βˆ‡ ΞΆ
     = βˆ‡Οˆ Γ— βˆ‡ πœƒβ‹…βˆ‡ (Ο• βˆ’ qΞ΄)
     = βˆ‡Οˆ Γ— βˆ‡ πœƒβ‹…βˆ‡ Ο•βˆ’ βˆ‡ ΟˆΓ— βˆ‡ πœƒβ‹…βˆ‡ (qΞ΄)
     = βˆ‡Οˆ Γ— βˆ‡ πœƒβ‹…βˆ‡ Ο•βˆ’ 0
        βˆ’ 1
     = π’₯  .
] Also note that Ξ΄(ψ,πœƒ) defined by Eq. (255) is a periodic function of πœƒ. [Proof: Equation (255) implies that
              ∫
Ξ΄(ψ,πœƒ+ 2Ο€) = 1  πœƒ+2Ο€Λ†qdπœƒβˆ’ (πœƒβˆ’ πœƒ  )βˆ’ 2Ο€
             q 0              ref
             1∫ πœƒ                    1∫ πœƒ+2Ο€
          =  q   Λ†qdπœƒ βˆ’ (πœƒ βˆ’ πœƒref)βˆ’ 2Ο€ + q    qΛ†dπœƒ
               0          ∫ πœƒ+2Ο€        πœƒ
          = Ξ΄(ψ,πœƒ)βˆ’ 2Ο€ + 1      Λ†qdπœƒ
                         q πœƒ
          = Ξ΄(ψ,πœƒ).                                        (257)
]

[In numerical implementation, the term ∫ 0πœƒBB-β‹…βˆ‡β‹…βˆ‡Ο•πœƒdπœƒ appearing in Ξ΄ is computed by using

∫ πœƒ           ∫ πœƒ         ∫ πœƒ
   B-β‹…βˆ‡-Ο•dπœƒ =    -g-π’₯-dπœƒ =    g--1 -R--dlp
 0 B β‹…βˆ‡ πœƒ      0 R2 Ξ¨β€²     0  R2Ξ¨ β€²|βˆ‡ ψ|
              ∫ πœƒ g-1---
            =  0 R |βˆ‡ Ξ¨|dlp
              ∫ πœƒ
            =    1-BΟ•dβ„“p.                               (258)
               0 R Bp

For later use, from Eq. (255), we obtain

                 ∫               ∫
βˆ‚(Ξ΄q)    -d-(-g )  πœƒ-π’₯-    -g βˆ‚--  πœƒπ’₯--    dq-
 βˆ‚Οˆ   = βˆ’dψ  Ξ¨ β€²  0 R2 dπœƒβˆ’ Ξ¨ β€²βˆ‚Οˆ  0 R2 dπœƒβˆ’ dψ πœƒ.           (259)
This formula is used in GTAW code, where the derivative βˆ‚(gβˆ•Ξ¨β€²)βˆ•βˆ‚Οˆ is calculated numerically by using the central difference scheme.]

Β