pyHarm.Elements.NodeToNodeElements.NodeToNodeElement¶
This module contains the basic NodeToNodeElement class being a abstract class derived from the ABCElement class It mostly implements a part of the required abstract methods : the methods that generates the indices from the input datas.
Classes¶
Abstract ABCElement subclass that implements some of the methods in order to help building a node to node connector. |
Functions¶
|
Function that creates the selection matrices for the slave dofs and the master dofs. |
Module Contents¶
- pyHarm.Elements.NodeToNodeElements.NodeToNodeElement.ConstructorPslavemaster(nsub, subs, nodes, sub_expl_dofs)¶
Function that creates the selection matrices for the slave dofs and the master dofs.
- Parameters:
nsub (int) – number of substructures that are connected with the kinematic condition.
subs (list[str]) – list containing the name of the substructures connected with the kinematic condition.
nodes (list[list[int]]) – list of nodes list that are connected with the kinematic condition.
sub_expl_dofs (pd.DataFrame) – explicit dofs DataFrame.
- Returns:
selection matrix for the slave dofs. np.ndarray: selection matrix for the master dofs.
- Return type:
np.ndarray
- class pyHarm.Elements.NodeToNodeElements.NodeToNodeElement.NodeToNodeElement(nh: int, nti: int, name: str, data: dict, CS: pyHarm.CoordinateSystem.CoordinateSystem)¶
Bases:
pyHarm.Elements.ABCElement.ABCElementAbstract ABCElement subclass that implements some of the methods in order to help building a node to node connector.
- 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 kinematic condition.
CS (CoordinateSystem) – local or global coordinate system the kinematic condition is defined on.
- indices¶
index of the dofs that the kinematic conditions needs.
- Type:
np.ndarray
- Pdir¶
a slice of first dimension is a transformation matrix to a direction in local coordinate system.
- Type:
np.ndarray
- Pslave¶
selection array that selects the slave dofs of the kinematic condition.
- Type:
np.ndarray
- Pmaster¶
selection array that selects the master dofs of the kinematic condition.
- Type:
np.ndarray
- subs¶
list containing the name of the substructures tht are involved.
- Type:
list[str]
- nbSub¶
number of substructure involved.
- Type:
int
- nodes¶
list of list of nodes the kinematic conditions act on.
- Type:
list[list]
- nbdofi¶
number of nodes involved per substructure.
- Type:
int
- __init_data__(name, data, CS)¶
” Method that interprets and deals with the input dictionary by creating some of the essential attributes.
- subs¶
list containing the name of the substructures tht are involved.
- Type:
list[str]
- nbSub¶
number of substructure involved.
- Type:
int
- nodes¶
list of list of nodes the kinematic conditions act on.
- Type:
list[list]
- nbdofi¶
number of nodes involved per substructure.
- Type:
int
- __str__()¶
- generateIndices(expl_dofs: pandas.DataFrame)¶
From the explicit dof DataFrame, generates the index of dofs concerned by the connector.
- Parameters:
expl_dofs (pd.DataFrame) – explicit dof DataFrame from the studied system.
- indices¶
index of the dofs that the connector needs.
- Type:
np.ndarray
- Pdir¶
a slice of first dimension is a transformation matrix to a direction in local coordinate system.
- Type:
np.ndarray
- Pslave¶
selection array that selects the slave dofs of the connector.
- Type:
np.ndarray
- Pmaster¶
selection array that selects the master dofs of the connector.
- Type:
np.ndarray
- _generateMatrices(sub_expl_dofs)¶
- _evalJaco_DF(xg, om, step)¶
Computes the jacobian using finite difference method.
- Parameters:
xg (np.ndarray) – full displacement vector.
om (float) – angular frequency value.
step (float) – step size for the finite difference method.
- Returns:
jacobian with respect to displacement vector. dJdom (np.ndarray): jacobian with respect to angular frequency.
- Return type:
dJdx (np.ndarray)