MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
LinearViscoElasticGenericAxialTorsionCouplingCLR< T, Tder > Struct Template Reference
Inheritance diagram for LinearViscoElasticGenericAxialTorsionCouplingCLR< T, Tder >:
Collaboration diagram for LinearViscoElasticGenericAxialTorsionCouplingCLR< T, Tder >:

Public Member Functions

virtual ConstitutiveLaw< T,
Tder > * 
Read (const DataManager *pDM, MBDynParser &HP, ConstLawType::Type &CLType)
 
- Public Member Functions inherited from ConstitutiveLawRead< T, Tder >
virtual ~ConstitutiveLawRead (void)
 

Detailed Description

template<class T, class Tder>
struct LinearViscoElasticGenericAxialTorsionCouplingCLR< T, Tder >

Definition at line 372 of file constltp_impl.cc.

Member Function Documentation

template<class T , class Tder >
virtual ConstitutiveLaw<T, Tder>* LinearViscoElasticGenericAxialTorsionCouplingCLR< T, Tder >::Read ( const DataManager pDM,
MBDynParser HP,
ConstLawType::Type CLType 
)
inlinevirtual

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 374 of file constltp_impl.cc.

References DEBUGCOUT, MBDynParser::Get(), GetPreStress(), HighParser::GetReal(), HighParser::IsKeyWord(), SAFENEWWITHCONSTRUCTOR, and ConstLawType::VISCOELASTIC.

374  {
375  ConstitutiveLaw<T, Tder>* pCL = 0;
376 
378 
379  Tder S(mb_zero<Tder>());
380  S = HP.Get(S);
381 
382  Tder SP(mb_zero<Tder>());
383  if (HP.IsKeyWord("proportional")) {
384  doublereal k = HP.GetReal();
385  SP = S*k;
386  } else {
387  SP = HP.Get(SP);
388  }
389 
390  /* coefficiente di accoppiamento */
391  doublereal dCoupl = HP.GetReal();
392  DEBUGCOUT("coupling coefficient: " << dCoupl << std::endl);
393 
394  /* Prestress and prestrain */
395  T PreStress(mb_zero<T>());
396  GetPreStress(HP, PreStress);
397  TplDriveCaller<T>* pTplDC = GetPreStrain<T>(pDM, HP);
398 
400  SAFENEWWITHCONSTRUCTOR(pCL, L, L(pTplDC, PreStress, S, SP, dCoupl));
401 
402  return pCL;
403  };
virtual bool IsKeyWord(const char *sKeyWord)
Definition: parser.cc:910
#define DEBUGCOUT(msg)
Definition: myassert.h:232
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
void GetPreStress(MBDynParser &HP, T &PreStress)
virtual doublereal Get(const doublereal &d)
Definition: mbpar.cc:2213
double doublereal
Definition: colamd.c:52
virtual doublereal GetReal(const doublereal &dDefval=0.0)
Definition: parser.cc:1056

Here is the call graph for this function:


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