LagrangeConstraintHandler
LagrangeConstraintHandler
Bases: ConstraintHandler
Lagrange multipliers constraint handler.
LagrangeConstraintHandler enforces constraints exactly by introducing new degrees of freedom (Lagrange multipliers) representing the constraint forces.
Tcl form
constraints Lagrange [<alphaS> <alphaM>]
Note
- Introduces additional equations, which changes the size of the system matrix.
- Can result in zero diagonal terms in the system matrix.
Example
Create a Lagrange constraint handler.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alpha_s
|
float
|
Scaling factor for single-point constraints. |
1.0
|
alpha_m
|
float
|
Scaling factor for multi-point constraints. |
1.0
|