16 #include "gretl/double_state.hpp"
32 const std::vector<FieldState>& states,
33 const std::vector<FieldState>& params)
const = 0;
38 const std::vector<FieldState>& ,
39 const std::vector<FieldState>& )
const
41 return std::vector<ReactionState>{};
52 return TimeInfo(t.get(), dt.get(), cycle);
Base state advancer class, allows specification for quasi-static solve strategies,...
virtual std::vector< ReactionState > computeReactions(const TimeInfo &, const FieldState &, const std::vector< FieldState > &, const std::vector< FieldState > &) const
interface method to compute reactions given previous, current states and parameters.
virtual ~StateAdvancer()
destructor
virtual std::vector< FieldState > advanceState(const TimeInfo &time_info, const FieldState &shape_disp, const std::vector< FieldState > &states, const std::vector< FieldState > ¶ms) const =0
interface method to advance the states from a given cycle and time, to the next cycle (cycle+1) and t...
A file defining some enums and structs that are used by the different physics modules.
Accelerator functionality.
gretl::State< double, double > DoubleState
typedef
gretl::State< FEFieldPtr, FEDualPtr > FieldState
typedef
TimeInfo create_time_info(DoubleState t, DoubleState dt, size_t cycle)
creates a time info struct from gretl::State<double>
struct storing time and timestep information