Skip to content

FixMacroY_max

FixMacroY_max

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

Bases: SPConstraint

Boundary constraint at the maximum Y-coordinate macro boundary.

FixMacroY_max constrains selected degrees of freedom for all nodes sharing the maximum Y coordinate of the model. The boundary coordinate is defined using the global TCL variable $Y_MAX.

Tcl form

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

Example
from femora.core.model import Model

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

Create a maximum 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