30#ifndef MATRIXMODIFIER_H
31#define MATRIXMODIFIER_H
43 template<
typename T>
static void apply(
Mat<T>&,
unsigned);
62 for(
unsigned I = 0;
I <
dim; ++
I) {
84 if(0. != alpha && !
element_obj->get_current_mass().is_empty()) damping += alpha *
element_obj->get_current_mass();
85 if(0. != beta && !
element_obj->get_current_stiffness().is_empty()) {
86 damping += beta *
element_obj->get_current_stiffness();
89 if(0. != zeta && !
element_obj->get_initial_stiffness().is_empty()) damping += zeta *
element_obj->get_initial_stiffness();
103 const auto& t_stiffness =
element_obj->get_current_stiffness();
106 if(t_stiffness.is_empty() ||
t_mass.is_empty())
return;
118 access::rw(
element_obj->get_trial_viscous()) = damping;
vec get_trial_velocity(const shared_ptr< Node > &)
Definition NodeHelper.hpp:38
static void apply(Mat< T > &, unsigned)
Definition MatrixModifier.hpp:59
static void apply(Mat< T > &)
Definition MatrixModifier.hpp:57
static void apply(const shared_ptr< Element > &, T)
Definition MatrixModifier.hpp:102
static void apply(const shared_ptr< Element > &, T, T, T, T)
Definition MatrixModifier.hpp:78
Definition MatrixModifier.hpp:36
std::vector< T > vector
Definition container.h:53
Definition MatrixModifier.hpp:51
Definition MatrixModifier.hpp:47
Definition MatrixModifier.hpp:42
Definition MatrixModifier.hpp:38