23 #ifndef _RADAU_INTEGRATOR_H_
24 #define _RADAU_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;
89 void setAbsoluteTolerance(
double aTol_) {
aTol =
fmatvec::Vec(1,fmatvec::INIT,aTol_); }
91 void setRelativeTolerance(
double rTol_) {
rTol =
fmatvec::Vec(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_; }
Formalism formalism
Definition: radau_integrator.h:77
Vector< Ref, double > Vec
void integrate() override
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: radau_integrator.cc:249
fmatvec::Vec aTol
Definition: radau_integrator.h:67
Integrator with root-finding.
Definition: root_finding_integrator.h:32
bool reduced
Definition: radau_integrator.h:79
virtual void integrate()=0
start the integration of the system set by setSystem. Each class implemeting this function should cal...
double dtMax
Definition: radau_integrator.h:75
DAE-Integrator RADAU.
Definition: radau_integrator.h:32
int maxSteps
Definition: radau_integrator.h:73
void initializeUsingXML(xercesc::DOMElement *element) override
initialize integrator
Definition: radau_integrator.cc:404
double dt0
Definition: radau_integrator.h:71
fmatvec::Vec rTol
Definition: radau_integrator.h:69