pyva.models.FEM
- class pyva.models.FEM(ID, mesh, modes, damping_loss=0.01, **kwargs)
Bases:
object
The FEM class is dedictated to deterministic discrete systems. This class manages the degrees of freedom of such systems and the matrix that describes the system.
This class is the least mature class in this toolbox, because it was mainly created fot training purpose and the examples from the book.
- __init__(ID, mesh, modes, damping_loss=0.01, **kwargs)
Constructor of finite element models (FEM)
- Parameters:
ID (int) – identifier of FE model.
mesh (mesh) – mesh of FE model.
modes (shape) – modes of the FE model
damping_loss (Signal or float, optional) – global damping loss of FE model. The default is 0.01.
**kwargs (Arbitrary keyword arguments) – DESCRIPTION.
- Return type:
None.
Methods
__init__
(ID, mesh, modes[, damping_loss])Constructor of finite element models (FEM)
add_load
(load)Adds load to FEM objects
add_result
(result)Add result to FE model
damping_loss
(omega)Damping loss of SEA systemns
modal_dof
(doftype)provides modal degress of freedom from mode set
modal_dynamic_stiffness_diag
(omega)Diagonal dynamic stiffness matrix in modal coordinates
modal_force
(key)Calculates forve vector in modal coordinates
modal_matrix_to_space
(mat_mod)Transforms modal matrices to grid space
modal_vec_to_space
(q_mod)Transformation of model space to grid space
plot
([nfig, loadID])plot results
rms_vec_from_modal
(q_mod[, ID])Calculates rms average over all nodes from modal result
rms_vec_from_modal_cpsq
(q_mod[, ID, sqq_type])Calculates rms average over all nodes from csd result
solve
()solver of FE model - not yet implemented
Attributes
Property method for loads
Property method for results
- add_load(load)
Adds load to FEM objects
- Parameters:
load (dict or Load) – load of FE model
- Return type:
None.
- add_result(result)
Add result to FE model
- Parameters:
result (Signal) – result from solve.
- Return type:
None.
- damping_loss(omega)
Damping loss of SEA systemns
- Parameters:
omega (ndarray) – angular frequency
- property loads
Property method for loads
- Returns:
load of FE model.
- Return type:
laod
- modal_dof(doftype)
provides modal degress of freedom from mode set
- modal_dynamic_stiffness_diag(omega)
Diagonal dynamic stiffness matrix in modal coordinates
- Parameters:
omega (float) – angular frequency.
- Returns:
om_n2 – diagonal of modal dynamic stiffness.
- Return type:
ndarray
- modal_force(key)
Calculates forve vector in modal coordinates
- Parameters:
key (int) – loadID.
- Returns:
modal force vector.
- Return type:
- modal_matrix_to_space(mat_mod)
Transforms modal matrices to grid space
- Parameters:
q_mod (mC.Signal) – Vector in modal coordinates.
- Returns:
Vector in mesh coordinates.
- Return type:
mC.Signal
- modal_vec_to_space(q_mod)
Transformation of model space to grid space
- Parameters:
q_mod (mC.Signal) – Vector in modal coordinates.
- Returns:
Vector in mesh coordinates.
- Return type:
mC.Signal
- plot(nfig=1, loadID=1, **kwargs)
plot results
- Parameters:
nfig (int, optional) – figure identifier. The default is 1.
loadID (int, optional) – identifier of load case. The default is 1.
**kwargs (dict) – Arbitrary keyword arguments passed to plot method of Signal
- Return type:
None.
- rms_vec_from_modal(q_mod, ID=0)
Calculates rms average over all nodes from modal result
- rms_vec_from_modal_cpsq(q_mod, ID=0, sqq_type=DOFtype(typestr='general'))
Calculates rms average over all nodes from csd result
- solve()
solver of FE model - not yet implemented
- Returns:
DESCRIPTION.
- Return type:
str