pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing¶
Classes¶
This element is the general polynomial external forcing. |
Functions¶
|
|
|
Module Contents¶
- pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GOFResidual(x, om, loadvec, Pdir, Pslave, dto, nabo, amp)¶
- pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GOFJacobian(x, om, loadvec, Pdir, Pslave, dto, nabo, amp)¶
- class pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GeneralOrderForcing(nh: int | list[int], nti: int, name: str, data: dict, CS: pyHarm.CoordinateSystem.CoordinateSystem, dynop: dict[str, numpy.ndarray] | None = None)¶
Bases:
pyHarm.Elements.NodeToNodeElements.NodeToNodeElement.NodeToNodeElementThis element is the general polynomial external forcing.
A forcing is an element that cannot be applied in between substructures (only considers the first entry in “connect” keyword).
- dto¶
order of the time derivative.
- Type:
int
- ho¶
order of the harmonic where the forcing is applied.
- Type:
int
- phi¶
phase lag to apply between the cosine and sine term (0 = pure cosinus forcing).
- Type:
float
- amp¶
amplitude of the forcing.
- Type:
float
- factory_keyword: str = 'GOForcing'¶
keyword that is used to call the creation of this class in the system factory.
- Type:
str
- __post_init__()¶
- __flag_update__()¶
- 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)¶
- _evalResidual(x, om)¶
- _evalJacobian(x, om)¶
- adim(lc, wc)¶
Modifies the element properties according to the characteristic length and angular frequency.
- amp¶
modified amplitude according to the characteristic parameters.
- Type:
float
- flag_adim¶
True if equations are to be adimensionalized
- Type:
bool
- evalResidual(xg, om)¶
Computes the residual.
- Parameters:
xg (np.ndarray) – full displacement vector.
om (float) – angular frequency value.
- Returns:
residual vector.
- Return type:
np.ndarray
- evalJacobian(xg, om)¶
Computes the jacobians.
- Parameters:
xg (np.ndarray) – full displacement vector.
om (float) – angular frequency value.
- Returns:
Jacobian with respect to displacement. np.ndarray: Jacobian with respect to angular frequency.
- Return type:
np.ndarray