Skip to content

SPConstraint

SPConstraint

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

Bases: ABC

Extension contract for a single-point solver constraint.

Parameters:

Name Type Description Default
node_tag int

Solver node tag, not a PyVista point index.

required
dofs list[int]

Concrete constraint's fixity/DOF data.

required

The base stores references without validating solver nodes. Register a concrete constraint through model.constraint.sp to obtain model ownership.

Methods:

Name Description
to_tcl

Render the concrete SP command without executing it.

Methods:

to_tcl abstractmethod

to_tcl() -> str

Render the concrete SP command without executing it.

Returns:

Name Type Description
command str

Tcl supplied by the subclass. Node existence and solver enforcement are not established by rendering alone.