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

Definition at line 769 of file constltp_impl.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 771 of file constltp_impl.cc.

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

771  {
772  ConstitutiveLaw<T, Tder>* pCL = 0;
773 
774  CLType = ConstLawType::VISCOUS;
775 
776  doublereal dSP = HP.GetReal();
777  DEBUGCOUT("stiffness prime = " << dSP << std::endl);
778 
779  if (dSP <= 0.) {
780  silent_cerr("warning, null or negative stiffness prime at line "
781  << HP.GetLineData() << std::endl);
782  }
783 
784  /* Prestress (no prestrain) */
785  T PreStress(mb_zero<T>());
786  GetPreStress(HP, PreStress);
787 
789  SAFENEWWITHCONSTRUCTOR(pCL, L, L(PreStress, dSP));
790 
791  return pCL;
792  };
#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: