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

Definition at line 291 of file constltp_impl.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 293 of file constltp_impl.cc.

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

293  {
294  ConstitutiveLaw<T, Tder>* pCL = 0;
295 
296  CLType = ConstLawType::ELASTIC;
297 
298  doublereal dS = HP.GetReal();
299  DEBUGCOUT("Linear Elastic Isotropic Constitutive Law, stiffness = "
300  << dS << std::endl);
301 
302  if (dS <= 0.) {
303  silent_cerr("warning, null or negative stiffness at line "
304  << HP.GetLineData() << std::endl);
305  }
306 
307  /* Prestress and prestrain */
308  T PreStress(mb_zero<T>());
309  GetPreStress(HP, PreStress);
310  TplDriveCaller<T>* pTplDC = GetPreStrain<T>(pDM, HP);
311 
313  SAFENEWWITHCONSTRUCTOR(pCL, L, L(pTplDC, PreStress, dS));
314 
315  return pCL;
316  };
#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: