iMSTK
Interactive Medical Simulation Toolkit
Public Types | Public Member Functions | Protected Attributes | List of all members
imstk::TimeIntegrator Class Referenceabstract

This class defines the time integrators of various types. It only sets the rules of how the velocity (or equivalent) and acceleration (or equivalent) of the present time in terms of positions (or equivalent) from previous time steps. More...

#include <imstkTimeIntegrator.h>

Inheritance diagram for imstk::TimeIntegrator:
Inheritance graph
[legend]

Public Types

enum  Type {
  ForwardEuler, BackwardEuler, NewmarkBeta, CentralDifference,
  NoTimeStepper, None
}
 

Public Member Functions

 TimeIntegrator (Type type, double dT)
 
TimeIntegrator::Type getType () const
 Return the type of the time integrator.
 
virtual void updateStateGivenDv (std::shared_ptr< FeDeformBodyState > prevState, std::shared_ptr< FeDeformBodyState > currentState, Vectord &dV)=0
 Update states given the updates in different forms.
 
virtual void updateStateGivenDu (std::shared_ptr< FeDeformBodyState > prevState, std::shared_ptr< FeDeformBodyState > currentState, Vectord &dU)=0
 
virtual void updateStateGivenV (std::shared_ptr< FeDeformBodyState > prevState, std::shared_ptr< FeDeformBodyState > currentState, Vectord &v)=0
 
virtual void updateStateGivenU (std::shared_ptr< FeDeformBodyState > prevState, std::shared_ptr< FeDeformBodyState > currentState, Vectord &u)=0
 
void setTimestepSize (const double dT)
 Get/Set the time step size.
 
double getTimestepSize () const
 
void setTimestepSizeToDefault ()
 
void setDefaultTimestepSize (const double dT)
 Set/Get the time step size.
 
double getDefaultTimestepSize () const
 

Protected Attributes

Type m_type
 Type of the time integrator.
 
double m_dT
 Delta T.
 
double m_defaultDt
 

Detailed Description

This class defines the time integrators of various types. It only sets the rules of how the velocity (or equivalent) and acceleration (or equivalent) of the present time in terms of positions (or equivalent) from previous time steps.

Definition at line 21 of file imstkTimeIntegrator.h.


The documentation for this class was generated from the following file: