|
MBDyn-1.7.3
|
#include <module-FMU.h>


Public Member Functions | |
| ModuleFMU (unsigned uLabel, const DofOwner *pDO, DataManager *pDM, MBDynParser &HP) | |
| virtual | ~ModuleFMU (void) |
| virtual void | Output (OutputHandler &OH) const |
| virtual void | WorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
| VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| unsigned int | iGetNumPrivData (void) const |
| unsigned int | iGetPrivDataIdx (const char *s) const |
| doublereal | dGetPrivData (unsigned int i) const |
| int | iGetNumConnectedNodes (void) const |
| void | GetConnectedNodes (std::vector< const Node * > &connectedNodes) const |
| void | SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph) |
| std::ostream & | Restart (std::ostream &out) const |
| virtual unsigned int | iGetInitialNumDof (void) const |
| virtual void | InitialWorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
| VariableSubMatrixHandler & | InitialAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr) |
| SubVectorHandler & | InitialAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr) |
| unsigned int | iGetNumDof (void) const |
| DofOrder::Order | GetDofType (unsigned int i) const |
| DofOrder::Order | GetEqType (unsigned int i) const |
Public Member Functions inherited from Elem | |
| Elem (unsigned int uL, flag fOut) | |
| virtual | ~Elem (void) |
| virtual std::ostream & | DescribeDof (std::ostream &out, const char *prefix="", bool bInitial=false) const |
| virtual void | DescribeDof (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const |
| virtual std::ostream & | DescribeEq (std::ostream &out, const char *prefix="", bool bInitial=false) const |
| virtual void | DescribeEq (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const |
| virtual void | AssMats (VariableSubMatrixHandler &WorkMatA, VariableSubMatrixHandler &WorkMatB, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| virtual bool | bInverseDynamics (void) const |
| void | SetInverseDynamicsFlags (unsigned uIDF) |
| unsigned | GetInverseDynamicsFlags (void) const |
| bool | bIsErgonomy (void) const |
| bool | bIsRightHandSide (void) const |
| virtual VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr) |
| virtual SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr, const VectorHandler &XPrimePrimeCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS) |
| virtual int | GetNumConnectedNodes (void) const |
Public Member Functions inherited from WithLabel | |
| WithLabel (unsigned int uL=0, const std::string &sN="") | |
| virtual | ~WithLabel (void) |
| void | PutLabel (unsigned int uL) |
| void | PutName (const std::string &sN) |
| unsigned int | GetLabel (void) const |
| const std::string & | GetName (void) const |
Public Member Functions inherited from SimulationEntity | |
| SimulationEntity (void) | |
| virtual | ~SimulationEntity (void) |
| virtual bool | bIsValidIndex (unsigned int i) const |
| virtual Hint * | ParseHint (DataManager *pDM, const char *s) const |
| virtual void | BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const |
| virtual void | AfterPredict (VectorHandler &X, VectorHandler &XP) |
| virtual void | Update (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| virtual void | DerivativesUpdate (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| virtual void | Update (const VectorHandler &XCurr, InverseDynamics::Order iOrder) |
| virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP) |
| virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP) |
| virtual std::ostream & | OutputAppend (std::ostream &out) const |
| virtual void | ReadInitialState (MBDynParser &HP) |
Public Member Functions inherited from ToBeOutput | |
| ToBeOutput (flag fOut=fDefaultOut) | |
| virtual | ~ToBeOutput (void) |
| virtual void | OutputPrepare (OutputHandler &OH) |
| virtual void | Output (OutputHandler &OH, const VectorHandler &X, const VectorHandler &XP) const |
| virtual flag | fToBeOutput (void) const |
| virtual bool | bToBeOutput (void) const |
| virtual void | SetOutputFlag (flag f=flag(1)) |
Public Member Functions inherited from UserDefinedElem | |
| UserDefinedElem (unsigned uLabel, const DofOwner *pDO) | |
| virtual | ~UserDefinedElem (void) |
| bool | NeedsAirProperties (void) const |
| void | NeedsAirProperties (bool yesno) |
| virtual Elem::Type | GetElemType (void) const |
| virtual AerodynamicElem::Type | GetAerodynamicElemType (void) const |
Public Member Functions inherited from InitialAssemblyElem | |
| InitialAssemblyElem (unsigned int uL, flag fOut) | |
| virtual | ~InitialAssemblyElem (void) |
Public Member Functions inherited from SubjectToInitialAssembly | |
| SubjectToInitialAssembly (void) | |
| virtual | ~SubjectToInitialAssembly (void) |
Public Member Functions inherited from AerodynamicElem | |
| AerodynamicElem (unsigned int uL, const DofOwner *pDO, flag fOut) | |
| virtual | ~AerodynamicElem (void) |
| virtual const InducedVelocity * | pGetInducedVelocity (void) const |
Public Member Functions inherited from ElemWithDofs | |
| ElemWithDofs (unsigned int uL, const DofOwner *pDO, flag fOut) | |
| virtual | ~ElemWithDofs (void) |
Public Member Functions inherited from DofOwnerOwner | |
| DofOwnerOwner (const DofOwner *pDO) | |
| virtual | ~DofOwnerOwner () |
| virtual const DofOwner * | pGetDofOwner (void) const |
| virtual integer | iGetFirstIndex (void) const |
| virtual void | SetInitialValue (VectorHandler &X) |
Public Member Functions inherited from AirPropOwner | |
| AirPropOwner (void) | |
| virtual | ~AirPropOwner (void) |
| virtual void | PutAirProperties (const AirProperties *pAP) |
| virtual flag | fGetAirVelocity (Vec3 &Velocity, const Vec3 &X) const |
| virtual doublereal | dGetAirDensity (const Vec3 &X) const |
| virtual doublereal | dGetAirPressure (const Vec3 &X) const |
| virtual doublereal | dGetAirTemperature (const Vec3 &X) const |
| virtual doublereal | dGetSoundSpeed (const Vec3 &X) const |
| virtual bool | GetAirProps (const Vec3 &X, doublereal &rho, doublereal &c, doublereal &p, doublereal &T) const |
Public Member Functions inherited from ElemGravityOwner | |
| ElemGravityOwner (unsigned int uL, flag fOut) | |
| virtual | ~ElemGravityOwner (void) |
| virtual doublereal | dGetM (void) const |
| Vec3 | GetS (void) const |
| Mat3x3 | GetJ (void) const |
| Vec3 | GetB (void) const |
| Vec3 | GetG (void) const |
Public Member Functions inherited from GravityOwner | |
| GravityOwner (void) | |
| virtual | ~GravityOwner (void) |
| void | PutGravity (const Gravity *pG) |
| virtual bool | bGetGravity (const Vec3 &X, Vec3 &Acc) const |
Public Attributes | |
| fmu::SimulationTypes | SIMTYPE |
Private Types | |
| typedef std::map< std::string, const DriveCaller * > | strDriveCon |
| typedef std::map< int, const PrivDriveCaller * > | intDriveCon |
Private Attributes | |
| fmu * | model |
| char | FMUlocation [1000] |
| const char * | simType |
| double | currTime |
| double | initialTime |
| double | timeStep |
| double | endTime |
| fmi_import_context_t * | context |
| fmi_version_enu_t | version |
| jm_callbacks | callbacks |
| jm_status_enu_t | status |
| strDriveCon | drivesContainer |
| intDriveCon | privDrivesIndex |
| int | numOfContinousStates |
| int | numOfEventIndicators |
| DataManager * | pDM |
| int * | statesOrder |
| double * | currState |
| double * | stateDerivatives |
| int * | jacobianInputVector |
| bool * | privDriveArray |
| int | privDriveLength |
| bool | directionalFlag |
| double * | seedVector |
Definition at line 56 of file module-FMU.h.
|
private |
Definition at line 74 of file module-FMU.h.
|
private |
Definition at line 73 of file module-FMU.h.
| ModuleFMU::ModuleFMU | ( | unsigned | uLabel, |
| const DofOwner * | pDO, | ||
| DataManager * | pDM, | ||
| MBDynParser & | HP | ||
| ) |
Unzip the fmu
Get the version and context
SIMTYPE specific work
Definition at line 47 of file module-FMU.cc.
References callbacks, fmu::CheckInput(), context, fmu::COSIM, currState, currTime, Solver::dGetInitialTimeStep(), DataManager::dGetTime(), directionalFlag, drivesContainer, endTime, fmu::EventIndicatorInit(), fmi_zip_unzip(), FMUlocation, DataManager::fReadOutput(), MBDynParser::GetDriveCaller(), fmu::GetNumOfContinousStates(), fmu::GetNumOfEventIndicators(), HighParser::GetReal(), fmu::GetRefValueFromString(), DataManager::GetSolver(), HighParser::GetString(), HighParser::GetStringWithDelims(), fmu::IMPORT, fmu::ImportCreateDLL(), fmu::Initialize(), fmu::InitializeAsSlave(), initialTime, HighParser::IsArg(), HighParser::IsKeyWord(), HighParser::IsStringWithDelims(), jacobianInputVector, Elem::LOADABLE, MBDYN_EXCEPT_ARGS, model, numOfContinousStates, numOfEventIndicators, fmu::parseXML(), privDriveLength, privDrivesIndex, seedVector, fmu::setCallBackFunction(), ToBeOutput::SetOutputFlag(), setup_callbacks(), simType, SIMTYPE, stateDerivatives, status, fmu::SupportsDirectionalDerivatives(), timeStep, UncompressLocation(), and version.

|
virtual |
Definition at line 195 of file module-FMU.cc.
References currState, directionalFlag, drivesContainer, fmu::IMPORT, jacobianInputVector, model, numOfContinousStates, seedVector, SIMTYPE, and stateDerivatives.
|
virtual |
Implements Elem.
Definition at line 254 of file module-FMU.cc.
References currState, FullMatrixHandler::dGetCoef(), DofOrder::DIFFERENTIAL, directionalFlag, fmu::GetDirectionalDerivatives(), GetDofType(), DofOwnerOwner::iGetFirstIndex(), fmu::IMPORT, FullSubMatrixHandler::IncCoef(), jacobianInputVector, model, numOfContinousStates, privDriveLength, privDrivesIndex, FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), FullMatrixHandler::Reset(), FullMatrixHandler::Resize(), FullSubMatrixHandler::ResizeReset(), seedVector, VariableSubMatrixHandler::SetFull(), VariableSubMatrixHandler::SetNullMatrix(), and SIMTYPE.

