9 #include "imstkVectorizedState.h" 47 double getTimestepSize()
const {
return m_dT; }
48 void setTimestepSizeToDefault() {
m_dT = m_defaultDt; }
55 double getDefaultTimestepSize()
const {
return m_defaultDt; }
61 virtual void updateStateGivenDv(std::shared_ptr<FeDeformBodyState> prevState, std::shared_ptr<FeDeformBodyState> currentState, Vectord& dV) = 0;
62 virtual void updateStateGivenDu(std::shared_ptr<FeDeformBodyState> prevState, std::shared_ptr<FeDeformBodyState> currentState, Vectord& dU) = 0;
63 virtual void updateStateGivenV(std::shared_ptr<FeDeformBodyState> prevState, std::shared_ptr<FeDeformBodyState> currentState, Vectord& v) = 0;
64 virtual void updateStateGivenU(std::shared_ptr<FeDeformBodyState> prevState, std::shared_ptr<FeDeformBodyState> currentState, Vectord& u) = 0;
This class defines the time integrators of various types. It only sets the rules of how the velocity ...
virtual void updateStateGivenDv(std::shared_ptr< FeDeformBodyState > prevState, std::shared_ptr< FeDeformBodyState > currentState, Vectord &dV)=0
Update states given the updates in different forms.
Type m_type
Type of the time integrator.
void setTimestepSize(const double dT)
Get/Set the time step size.
void setDefaultTimestepSize(const double dT)
Set/Get the time step size.
Newmark-beta time integration.
Backward Euler time integration.
TimeIntegrator::Type getType() const
Return the type of the time integrator.