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

Public Member Functions

virtual ConstitutiveLaw< T,
Tder > * 
Read (const DataManager *pDM, MBDynParser &HP, ConstLawType::Type &CLType)
 
virtual ConstitutiveLaw< T,
Tder > * 
Read (const DataManager *pDM, MBDynParser &HP, ConstLawType::Type &CLType)
 
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 DummyCLR< T, Tder >

Definition at line 80 of file module-constlaw.cc.

Member Function Documentation

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 82 of file module-constlaw.cc.

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

82  {
83  ConstitutiveLaw<T, Tder>* pCL = 0;
84 
85  CLType = ConstLawType::ELASTIC;
86 
87  doublereal dS = HP.GetReal();
88  if (dS <= 0.) {
89  silent_cerr("warning, null or negative stiffness "
90  "at line " << HP.GetLineData() << std::endl);
91  }
92 
94  SAFENEWWITHCONSTRUCTOR(pCL, L, L(dS));
95 
96  return pCL;
97  };
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
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:

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 284 of file module-constlaw-f95.cc.

References ConstLawType::ELASTIC, HighParser::GetInt(), HighParser::GetReal(), and SAFENEWWITHCONSTRUCTOR.

284  {
285  ConstitutiveLaw<T, Tder>* pCL = 0;
286 
287  CLType = ConstLawType::ELASTIC;
288 
289  std::vector<doublereal> v;
290  int size = HP.GetInt();
291  v.resize(size);
292  for (int i = 0; i < size; i++) {
293  v[i] = HP.GetReal();
294  }
295 
297  SAFENEWWITHCONSTRUCTOR(pCL, L, L(v));
298 
299  return pCL;
300  };
virtual integer GetInt(integer iDefval=0)
Definition: parser.cc:1050
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
virtual doublereal GetReal(const doublereal &dDefval=0.0)
Definition: parser.cc:1056

Here is the call graph for this function:

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

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 284 of file module-constlaw-f90.cc.

References ConstLawType::ELASTIC, HighParser::GetInt(), HighParser::GetReal(), and SAFENEWWITHCONSTRUCTOR.

284  {
285  ConstitutiveLaw<T, Tder>* pCL = 0;
286 
287  CLType = ConstLawType::ELASTIC;
288 
289  std::vector<doublereal> v;
290  int size = HP.GetInt();
291  v.resize(size);
292  for (int i = 0; i < size; i++) {
293  v[i] = HP.GetReal();
294  }
295 
297  SAFENEWWITHCONSTRUCTOR(pCL, L, L(v));
298 
299  return pCL;
300  };
virtual integer GetInt(integer iDefval=0)
Definition: parser.cc:1050
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
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 files: