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

Definition at line 558 of file constltp_impl.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 560 of file constltp_impl.cc.

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

560  {
561  ConstitutiveLaw<T, Tder>* pCL = 0;
562 
563  CLType = ConstLawType::ELASTIC;
564 
565  doublereal dK = HP.GetReal();
566  DEBUGCOUT("Stiffness = " << dK << std::endl);
567 
568  if (dK <= 0.) {
569  silent_cerr("warning, null or negative stiffness at line "
570  << HP.GetLineData() << std::endl);
571  }
572 
573  doublereal dGamma = HP.GetReal();
574  DEBUGCOUT("Exponent = " << dGamma << std::endl);
575 
576  if (dGamma < 1.) {
577  silent_cerr("error, exponent < 1. at line "
578  << HP.GetLineData() << std::endl);
580  }
581 
582  /* Prestress and prestrain */
583  T PreStress(mb_zero<T>());
584  GetPreStress(HP, PreStress);
585  TplDriveCaller<T>* pTplDC = GetPreStrain<T>(pDM, HP);
586 
588  SAFENEWWITHCONSTRUCTOR(pCL, L, L(pTplDC, PreStress, dK, dGamma));
589 
590  return pCL;
591  };
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
#define DEBUGCOUT(msg)
Definition: myassert.h:232
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
void GetPreStress(MBDynParser &HP, T &PreStress)
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: