FixXConstraint
FixXConstraint
Bases: SPConstraint
Coordinate-based boundary constraint along a constant X plane.
FixXConstraint constrains selected degrees of freedom for all nodes sharing a specific X 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
fixX <xCoordinate> <dof1> <dof2> ... -tol <tol>
Example
Create an X-coordinate plane constraint.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xCoordinate
|
float
|
X-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
|