20 #ifndef _INTEGRATOR_H_ 21 #define _INTEGRATOR_H_ 23 #include <fmatvec/fmatvec.h> 24 #include <fmatvec/atom.h> 25 #include <mbsim/namespace.h> 26 #include <mbsim/mbsim_event.h> 27 #include <mbsim/solver.h> 50 void setStartTime(
double tStart_) {
tStart=tStart_; }
51 void setEndTime(
double tEnd_) { tEnd = tEnd_; }
52 void setPlotStepSize(
double dtPlot_) { dtPlot = dtPlot_; }
53 void setInitialState(
const fmatvec::Vec &z0_) {
z0 <<= z0_; }
54 double getStartTime()
const {
return tStart; }
55 double getEndTime()
const {
return tEnd; }
56 double getPlotStepSize()
const {
return dtPlot; }
57 const fmatvec::Vec& getInitialState()
const override {
return z0; }
79 virtual void preIntegrate() { throwError(
"preIntegrate is not defined"); }
80 virtual void subIntegrate(
double tStop) { throwError(
"subIntegrate is not defined"); }
81 virtual void postIntegrate() { throwError(
"postIntegrate is not defined"); }
93 double tStart{0.}, tEnd{1.}, dtPlot{1e-4};
solver-interface for dynamic systems
Definition: solver.h:38
solver interface for modelling and simulation of dynamic systems
Definition: dynamic_system_solver.h:58
~Integrator() override=default
destructor
integrator-interface for dynamic systems
Definition: integrator.h:37
fmatvec::Vec z0
initial state
Definition: integrator.h:98
double tStart
start, end, plot time
Definition: integrator.h:93
std::string name
name of integrator
Definition: integrator.h:103
virtual void integrate()=0
start the integration of the system set by setSystem. Each class implemeting this function should cal...
void debugInit()
Definition: integrator.cc:47
void initializeUsingXML(xercesc::DOMElement *element) override
initialize integrator
Definition: integrator.cc:32
void execute() override
start solving the dynamic system set by setSystem.
Definition: integrator.h:60
void integrate(MBSim::DynamicSystemSolver &sys)
Convinent function: call setSystem(&sys) and integrate()
Definition: integrator.h:70
Integrator()
constructor
Definition: integrator.h:42
namespace MBSim
Definition: bilateral_constraint.cc:29