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

Public Member Functions

DriveCallerRead (const DataManager *pDM, MBDynParser &HP, bool bDeferred)
 
- Public Member Functions inherited from DriveCallerRead
virtual ~DriveCallerRead (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from DriveCallerRead
static void ReadOutput (DriveCaller *pDC, const DataManager *pDM, MBDynParser &HP)
 
- Protected Member Functions inherited from DriveCallerRead
void NeedDM (const DataManager *pDM, MBDynParser &HP, bool bDeferred, const char *const name)
 

Detailed Description

Definition at line 2186 of file drive_.cc.

Member Function Documentation

DriveCaller * ExponentialDCR::Read ( const DataManager pDM,
MBDynParser HP,
bool  bDeferred 
)
virtual

Implements DriveCallerRead.

Definition at line 2192 of file drive_.cc.

References DEBUGCOUT, HighParser::GetReal(), DriveCallerRead::NeedDM(), DataManager::pGetDrvHdl(), and SAFENEWWITHCONSTRUCTOR.

2193 {
2194  NeedDM(pDM, HP, bDeferred, "exponential");
2195 
2196  const DriveHandler* pDrvHdl = 0;
2197  if (pDM != 0) {
2198  pDrvHdl = pDM->pGetDrvHdl();
2199  }
2200 
2201  DriveCaller *pDC = 0;
2202 
2203  doublereal dAmplitude = HP.GetReal(1.);
2204  DEBUGCOUT("Amplitude value: " << dAmplitude << std::endl);
2205 
2206  doublereal dTimeConst = HP.GetReal();
2207  DEBUGCOUT("Time constant value: " << dTimeConst << std::endl);
2208 
2209  doublereal dInitialTime = HP.GetReal();
2210  DEBUGCOUT("Initial time: " << dInitialTime << std::endl);
2211 
2212  doublereal dInitialValue = HP.GetReal();
2213  DEBUGCOUT("Initial value: " << dInitialValue << std::endl);
2214 
2217  ExpDriveCaller(pDrvHdl, dAmplitude, dTimeConst,
2218  dInitialTime, dInitialValue));
2219 
2220  return pDC;
2221 }
const DriveHandler * pGetDrvHdl(void) const
Definition: dataman.h:340
#define DEBUGCOUT(msg)
Definition: myassert.h:232
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
void NeedDM(const DataManager *pDM, MBDynParser &HP, bool bDeferred, const char *const name)
Definition: drive_.cc:1354
double doublereal
Definition: colamd.c:52
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: