pyHarm.Substructures.Substructure¶
Classes¶
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.Substructure.Substructure(nh: int | list[int], name: str, data: dict)¶
Bases:
pyHarm.Substructures.ABCSubstructure.ABCSubstructureThis 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
- factory_keyword = 'substructure'¶
” Property defining the factory_keyword to be used for instantiation of daughter class.
- Returns:
factory_keyword
- Return type:
str
- _add_connectors(data: dict)¶
” Method that adds a substructure Element.
- Returns :
dict: Containing one connector with key of the same name that of the defined substructure
- _add_kinematics(data: dict)¶
” Method that adds no kinematic conditions.
- Returns :
dict: empty dictionary