20 #ifndef _INTEGRATOR_H_
21 #define _INTEGRATOR_H_
23 #include <fmatvec/fmatvec.h>
24 #include <fmatvec/atom.h>
25 #include <mbxmlutilshelper/dom.h>
26 #include <mbsim/mbsim_event.h>
27 #include <mbsim/solver.h>
31 namespace MBSimIntegrator {
53 void setStartTime(
double tStart_) {
tStart=tStart_; }
54 void setEndTime(
double tEnd_) { tEnd = tEnd_; }
55 void setPlotStepSize(
double dtPlot_) { dtPlot = dtPlot_; }
57 void setWarnLevel(
int level) {
warnLevel = level; }
58 void setOutput(
bool flag) {
output = flag; }
59 double getStartTime()
const {
return tStart; }
60 double getEndTime()
const {
return tEnd; }
61 double getPlotStepSize()
const {
return dtPlot; }
63 int getWarnLevel()
const {
return warnLevel; }
64 bool getOutput()
const {
return output; }
94 static Integrator* readXMLFile(
const std::string &filename);
101 virtual std::string
getType()
const {
return "Integrator"; }
void debugInit()
Definition: integrator.cc:58
solver-interface for dynamic systems
Definition: solver.h:38
solver interface for modelling and simulation of dynamic systems
Definition: dynamic_system_solver.h:48
virtual ~Integrator()
destructor
Definition: integrator.h:50
fmatvec::Vec z0
initial state
Definition: integrator.h:114
virtual void integrate(MBSim::DynamicSystemSolver &system)=0
start the integration
Integrator()
constructor
Definition: integrator.cc:34
virtual std::string getType() const
Definition: integrator.h:101
void execute(MBSim::DynamicSystemSolver &system)
start solving the dynamic system
Definition: integrator.h:67
bool output
flag for ouput printing
Definition: integrator.h:124
std::string name
name of integrator
Definition: integrator.h:129
int warnLevel
warn level
Definition: integrator.h:119
double tStart
start, end, plot time
Definition: integrator.h:109
basic error class for mbsim
Definition: mbsim_event.h:38
integrator-interface for dynamic systems
Definition: integrator.h:40
static DynamicSystemSolver * system
dynamic system
Definition: solver.h:65
virtual void initializeUsingXML(xercesc::DOMElement *element)
initialize integrator
Definition: integrator.cc:36