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

Definition at line 441 of file constltp_impl.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 443 of file constltp_impl.cc.

References DEBUGCOUT, dS, ConstLawType::ELASTIC, IncludeParser::GetLineData(), GetPreStress(), HighParser::GetReal(), and SAFENEWWITHCONSTRUCTOR.

443  {
444  ConstitutiveLaw<T, Tder>* pCL = 0;
445 
446  CLType = ConstLawType::ELASTIC;
447 
448  DEBUGCOUT("Logarithmic Elastic Constitutive Law" << std::endl);
449  doublereal dS = HP.GetReal();
450  if (dS <= 0.) {
451  silent_cerr("warning, null or negative stiffness at line "
452  << HP.GetLineData() << std::endl);
453  }
454 
455  /* Prestress and prestrain */
456  T PreStress(mb_zero<T>());
457  GetPreStress(HP, PreStress);
458  TplDriveCaller<T>* pTplDC = GetPreStrain<T>(pDM, HP);
459 
460  typedef LogConstitutiveLaw<T, Tder> L;
461  SAFENEWWITHCONSTRUCTOR(pCL, L, L(pTplDC, PreStress, dS));
462 
463  return pCL;
464  };
#define DEBUGCOUT(msg)
Definition: myassert.h:232
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
void GetPreStress(MBDynParser &HP, T &PreStress)
const doublereal dS
Definition: beamslider.cc:71
double doublereal
Definition: colamd.c:52
virtual HighParser::ErrOut GetLineData(void) const
Definition: parsinc.cc:697
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: