MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
CubicViscoElasticGenericConstitutiveLaw< doublereal, doublereal > Class Template Reference

#include <constltp_impl.h>

Inheritance diagram for CubicViscoElasticGenericConstitutiveLaw< doublereal, doublereal >:
Collaboration diagram for CubicViscoElasticGenericConstitutiveLaw< doublereal, doublereal >:

Public Member Functions

 CubicViscoElasticGenericConstitutiveLaw (const TplDriveCaller< doublereal > *pDC, const doublereal &PStress, const doublereal &Stiff1, const doublereal &Stiff2, const doublereal &Stiff3, const doublereal &StiffPrime)
 
virtual ~CubicViscoElasticGenericConstitutiveLaw (void)
 
virtual ConstitutiveLaw1DpCopy (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
virtual void Update (const doublereal &Eps, const doublereal &EpsPrime=0.)
 
- Public Member Functions inherited from ElasticConstitutiveLaw< doublereal, doublereal >
 ElasticConstitutiveLaw (const TplDriveCaller< doublereal > *pDC, const doublereal &PStress)
 
virtual ~ElasticConstitutiveLaw (void)
 
ConstLawType::Type GetConstLawType (void) const
 
void SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0)
 
virtual HintParseHint (DataManager *pDM, const char *s) const
 
- 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 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)
 
- Public Member Functions inherited from TplDriveOwner< doublereal >
 TplDriveOwner (const TplDriveCaller< doublereal > *pDC=0)
 
virtual ~TplDriveOwner (void)
 
void Set (const TplDriveCaller< doublereal > *pDC)
 
TplDriveCaller< doublereal > * pGetDriveCaller (void) const
 
doublereal Get (const doublereal &dVar) const
 
doublereal Get (void) const
 
virtual bool bIsDifferentiable (void) const
 
virtual doublereal GetP (void) const
 

Private Attributes

doublereal Stiff1
 
doublereal Stiff2
 
doublereal Stiff3
 

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 Member Functions inherited from ElasticConstitutiveLaw< doublereal, doublereal >
virtual std::ostream & Restart_int (std::ostream &out) const
 
- Protected Attributes inherited from ElasticConstitutiveLaw< doublereal, doublereal >
doublereal PreStress
 
- 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
 
- Protected Attributes inherited from TplDriveOwner< doublereal >
TplDriveCaller< doublereal > * pTplDriveCaller
 

Detailed Description

template<>
class CubicViscoElasticGenericConstitutiveLaw< doublereal, doublereal >

Definition at line 1645 of file constltp_impl.h.

Constructor & Destructor Documentation

CubicViscoElasticGenericConstitutiveLaw< doublereal, doublereal >::CubicViscoElasticGenericConstitutiveLaw ( const TplDriveCaller< doublereal > *  pDC,
const doublereal PStress,
const doublereal Stiff1,
const doublereal Stiff2,
const doublereal Stiff3,
const doublereal StiffPrime 
)
inline

Definition at line 1663 of file constltp_impl.h.

References NO_OP.

1663  {
1664  NO_OP;
1665  };
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

virtual ConstitutiveLaw1D* CubicViscoElasticGenericConstitutiveLaw< doublereal, doublereal >::pCopy ( void  ) const
inlinevirtual

Implements ConstitutiveLaw< doublereal, doublereal >.

Definition at line 1667 of file constltp_impl.h.

References ConstitutiveLaw< doublereal, doublereal >::FDEPrime, CubicViscoElasticGenericConstitutiveLaw< T, Tder >::pCopy(), TplDriveOwner< doublereal >::pGetDriveCaller(), ElasticConstitutiveLaw< doublereal, doublereal >::PreStress, and SAFENEWWITHCONSTRUCTOR.

Here is the call graph for this function:

virtual std::ostream& CubicViscoElasticGenericConstitutiveLaw< doublereal, doublereal >::Restart ( std::ostream &  out) const
inlinevirtual

Reimplemented from ConstitutiveLaw< doublereal, doublereal >.

Definition at line 1679 of file constltp_impl.h.

References ConstitutiveLaw< doublereal, doublereal >::FDEPrime, ElasticConstitutiveLaw< doublereal, doublereal >::Restart_int(), and Write().

1679  {
1680  out << "cubic elastic generic, ",
1681  Write(out, Stiff1, ", ") << ", ",
1682  Write(out, Stiff2, ", ") << ", ",
1683  Write(out, Stiff3, ", ") << ", ",
1684  Write(out, ConstitutiveLaw1D::FDEPrime, ", ") << ", ";
1686  };
std::ostream & Write(std::ostream &out, const FullMatrixHandler &m, const char *s, const char *s2)
Definition: fullmh.cc:376
virtual std::ostream & Restart_int(std::ostream &out) const

Here is the call graph for this function:

virtual void CubicViscoElasticGenericConstitutiveLaw< doublereal, doublereal >::Update ( const doublereal Eps,
const doublereal EpsPrime = 0. 
)
inlinevirtual

Implements ConstitutiveLaw< doublereal, doublereal >.

Definition at line 1688 of file constltp_impl.h.

References ConstitutiveLaw< doublereal, doublereal >::Epsilon, ConstitutiveLaw< doublereal, doublereal >::EpsilonPrime, ConstitutiveLaw< doublereal, doublereal >::F, grad::fabs(), ConstitutiveLaw< doublereal, doublereal >::FDE, ConstitutiveLaw< doublereal, doublereal >::FDEPrime, TplDriveOwner< doublereal >::Get(), and ElasticConstitutiveLaw< doublereal, doublereal >::PreStress.

1688  {
1692  doublereal f1 = fabs(e1);
1693  doublereal e2 = e1*e1;
1694  doublereal f2 = f1*e1;
1695  doublereal e3 = e2*e1;
1696  ConstitutiveLaw1D::FDE = Stiff1 + 2.*Stiff2*f1 + 3.*Stiff3*e2;
1698  + Stiff1*e1 + Stiff2*f2 + Stiff3*e3 + ConstitutiveLaw1D::FDEPrime*EpsPrime;
1699  };
GradientExpression< UnaryExpr< FuncFabs, Expr > > fabs(const GradientExpression< Expr > &u)
Definition: gradient.h:2973
double doublereal
Definition: colamd.c:52
doublereal Get(void) const
Definition: tpldrive.h:113

Here is the call graph for this function:

Member Data Documentation


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