23#ifndef _RODAS_INTEGRATOR_H_
24#define _RODAS_INTEGRATOR_H_
26#include "dae_integrator.h"
35 double delta(
int i,
double z)
const override;
36 void par_ud_xd_par_t(fmatvec::Vec &pt);
37 void par_ud_xd_gdd_par_t(fmatvec::Vec &pt);
38 typedef void (*Fzdot)(
int* n,
double* t,
double* y,
double* yd,
double* rpar,
int* ipar);
39 typedef void (*Jac)(
int* n,
double *t,
double *y,
double *J,
int *nn,
double *rpar,
int *ipar);
40 typedef void (*Pt)(
int* n,
double* t,
double* y,
double* pt,
double* rpar,
int* ipar);
41 typedef void (*Mass)(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
42 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 jacODE(
int* n,
double *t,
double *z,
double *J,
int *nn,
double *rpar,
int *ipar);
49 static void jacDAE1(
int* n,
double *t,
double *y,
double *J,
int *nn,
double *rpar,
int *ipar);
50 static void ptODE(
int* n,
double* t,
double* z,
double* pt,
double* rpar,
int* ipar);
51 static void ptDAE1(
int* n,
double* t,
double* y,
double* pt,
double* rpar,
int* ipar);
52 static void massFull(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
53 static void massReduced(
int* n,
double* m,
int* lmas,
double* rpar,
int* ipar);
54 static void plot(
int* nr,
double* told,
double* t,
double* y,
double* cont,
int* lrc,
int* n,
double* rpar,
int* ipar,
int* irtrn);
56 void reinit()
override;
73 fmatvec::VecInt iWork;
78 std::exception_ptr exception;
81 ~RODASIntegrator()
override =
default;
83 void setInitialStepSize(
double dt0_) {
dt0 = dt0_; }
84 void setMaximumStepSize(
double dtMax_) {
dtMax = dtMax_; }
85 void setStepLimit(
int maxSteps_) {
maxSteps = maxSteps_; }
86 void setFormalism(Formalism formalism_) {
formalism = formalism_; }
87 void setReducedForm(
bool reduced_) {
reduced = reduced_; }
88 void setAutonomousSystem(
bool autonom_) {
autonom = autonom_; }
Base class for all DAE integrators.
Definition: dae_integrator.h:33
Formalism formalism
Definition: dae_integrator.h:65
bool reduced
Definition: implicit_integrator.h:47
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
int maxSteps
Definition: rodas_integrator.h:66
void integrate() override
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: rodas_integrator.cc:388
double dt0
Definition: rodas_integrator.h:64
double dtMax
Definition: rodas_integrator.h:68
void initializeUsingXML(xercesc::DOMElement *element) override
initialize integrator
Definition: rodas_integrator.cc:532
bool autonom
Definition: rodas_integrator.h:70
namespace MBSim
Definition: bilateral_constraint.cc:30