vmec_jax.quasi_isodynamicΒΆ
Differentiable quasi-isodynamic residuals.
The reference QI scripts in omnigenity_optimization measure whether the
bounce width and field-line profile of magnetic wells are independent of
field-line label. Their implementation uses branch finding and splines, which
are useful diagnostics but not a smooth objective for JAX autodiff. This
module keeps the same target and replaces hard branch extraction with smooth
level-set widths:
width(alpha, B_j) = integral H(B_j - B(alpha, phi)) dphi
where H is a logistic approximation to the step function. A QI surface has
widths that are independent of alpha for every level B_j. The residual
can also include branch-width and profile-consistency terms. The default
weights are calibrated so the smooth metric ranks the seed, the published
omnigenity_optimization QI result, and current vmec_jax candidates in the
same order as the branch-squash/stretch/shuffle diagnostic from the reference
Goodman et al. omnigenity workflow, while remaining differentiable.
Functions
|
Evaluate differentiable Boozer |
|
Estimate maximum LCFS cross-section elongation from |
|
Stable logistic used by QI objectives and their adjoints. |
|
Evaluate the magnetic-gradient scale length on a VMEC surface. |
|
Penalize short magnetic-gradient scale length on a VMEC surface. |
|
Penalize excessive LCFS elongation from a solved VMEC state. |
|
Penalize the maximum mirror ratio from Boozer |
|
Evaluate |
|
Penalize mirror ratio from a solved VMEC state without any QI options. |
|
Evaluate a smooth QI residual from Boozer |
|
Evaluate the smooth QI residual from a |
|
Evaluate a differentiable QI residual directly from a solved VMEC state. |