pyHarm.Substructures.ABCSubstructure

” This module is responsible for the definition of the Abstract based class ABCSubstructure defining the main interfaces charateristics of a substructure in pyHarm. The substructure shall be responsible for creating dofs through the generation of an explicit dof list describing which dofs are being created in the system.

Classes

ABCSubstructure

This class defines a substructure. Its main responsability is to create dofs and put them in an explicit pandas DataFrame.

Module Contents

class pyHarm.Substructures.ABCSubstructure.ABCSubstructure(nh: int | list[int], name: str, data: dict)

Bases: abc.ABC

This class defines a substructure. Its main responsability is to create dofs and put them in an explicit pandas DataFrame.

Parameters:
  • nh (int) – number of harmonics.

  • nti (int) – number of time steps.

  • name (str) – name given to the kinematic condition.

  • data (dict) – dictionary containing all the definition information of the substructure.

nh

number of harmonics.

Type:

int

name

name of the substructure.

Type:

int

nnodes

number of nodes.

Type:

int

nmodes

number of modes.

Type:

int

ndofs

number of dofs per node.

Type:

int

edf

DataFrame describing the created dofs.

Type:

pd.DataFrame

connectors

dictionary containing the added Elements to the system.

Type:

dict

kinematics

dictionary containing the added Kinematic Conditions to the system.

Type:

dict

flag_substructure = True
default_data
nh
name
_dup_anh
substructure_reader
nnodes
nmodes
ndofs
dofs_matching
total_dofs
edf
connectors
kinematics
__repr__() str
property factory_keyword: str
Abstractmethod:

” Property defining the factory_keyword to be used for instantiation of daughter class.

Returns:

factory_keyword

Return type:

str

abstractmethod _add_connectors() dict

” Method that adds connectors depending on the type of substructure.

abstractmethod _add_kinematics() dict

” Method that adds kinematic conditions depending on the type of substructure.

_gen_sub_col()
_gen_harm_col()
_gen_cs_col()
_gen_nodes_col()
_gen_dofs_col()
_gen_PoM_col()
_get_explicit_df()