sponge.control.get_constraint
- sponge.control.get_constraint(constraint: Union[str, Constraint, List[Constraint]], system: Molecule)[source]
Get constraint object.
- Parameters
constraint (Union[str,
sponge.control.Constraint
, List[sponge.control.Constraint
]]) – constraint name, Constraint object or list of Constraint objects.system (
sponge.system.Molecule
) – Simulation system.
- Returns
List[
sponge.control.Constraint
], constraint object list.