Analysis holds the plotting and post-processing functions for GPEC results, grouped by the stage they read. Each registered plot takes the in-memory result or the path of the gpec.h5 it was saved to; available_plots lists them with what each source can draw (see Plotting a result).
ForceFreeStates: the eigenmode energies, thecritscan and the displacement profiles of a stability solveEquilibrium: flux surfaces, profiles and the radial grid of an equilibriumCoilForcing: coil geometry and the normal-field spectra it drivesPerturbedEquilibrium: the plasma response, the resonant fields, island widths and Chirikov parameter against ψ_N or qPerturbedEquilibriumModes: helpers that convert the modal output to (ψ, θ) and (ψ, θ, φ) grids for real-space plotsErrorFields: coil sensitivities, tolerance distributions, locking risk and correction limits (see Error Fields)
examples/DIIID-like_ideal_example/analyze_example.jl, examples/Solovev_ideal_example/analyze_example.jl and examples/DIIID-like_error_field_example/analyze_example.jl are worked examples of each; the s–α maps of local stability use salpha_reference, compute_ballooning_stability! and scan_delta_prime_map.
write_imas on the Utilities page exports results to an IMAS data dictionary.
The plots are drawn with Makie, which GPEC loads only when a session loads a Makie backend. Load one alongside GPEC, from your own or the global environment:
using GeneralizedPerturbedEquilibrium, CairoMakie # files: PNG, PDF, SVG
using GeneralizedPerturbedEquilibrium, GLMakie # interactive windows that zoom, pan and rotateEvery plot returns a Makie Figure, and save_path saves it with the loaded backend (GLMakie writes PNG only). Without a backend a plot throws an ArgumentError saying which to load.
The summary figures of a DIII-D-like run (examples/DIIID-like_ideal_example):
GeneralizedPerturbedEquilibrium.Analysis
Modules = [GeneralizedPerturbedEquilibrium.Analysis]
Pages = ["Registry.jl"]
Modules = [GeneralizedPerturbedEquilibrium.Analysis.ForceFreeStates]
Modules = [GeneralizedPerturbedEquilibrium.Analysis.Equilibrium]
Modules = [GeneralizedPerturbedEquilibrium.Analysis.CoilForcing]
Modules = [GeneralizedPerturbedEquilibrium.Analysis.PerturbedEquilibrium]
Modules = [GeneralizedPerturbedEquilibrium.Analysis.PerturbedEquilibriumModes]
Modules = [GeneralizedPerturbedEquilibrium.Analysis.ErrorFields]



