Reiman, A; Greenside, H, *Calculation of three-dimensional MHD equilibria with islands and stochastic regions*,
Computer Physics Communications, vol. 43 no. 1
(January, 1986),
pp. 157-167, Elsevier BV [doi] .
**Abstract:**

*A three-dimensional MHD equilibrium code is described that does not assume the existence of good flux surfaces. Given an initial guess for the magnetic field, the code proceeds by calculating the pressure driven current and then by updating the field using Ampére's law. The numerical algorithm to solve the magnetic differential equation for the pressure driven current is described, and demonstrated for model fields having islands and stochastic regions. The numerical algorithm which solves Ampére's law in three dimensions is also described. Finally, the convergence of the code is illustrated for a particular stellarator equilibrium with no large islands. © 1986.*