desc.objectives.get_fixed_boundary_constraints
- class desc.objectives.get_fixed_boundary_constraints(eq=None, profiles=True, iota=True, kinetic=False, anisotropy=False, normalize=True)Source
Get the constraints necessary for a typical fixed-boundary equilibrium problem.
- Parameters:
eq (Equilibrium) – Equilibrium to constraint.
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.
anisotropy (bool) – Whether to add constraint to fix anisotropic pressure.
normalize (bool) – Whether to apply constraints in normalized units.
- Returns:
constraints, tuple of _Objectives – A list of the linear constraints used in fixed-boundary problems.