|
| Pipe (unsigned int uL, const DofOwner *pD, HydraulicFluid *hf, const PressureNode *p1, const PressureNode *p2, doublereal Dh, doublereal A, doublereal L, flag transition, doublereal q0, flag fOut) |
|
| ~Pipe (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 | AfterConvergence (const VectorHandler &X, const VectorHandler &XP) |
|
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, 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 45 of file pipe.h.
Implements Elem.
Definition at line 112 of file pipe.cc.
References a, area, c, DEBUGCOUT, HydraulicFluid::dGetDensity(), HydraulicFluid::dGetRe(), ScalarAlgebraicNode::dGetX(), diameter, grad::fabs(), HydraulicElem::HF, Node::iGetFirstColIndex(), DofOwnerOwner::iGetFirstIndex(), Node::iGetFirstRowIndex(), klam, ktra, ktrb, length, HydraulicFluid::LOWER, pNode1, pNode2, grad::pow(), FullSubMatrixHandler::PutCoef(), FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), Re, FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), turbulent, HydraulicFluid::UPPER, and viscosity.
117 DEBUGCOUT(
"Entering Pipe::AssJac()" << std::endl);
119 DEBUGCOUT(
"dblepsilon INIZIO: " << std::numeric_limits<doublereal>::epsilon() << std::endl);
153 DEBUGCOUT(
"Entering Pipe::AssJac() sono laminare" << std::endl);
161 DEBUGCOUT(
"Entering Pipe::AssJac() sono turbolento" << std::endl);
164 if (jumpPres < 1.e8*std::numeric_limits<doublereal>::epsilon()) {
165 jumpPres = 1.e8*std::numeric_limits<doublereal>::epsilon();
168 DEBUGCOUT(
"AssJac() JUMPPRES dopo: " << jumpPres << std::endl);
178 DEBUGCOUT(
"Entering Pipe::AssJac() sono in transizione" << std::endl);
185 DEBUGCOUT(
"Sono in transizione lam->turb" << std::endl);
211 DEBUGCOUT(
"Sono in transizione turb->lam" << std::endl);
216 if (jumpPres < 1.e8*std::numeric_limits<doublereal>::epsilon()) {
217 jumpPres = 1.e8*std::numeric_limits<doublereal>::epsilon();
220 DEBUGCOUT(
"AssJac() JUMPPRES dopo: " << jumpPres << std::endl);
227 DEBUGCOUT(
"Jac turb->lam: TRATTO DI INTERPOLAZIONE" << std::endl);
250 DEBUGCOUT(
"JAC p1: " << p1 << std::endl);
251 DEBUGCOUT(
"JAC p2: " << p2 << std::endl);
252 DEBUGCOUT(
"JAC jumpPres: " << jumpPres << std::endl);
258 DEBUGCOUT(
"JAC Jac13: " << Jac13 << std::endl);
259 DEBUGCOUT(
"JAC Jac23: " << Jac23 << std::endl);
260 DEBUGCOUT(
"JAC Jac31: " << Jac31 << std::endl);
261 DEBUGCOUT(
"JAC Jac32: " << Jac32 << std::endl);
262 DEBUGCOUT(
"JAC Jac33: " << Jac33 << std::endl);
const PressureNode * pNode1
void PutColIndex(integer iSubCol, integer iCol)
GradientExpression< BinaryExpr< FuncPow, LhsExpr, RhsExpr > > pow(const GradientExpression< LhsExpr > &u, const GradientExpression< RhsExpr > &v)
virtual doublereal dGetRe(Re which)
FullSubMatrixHandler & SetFull(void)
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
const PressureNode * pNode2
virtual void ResizeReset(integer, integer)
static std::stack< cleanup * > c
void PutRowIndex(integer iSubRow, integer iRow)
static const doublereal a
virtual integer iGetFirstIndex(void) const
virtual integer iGetFirstColIndex(void) const
Implements Elem.
Definition at line 275 of file pipe.cc.
References a, area, c, copysign(), DEBUGCOUT, HydraulicFluid::dGetDensity(), HydraulicFluid::dGetRe(), ScalarAlgebraicNode::dGetX(), diameter, grad::fabs(), flow, HydraulicElem::HF, DofOwnerOwner::iGetFirstIndex(), Node::iGetFirstRowIndex(), klam, ktra, ktrb, length, HydraulicFluid::LOWER, pNode1, pNode2, grad::pow(), SubVectorHandler::PutItem(), Re, VectorHandler::Resize(), turbulent, HydraulicFluid::UPPER, vel, and viscosity.
280 DEBUGCOUT(
"Entering Pipe::AssRes()" << std::endl);
304 DEBUGCOUT(
"Entering Pipe::AssRes() SONO LAMINARE" << std::endl);
306 Res_3 =
klam*q-p1+p2;
312 DEBUGCOUT(
"Entering Pipe::AssRes() SONO TURBOLENTO" << std::endl);
320 DEBUGCOUT(
"SONO IN TRANSIZIONE " << std::endl);
330 DEBUGCOUT(
"SONO IN TRANSIZIONE lam->turb" << std::endl);
334 Res_3 =
klam*q-p1+p2;
336 DEBUGCOUT(
"RES lam->turb: TRATTO 64/RE" << std::endl);
341 DEBUGCOUT(
"RES lam->turb:TRATTO DI INTERPOLAZIONE"<< std::endl);
353 DEBUGCOUT(
"fa lam->turb: " << fa << std::endl);
367 DEBUGCOUT(
"SONO IN TRANSIZIONE turb->lam" << std::endl);
374 DEBUGCOUT(
"RES turb->lam:TRATTO 0.3164/Re^0.25" << std::endl);
378 DEBUGCOUT(
"RES turb->lam:TRATTO DI INTERPOLAZIONE"<< std::endl);
399 DEBUGCOUT(
"RES density: " << density << std::endl);
400 DEBUGCOUT(
"RES p1: " << p1 << std::endl);
401 DEBUGCOUT(
"RES p2: " << p2 << std::endl);
408 DEBUGCOUT(
"***********************************************" << std::endl);
410 DEBUGCOUT(
" se positiva il fluido va dal nodo 1 al nodo 2" << std::endl);
411 DEBUGCOUT(
"***********************************************" << std::endl);
413 DEBUGCOUT(
"RES Res_1: " << Res_1 << std::endl);
414 DEBUGCOUT(
"RES Res_2: " << Res_2 << std::endl);
415 DEBUGCOUT(
"RES Res_3: " << Res_3 << std::endl);
418 WorkVec.
PutItem(1, iNode1RowIndex, Res_1);
419 WorkVec.
PutItem(2, iNode2RowIndex, Res_2);
420 WorkVec.
PutItem(3, iFirstIndex, Res_3);
const PressureNode * pNode1
GradientExpression< BinaryExpr< FuncPow, LhsExpr, RhsExpr > > pow(const GradientExpression< LhsExpr > &u, const GradientExpression< RhsExpr > &v)
virtual doublereal dGetRe(Re which)
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
const PressureNode * pNode2
static std::stack< cleanup * > c
static const doublereal a
virtual integer iGetFirstIndex(void) const
virtual void Resize(integer iNewSize)=0