Poloidal-Field Coil Flux Explorer

This browser-side companion uses a simplified Green’s-function model in the poloidal cross-section, but it now includes a boundary-fitted Grad–Shafranov-style inverse step. The active ITER preset now uses the public DINA-IMAS rectangular CS/PF winding-pack model, together with a plasma current found either from a boundary-fitted GS profile solve or from simpler reference models. Start from the full preset configuration, then turn families on and off to see how each contribution bends the flux.

ITER uses the imported public CS/PF rectangle set. SPARC and DIII-D are temporarily disabled until their coil packs are curated to the same standard.

Flux components
Component
Total
Plot
Total superposition
all active
Plasma current
Central solenoid
PF shaping
Divertor
Vertical / equilibrium

Use the Total column to choose what goes into the black reference equilibrium, and the Plot column to decide whether the colored contours show the whole superposition or one family in isolation.

The Cerfon-seeded ITER mode starts from the same D-shaped boundary family used in the Cerfon explorer, then fits both the plasma R p'(ψ) / F F'(ψ)/R source amplitudes and the active external coil-family scales so the target boundary becomes as close as possible to an isoflux contour while matching the chosen plasma current. The boundary-fitted mode only adjusts the plasma profile amplitudes for a fixed external-coil mix; the free-boundary mode keeps the older moving-mask Picard iteration, and the superposition mode keeps the original prescribed source for decomposition-only viewing.

Overlays

Shows the D-shaped plasma-current lattice and, when enabled, separate plasma and PF contour families on top of the total-field separatrix.

Controls how hollow or peaked the pressure and current source functions are through (1 - ψN)α.

0 biases the plasma current toward the pressure-like R p'(ψ) family, while 1 biases it toward the toroidal-field F F'(ψ)/R family. In the boundary-fitted mode this acts as a prior, while the solver still adjusts both amplitudes to flatten the target boundary.

Preset summary

Awaiting solve.

Boundary-flux spread

Awaiting solve.

Magnetic axis estimate

Awaiting solve.

X-point candidate

Awaiting solve.

Family decomposition

Awaiting solve.

Reference contour

Awaiting solve.

q-profile estimate

Awaiting solve.

Iteration status

Awaiting solve.

The simplified cross-section model uses 2ψ = -C jφ together with the 2D Green’s function G = -(1/2π) ln[(R-R’)2 + (Z-Z’)2]. External coils are represented as finite coil packs, each approximated by a small grid of toroidal-current filaments projected into the poloidal plane. In the iterative mode the plasma update uses a Grad–Shafranov-inspired source family jφ ∼ (1-ψN)α[(1-\lambda)R p'(ψ) + \lambda F F'(ψ)/R] before renormalizing to the chosen total plasma current. In the Cerfon-seeded ITER mode those same profile families are used as a D-shaped seed and fitted together with the active external coil-family amplitudes. In the boundary-fitted mode the plasma families alone are adjusted so the prescribed plasma boundary becomes as close as possible to an isoflux contour while satisfying the chosen plasma current.
This is a teaching-focused equilibrium model, not EFIT. The finite coil-pack geometry and the new boundary-fitted GS-style inverse step are much closer to a real fixed-boundary solve than pure source superposition, but the code still uses a reduced 2D Green’s function rather than the full toroidal Grad–Shafranov operator with experimental constraints and exact vessel boundary conditions.

Cross-section Flux Map

The dashed green curve is the full Cerfon-seeded plasma boundary used as the ITER target LCFS. The black contour is the active total-field separatrix estimate, while the optional green and blue overlays show the plasma and PF-coil flux families directly. The colored focus contours still track whichever single family or total field is selected in the component table.

Midplane Flux Decomposition

The lineout along Z = 0 shows how the active total field and the individual families contribute to the vacuum-plus-plasma flux balance across the machine.

Boundary Flux Around the Plasma

The total-field trace measures ψ(θ) - ⟨ψ⟩ around the target boundary. A perfectly self-consistent equilibrium would leave this curve flat.

Estimated q Profile

The curve uses the closed flux contours from the current iterate and reports a normalized geometric safety-factor shape q/qedge. In this reduced model it is the profile shape, not the absolute normalization, that is trustworthy.