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)¶
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__()¶
- _loadingdofs()¶
- 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.