|
virtual |
Implements Elem.
Definition at line 324 of file module-FMU.cc.
References fmu::COSIM, fmu::CSPropogate(), currState, currTime, DataManager::dGetTime(), drivesContainer, fmu::GetStateDerivatives(), DofOwnerOwner::iGetFirstIndex(), fmu::IMPORT, model, numOfContinousStates, pDM, VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), fmu::SetStates(), fmu::SetTime(), fmu::SetValuesByVariable(), SIMTYPE, stateDerivatives, and timeStep.

|
virtual |
Reimplemented from SimulationEntity.
Definition at line 401 of file module-FMU.cc.
References fmu::GetStateFromRefValue(), and model.

|
virtual |
|
virtual |
Reimplemented from Elem.
Definition at line 452 of file module-FMU.cc.
References DofOrder::DIFFERENTIAL.
Referenced by AssJac().
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 233 of file module-FMU.cc.
References DofOrder::DIFFERENTIAL.
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 459 of file module-FMU.cc.
| int ModuleFMU::iGetNumConnectedNodes | ( | void | ) | const |
Definition at line 407 of file module-FMU.cc.
|
virtual |
Reimplemented from Elem.
Definition at line 442 of file module-FMU.cc.
References fmu::IMPORT, numOfContinousStates, and SIMTYPE.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 380 of file module-FMU.cc.
References fmu::GetNumOfVar(), and model.

