00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _HETS2_INTEGRATOR_H_
00021 #define _HETS2_INTEGRATOR_H_
00022
00023 #include "integrator.h"
00024
00025 namespace MBSimIntegrator {
00026
00043 class HETS2Integrator : public Integrator {
00044 public:
00048 HETS2Integrator();
00049
00053 virtual ~HETS2Integrator() {}
00054
00059 void preIntegrate(MBSim::DynamicSystemSolver& system);
00060
00065 void subIntegrate(MBSim::DynamicSystemSolver& system, double tStop);
00066
00071 void postIntegrate(MBSim::DynamicSystemSolver& system);
00072
00073
00074 virtual void integrate(MBSim::DynamicSystemSolver& system);
00075 virtual void initializeUsingXML(xercesc::DOMElement *element);
00076
00077
00078
00079 void setStepSize(double dt_) { dt = dt_; dtImpulsive = dt*1e-1, dtInfo = dt; }
00080
00081
00082 private:
00088 bool evaluateStage(MBSim::DynamicSystemSolver& system);
00089
00093 double dt, dtImpulsive, dtInfo;
00094
00098 double t, tPlot;
00099
00103 int iter, integrationSteps, integrationStepsConstraint, integrationStepsImpact, maxIter, sumIter;
00104
00108 double s0, time;
00109
00113 fmatvec::Vec z, q, u, x;
00114
00118 std::ofstream integPlot;
00119 };
00120
00121 }
00122
00123 #endif
00124