desc.objectives.get_NAE_constraints

class desc.objectives.get_NAE_constraints(desc_eq, qsc_eq, order=1, profiles=True, normalize=True, N=None, fix_lambda=False)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) – If True, also include constraints to fix all profiles assigned to equilibrium.

  • normalize (bool) – Whether to apply constraints in normalized units.

  • N (int) – max toroidal resolution to constrain. If None, defaults to equilibrium’s toroidal resolution

  • fix_lambda (bool or int) – Whether to constrain lambda to match that of the NAE near-axis if an int, fixes lambda up to that order in rho {0,1} if True, fixes lambda up to the specified order given by order

Returns:

constraints, tuple of _Objectives – A list of the linear constraints used in fixed-axis problems.