|
virtual |
Reimplemented from SimulationEntity.
Definition at line 386 of file module-FMU.cc.
References fmu::GetRefValueFromString(), and model.

|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 475 of file module-FMU.cc.
References ASSERT, and VariableSubMatrixHandler::SetNullMatrix().

|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 488 of file module-FMU.cc.
References ASSERT, and VectorHandler::ResizeReset().

Implements SubjectToInitialAssembly.
Definition at line 465 of file module-FMU.cc.
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 218 of file module-FMU.cc.
References ToBeOutput::bToBeOutput(), currState, OutputHandler::Loadable(), and numOfContinousStates.

|
virtual |
Implements Elem.
Definition at line 436 of file module-FMU.cc.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 419 of file module-FMU.cc.
References currState, fmu::GetStateDerivatives(), fmu::GetStates(), DofOwnerOwner::iGetFirstIndex(), fmu::IMPORT, model, numOfContinousStates, SIMTYPE, and stateDerivatives.

Implements Elem.
Definition at line 241 of file module-FMU.cc.
References fmu::IMPORT, numOfContinousStates, privDriveLength, and SIMTYPE.
|
private |
Definition at line 70 of file module-FMU.h.
Referenced by ModuleFMU().
|
private |
Definition at line 67 of file module-FMU.h.
Referenced by ModuleFMU().
|
private |
Definition at line 83 of file module-FMU.h.
Referenced by AssJac(), AssRes(), ModuleFMU(), Output(), SetValue(), and ~ModuleFMU().
|
private |
Definition at line 62 of file module-FMU.h.
Referenced by AssRes(), and ModuleFMU().
|
private |
Definition at line 89 of file module-FMU.h.
Referenced by AssJac(), ModuleFMU(), and ~ModuleFMU().
|
private |
Definition at line 75 of file module-FMU.h.
Referenced by AssRes(), ModuleFMU(), and ~ModuleFMU().
|
private |
Definition at line 65 of file module-FMU.h.
Referenced by ModuleFMU().
|
private |
Definition at line 60 of file module-FMU.h.
Referenced by ModuleFMU().
|
private |
Definition at line 63 of file module-FMU.h.
Referenced by ModuleFMU().
|
private |
Definition at line 85 of file module-FMU.h.
Referenced by AssJac(), ModuleFMU(), and ~ModuleFMU().
|
private |
Definition at line 59 of file module-FMU.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), iGetNumPrivData(), iGetPrivDataIdx(), ModuleFMU(), SetValue(), and ~ModuleFMU().
|
private |
Definition at line 78 of file module-FMU.h.
Referenced by AssJac(), AssRes(), iGetNumDof(), ModuleFMU(), Output(), SetValue(), WorkSpaceDim(), and ~ModuleFMU().
|
private |
Definition at line 79 of file module-FMU.h.
Referenced by ModuleFMU().
|
private |
Definition at line 80 of file module-FMU.h.
Referenced by AssRes().
|
private |
Definition at line 86 of file module-FMU.h.
|
private |
Definition at line 87 of file module-FMU.h.
Referenced by AssJac(), ModuleFMU(), and WorkSpaceDim().
|
private |
Definition at line 76 of file module-FMU.h.
Referenced by AssJac(), and ModuleFMU().
|
private |
Definition at line 90 of file module-FMU.h.
Referenced by AssJac(), ModuleFMU(), and ~ModuleFMU().
|
private |
Definition at line 61 of file module-FMU.h.
Referenced by ModuleFMU().
| fmu::SimulationTypes ModuleFMU::SIMTYPE |
Definition at line 129 of file module-FMU.h.
Referenced by AssJac(), AssRes(), iGetNumDof(), ModuleFMU(), SetValue(), WorkSpaceDim(), and ~ModuleFMU().
|
private |
Definition at line 84 of file module-FMU.h.
Referenced by AssRes(), ModuleFMU(), SetValue(), and ~ModuleFMU().
|
private |
Definition at line 82 of file module-FMU.h.
|
private |
Definition at line 71 of file module-FMU.h.
Referenced by ModuleFMU().
|
private |
Definition at line 64 of file module-FMU.h.
Referenced by AssRes(), and ModuleFMU().
|
private |
Definition at line 68 of file module-FMU.h.
Referenced by ModuleFMU().