Expand description
The FMI 3.0 Co-Simulation C functions, on the same instance as the FMI 2.0 ones (api::Instance). The type
definitions follow the FMI 3.0 headers (fmi3PlatformTypes.h, fmi3FunctionTypes.h; Copyright Modelica Association
Project “FMI”, BSD-2-Clause licence), written out in Rust.
Supported: fmi3InstantiateCoSimulation, initialisation, fmi3DoStep, get and set of Float64, Boolean and String
variables (the other types have no variables: any value reference is refused), reset, terminate, FMU state get,
set, free and (de)serialization, directional and adjoint derivatives (zero, see api). Not supported, returning
fmi3Error or a null instance: Model Exchange and Scheduled Execution, Event Mode, Configuration Mode, clocks,
output derivatives, variable dependencies at run time (the model description has them).
Constants§
Functions§
- fmi3
Activate ⚠Model Partition - Not supported: returns
fmi3Error. - fmi3
Completed ⚠Integrator Step - Not supported: returns
fmi3Error. - fmi3
DeserializeFMU ⚠State - Safety
- fmi3
DoStep ⚠ - Safety
- fmi3
Enter ⚠Configuration Mode - Not supported: returns
fmi3Error. - fmi3
Enter ⚠Continuous Time Mode - Not supported: returns
fmi3Error. - fmi3
Enter ⚠Event Mode - Not supported: returns
fmi3Error. - fmi3
Enter ⚠Initialization Mode - Safety
- fmi3
Enter ⚠Step Mode - Not supported: returns
fmi3Error. - fmi3
Evaluate ⚠Discrete States - Not supported: returns
fmi3Error. - fmi3
Exit ⚠Configuration Mode - Not supported: returns
fmi3Error. - fmi3
Exit ⚠Initialization Mode - Without Event Mode, initialisation ends in Step Mode.
- fmi3
FreeFMU ⚠State - Safety
- fmi3
Free ⚠Instance - Safety
- fmi3
GetAdjoint ⚠Derivative - The seed times ∂ unknowns / ∂ knowns: zero (see
api). - fmi3
GetBinary ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetBoolean ⚠ - Safety
- fmi3
GetClock ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetContinuous ⚠State Derivatives - Not supported: returns
fmi3Error. - fmi3
GetContinuous ⚠States - Not supported: returns
fmi3Error. - fmi3
GetDirectional ⚠Derivative - ∂ unknowns / ∂ knowns times the seed: zero (see
api). - fmi3
GetEvent ⚠Indicators - Not supported: returns
fmi3Error. - fmi3
GetFMU ⚠State - Safety
- fmi3
GetFloat32 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetFloat64 ⚠ - Safety
- fmi3
GetInt8 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetInt16 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetInt32 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetInt64 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetInterval ⚠Decimal - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetInterval ⚠Fraction - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetNominals ⚠OfContinuous States - Not supported: returns
fmi3Error. - fmi3
GetNumber ⚠OfContinuous States - Not supported: returns
fmi3Error. - fmi3
GetNumber ⚠OfEvent Indicators - Not supported: returns
fmi3Error. - fmi3
GetNumber ⚠OfVariable Dependencies - Not supported: returns
fmi3Error. - fmi3
GetOutput ⚠Derivatives - Not supported: returns
fmi3Error. - fmi3
GetShift ⚠Decimal - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetShift ⚠Fraction - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetString ⚠ - The strings stay valid until the next call of this function on the instance.
- fmi3
GetU ⚠Int8 - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetU ⚠Int16 - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetU ⚠Int32 - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetU ⚠Int64 - The FMU has no variables of this type: any value reference is refused.
- fmi3
GetVariable ⚠Dependencies - Not supported: returns
fmi3Error. - fmi3
GetVersion - fmi3
Instantiate ⚠CoSimulation resourcePathis a plain absolute path to the resources folder, as FMI 3.0 has it.- fmi3
Instantiate ⚠Model Exchange - Not supported: logs why and returns null.
- fmi3
Instantiate ⚠Scheduled Execution - Not supported: logs why and returns null.
- fmi3
Reset ⚠ - Safety
- fmi3
SerializeFMU ⚠State - Safety
- fmi3
SerializedFMU ⚠State Size - Safety
- fmi3
SetBinary ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetBoolean ⚠ - Safety
- fmi3
SetClock ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetContinuous ⚠States - Not supported: returns
fmi3Error. - fmi3
SetDebug ⚠Logging - See
fmi2SetDebugLogging. - fmi3
SetFMU ⚠State - Safety
- fmi3
SetFloat32 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetFloat64 ⚠ - Safety
- fmi3
SetInt8 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetInt16 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetInt32 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetInt64 ⚠ - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetInterval ⚠Decimal - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetInterval ⚠Fraction - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetShift ⚠Decimal - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetShift ⚠Fraction - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetString ⚠ - Safety
- fmi3
SetTime ⚠ - Not supported: returns
fmi3Error. - fmi3
SetU ⚠Int8 - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetU ⚠Int16 - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetU ⚠Int32 - The FMU has no variables of this type: any value reference is refused.
- fmi3
SetU ⚠Int64 - The FMU has no variables of this type: any value reference is refused.
- fmi3
Terminate ⚠ - Safety
- fmi3
Update ⚠Discrete States - Not supported: returns
fmi3Error.