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

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 2140 of file drive_.cc.

Member Function Documentation

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

Implements DriveCallerRead.

Definition at line 2146 of file drive_.cc.

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

2147 {
2148  NeedDM(pDM, HP, bDeferred, "frequency sweep");
2149 
2150  const DriveHandler* pDrvHdl = 0;
2151  if (pDM != 0) {
2152  pDrvHdl = pDM->pGetDrvHdl();
2153  }
2154 
2155  DriveCaller *pDC = 0;
2156 
2157  doublereal dInitialTime = HP.GetReal();
2158  DEBUGCOUT("Initial time: " << dInitialTime << std::endl);
2159 
2160  DriveCaller* pOmega = 0;
2161  pOmega = HP.GetDriveCaller();
2162 
2163  DriveCaller* pAmplitude = 0;
2164  pAmplitude = HP.GetDriveCaller();
2165 
2166  doublereal dInitialValue = HP.GetReal();
2167  DEBUGCOUT("Initial value: " << dInitialValue << std::endl);
2168 
2169  doublereal dFinalTime = std::numeric_limits<double>::max();
2170  if (!HP.IsKeyWord("forever")) {
2171  dFinalTime = HP.GetReal();
2172  }
2173  DEBUGCOUT("Final time: " << dFinalTime << std::endl);
2174 
2175  doublereal dFinalValue = HP.GetReal();
2176  DEBUGCOUT("Final value: " << dFinalValue << std::endl);
2177 
2180  FreqSweepDriveCaller(pDrvHdl, dInitialTime, pOmega, pAmplitude,
2181  dInitialValue, dFinalTime, dFinalValue));
2182 
2183  return pDC;
2184 }
const DriveHandler * pGetDrvHdl(void) const
Definition: dataman.h:340
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
DriveCaller * GetDriveCaller(bool bDeferred=false)
Definition: mbpar.cc:2033
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: