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

Definition at line 344 of file constltp_impl.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 346 of file constltp_impl.cc.

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

346  {
347  ConstitutiveLaw<T, Tder>* pCL = 0;
348 
349  CLType = ConstLawType::ELASTIC;
350 
351  DEBUGCOUT("Linear Elastic Generic Constitutive Law with Axial-Torsion Coupling" << std::endl);
352  Tder S(mb_zero<Tder>());
353  S = HP.Get(S);
354 
355  /* coefficiente di accoppiamento */
356  doublereal dCoupl = HP.GetReal();
357  DEBUGCOUT("coupling coefficient: " << dCoupl << std::endl);
358 
359  /* Prestress and prestrain */
360  T PreStress(mb_zero<T>());
361  GetPreStress(HP, PreStress);
362  TplDriveCaller<T>* pTplDC = GetPreStrain<T>(pDM, HP);
363 
365  SAFENEWWITHCONSTRUCTOR(pCL, L, L(pTplDC, PreStress, S, dCoupl));
366 
367  return pCL;
368  };
#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: