desc.objectives.get_NAE_constraints
- class desc.objectives.get_NAE_constraints(desc_eq, qsc_eq, order=1, profiles=True, iota=False, kinetic=False, normalize=True, N=None)Source
Get the constraints necessary for fixing NAE behavior in an equilibrium problem.
- Parameters:
desc_eq (Equilibrium) – Equilibrium to constrain behavior of (assumed to be a fit from the NAE equil using .from_near_axis()).
qsc_eq (Qsc) – Qsc object defining the near-axis equilibrium to constrain behavior to.
order (int) – order (in rho) of near-axis behavior to constrain
profiles (bool) – Whether to also return constraints to fix input profiles.
iota (bool) – Whether to add FixIota or FixCurrent as a constraint.
kinetic (bool) – Whether to also fix kinetic profiles.
normalize (bool) – Whether to apply constraints in normalized units.
N (int,) – max toroidal resolution to constrain. If None, defaults to equilibrium’s toroidal resolution
- Returns:
constraints, tuple of _Objectives – A list of the linear constraints used in fixed-axis problems.