|
| Tank (unsigned int uL, const DofOwner *pD, HydraulicFluid *hf, const PressureNode *p1, const PressureNode *p2, doublereal press, doublereal A_pipe, doublereal A_serb, doublereal lev, doublereal s_mx, doublereal s_mn, doublereal c_s, flag fOut) |
|
| ~Tank (void) |
|
virtual HydraulicElem::Type | GetHydraulicType (void) const |
|
virtual std::ostream & | Restart (std::ostream &out) const |
|
virtual unsigned int | iGetNumDof (void) const |
|
virtual DofOrder::Order | GetDofType (unsigned int i) const |
|
virtual void | WorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
|
VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
|
SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
|
virtual void | Output (OutputHandler &OH) const |
|
virtual void | SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0) |
|
virtual void | GetConnectedNodes (std::vector< const Node * > &connectedNodes) const |
|
| Elem (unsigned int uL, flag fOut) |
|
virtual | ~Elem (void) |
|
virtual std::ostream & | DescribeDof (std::ostream &out, const char *prefix="", bool bInitial=false) const |
|
virtual void | DescribeDof (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const |
|
virtual std::ostream & | DescribeEq (std::ostream &out, const char *prefix="", bool bInitial=false) const |
|
virtual void | DescribeEq (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const |
|
virtual void | AssMats (VariableSubMatrixHandler &WorkMatA, VariableSubMatrixHandler &WorkMatB, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
|
virtual bool | bInverseDynamics (void) const |
|
void | SetInverseDynamicsFlags (unsigned uIDF) |
|
unsigned | GetInverseDynamicsFlags (void) const |
|
bool | bIsErgonomy (void) const |
|
bool | bIsRightHandSide (void) const |
|
virtual VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr) |
|
virtual SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr, const VectorHandler &XPrimePrimeCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS) |
|
virtual int | GetNumConnectedNodes (void) const |
|
| WithLabel (unsigned int uL=0, const std::string &sN="") |
|
virtual | ~WithLabel (void) |
|
void | PutLabel (unsigned int uL) |
|
void | PutName (const std::string &sN) |
|
unsigned int | GetLabel (void) const |
|
const std::string & | GetName (void) const |
|
| SimulationEntity (void) |
|
virtual | ~SimulationEntity (void) |
|
virtual bool | bIsValidIndex (unsigned int i) const |
|
virtual DofOrder::Order | GetEqType (unsigned int i) const |
|
virtual Hint * | ParseHint (DataManager *pDM, const char *s) const |
|
virtual void | BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const |
|
virtual void | AfterPredict (VectorHandler &X, VectorHandler &XP) |
|
virtual void | Update (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
|
virtual void | DerivativesUpdate (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
|
virtual void | Update (const VectorHandler &XCurr, InverseDynamics::Order iOrder) |
|
virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP) |
|
virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP) |
|
virtual unsigned int | iGetNumPrivData (void) const |
|
virtual unsigned int | iGetPrivDataIdx (const char *s) const |
|
virtual doublereal | dGetPrivData (unsigned int i) const |
|
virtual std::ostream & | OutputAppend (std::ostream &out) const |
|
virtual void | ReadInitialState (MBDynParser &HP) |
|
| ToBeOutput (flag fOut=fDefaultOut) |
|
virtual | ~ToBeOutput (void) |
|
virtual void | OutputPrepare (OutputHandler &OH) |
|
virtual void | Output (OutputHandler &OH, const VectorHandler &X, const VectorHandler &XP) const |
|
virtual flag | fToBeOutput (void) const |
|
virtual bool | bToBeOutput (void) const |
|
virtual void | SetOutputFlag (flag f=flag(1)) |
|
| HydraulicElem (unsigned int uL, const DofOwner *pDO, HydraulicFluid *hf, flag fOut) |
|
virtual | ~HydraulicElem (void) |
|
virtual Elem::Type | GetElemType (void) const |
|
| ElemWithDofs (unsigned int uL, const DofOwner *pDO, flag fOut) |
|
virtual | ~ElemWithDofs (void) |
|
| DofOwnerOwner (const DofOwner *pDO) |
|
virtual | ~DofOwnerOwner () |
|
virtual const DofOwner * | pGetDofOwner (void) const |
|
virtual integer | iGetFirstIndex (void) const |
|
virtual void | SetInitialValue (VectorHandler &X) |
|
Definition at line 139 of file hutils.h.
Implements Elem.
Definition at line 466 of file hutils.cc.
References area_pipe, area_serb, c_spost, DEBUGCOUT, HydraulicFluid::dGetDensity(), ScalarAlgebraicNode::dGetX(), grad::fabs(), flow1, flow2, HydraulicElem::HF, Node::iGetFirstColIndex(), DofOwnerOwner::iGetFirstIndex(), Node::iGetFirstRowIndex(), Kappa1, Kappa2, pNode1, pNode2, press, FullSubMatrixHandler::PutCoef(), FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), FullSubMatrixHandler::Resize(), s, s_max, s_min, VariableSubMatrixHandler::SetFull(), and grad::sqrt().
471 DEBUGCOUT(
"Entering Tank::AssJac()" << std::endl);
494 s = XCurr(iFirstIndex+1);
499 if (jumpPres1S < 1.e8*std::numeric_limits<doublereal>::epsilon()) {
500 jumpPres1S = 1.e8*std::numeric_limits<doublereal>::epsilon();
506 if (jumpPresS2 < 1.e8*std::numeric_limits<doublereal>::epsilon()) {
507 jumpPresS2 = 1.e8*std::numeric_limits<doublereal>::epsilon();
527 DEBUGCOUT(
"Jac Esco dalla presa di emergenza: " << std::endl);
534 DEBUGCOUT(
"Jac Serbatoio pieno : " << std::endl);
538 if (s < 0. && flow2 > -
flow1) {
542 DEBUGCOUT(
"Jac Serbatoio vuoto : "<< std::endl);
const PressureNode * pNode2
void PutColIndex(integer iSubCol, integer iCol)
FullSubMatrixHandler & SetFull(void)
void Resize(integer iNewRow, integer iNewCol)
void PutCoef(integer iRow, integer iCol, const doublereal &dCoef)
GradientExpression< UnaryExpr< FuncFabs, Expr > > fabs(const GradientExpression< Expr > &u)
virtual doublereal dGetDensity(void) const =0
virtual const doublereal & dGetX(void) const
virtual integer iGetFirstRowIndex(void) const
GradientExpression< UnaryExpr< FuncSqrt, Expr > > sqrt(const GradientExpression< Expr > &u)
const PressureNode * pNode1
void PutRowIndex(integer iSubRow, integer iRow)
virtual integer iGetFirstIndex(void) const
virtual integer iGetFirstColIndex(void) const
Implements Elem.
Definition at line 561 of file hutils.cc.
References area_pipe, area_serb, c_spost, copysign(), DEBUGCOUT, HydraulicFluid::dGetDensity(), ScalarAlgebraicNode::dGetX(), grad::fabs(), flow1, flow2, WithLabel::GetLabel(), HydraulicElem::HF, DofOwnerOwner::iGetFirstIndex(), Node::iGetFirstRowIndex(), Kappa1, Kappa2, level, MBDYN_EXCEPT_ARGS, pNode1, pNode2, press, SubVectorHandler::PutItem(), VectorHandler::Resize(), s, s_max, s_min, sp, and grad::sqrt().
566 DEBUGCOUT(
"Entering Tank::AssRes()" << std::endl);
578 s = XCurr(iFirstIndex+1);
579 sp = XPrimeCurr(iFirstIndex+1);
582 silent_cerr(
"Tank(" <<
GetLabel() <<
": negative fluid level "
583 <<
s <<
" impossible" << std::endl);
600 if (
s >
s_max && Res_1 > -Res_2) {
605 DEBUGCOUT(
"Res Serbatoio pieno: " << std::endl);
613 DEBUGCOUT(
"Esco dalla presa di emergenza: " << std::endl);
618 if (
s < 0. && Res_2 < -Res_1) {
623 DEBUGCOUT(
"Res Serbatoio vuoto: " << std::endl);
635 DEBUGCOUT(
"jumpPres1S: " << jumpPres1S << std::endl);
636 DEBUGCOUT(
"jumpPresS2: " << jumpPresS2 << std::endl);
637 DEBUGCOUT(
"density: " << density << std::endl);
648 DEBUGCOUT(
"PORTATE AI VARI NODI (positive se entranti)" << std::endl);
649 DEBUGCOUT(
"-Res_1: " << -Res_1 <<
" (portata nodo1) " << std::endl);
650 DEBUGCOUT(
"-Res_2: " << -Res_2 <<
" (portata nodo2) " << std::endl);
651 DEBUGCOUT(
"Res_3: " << Res_3 << std::endl);
654 WorkVec.
PutItem(1, iNode1RowIndex, Res_1);
655 WorkVec.
PutItem(2, iNode2RowIndex, Res_2);
656 WorkVec.
PutItem(3, iFirstIndex+1, Res_3);
const PressureNode * pNode2
#define MBDYN_EXCEPT_ARGS
GradientExpression< UnaryExpr< FuncFabs, Expr > > fabs(const GradientExpression< Expr > &u)
virtual void PutItem(integer iSubRow, integer iRow, const doublereal &dCoef)
virtual doublereal dGetDensity(void) const =0
virtual const doublereal & dGetX(void) const
doublereal copysign(doublereal x, doublereal y)
virtual integer iGetFirstRowIndex(void) const
GradientExpression< UnaryExpr< FuncSqrt, Expr > > sqrt(const GradientExpression< Expr > &u)
const PressureNode * pNode1
virtual integer iGetFirstIndex(void) const
unsigned int GetLabel(void) const
virtual void Resize(integer iNewSize)=0