|
| Accumulator (unsigned int uL, const DofOwner *pD, HydraulicFluid *hf, const PressureNode *p1, doublereal St, doublereal start, doublereal As, doublereal A_pipe, doublereal ms, doublereal h_in, doublereal h_out, doublereal P0, doublereal Pmax, doublereal k, doublereal Wg, doublereal Kspr, doublereal force0, doublereal cs, doublereal cv, doublereal ca, flag fOut) |
|
| ~Accumulator (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 44 of file hutils.h.
Implements Elem.
Definition at line 129 of file hutils.cc.
References area, c1, c2, c3, cf1, cf2, cf3, DEBUGCOUT, density, HydraulicFluid::dGetDensity(), grad::fabs(), h, HydraulicElem::HF, Node::iGetFirstColIndex(), DofOwnerOwner::iGetFirstIndex(), Node::iGetFirstRowIndex(), Kappa, mass, pNode1, grad::pow(), press0, FullSubMatrixHandler::PutCoef(), FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), ratio2, FullSubMatrixHandler::Resize(), s, s_max, VariableSubMatrixHandler::SetFull(), spring, stroke, v, and weight.
134 DEBUGCOUT(
"Entering Accumulator::AssJac()" << std::endl);
152 s = XCurr(iFirstIndex+1);
153 v = XCurr(iFirstIndex+2);
167 DEBUGCOUT(
"AssJac(): ho superato la s_max: s" <<
s <<std::endl);
172 DEBUGCOUT(
"AssJac(): sono negativo: s" <<
s <<std::endl);
179 Jac13 = -density*
area*dCoef;
192 DEBUGCOUT(
"Jac11: " << Jac11 << std::endl);
193 DEBUGCOUT(
"Jac12: " << Jac12 << std::endl);
194 DEBUGCOUT(
"Jac13: " << Jac13 << std::endl);
195 DEBUGCOUT(
"Jac21: " << Jac21 << std::endl);
196 DEBUGCOUT(
"Jac22: " << Jac22 << std::endl);
197 DEBUGCOUT(
"Jac23: " << Jac23 << std::endl);
198 DEBUGCOUT(
"Jac31: " << Jac31 << std::endl);
199 DEBUGCOUT(
"Jac32: " << Jac32 << std::endl);
200 DEBUGCOUT(
"Jac33: " << Jac33 << std::endl);
void PutColIndex(integer iSubCol, integer iCol)
GradientExpression< BinaryExpr< FuncPow, LhsExpr, RhsExpr > > pow(const GradientExpression< LhsExpr > &u, const GradientExpression< RhsExpr > &v)
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 integer iGetFirstRowIndex(void) const
void PutRowIndex(integer iSubRow, integer iRow)
virtual integer iGetFirstIndex(void) const
const PressureNode * pNode1
virtual integer iGetFirstColIndex(void) const
Implements Elem.
Definition at line 218 of file hutils.cc.
References area, area_pipe, c1, c2, c3, c4, c_acc, c_spost, c_vel, cf1, cf2, cf3, cf4, copysign(), DEBUGCOUT, density, HydraulicFluid::dGetDensity(), ScalarAlgebraicNode::dGetX(), flow, force0, h, h_in, h_out, HydraulicElem::HF, DofOwnerOwner::iGetFirstIndex(), Node::iGetFirstRowIndex(), Kappa, mass, pgas, pNode1, grad::pow(), press0, press_max, SubVectorHandler::PutItem(), ratio2, VectorHandler::Resize(), s, s_max, s_min_gas, sp, spring, stroke, v, vp, and weight.
223 DEBUGCOUT(
"Entering Accumulator::AssRes()" << std::endl);
231 s = XCurr(iFirstIndex+1);
232 v = XCurr(iFirstIndex+2);
233 sp = XPrimeCurr(iFirstIndex+1);
234 vp = XPrimeCurr(iFirstIndex+2);
301 DEBUGCOUT(
"AssJac(): ho superato la s_max: s " <<
s <<std::endl);
306 DEBUGCOUT(
"AssJac(): sono negativo: s " <<
s <<std::endl);
312 Res_1 = density*
v*
area;
322 DEBUGCOUT(
"x0spring: " << x0spring << std::endl);
332 DEBUGCOUT(
"area: " << area << std::endl);
351 DEBUGCOUT(
"-Res_1 (portata nodo1): " << -Res_1 << std::endl);
352 DEBUGCOUT(
"Res_2: " << Res_2 << std::endl);
353 DEBUGCOUT(
"Res_3: " << Res_3 << std::endl);
356 WorkVec.
PutItem(1, iNode1RowIndex, Res_1);
357 WorkVec.
PutItem(2, iFirstIndex+1, Res_2);
358 WorkVec.
PutItem(3, iFirstIndex+2, Res_3);
GradientExpression< BinaryExpr< FuncPow, LhsExpr, RhsExpr > > pow(const GradientExpression< LhsExpr > &u, const GradientExpression< RhsExpr > &v)
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
virtual integer iGetFirstIndex(void) const
const PressureNode * pNode1
virtual void Resize(integer iNewSize)=0