23 #ifndef _PHEM56_INTEGRATOR_H_ 24 #define _PHEM56_INTEGRATOR_H_ 26 #include "root_finding_integrator.h" 45 static void fprob(
int* ifcn,
int* nq,
int* nv,
int* nu,
int* nl,
int* nzg,
int* nzf,
int* lrda,
int* nblk,
int* nmrc,
int* npgp,
int* npfl,
int* indgr,
int* indgc,
int* indflr,
int* indflc,
double* t,
double* p,
double* v,
double* u,
double* xl,
double* g,
double* gp,
double* f,
double* gpp,
double* gt,
double* fl,
double* qdot,
double* udot,
double* am);
46 static void solout(
int* nr,
int* nq,
int* nv,
int* nu,
int* nl,
int* lrdo,
double* q,
double* v,
double* u,
double* a,
double* rlam,
double* dowk,
int* irtrn);
78 void setAbsoluteTolerance(
const fmatvec::Vec &aTol_) {
aTol <<= aTol_; }
79 void setAbsoluteTolerance(
double aTol_) {
aTol.resize(1,fmatvec::INIT,aTol_); }
80 void setRelativeTolerance(
const fmatvec::Vec &rTol_) {
rTol <<= rTol_; }
81 void setRelativeTolerance(
double rTol_) {
rTol.resize(1,fmatvec::INIT,rTol_); }
82 void setInitialStepSize(
double dt0_) {
dt0 = dt0_; }
83 void setMaximumStepSize(
double dtMax_) {
dtMax = dtMax_; }
84 void setStepLimit(
int maxSteps_) {
maxSteps = maxSteps_; }
85 void setLinearAlgebra(LinearAlgebra linearAlgebra_) {
linearAlgebra = linearAlgebra_; }
86 void setGeneralVMatrix(
bool generalVMatrix_) {
generalVMatrix = generalVMatrix_; }
87 void setInitialProjection(
bool initialProjection_) {
initialProjection = initialProjection_; }
91 const fmatvec::Vec& getAbsoluteTolerance()
const {
return aTol; }
92 const fmatvec::Vec& getRelativeTolerance()
const {
return rTol; }
fmatvec::Vec rTol
Definition: phem56_integrator.h:66
LinearAlgebra linearAlgebra
Definition: phem56_integrator.h:54
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...
int numberOfStepsBetweenProjections
Definition: phem56_integrator.h:60
fmatvec::Vec aTol
Definition: phem56_integrator.h:64
double dt0
Definition: phem56_integrator.h:68
void integrate() override
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: phem56_integrator.cc:282
double dtMax
Definition: phem56_integrator.h:72
bool projectOntoIndex1ConstraintManifold
Definition: phem56_integrator.h:62
void initializeUsingXML(xercesc::DOMElement *element) override
initialize integrator
Definition: phem56_integrator.cc:386
int maxSteps
Definition: phem56_integrator.h:70
DAE-Integrator PHEM56.
Definition: phem56_integrator.h:33
bool initialProjection
Definition: phem56_integrator.h:58
bool generalVMatrix
Definition: phem56_integrator.h:56
namespace MBSim
Definition: bilateral_constraint.cc:29