|
|
coral::model::SlaveTypeDescription | TypeDescription () const override |
| | Returns an object that describes the slave type.
|
| |
| void | Setup (const std::string &slaveName, const std::string &executionName, coral::model::TimePoint startTime, coral::model::TimePoint stopTime, bool adaptiveStepSize, double relativeTolerance) override |
| | Instructs the slave to perform pre-simulation setup and enter initialisation mode. More...
|
| |
|
void | StartSimulation () override |
| | Informs the slave that the initialisation stage ends and the simulation begins.
|
| |
|
void | EndSimulation () override |
| | Informs the slave that the simulation run has ended.
|
| |
| bool | DoStep (coral::model::TimePoint currentT, coral::model::TimeDuration deltaT) override |
| | Performs model calculations for the time step which starts at the time point currentT and has a duration of deltaT. More...
|
| |
| double | GetRealVariable (coral::model::VariableID variable) const override |
| | Returns the value of a real variable. More...
|
| |
| int | GetIntegerVariable (coral::model::VariableID variable) const override |
| | Returns the value of an integer variable. More...
|
| |
| bool | GetBooleanVariable (coral::model::VariableID variable) const override |
| | Returns the value of a boolean variable. More...
|
| |
| std::string | GetStringVariable (coral::model::VariableID variable) const override |
| | Returns the value of a string variable. More...
|
| |
| bool | SetRealVariable (coral::model::VariableID variable, double value) override |
| | Sets the value of a real variable. More...
|
| |
| bool | SetIntegerVariable (coral::model::VariableID variable, int value) override |
| | Sets the value of an integer variable. More...
|
| |
| bool | SetBooleanVariable (coral::model::VariableID variable, bool value) override |
| | Sets the value of a boolean variable. More...
|
| |
| bool | SetStringVariable (coral::model::VariableID variable, const std::string &value) override |
| | Sets the value of a string variable. More...
|
| |
|
std::shared_ptr< coral::fmi::FMU > | FMU () const override |
| | Returns a reference to the FMU of which this is an instance.
|
| |
|
std::shared_ptr< coral::fmi::FMU2 > | FMU2 () const |
| | Returns the same object as FMU(), only statically typed as an FMU2.
|
| |
|
fmi2_import_t * | FmilibHandle () const |
| | Returns the underlying C API handle (for FMI Library)
|
| |
An FMI 2.0 co-simulation slave instance.
Performs model calculations for the time step which starts at the time point currentT and has a duration of deltaT.
If this is not the first time step, it can be assumed that the previous time step ended at currentT. It can also be assumed that currentT is greater than or equal to the start time, and currentT+deltaT is less than or equal to the stop time, specified in the Setup() call.
- Returns
true if the model calculations for the given time step were successfully carried out, or false if they were not because the time step was too long.
- Note
- Currently, retrying a failed time step is not supported, but this is planned for a future version.
Implements coral::slave::Instance.