Building
Building
Abstract public contract for Femora building archetypes.
Subclasses implement the model-specific construction and setup methods. This class owns shared modal parsing, table printing, error filtering, and PyVista plotting helpers used by building archetype implementations.
Methods:
build
Create this building in model and return its mesh part.
get_modes
get_modes(num_modes: int, *, opensees_exe: Optional[str] = None, print_results: bool = False, plot: bool = False, plot_scale: Optional[float] = None) -> Dict[str, np.ndarray]
Return modal frequencies, periods, and eigenvectors.
get_recorders
get_recorders(model, *, file_name: Optional[str] = None, delta_t: Optional[float] = None, element_responses: Optional[List[str]] = None, node_responses: Optional[List[str]] = None)
Return recorder objects for this building.
export_metadata
Explicitly export structure-specific interpretation metadata after assembly.
get_results
Return this structure's response object; implementations define its semantics.
create_rigid_diaphragms
Create rigid diaphragm constraints if supported by this building.
create_gravity_pattern
Create and return a gravity load pattern if supported.
create_pushover_pattern
create_pushover_pattern(model, *, time_series: TimeSeries, base_shear: float, direction: Union[str, float] = 'x', distribution: Union[str, Sequence[float]] = 'mass_height', mode_shape: Optional[Sequence[float]] = None, eccentricity: Tuple[float, float] = (0.0, 0.0))
Return a reference lateral-force pattern; do not run an analysis.
Building implementations choose appropriate load application nodes.
time_series must be supplied by the caller. base_shear is the
positive reference resultant, not the final force in a scaled analysis.
direction is X, Y, or an angle in degrees counterclockwise from X.
apply_fixed_base
Apply fixed-base boundary conditions if supported by this building.
_resolve_modal_material
staticmethod
_resolve_modal_material(model, *, material: Optional[Union[Dict[str, object], Callable]], material_density: Optional[float], default_name: str, default_E: float, default_nu: float, default_density: float)
_parse_eigen_stdout
staticmethod
_parse_eigen_stdout(stdout: str, *, num_modes: int, start_node: int, end_node: int) -> Dict[str, np.ndarray]