MBDyn-1.7.3
|
#include <drive.h>
Classes | |
class | MyClosestNext |
class | MyMeter |
class | MyRand |
class | MySH |
Public Member Functions | |
DriveHandler (MathParser &mp) | |
~DriveHandler (void) | |
void | PutSymbolTable (Table &T) |
void | SetVar (const doublereal &dVar) |
doublereal | dGet (InputStream &InStr) const |
doublereal | dGetTime (void) const |
doublereal | dGetTimeStep (void) const |
integer | iGetStep (void) const |
long int | iGetRand (integer iNumber) const |
bool | bGetMeter (integer iNumber) const |
bool | bGetClosestNext (integer iNumber) const |
doublereal | dGetSH (integer iNumber) const |
const DriveCaller * | pGetSHFunc (integer iNumber) const |
const DriveCaller * | pGetSHTrigger (integer iNumber) const |
const doublereal | dGetSHVal0 (integer iNumber) const |
Protected Member Functions | |
void | SetTime (const doublereal &dt, const doublereal &dts, const integer &s) |
void | LinkToSolution (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
integer | iRandInit (integer iSteps) |
integer | iMeterInit (integer iSteps) |
integer | iClosestNextInit (const DriveCaller *pIncrement, doublereal dStartTime) |
integer | iSHInit (const DriveCaller *pFunc, const DriveCaller *pTrigger, const doublereal dVal0) |
Private Attributes | |
MathParser & | Parser |
Var * | pTime |
Var * | pTimeStep |
Var * | pStep |
Var * | pVar |
VectorHandler * | pXCurr |
VectorHandler * | pXPrimeCurr |
integer | iCurrStep |
std::vector< MyMeter * > | Meter |
std::vector< MyRand * > | Rand |
std::vector< MyClosestNext * > | ClosestNext |
std::vector< MySH * > | SH |
Static Private Attributes | |
static doublereal | dDriveHandlerReturnValue = 0. |
Friends | |
class | DataManager |
class | RandDriveCaller |
class | MeterDriveCaller |
class | ClosestNextDriveCaller |
class | SHDriveCaller |
DriveHandler::DriveHandler | ( | MathParser & | mp | ) |
Definition at line 59 of file drive.cc.
References Table::Get(), MathParser::GetSymbolTable(), NamedValue::IsVar(), MBDYN_EXCEPT_ARGS, Parser, pStep, pTime, pTimeStep, Table::Put(), and pVar.
DriveHandler::~DriveHandler | ( | void | ) |
doublereal DriveHandler::dGet | ( | InputStream & | InStr | ) | const |
Definition at line 358 of file drive.cc.
References MathParser::GetLastStmt(), Parser, and MBDynErrBase::what().
Referenced by StringDriveCaller::dGet().
|
inline |
const doublereal DriveHandler::dGetSHVal0 | ( | integer | iNumber | ) | const |
Definition at line 336 of file drive.cc.
References SH.
Referenced by SHDriveCaller::SHDriveCaller().
|
inline |
Definition at line 386 of file drive.h.
References ASSERT.
Referenced by DataManager::AfterConvergence(), TimeDriveCaller::dGet(), DriveCaller::dGet(), PeriodicDriveCaller::dGet(), DriveCaller::dGetP(), DataManager::dGetTime(), StreamDriveEcho::Echo(), FixedStepFileDrive::FixedStepFileDrive(), DataManager::PrintResidual(), DataManager::PrintSolution(), and VariableStepFileDrive::VariableStepFileDrive().
|
inline |
Definition at line 393 of file drive.h.
References ASSERT.
Referenced by DataManager::AssConstrJac(), DataManager::AssConstrRes(), ModuleNonsmoothNode::AssRes(), TimeStepDriveCaller::dGet(), ModuleNonsmoothNode::ModuleNonsmoothNode(), DataManager::PrintResidual(), and DataManager::PrintSolution().
|
protected |
Definition at line 294 of file drive.cc.
References ClosestNext, and SAFENEWWITHCONSTRUCTOR.
Referenced by ClosestNextDriveCaller::ClosestNextDriveCaller().
|
inline |
Definition at line 400 of file drive.h.
References ASSERT.
Referenced by ModuleNonsmoothNode::AssRes(), DataManager::PrintResidual(), and DataManager::PrintSolution().
Definition at line 281 of file drive.cc.
References Meter, and SAFENEWWITHCONSTRUCTOR.
Referenced by MeterDriveCaller::MeterDriveCaller().
Definition at line 268 of file drive.cc.
References Rand, and SAFENEWWITHCONSTRUCTOR.
Referenced by RandDriveCaller::RandDriveCaller().
|
protected |
Definition at line 310 of file drive.cc.
References SAFENEWWITHCONSTRUCTOR, and SH.
Referenced by SHDriveCaller::SHDriveCaller().
|
protected |
Definition at line 260 of file drive.cc.
References pXCurr, and pXPrimeCurr.
Referenced by DataManager::LinkToSolution().
const DriveCaller * DriveHandler::pGetSHFunc | ( | integer | iNumber | ) | const |
const DriveCaller * DriveHandler::pGetSHTrigger | ( | integer | iNumber | ) | const |
void DriveHandler::PutSymbolTable | ( | Table & | T | ) |
Definition at line 342 of file drive.cc.
References Parser, and MathParser::PutSymbolTable().
|
protected |
Definition at line 208 of file drive.cc.
References ASSERT, ClosestNext, iCurrStep, Meter, pStep, pTime, pTimeStep, Rand, Var::SetVal(), and SH.
Referenced by DataManager::SetTime().
void DriveHandler::SetVar | ( | const doublereal & | dVar | ) |
Definition at line 349 of file drive.cc.
References ASSERT, pVar, and Var::SetVal().
Referenced by StringDriveCaller::dGet().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 267 of file drive.h.
Referenced by iClosestNextInit(), SetTime(), and ~DriveHandler().
|
staticprivate |
|
private |
|
private |
Definition at line 265 of file drive.h.
Referenced by iMeterInit(), SetTime(), and ~DriveHandler().
|
private |
Definition at line 182 of file drive.h.
Referenced by dGet(), DriveHandler(), and PutSymbolTable().
|
private |
Definition at line 187 of file drive.h.
Referenced by DriveHandler(), and SetTime().
|
private |
Definition at line 185 of file drive.h.
Referenced by DriveHandler(), and SetTime().
|
private |
Definition at line 186 of file drive.h.
Referenced by DriveHandler(), and SetTime().
|
private |
Definition at line 188 of file drive.h.
Referenced by DriveHandler(), and SetVar().
|
mutableprivate |
Definition at line 192 of file drive.h.
Referenced by LinkToSolution().
|
mutableprivate |
Definition at line 193 of file drive.h.
Referenced by LinkToSolution().
|
private |
Definition at line 266 of file drive.h.
Referenced by iRandInit(), SetTime(), and ~DriveHandler().
|
private |
Definition at line 268 of file drive.h.
Referenced by dGetSHVal0(), iSHInit(), pGetSHFunc(), pGetSHTrigger(), SetTime(), and ~DriveHandler().