1 #ifndef TIMEHANDLERNEWMARK_H 2 #define TIMEHANDLERNEWMARK_H 1
10 #include <lifev/core/LifeV.hpp> 12 #include <lifev/core/array/VectorEpetra.hpp> 20 typedef VectorEpetra vector_Type;
22 typedef std::shared_ptr<vector_Type> vectorPtr_Type;
32 void initialize (
const vectorPtr_Type& state,
const vectorPtr_Type& first_derivative,
const vectorPtr_Type& second_derivative);
36 void shift(
const vectorPtr_Type& state );
38 void restart(
const vectorPtr_Type& state,
const vectorPtr_Type& first_derivative,
const vectorPtr_Type& second_derivative );
41 void set_beta(
const Real beta ) { M_beta = beta; };
44 void set_gamma(
const Real gamma ) { M_gamma = gamma; };
47 void set_timestep(
const Real timestep ) { M_timeStep = timestep; };
50 Real get_beta( ) {
return M_beta; };
53 Real get_gamma( ) {
return M_gamma; };
56 Real get_timestep( ) {
return M_timeStep; };
58 vectorPtr_Type
const& get_csi()
const {
return M_csi; };
60 vectorPtr_Type
const& old_first_derivative()
const {
return M_old_first_derivative; };
62 vectorPtr_Type
const& old_second_derivative()
const {
return M_old_second_derivative; };
77 vectorPtr_Type M_current_state;
78 vectorPtr_Type M_current_first_derivative;
79 vectorPtr_Type M_current_second_derivative;
82 vectorPtr_Type M_old_state;
83 vectorPtr_Type M_old_first_derivative;
84 vectorPtr_Type M_old_second_derivative;
double Real
Generic real data.