23#ifndef _LSODE_INTEGRATOR_H_
24#define _LSODE_INTEGRATOR_H_
26#include "implicit_integrator.h"
30 extern bool odePackInUse;
50 double delta(
int i,
double z)
const override;
51 static void fzdot(
int* neq,
double* t,
double* z_,
double* zd_);
52 static void jac(
int *neq,
double* t,
double* z_,
int* ml,
int* mu,
double* J_,
int* nrowp);
75 std::exception_ptr exception;
78 void setMaximumStepSize(
double dtMax_) {
dtMax = dtMax_; }
79 void setMinimumStepSize(
double dtMin_) {
dtMin = dtMin_; }
80 void setAbsoluteTolerance(
const fmatvec::Vec &aTol_) {
aTol <<= aTol_; }
81 void setAbsoluteTolerance(
double aTol_) {
aTol.resize(1,fmatvec::INIT,aTol_); }
82 void setRelativeTolerance(
const fmatvec::Vec &rTol_) {
rTol <<= rTol_; }
83 void setRelativeTolerance(
double rTol_) {
rTol.resize(1,fmatvec::INIT,rTol_); }
84 void setInitialStepSize(
double dt0_) {
dt0 = dt0_; }
85 void setStepLimit(
int maxSteps_) {
maxSteps = maxSteps_; }
86 void setMethod(Method method_) {
method = method_; }
Base class for all implicit integrators.
Definition: implicit_integrator.h:34
virtual void integrate()=0
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Hindmarsh’s ODE solver LSODE.
Definition: lsode_integrator.h:39
fmatvec::Vec aTol
Definition: lsode_integrator.h:61
int maxSteps
Definition: lsode_integrator.h:67
virtual void initializeUsingXML(xercesc::DOMElement *element)
initialize integrator
Definition: lsode_integrator.cc:314
Method method
Definition: lsode_integrator.h:69
fmatvec::Vec rTol
Definition: lsode_integrator.h:63
double dtMax
Definition: lsode_integrator.h:57
double dt0
Definition: lsode_integrator.h:65
void integrate()
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: lsode_integrator.cc:93
double dtMin
Definition: lsode_integrator.h:59
namespace MBSim
Definition: bilateral_constraint.cc:30