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

Definition at line 516 of file constltp_impl.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 518 of file constltp_impl.cc.

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

518  {
519  ConstitutiveLaw<T, Tder>* pCL = 0;
520 
521  CLType = ConstLawType::ELASTIC;
522 
523  doublereal dS = HP.GetReal();
524  DEBUGCOUT("Stiffness = " << dS << std::endl);
525 
526  if (dS <= 0.) {
527  silent_cerr("warning, null or negative stiffness at line "
528  << HP.GetLineData() << std::endl);
529  }
530 
531  doublereal dE = HP.GetReal();
532  DEBUGCOUT("Reference strain = " << dE << std::endl);
533 
534  if (dE <= 0.) {
535  silent_cerr("error, null or negative reference strain at line "
536  << HP.GetLineData() << std::endl);
538  }
539 
540  doublereal dS0 = 0.;
541  if (HP.IsKeyWord("linear" "stiffness")) {
542  dS0 = HP.GetReal();
543  }
544 
545  /* Prestress and prestrain */
546  T PreStress(mb_zero<T>());
547  GetPreStress(HP, PreStress);
548  TplDriveCaller<T>* pTplDC = GetPreStrain<T>(pDM, HP);
549 
551  SAFENEWWITHCONSTRUCTOR(pCL, L, L(pTplDC, PreStress, dS, dS0, dE));
552 
553  return pCL;
554  };
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
virtual bool IsKeyWord(const char *sKeyWord)
Definition: parser.cc:910
#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: