Skip to content

FixMacroY_min

FixMacroY_min

FixMacroY_min(dofs: List[int], tol: float = 1e-10)

Bases: SPConstraint

Boundary constraint at the minimum Y-coordinate macro boundary.

FixMacroY_min constrains selected degrees of freedom for all nodes sharing the minimum Y coordinate of the model. The boundary coordinate is defined using the global TCL variable $Y_MIN.

Tcl form

fixY $Y_MIN <dof1> <dof2> ... -tol <tol>

Example
from femora.core.model import Model

model = Model()
# Fix Y DOF of all nodes at the minimum Y macro boundary
constraint = model.constraint.sp.fix_macro_y_min(
    dofs=[0, 1, 0],
    tol=1e-5,
)

Create a minimum Y macro boundary constraint.

Parameters:

Name Type Description Default
dofs List[int]

List of DOF constraint states. 0 indicates unconstrained (free). 1 indicates constrained (fixed).

required
tol float

Tolerance for coordinate comparison.

1e-10