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

Definition at line 468 of file constltp_impl.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 470 of file constltp_impl.cc.

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

470  {
471  ConstitutiveLaw<T, Tder>* pCL = 0;
472 
473  CLType = ConstLawType::ELASTIC;
474 
475  doublereal dS = HP.GetReal();
476  DEBUGCOUT("stiffness = " << dS << std::endl);
477 
478  if (dS <= 0.) {
479  silent_cerr("warning, null or negative stiffness at line "
480  << HP.GetLineData() << std::endl);
481  }
482 
483  doublereal dUpp = HP.GetReal();
484  if (dUpp <= 0.) {
485  silent_cerr("warning, null or negative upper limit strain at line "
486  << HP.GetLineData() << std::endl);
487  }
488 
489  doublereal dLow = HP.GetReal();
490  if (dLow >= 0.) {
491  silent_cerr("warning, null or positive lower limit strain at line "
492  << HP.GetLineData() << std::endl);
493  }
494 
495  doublereal dSecondS = HP.GetReal();
496  if (dSecondS <= 0.) {
497  silent_cerr("warning, null or negative second stiffness at line "
498  << HP.GetLineData() << std::endl);
499  }
500 
501  /* Prestress and prestrain */
502  T PreStress(mb_zero<T>());
503  GetPreStress(HP, PreStress);
504  TplDriveCaller<T>* pTplDC = GetPreStrain<T>(pDM, HP);
505 
508  L,
509  L(pTplDC, PreStress, dS, dUpp, dLow, dSecondS));
510 
511  return pCL;
512  };
#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: