Next, examine the meaning of the following volume integral
| (233) |
where the volume V = V (ψ) is the volume within the magnetic surface labeled by ψ. Using ∇⋅ B = 0, the quantity D can be further written as
| (234) |
Note that 𝜃 is not a single-value function of the spacial points. In order to evaluate the integration in Eq. (234), we need to select one branch of 𝜃, which can be chosen to be 0 ≤ 𝜃 < 2π. Note that function 𝜃 = 𝜃(R,Z) is not continuous in the vicinity of the contour of 𝜃 = 0. Next, we want to use the Gauss’s theorem to convert the above volume integration to surface integration. Noting the discontinuity of the integrand 𝜃B in the vicinity of the contour of 𝜃 = 0, the volume should be cut along the contour, thus, generating two surfaces. Denote these two surfaces by S1 and S2, then equation (234) is written as
| (236) |
Using the expression of the volume element dτ = |𝒥|d𝜃dϕdψ, Ψp can be further written in terms of flux surface averaged quantities.
Note that the sign of the Jacobian appears in Eq. (237), which is due to the positive direction of surface S2 is determined by the positive direction of 𝜃, which in turn is determined by the sign of the Jacobian (In my code, however, the positive direction of 𝜃 is chosen by me and the sign of the Jacobian is determined by the positive direction of 𝜃). We can verify the sign of Eq. (237) is exactly consistent with that in Eq. (27).Similarly, the toroidal flux within a flux surface is written as
| (238) |
the poloidal current within a flux surface is written as
| (239) |
and toroidal current within a flux surface is written as
| (240) |
(**check**)The toroidal magnetic flux is written as
⇒ Ψt′ = g |
⇒ = g |
| (242) |
Next, calculate the derivative of the toroidal flux with respect to the poloidal flux.
Comparing this result with Eq. (443) indicates that it is equal to the safety factor, i.e.,
| (244) |
By using the contravariant representation of current density (475), the poloidal current within a magnetic surface is written as
−∇ψ ×∇𝜃 − g′∇ϕ ×∇ψ, |
The toroidal current is written as
The last equality is due to ∇ψ = 0 at ψ = 0. By using the flux surface average operator, Eq. (246) is written
| (247) |
Next, calculate another useful surface-averaged quantity,