Lagrange constraint handler

The Lagrange constraint handler enforces constraints exactly by introducing additional Lagrange multiplier degrees of freedom to the system.

Parameters

alpha_sfloat, default=1.0

The alpha value for single-point constraints.

alpha_mfloat, default=1.0

The alpha value for multi-point constraints.

Usage Example

# Create a Femora instance


# Create a Lagrange constraint handler with default parameters
fm.analysis.constraint.create_handler("Lagrange")

# Create a Lagrange constraint handler with custom parameters
fm.analysis.constraint.create_handler("Lagrange", alpha_s=0.5, alpha_m=0.8)