101 double dt, dtOld, dte;
103 double dt_SSC_vorGapControl;
104 bool driftCompensation;
105 double t, tPlot, tPlotP;
106 int qSize, xSize, uSize, zSize;
107 fmatvec::Vec ze, zeP, zi, ziP, zT1, zT2, zT3, zTP, z1d, z2d, z2dRE, z3d, z4d, z6d, z2b, z3b, z4b, z6b, zStern;
109 fmatvec::VecInt LS, LSe, LSA, LSB1, LSB2, LSC1, LSC2, LSC3, LSC4, LSD1, LSD2, LSD3, LSD4, LSD5, LSD6;
110 fmatvec::VecInt LS_Reg, LSe_Reg, LSA_Reg, LSB1_Reg, LSB2_Reg, LSC1_Reg, LSC2_Reg, LSC3_Reg, LSC4_Reg, LSD1_Reg, LSD2_Reg, LSD3_Reg, LSD4_Reg, LSD5_Reg, LSD6_Reg;
111 fmatvec::VecInt LS_Reg_T1, LS_Reg_T2, LS_Reg_T3;
112 fmatvec::VecInt LS_Reg_z2b, S_Reg_z1d, LS_Reg_z4b, LS_Reg_z6b, LS_Reg_z1d, LS_Reg_z3b, LSB1_2_Reg;
113 fmatvec::VecInt LS_tmp;
115 fmatvec::Vec la, laP, lae, laeP, la1d, la2b;
116 fmatvec::VecInt laSizes, laSizesP, laeSizes, laeSizesP, la1dSizes, la2bSizes;
117 fmatvec::Vec qT1, qT2, qT3, qTP;
118 fmatvec::Vec uT1, uT2, uT3, uTP;
119 fmatvec::Vec xT1, xT2, xT3, xTP;
120 fmatvec::Vec gInActive, gdInActive;
121 std::vector<MBSim::Link*> SetValuedLinkListT1;
122 std::vector<MBSim::Link*> SetValuedLinkListT2;
123 std::vector<MBSim::Link*> SetValuedLinkListT3;
124 std::vector<MBSim::Link*> SetValuedLinkListTP;
126 int StepsWithUnchangedConstraints;
197 double time, dhdztime, timeB1, timeB2, timePlot, timePlotPar;
203 int iter, iterA, iterB1, iterB2, iterC1, iterC2, iterC3, iterC4, iterB2RE, maxIterUsed, maxIter, sumIter;
219 int indexLSException;
220 fmatvec::Vec gUniActive;
221 double Penetration, PenetrationCounter, PenetrationLog, PenetrationMin, PenetrationMax;
222 double maxdtUsed, mindtUsed;
223 bool ChangeByGapControl;
225 bool IterConvergence;
226 bool ConstraintsChanged, ConstraintsChangedBlock1, ConstraintsChangedBlock2, ConstraintsChanged_B1_A;
227 int integrationStepsOrder1, integrationStepsOrder2;
230 int AnzahlAktiverKontakte;
231 double gNDurchschnittprostep;
236 fmatvec::RangeV Iq, Iu, Ix;
245 bool gAC_T1, gAC_T2, gAC_T3, gAC_reg_T1, gAC_reg_T2, gAC_reg_T3;
251 bool JacUpdate_B1_T1, JacUpdate_B2_T1, JacUpdate_B1_T2, JacUpdate_B2_T2, JacUpdate_T1, JacUpdate_T2;
260 fmatvec::Mat
dhdq_n_T1, dhdu_n_T1, dhdq_n_T2, dhdu_n_T2, dhdq_n_T3, dhdu_n_T3, dhdq_T1, dhdu_T1, dhdq_T2, dhdu_T2, dhdq_T3, dhdu_T3;
261 fmatvec::Mat dhdq_z1d, dhdu_z1d, dhdq_z2b, dhdq_z3b, dhdq_z4b, dhdq_z6b, dhdu_z2b, dhdu_z3b, dhdu_z4b, dhdu_z6b, dhdq_end, dhdu_end, dhdq_z2d, dhdu_z2d, dhdq_z2dRE, dhdu_z2dRE, dhdq_z3d, dhdu_z3d, dhdq_z4d, dhdu_z4d, dhdq_z6d, dhdu_z6d;
269 std::vector<MBSim::DynamicSystemSolver*> *psystems;
284 fmatvec::Mat JacVgl, JacVgl2, JacVgl3;
340 void deactivateSSC(
bool flag=
false) {
FlagSSC=flag;}
358 void setRelativeTolerance(
const fmatvec::Vec &rTol_) {
rTol <<= rTol_;}
359 void setRelativeTolerance(
double rTol_) {
rTol.resize(1,fmatvec::INIT,rTol_);}
360 void setgapTolerance(
double gTol) {
gapTol = gTol;}
369 void getAllSetValuedla(fmatvec::Vec& la_,fmatvec::VecInt& la_Sizes,std::vector<MBSim::Link*> &SetValuedLinkList);
370 void setAllSetValuedla(
const fmatvec::Vec& la_,
const fmatvec::VecInt& la_Sizes,std::vector<MBSim::Link*> &SetValuedLinkList);
371 void getDataForGapControl();
372 bool testTolerances();
373 bool GapControl(
double qUnsafe,
bool SSCTestOK);
374 bool changedLinkStatus(
const fmatvec::VecInt &L1,
const fmatvec::VecInt &L2,
int ex);
375 double calculatedtNewRel(
const fmatvec::Vec &ErrorLocal,
double H);
380 virtual void initializeUsingXML(xercesc::DOMElement *element);
427 void getdhdqdhdu(fmatvec::Mat& dhdq_, fmatvec::Mat& dhdu_,
const fmatvec::Vec z_,
const double t_,
const int nsys_);