Lines Matching refs:HP

83 ReadFF(MBDynParser& HP, integer iNumOutputs)  in ReadFF()  argument
87 if (HP.IsKeyWord("forgetting" "factor")) { in ReadFF()
88 if (HP.IsKeyWord("const")) { in ReadFF()
89 doublereal d = HP.GetReal(); in ReadFF()
94 } else if (HP.IsKeyWord("dynamic")) { in ReadFF()
95 integer n1 = HP.GetInt(); in ReadFF()
96 integer n2 = HP.GetInt(); in ReadFF()
97 doublereal dRho = HP.GetReal(); in ReadFF()
98 doublereal dFact = HP.GetReal(); in ReadFF()
99 doublereal dKRef = HP.GetReal(); in ReadFF()
100 doublereal dKLim = HP.GetReal(); in ReadFF()
108 "at line " << HP.GetLineData() << std::endl); in ReadFF()
125 ReadPX(DataManager* pDM, MBDynParser& HP, integer iNumInputs) in ReadPX() argument
129 if (HP.IsKeyWord("excitation")) { in ReadPX()
131 DriveCaller* pDC = HP.GetDriveCaller(); in ReadPX()
139 ppDC[i] = HP.GetDriveCaller(); in ReadPX()
157 MBDynParser& HP, in ReadElectric() argument
192 KeyTable K(HP, sKeyWords); in ReadElectric()
195 KeyWords CurrKeyWord = KeyWords(HP.GetWord()); in ReadElectric()
202 if (HP.IsKeyWord("translational")) { in ReadElectric()
204 } else if(HP.IsKeyWord("rotational")) { in ReadElectric()
213 = pDM->ReadNode<const StructNode, Node::STRUCTURAL>(HP); in ReadElectric()
217 = pDM->ReadNode<const ScalarDifferentialNode, Node::ABSTRACT>(HP); in ReadElectric()
222 Dir = HP.GetUnitVecRel(ReferenceFrame(pStrNode)); in ReadElectric()
226 "at line " << HP.GetLineData() in ReadElectric()
234 if (HP.IsKeyWord("position") || HP.IsKeyWord("offset") || f == 1) { in ReadElectric()
235 Tmpf = HP.GetPosRel(ReferenceFrame(pStrNode)); in ReadElectric()
237 flag fOut = pDM->fReadOutput(HP, Elem::ELECTRIC); in ReadElectric()
263 = pDM->ReadNode<const StructNode, Node::STRUCTURAL>(HP); in ReadElectric()
267 = pDM->ReadNode<const ScalarDifferentialNode, Node::ABSTRACT>(HP); in ReadElectric()
272 Dir = HP.GetUnitVecRel(ReferenceFrame(pStrNode)); in ReadElectric()
276 "at line " << HP.GetLineData() in ReadElectric()
283 doublereal dOmega = HP.GetReal(); in ReadElectric()
287 "at line " << HP.GetLineData() in ReadElectric()
292 doublereal dTau = HP.GetReal(); in ReadElectric()
296 "at line " << HP.GetLineData() in ReadElectric()
301 doublereal dCsi = HP.GetReal(); in ReadElectric()
305 "at line " << HP.GetLineData() in ReadElectric()
310 doublereal dKappa = HP.GetReal(); in ReadElectric()
314 "at line " << HP.GetLineData() in ReadElectric()
325 flag fOut = pDM->fReadOutput(HP, Elem::ELECTRIC); in ReadElectric()
338 = pDM->ReadNode<const StructNode, Node::STRUCTURAL>(HP); in ReadElectric()
342 if (HP.IsKeyWord("position")) { in ReadElectric()
345 Tmpf1 = HP.GetPosRel(ReferenceFrame(pStrNode1)); in ReadElectric()
349 = pDM->ReadNode<const StructNode, Node::STRUCTURAL>(HP); in ReadElectric()
353 if (HP.IsKeyWord("position")) { in ReadElectric()
356 Tmpf2 = HP.GetPosRel(ReferenceFrame(pStrNode2)); in ReadElectric()
360 = pDM->ReadNode<const ScalarDifferentialNode, Node::ABSTRACT>(HP); in ReadElectric()
362 flag fOut = pDM->fReadOutput(HP, Elem::ELECTRIC); in ReadElectric()
373 = pDM->ReadNode<const StructNode, Node::STRUCTURAL>(HP); in ReadElectric()
377 = pDM->ReadNode<const StructNode, Node::STRUCTURAL>(HP); in ReadElectric()
383 if (HP.IsKeyWord("orientation")) { in ReadElectric()
384 Rn = HP.GetRotRel(ReferenceFrame(pStrNode1)); in ReadElectric()
390 const Vec3 e3 = HP.GetUnitVecRel(ReferenceFrame(pStrNode1)); in ReadElectric()
417 "at line " << HP.GetLineData() in ReadElectric()
427 = dynamic_cast<ElectricNode *>(pDM->ReadNode(HP, Node::ELECTRIC)); in ReadElectric()
431 = dynamic_cast<ElectricNode *>(pDM->ReadNode(HP, Node::ELECTRIC)); in ReadElectric()
433 doublereal dG = HP.GetReal(); in ReadElectric()
434 doublereal dL = HP.GetReal(); in ReadElectric()
435 DriveCaller* dR = HP.GetDriveCaller(); in ReadElectric()
438 if (HP.IsKeyWord("initial" "current")) { in ReadElectric()
439 i0 = HP.GetReal(); in ReadElectric()
446 if (HP.IsKeyWord("M0")) { in ReadElectric()
448 pM0 = HP.GetDriveCaller(); in ReadElectric()
455 if (HP.IsKeyWord("M1")) { in ReadElectric()
457 pM1 = HP.GetDriveCaller(); in ReadElectric()
467 …<< "): \"M0\" and \"M1\" require rotation matrix instead of axis at line " << HP.GetLineData() << … in ReadElectric()
471 if (!HP.IsKeyWord("terminal" "pairs")) { in ReadElectric()
473 << HP.GetLineData() << std::endl); in ReadElectric()
477 p = HP.GetInt(); in ReadElectric()
482 << HP.GetLineData() << std::endl); in ReadElectric()
487 flag fOut = pDM->fReadOutput(HP, Elem::ELECTRIC); in ReadElectric()
497 integer iNumOutputs = HP.GetInt(); in ReadElectric()
498 integer iNumInputs = HP.GetInt(); in ReadElectric()
499 integer iOrderA = HP.GetInt(); in ReadElectric()
501 if (HP.IsKeyWord("fir")) { in ReadElectric()
502 iOrderB = HP.GetInt(); in ReadElectric()
505 integer iNumIter = HP.GetInt(); in ReadElectric()
517 switch (HP.GetWord()) { in ReadElectric()
520 const char* s = HP.GetFileName(); in ReadElectric()
539 if (HP.IsKeyWord("arx")) { in ReadElectric()
542 } else if (HP.IsKeyWord("armax")) { in ReadElectric()
548 "at line " << HP.GetLineData() << std::endl); in ReadElectric()
553 ForgettingFactor* pFF = ReadFF(HP, iNumOutputs); in ReadElectric()
556 PersistentExcitation* pPX = ReadPX(pDM, HP, iNumInputs); in ReadElectric()
559 if (HP.IsKeyWord("file")) { in ReadElectric()
560 const char *s = HP.GetFileName(); in ReadElectric()
580 if (HP.IsKeyWord("arx")) { in ReadElectric()
584 } else if (HP.IsKeyWord("armax")) { in ReadElectric()
589 if (HP.IsKeyWord("periodic")) { in ReadElectric()
590 dPeriodicFactor = HP.GetReal(); in ReadElectric()
594 if (HP.IsKeyWord("gpc")) { in ReadElectric()
597 integer iPredS = HP.GetInt(); in ReadElectric()
598 integer iContrS = HP.GetInt(); in ReadElectric()
599 integer iPredH = HP.GetInt(); in ReadElectric()
611 "at line " << HP.GetLineData() in ReadElectric()
620 "at line " << HP.GetLineData() in ReadElectric()
630 "at line " << HP.GetLineData() in ReadElectric()
639 "at line " << HP.GetLineData() in ReadElectric()
649 if (HP.IsKeyWord("prediction" "weights")) { in ReadElectric()
652 pW[i] = HP.GetReal(); in ReadElectric()
662 if (HP.IsKeyWord("control" "weights")) { in ReadElectric()
665 pR[i] = HP.GetReal(); in ReadElectric()
675 DriveCaller* pLambda = HP.GetDriveCaller(); in ReadElectric()
685 } else if (HP.IsKeyWord("deadbeat")) { in ReadElectric()
688 int iPredS = HP.GetInt(); in ReadElectric()
689 int iContrS = HP.GetInt(); in ReadElectric()
698 "unknown adaptive control type at line " << HP.GetLineData() << std::endl); in ReadElectric()
704 ForgettingFactor* pFF = ReadFF(HP, iNumOutputs); in ReadElectric()
708 PersistentExcitation* pPX = ReadPX(pDM, HP, iNumInputs); in ReadElectric()
711 if (HP.IsKeyWord("trigger")) { in ReadElectric()
713 pTrig = HP.GetDriveCaller(); in ReadElectric()
720 if (HP.IsKeyWord("desired" "output")) { in ReadElectric()
726 vDesiredOut[i] = HP.GetDriveCaller(); in ReadElectric()
731 if (HP.IsKeyWord("file") || HP.IsKeyWord("output" "file")) { in ReadElectric()
732 const char *s = HP.GetFileName(); in ReadElectric()
748 "at line " << HP.GetLineData() << std::endl); in ReadElectric()
760 if (!HP.IsKeyWord("outputs")) { in ReadElectric()
763 "at line " << HP.GetLineData() in ReadElectric()
774 vOutputs[i] = ReadScalarValue(pDM, HP); in ReadElectric()
775 if (HP.IsKeyWord("scale")) { in ReadElectric()
776 vOutScaleFact[i] = HP.GetDriveCaller(); in ReadElectric()
784 if (!HP.IsKeyWord("inputs")) { in ReadElectric()
787 "at line " << HP.GetLineData() in ReadElectric()
798 pInputs[i] = ReadScalarDof(pDM, HP, false, true); in ReadElectric()
801 flag fOut = pDM->fReadOutput(HP, Elem::ELECTRIC); in ReadElectric()
815 "at line " << HP.GetLineData() in ReadElectric()
821 if (HP.IsArg()) { in ReadElectric()
822 silent_cerr("semicolon expected at line " << HP.GetLineData() << std::endl); in ReadElectric()