MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
HydraulicDamperCL Class Reference
Inheritance diagram for HydraulicDamperCL:
Collaboration diagram for HydraulicDamperCL:

Public Member Functions

 HydraulicDamperCL (doublereal sigma, doublereal dotz_L, doublereal d)
 
virtual ~HydraulicDamperCL (void)
 
ConstLawType::Type GetConstLawType (void) const
 
virtual ConstitutiveLaw
< doublereal, doublereal > * 
pCopy (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
virtual void Update (const doublereal &, const doublereal &dotz)
 
- Public Member Functions inherited from ConstitutiveLaw< doublereal, doublereal >
 ConstitutiveLaw (void)
 
virtual ~ConstitutiveLaw (void)
 
virtual void AfterConvergence (const doublereal &Eps, const doublereal &EpsPrime=mb_zero< doublereal >())
 
virtual const doublerealGetEpsilon (void) const
 
virtual const doublerealGetEpsilonPrime (void) const
 
virtual const doublerealGetF (void) const
 
virtual const doublerealGetFDE (void) const
 
virtual const doublerealGetFDEPrime (void) const
 
virtual unsigned int iGetNumDof (void) const
 
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 DofOrder::Order GetDofType (unsigned int i) const
 
- Public Member Functions inherited from WithLabel
 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
 
- Public Member Functions inherited from SimulationEntity
 SimulationEntity (void)
 
virtual ~SimulationEntity (void)
 
virtual bool bIsValidIndex (unsigned int i) const
 
virtual DofOrder::Order GetEqType (unsigned int i) const
 
virtual void SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *h=0)
 
virtual HintParseHint (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)
 

Private Attributes

doublereal m_sigma
 
doublereal m_dotz_L
 
doublereal m_d
 

Additional Inherited Members

- Public Types inherited from ConstitutiveLaw< doublereal, doublereal >
typedef ConstitutiveLaw
< doublereal, doublereal >
::ErrNotAvailable 
Err
 
- Public Types inherited from SimulationEntity
typedef std::vector< Hint * > Hints
 
- Protected Attributes inherited from ConstitutiveLaw< doublereal, doublereal >
doublereal Epsilon
 
doublereal EpsilonPrime
 
doublereal F
 
doublereal FDE
 
doublereal FDEPrime
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 

Detailed Description

Definition at line 40 of file module-damper-hydraulic.cc.

Constructor & Destructor Documentation

HydraulicDamperCL::HydraulicDamperCL ( doublereal  sigma,
doublereal  dotz_L,
doublereal  d 
)
inline
virtual HydraulicDamperCL::~HydraulicDamperCL ( void  )
inlinevirtual

Definition at line 53 of file module-damper-hydraulic.cc.

References NO_OP.

53  {
54  NO_OP;
55  };
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

ConstLawType::Type HydraulicDamperCL::GetConstLawType ( void  ) const
inlinevirtual

Implements ConstitutiveLaw< doublereal, doublereal >.

Definition at line 57 of file module-damper-hydraulic.cc.

References ConstLawType::VISCOUS.

57  {
58  return ConstLawType::VISCOUS;
59  };
virtual ConstitutiveLaw<doublereal, doublereal>* HydraulicDamperCL::pCopy ( void  ) const
inlinevirtual

Implements ConstitutiveLaw< doublereal, doublereal >.

Definition at line 61 of file module-damper-hydraulic.cc.

References m_d, m_dotz_L, m_sigma, and SAFENEWWITHCONSTRUCTOR.

61  {
63 
64  typedef HydraulicDamperCL cl;
66  return pCL;
67  };
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
virtual std::ostream& HydraulicDamperCL::Restart ( std::ostream &  out) const
inlinevirtual

Reimplemented from ConstitutiveLaw< doublereal, doublereal >.

Definition at line 69 of file module-damper-hydraulic.cc.

References m_d, m_dotz_L, and m_sigma.

69  {
70  return out << "hydraulic damper, " << m_sigma << ", " << m_dotz_L << ", " << m_d;
71  };
virtual void HydraulicDamperCL::Update ( const doublereal ,
const doublereal dotz 
)
inlinevirtual

Implements ConstitutiveLaw< doublereal, doublereal >.

Definition at line 73 of file module-damper-hydraulic.cc.

References copysign(), m_d, m_dotz_L, and m_sigma.

73  {
75 
76  doublereal abs_dotz = std::abs(dotz);
77  if (abs_dotz < m_dotz_L) {
80 
81  } else {
83  copysign(m_d*(abs_dotz - m_dotz_L) + m_sigma*m_dotz_L*m_dotz_L, dotz);
85  }
86  };
doublereal copysign(doublereal x, doublereal y)
Definition: gradient.h:97
double doublereal
Definition: colamd.c:52

Here is the call graph for this function:

Member Data Documentation

doublereal HydraulicDamperCL::m_d
private

Definition at line 45 of file module-damper-hydraulic.cc.

Referenced by pCopy(), Restart(), and Update().

doublereal HydraulicDamperCL::m_dotz_L
private

Definition at line 44 of file module-damper-hydraulic.cc.

Referenced by pCopy(), Restart(), and Update().

doublereal HydraulicDamperCL::m_sigma
private

Definition at line 43 of file module-damper-hydraulic.cc.

Referenced by pCopy(), Restart(), and Update().


The documentation for this class was generated from the following file: