Skip to content

Pattern

Pattern

Pattern(pattern_type: str)

Bases: ABC

Abstract base class for OpenSees load/excitation patterns.

Pattern instances do not self-register. A :class:PatternManager owns tag assignment and lifecycle operations for a local model context.

Parameters:

Name Type Description Default
pattern_type str

OpenSees pattern type name, such as Plain, UniformExcitation, or MultipleSupport.

required

Attributes:

Name Type Description
tag Optional[int]

Manager-assigned OpenSees load-pattern tag. It remains None until the instance is added to a manager.

pattern_type

OpenSees pattern type name used by concrete classes.

Methods:

Name Description
to_tcl

Render the OpenSees pattern command.

Methods:

to_tcl abstractmethod

to_tcl() -> str

Render the OpenSees pattern command.

Returns:

Type Description
str

TCL command string or TCL block for this pattern.