Fixed-boundary QA vacuum
This is an example calculation for a fixed-boundary QA vacuum equilibrium with 7
subvolumes. The relevant files are in examples/optimization/qa_vac_vol7
with the input file init.toml which includes the profiles and initial
interface geometry which is obtained by interpolating the plasma boundary
inwards.
The flag lconstraint=3 means that the invariant profiles are:
Pressure (in each subvolume)
Toroidal flux
tflux(in each subvolume)Integrated toroidal current
ivolume(in each subvolume)Integrated toroidal surface current
isurf(on each interface)
This is a vacuum case so the currents and pressures are 0.
The calculation is run using the command calc_spectre_field.py init.toml.
This can be done:
Locally: for instance using the script
local_job.shUsing job scheduling: with slurm on a cluster as is done in the script
slurm_job_jed.sh. Note that the Slurm directives are cluster dependent.
During optimization, one can monitor the progress using scripts in
scripts/minimization_monitoring which allow tracking iterations and
inspecting intermediate states.
After the equilibrium calculation, the following files are generated:
init.h5: output HDF5 file with the final interfaces, field, and various diagnosticsinit_opt.toml: a restart TOML file that is equivalent toinit.toml, except it contains the optimized interface geometry which is now in force balanceout.txt: a text file with the output log, including the iteration information along with the initial and final error in the field and force
To analyze the result, one uses init_opt.h5 which contains the equilibrium
field and allows for analysis and plotting using the class SPECTREout or
scripts in scripts/postprocess. Alternatively, one can use init_opt.toml
for further optimization, paramater changes, or additional Poincare tracing.