FixYConstraint
FixYConstraint
Bases: SPConstraint
Coordinate-based boundary constraint along a constant Y plane.
FixYConstraint constrains selected degrees of freedom for all nodes sharing a specific Y coordinate within a given tolerance. It applies boundary conditions to planar boundaries in 2D or 3D models without requiring manual node tag lookup.
Tcl form
fixY <yCoordinate> <dof1> <dof2> ... -tol <tol>
Example
Create a Y-coordinate plane constraint.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
yCoordinate
|
float
|
Y-coordinate of nodes to be constrained. |
required |
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
|