23 #ifndef _LSODE_INTEGRATOR_H_
24 #define _LSODE_INTEGRATOR_H_
26 #include "integrator.h"
28 namespace MBSimIntegrator {
37 static void fzdot(
int* zSize,
double* t,
double* z_,
double* zd_);
59 void setMaximalStepSize(
double dtMax_) {
dtMax = dtMax_;}
60 void setMinimalStepSize(
double dtMin_) {
dtMin = dtMin_;}
61 void setRelativeTolerance(
double rTol_) {
rTol = rTol_;}
63 void setAbsoluteTolerance(
double aTol_) {
aTol =
fmatvec::Vec(1,fmatvec::INIT,aTol_);}
64 void setInitialStepSize(
double dt0_) {
dt0 = dt0_;}
65 void setmaxSteps(
int maxSteps_) {
maxSteps = maxSteps_;}
66 void setStiff(
bool flag) {
stiff = flag;}
72 virtual std::string
getType()
const {
return "LSODEIntegrator"; }
Vector< Ref, double > Vec
solver interface for modelling and simulation of dynamic systems
Definition: dynamic_system_solver.h:48
double rTol
Definition: lsode_integrator.h:46
void integrate(MBSim::DynamicSystemSolver &system)
start the integration
Definition: lsode_integrator.cc:56
fmatvec::Vec aTol
Definition: lsode_integrator.h:44
bool stiff
Definition: lsode_integrator.h:52
double dtMax
Definition: lsode_integrator.h:40
virtual std::string getType() const
Definition: lsode_integrator.h:72
double dtMin
Definition: lsode_integrator.h:42
virtual void initializeUsingXML(xercesc::DOMElement *element)
initialize integrator
Definition: lsode_integrator.cc:147
ODE-Integrator LSODE Integrator with root finding for ODEs. This integrator uses LSODE from http://ww...
Definition: lsode_integrator.h:33
double dt0
Definition: lsode_integrator.h:48
integrator-interface for dynamic systems
Definition: integrator.h:40
int maxSteps
Definition: lsode_integrator.h:50
static DynamicSystemSolver * system
dynamic system
Definition: solver.h:65