Skip to content

FixConstraint

FixConstraint

FixConstraint(node_tag: int, dofs: List[int])

Bases: SPConstraint

Single-point nodal boundary constraint.

FixConstraint constrains selected degrees of freedom (DOFs) of a single node. It is the fundamental boundary condition component in finite element analysis.

Tcl form

fix <nodeTag> <dof1> <dof2> ...

Note
  • The DOFs list must contain only 0 (unconstrained) or 1 (constrained).
  • The length of the dofs list must match the node's local number of DOFs (NDF).
Example
from femora.core.model import Model

model = Model()
# Fix all 3 DOFs (X, Y, and rotation Z) of node 1
constraint = model.constraint.sp.fix(
    node_tag=1,
    dofs=[1, 1, 1],
)

Create a single-node boundary constraint.

Parameters:

Name Type Description Default
node_tag int

Tag of the node to be fixed.

required
dofs List[int]

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

required