The toroidal elliptic operator in Eq. (392) can be written
![]() | (396) |
where haβ is defined by Eq. (151), i.e.,
![]() | (397) |
Next, we derive the finite difference form of the toroidal elliptic operator. The finite difference form of the term (hψψΨψ)ψ is written
![[ ( ) ( ) ]
(hψψΨ ) | = -1- hψψ Ψi,j+1-−-Ψi,j- − hψψ Ψi,j −-Ψi,j−1
ψ ψ i,j δψ i,j+1∕2 δψ i,j− 1∕2 δψ
= H ψψ (Ψi,j+1 − Ψi,j)− H ψψ (Ψi,j − Ψi,j−1), (398)
i,j+1∕2 i,j− 1∕2](tokamak_equilibrium524x.png)
![]() | (399) |
The finite difference form of (h𝜃𝜃Ψ𝜃)𝜃 is written
![1 [ ( Ψ − Ψ ) (Ψ − Ψ )]
(h𝜃𝜃Ψ𝜃)𝜃|i,j = -- h 𝜃𝜃i+1∕2,j -i+1,j---i,j- − h𝜃i𝜃−1∕2,j -i,j----i−1,j
δ𝜃 δ𝜃 δ𝜃
= Hi𝜃𝜃+1∕2,j(Ψi+1,j − Ψi,j)− H𝜃i𝜃−1∕2,j(Ψi,j − Ψi−1,j), (400)](tokamak_equilibrium526x.png)
![]() | (401) |
The finite difference form of (hψ𝜃Ψ𝜃)ψ is written as
![]() | (402) |
Approximating the value of Ψ at the grid centers by the average of the value of Ψ at the neighbor grid points, Eq. (402) is written as
![]() | (403) |
where
![]() | (404) |
Similarly, the finite difference form of (hψ𝜃Ψψ)𝜃 is written as
![[ ( ) ( )]
ψ𝜃 1- ψ𝜃 Ψi+1∕2,j+1 −-Ψi+1∕2,j−1 ψ𝜃 Ψi−-1∕2,j+1 −-Ψi−1∕2,j−1
(Ψψh )𝜃|i,j = δ𝜃 hi+1∕2,j 2δψ − hi−1∕2,j 2δψ
ψ𝜃 ψ𝜃
= H i+1∕2,j(Ψi+1,j+1 + Ψi,j+1 − Ψi+1,j−1 − Ψi,j−1) − H i−1∕2,j(Ψi,j+1 + Ψi−1,j+1 − Ψi,j−1 − Ψi− 1,(j−4015).)](tokamak_equilibrium531x.png)

![]() | (406) |
![]() | (407) |
and
![]() | (408) |
where the Jacobian
![]() | (409) |
The partial derivatives, R𝜃, Rψ, Z𝜃, and Zψ, appearing in Eqs. (406)-(409) are calculated by using the central difference scheme. The values of hψψ, h𝜃𝜃, hψ𝜃 and 𝒥 at the middle points are approximated by the linear average of their values at the neighbor grid points.