Skip to content

SpConstraintManager

SpConstraintManager

SpConstraintManager(owner)

Local manager for single-point constraint lifecycle and tag assignment.

Attributes

_owner instance-attribute

_owner = owner

_constraints instance-attribute

_constraints: Dict[int, SPConstraint] = {}

_start_tag instance-attribute

_start_tag = 1

_tagging instance-attribute

_tagging = CompactRetagPolicy[SPConstraint]()

Methods:

__len__

__len__() -> int

__iter__

__iter__()

add

add(constraint: SPConstraint) -> SPConstraint

fix

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

fix_x

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

fix_y

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

fix_z

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

fix_macro_x_min

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

fix_macro_x_max

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

fix_macro_y_min

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

fix_macro_y_max

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

fix_macro_z_min

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

fix_macro_z_max

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

get

get(tag: int) -> Optional[SPConstraint]

get_all

get_all() -> Dict[int, SPConstraint]

remove

remove(tag: int) -> None

to_tcl

to_tcl() -> str

clear

clear() -> None

set_tag_start

set_tag_start(start_tag: int) -> None

_reassign_tags

_reassign_tags() -> None