23 #ifndef _RODAS_INTEGRATOR_H_ 24 #define _RODAS_INTEGRATOR_H_ 26 #include "root_finding_integrator.h" 42 typedef void (*Fzdot)(
int* n,
double* t,
double* y,
double* yd,
double* rpar,
int* ipar);
43 typedef void (*Mass)(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
44 static Fzdot fzdot[2];
46 static void fzdotODE(
int* n,
double* t,
double* z,
double* zd,
double* rpar,
int* ipar);
47 static void fzdotDAE1(
int* n,
double* t,
double* y,
double* yd,
double* rpar,
int* ipar);
48 static void massFull(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
49 static void massReduced(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
50 static void plot(
int* nr,
double* told,
double* t,
double* y,
double* cont,
int* lrc,
int* n,
double* rpar,
int* ipar,
int* irtrn);
77 int neq, mlJac, muJac;
78 fmatvec::VecInt iWork;
85 void setAbsoluteTolerance(
double aTol_) {
aTol.resize(1,fmatvec::INIT,aTol_); }
87 void setRelativeTolerance(
double rTol_) {
rTol.resize(1,fmatvec::INIT,rTol_); }
88 void setInitialStepSize(
double dt0_) {
dt0 = dt0_; }
89 void setMaximumStepSize(
double dtMax_) {
dtMax = dtMax_; }
90 void setStepLimit(
int maxSteps_) {
maxSteps = maxSteps_; }
91 void setFormalism(Formalism formalism_) {
formalism = formalism_; }
92 void setReducedForm(
bool reduced_) {
reduced = reduced_; }
93 void setAutonomousSystem(
bool autonom_) {
autonom = autonom_; }
bool reduced
Definition: rodas_integrator.h:73
void initializeUsingXML(xercesc::DOMElement *element) override
initialize integrator
Definition: rodas_integrator.cc:325
double dt0
Definition: rodas_integrator.h:65
int maxSteps
Definition: rodas_integrator.h:67
fmatvec::Vec rTol
Definition: rodas_integrator.h:63
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...
DAE-Integrator RODAS.
Definition: rodas_integrator.h:32
fmatvec::Vec aTol
Definition: rodas_integrator.h:61
Formalism formalism
Definition: rodas_integrator.h:71
bool autonom
Definition: rodas_integrator.h:75
void integrate() override
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: rodas_integrator.cc:194
double dtMax
Definition: rodas_integrator.h:69
namespace MBSim
Definition: bilateral_constraint.cc:29