pyHarm.KinematicConditions.GODisplacement¶
Classes¶
Kinematic condition that imposes a displacement or any time derivative of displacement to a specific dof. |
Module Contents¶
- class pyHarm.KinematicConditions.GODisplacement.GODisplacement(nh: int, nti: int, name: str, data: dict, CS: pyHarm.CoordinateSystem.CoordinateSystem, dynop: dict[str, numpy.ndarray] | None = None)¶
Bases:
pyHarm.KinematicConditions.ABCKinematic.ABCKinematicKinematic condition that imposes a displacement or any time derivative of displacement to a specific dof.
- amp¶
amplitude to impose.
- Type:
float
- ho¶
harmonic loaded.
- Type:
int
- dto¶
order of the time derivative.
- Type:
int
- phi¶
phase lag to impose on the harmonic (0 = pure cosinus loading).
- Type:
float
- factory_keyword: str = 'GOdisplacement'¶
keyword that is used to call the creation of this class in the system factory.
- Type:
str
- default¶
dictionary containing the default parameters of the kinematic condition
- Type:
dict
- __post_init__()¶
- 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
- _loadingdofs(expl_dofs: pandas.DataFrame)¶
- complete_x(x)¶
Returns a vector x_add of same size of x that completes the vector of displacement x = x + x_add such that the kinematic condition is verified.
- Parameters:
x (np.ndarray) – displacement vector.
om (float) – angular frequency.
- Returns:
vector of displacement to add to the displacement vetor in order to impose the kinematic condition.
- Return type:
(np.ndarray)
- dxbdxom(xg)¶
Computes the derivative of the kinematicaly constrained dofs with respect to the displacement.
- Parameters:
xg (np.ndarray) – full size displacement vector.
- Returns:
vector of displacement contributions to add to the displacement vetor in order to impose the kinematic condition.
- Return type:
(np.ndarray)
- complete_R(R, x)¶
Computes the transfer of residual of the kinematicaly constrained dofs with respect to the displacement.
- Parameters:
R (np.ndarray) – residual vector.
x (np.ndarray) – displacement vector.
- Returns:
vector of residual contributions to add to the residual vetor in order to impose the kinematic condition.
- Return type:
(np.ndarray)
- complete_J(Jx, Jom, x)¶
Computes the transfer of jacobian of the kinematicaly constrained dofs with respect to the displacement.
- Parameters:
Jx (np.ndarray) – jacobian matrix with respect to displacement.
Jom (np.ndarray) – jacobian matrix with respect to angular frequency.
x (np.ndarray) – displacement vector.
- Returns:
tuple containing the jacobians contributions to add to the jacobians in order to impose the kinematic condition.
- Return type:
(tuple[np.ndarray,np.ndarray])
- adim(lc, wc)¶
Using adim parameters, modifies the kinematic conditions accordingly.
- Parameters:
lc (float) – characteristic length.
wc (float) – characteristic angular frequency.