23 #ifndef _RADAU5_INTEGRATOR_H_ 24 #define _RADAU5_INTEGRATOR_H_ 26 #include "root_finding_integrator.h" 45 typedef void (*Fzdot)(
int* n,
double* t,
double* y,
double* yd,
double* rpar,
int* ipar);
46 typedef void (*Mass)(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
47 static Fzdot fzdot[5];
49 static void fzdotODE(
int* n,
double* t,
double* z,
double* zd,
double* rpar,
int* ipar);
50 static void fzdotDAE1(
int* n,
double* t,
double* y,
double* yd,
double* rpar,
int* ipar);
51 static void fzdotDAE2(
int* n,
double* t,
double* y,
double* yd,
double* rpar,
int* ipar);
52 static void fzdotDAE3(
int* n,
double* t,
double* y,
double* yd,
double* rpar,
int* ipar);
53 static void fzdotGGL(
int* n,
double* t,
double* y,
double* yd,
double* rpar,
int* ipar);
54 static void massFull(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
55 static void massReduced(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
56 static void plot(
int* nr,
double* told,
double* t,
double* y,
double* cont,
int* lrc,
int* n,
double* rpar,
int* ipar,
int* irtrn);
81 int neq, mlJac, muJac;
82 fmatvec::VecInt iWork;
88 void setAbsoluteTolerance(
const fmatvec::Vec &aTol_) {
aTol <<= aTol_; }
89 void setAbsoluteTolerance(
double aTol_) {
aTol.resize(1,fmatvec::INIT,aTol_); }
90 void setRelativeTolerance(
const fmatvec::Vec &rTol_) {
rTol <<= rTol_; }
91 void setRelativeTolerance(
double rTol_) {
rTol.resize(1,fmatvec::INIT,rTol_); }
92 void setInitialStepSize(
double dt0_) {
dt0 = dt0_; }
93 void setMaximumStepSize(
double dtMax_) {
dtMax = dtMax_; }
94 void setStepLimit(
int maxSteps_) {
maxSteps = maxSteps_; }
95 void setFormalism(Formalism formalism_) {
formalism = formalism_; }
96 void setReducedForm(
bool reduced_) {
reduced = reduced_; }
fmatvec::Vec aTol
Definition: radau5_integrator.h:67
void integrate() override
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: radau5_integrator.cc:252
bool reduced
Definition: radau5_integrator.h:79
Formalism formalism
Definition: radau5_integrator.h:77
Integrator with root-finding.
Definition: root_finding_integrator.h:32
virtual void integrate()=0
start the integration of the system set by setSystem. Each class implemeting this function should cal...
double dtMax
Definition: radau5_integrator.h:75
DAE-Integrator RADAU5.
Definition: radau5_integrator.h:32
double dt0
Definition: radau5_integrator.h:71
void initializeUsingXML(xercesc::DOMElement *element) override
initialize integrator
Definition: radau5_integrator.cc:413
int maxSteps
Definition: radau5_integrator.h:73
fmatvec::Vec rTol
Definition: radau5_integrator.h:69
namespace MBSim
Definition: bilateral_constraint.cc:29