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

Definition at line 1011 of file constltp_impl.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 1013 of file constltp_impl.cc.

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

1013  {
1014  ConstitutiveLaw<T, Tder>* pCL = 0;
1015 
1016  CLType = ConstLawType::ELASTIC;
1017 
1018  T S1(mb_zero<T>());
1019  S1 = HP.Get(S1);
1020 
1021  T S2(mb_zero<T>());
1022  S2 = HP.Get(S2);
1023 
1024  T S3(mb_zero<T>());
1025  S3 = HP.Get(S3);
1026 
1027  /* Prestress and prestrain */
1028  T PreStress(mb_zero<T>());
1029  GetPreStress(HP, PreStress);
1030  TplDriveCaller<T>* pTplDC = GetPreStrain<T>(pDM, HP);
1031 
1033  SAFENEWWITHCONSTRUCTOR(pCL, L, L(pTplDC, PreStress, S1, S2, S3));
1034 
1035  return pCL;
1036  };
#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

Here is the call graph for this function:


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