In the GS equation, g(Ψ) is one of the two free functions which can be prescribed by users. In some cases, we want to specify the safety factor profile q(Ψ), instead of g(Ψ), in solving the GS equation. Next, we derive the form of the GS equation that contains q(Ψ), rather than g(Ψ), as a free function. The safety factor defined in Eq. (160) can be written
Equation (443) gives the relation between the safety factor q and the toroidal field function g. This relation can be used in the GS equation to eliminate g in favor of q, which gives
| (444) |
| (445) |
Note that this expression involves the flux surface average, which depends on the flux surface shape and the shape is unknown before Ψ is determined.
Multiplying Eq. (573) by R−2 gives
| (446) |
Surface-averaging the above equation, we obtain
| (447) |
| (448) |
| (449) |
| (450) |
| (451) |
Substitute Eq. (445) into the above equation to eliminate gdg∕dΨ, we obtain
| (452) |
Eq. (452) agrees with Eq. (5.55) in Ref. [16].
| (453) |
| (454) |
where
| (455) |
The GS equation is
| (456) |
| (457) |
| (458) |
Using Eq. (454) to eliminate Ψ′′ in the above equation, the coefficients before (−μ0dp∕dΨ) is written as
A = − |
Define
α = , |
β = . |
A = −(2π)4β |
| (461) |
| (462) |
Using
| (463) |
Eq. () is written as
| (464) |
| (465) |
| (466) |
| (467) |
| (468) |
| (469) |
| (470) |
| (471) |
| (472) |
| (473) |
But the expression of A is slightly different from that given in Ref. [16] [Eq. (5.57)]. Using the above coefficients, the GS equation with the q-profile held fixed is written as
| (474) |