Skip to content

GeometricTransformation

GeometricTransformation

GeometricTransformation(transf_type: str, dimension: int, description: str = '')

Bases: ABC

Abstract base class for OpenSees geometric transformations.

Transformation instances do not self-register and do not assign their own tags. A :class:TransformationManager owns lifecycle operations, tag assignment, removal, and retagging for a local model context.

Parameters:

Name Type Description Default
transf_type str

OpenSees geometric transformation type.

required
dimension int

Spatial dimension, either 2 or 3.

required
description str

Optional comment appended to the rendered Tcl command.

''

Attributes:

Name Type Description
tag Optional[int]

Manager-assigned OpenSees transformation tag. It remains None until this object is added to a TransformationManager.

Attributes

eps class-attribute instance-attribute

eps = 1e-12

tag instance-attribute

tag: Optional[int] = None

_owner instance-attribute

_owner: object | None = None

_transformation_type instance-attribute

_transformation_type = transf_type

_dimension instance-attribute

_dimension = dimension

description instance-attribute

description = description

transformation_type property

transformation_type: str

dimension property

dimension: int

Methods:

_require_tag

_require_tag() -> int

Return the assigned tag or fail if the transformation is unmanaged.

has_joint_offsets abstractmethod

has_joint_offsets() -> bool

Return whether the transformation has nonzero joint offsets.

to_tcl abstractmethod

to_tcl() -> str

Render the OpenSees geomTransf command.

__repr__

__repr__() -> str

__str__

__str__() -> str