MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
InverseSquareElasticCLR Struct Reference
Inheritance diagram for InverseSquareElasticCLR:
Collaboration diagram for InverseSquareElasticCLR:

Public Member Functions

virtual ConstitutiveLaw
< doublereal, doublereal > * 
Read (const DataManager *pDM, MBDynParser &HP, ConstLawType::Type &CLType)
 
- Public Member Functions inherited from ConstitutiveLawRead< doublereal, doublereal >
virtual ~ConstitutiveLawRead (void)
 

Detailed Description

Definition at line 406 of file constltp_impl.cc.

Member Function Documentation

virtual ConstitutiveLaw<doublereal, doublereal>* InverseSquareElasticCLR::Read ( const DataManager pDM,
MBDynParser HP,
ConstLawType::Type CLType 
)
inlinevirtual

Implements ConstitutiveLawRead< doublereal, doublereal >.

Definition at line 408 of file constltp_impl.cc.

References DEBUGCOUT, ConstLawType::ELASTIC, IncludeParser::GetLineData(), GetPreStress(), HighParser::GetReal(), mb_zero< doublereal >(), and SAFENEWWITHCONSTRUCTOR.

408  {
410 
411  CLType = ConstLawType::ELASTIC;
412 
413  DEBUGCOUT("Inverse Square Elastic Constitutive Law" << std::endl);
414  doublereal dA = HP.GetReal();
415  if (dA <= 0.) {
416  silent_cerr("warning, null or negative stiffness at line "
417  << HP.GetLineData() << std::endl);
418  }
419 
420  doublereal dL0 = HP.GetReal();
421  if (dL0 <= 0.) {
422  silent_cerr("warning, null or negative reference length at line "
423  << HP.GetLineData() << std::endl);
424  }
425 
426  /* Prestress and prestrain */
427  doublereal PreStress(mb_zero<doublereal>());
428  GetPreStress(HP, PreStress);
429  TplDriveCaller<doublereal>* pTplDC = GetPreStrain<doublereal>(pDM, HP);
430 
431 
434  InverseSquareConstitutiveLaw(pTplDC, PreStress, dA, dL0));
435 
436  return pCL;
437  };
#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
const doublereal & mb_zero< doublereal >(void)
Definition: matvec3.h:1554
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: