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.

Methods:

Name Description
has_joint_offsets

Report whether the concrete transformation specifies joint offsets.

to_tcl

Render the concrete geomTransf definition without executing it.

Attributes

transformation_type property

transformation_type: str

Solver transformation name supplied at construction, such as Linear.

This read-only property describes beam kinematics, not a mesh transform.

dimension property

dimension: int

Spatial dimension, either 2 or 3, validated during construction.

This is not the nodal degree-of-freedom count or the number of mesh nodes.

Methods:

has_joint_offsets abstractmethod

has_joint_offsets() -> bool

Report whether the concrete transformation specifies joint offsets.

Returns:

Name Type Description
present bool

Offset presence according to the subclass's numeric tolerance and string-expression handling.

to_tcl abstractmethod

to_tcl() -> str

Render the concrete geomTransf definition without executing it.

Returns:

Name Type Description
command str

Tcl using a manager-assigned transformation tag.

Note

Subclasses supply syntax and normally require registration before rendering. This base cannot create a complete solver command.