pyHarm.Reductors.StaticReductor¶
Classes¶
This reductor applies a provided static transformation matrix in order to reduce the system. |
Module Contents¶
- class pyHarm.Reductors.StaticReductor.StaticReductor(data: dict, expl_dofs: pandas.DataFrame, *args)¶
Bases:
pyHarm.Reductors.ABCReductor.ABCReductorThis reductor applies a provided static transformation matrix in order to reduce the system.
- Attributes :
phi (np.ndarray): transformation matrix
- factory_keyword: str = 'static'¶
keyword that is used to call the creation of this class in the factory.
- Type:
str
- __post_init__(*args)¶
A post init method to be customized if needed when building new class.
- update_reductor(xpred: numpy.ndarray, J_f: numpy.ndarray, *args) tuple[numpy.ndarray, numpy.ndarray, pandas.DataFrame]¶
Does nothing as the transformation is taken as static.
- Returns:
same displacement vector given as input after passing through the reductor np.ndarray: same jacobian matrix given as input after passing through the reductor pd.DataFrame: same explicit dof DataFrame after passing through the reductor
- Return type:
np.ndarray
- expand(q: numpy.ndarray) numpy.ndarray¶
Inverse transforms the displacement vector.
- Parameters:
q (np.ndarray) – vector of transformed displacement.
- Returns:
vector of original displacement.
- Return type:
np.ndarray
- reduce_vector_x(x: numpy.ndarray) numpy.ndarray¶
Transforms the displacement vector.
- Parameters:
x (np.ndarray) – vector of displacement.
- Returns:
vector of transformed displacement.
- Return type:
np.ndarray
- reduce_vector(R: numpy.ndarray) numpy.ndarray¶
Transforms the residual vector.
- Parameters:
R (np.ndarray) – vector of residuals.
- Returns:
vector of transformed residuals.
- Return type:
np.ndarray
- reduce_matrix(dJdxom: numpy.ndarray, *args) numpy.ndarray¶
From original matrix, performs the transformation to get the transformed matrix.
- Parameters:
dJdxom (np.ndarray) – full size jacobian matrix with respect to displacement and angular frequency.
- Returns:
transformed jacobian matrix with respect to displacement and angular frequency.
- Return type:
np.ndarray
- _get_output_expl_dofs()¶
This is not well implemented => this has to be redone !!.
- Returns:
reduced explicit dof DataFrame after passing through the reducer.
- Return type:
pd.DataFrame