Skip to main content

Module api3

Module api3 

Source
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§

fmi3Discard
fmi3Error
fmi3Fatal
fmi3OK
fmi3Warning

Functions§

fmi3ActivateModelPartition⚠
Not supported: returns fmi3Error.
fmi3CompletedIntegratorStep⚠
Not supported: returns fmi3Error.
fmi3DeserializeFMUState⚠
Safety
fmi3DoStep⚠
Safety
fmi3EnterConfigurationMode⚠
Not supported: returns fmi3Error.
fmi3EnterContinuousTimeMode⚠
Not supported: returns fmi3Error.
fmi3EnterEventMode⚠
Not supported: returns fmi3Error.
fmi3EnterInitializationMode⚠
Safety
fmi3EnterStepMode⚠
Not supported: returns fmi3Error.
fmi3EvaluateDiscreteStates⚠
Not supported: returns fmi3Error.
fmi3ExitConfigurationMode⚠
Not supported: returns fmi3Error.
fmi3ExitInitializationMode⚠
Without Event Mode, initialisation ends in Step Mode.
fmi3FreeFMUState⚠
Safety
fmi3FreeInstance⚠
Safety
fmi3GetAdjointDerivative⚠
The seed times ∂ unknowns / ∂ knowns: zero (see api).
fmi3GetBinary⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetBoolean⚠
Safety
fmi3GetClock⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetContinuousStateDerivatives⚠
Not supported: returns fmi3Error.
fmi3GetContinuousStates⚠
Not supported: returns fmi3Error.
fmi3GetDirectionalDerivative⚠
∂ unknowns / ∂ knowns times the seed: zero (see api).
fmi3GetEventIndicators⚠
Not supported: returns fmi3Error.
fmi3GetFMUState⚠
Safety
fmi3GetFloat32⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetFloat64⚠
Safety
fmi3GetInt8⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetInt16⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetInt32⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetInt64⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetIntervalDecimal⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetIntervalFraction⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetNominalsOfContinuousStates⚠
Not supported: returns fmi3Error.
fmi3GetNumberOfContinuousStates⚠
Not supported: returns fmi3Error.
fmi3GetNumberOfEventIndicators⚠
Not supported: returns fmi3Error.
fmi3GetNumberOfVariableDependencies⚠
Not supported: returns fmi3Error.
fmi3GetOutputDerivatives⚠
Not supported: returns fmi3Error.
fmi3GetShiftDecimal⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetShiftFraction⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetString⚠
The strings stay valid until the next call of this function on the instance.
fmi3GetUInt8⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetUInt16⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetUInt32⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetUInt64⚠
The FMU has no variables of this type: any value reference is refused.
fmi3GetVariableDependencies⚠
Not supported: returns fmi3Error.
fmi3GetVersion
fmi3InstantiateCoSimulation⚠
resourcePath is a plain absolute path to the resources folder, as FMI 3.0 has it.
fmi3InstantiateModelExchange⚠
Not supported: logs why and returns null.
fmi3InstantiateScheduledExecution⚠
Not supported: logs why and returns null.
fmi3Reset⚠
Safety
fmi3SerializeFMUState⚠
Safety
fmi3SerializedFMUStateSize⚠
Safety
fmi3SetBinary⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetBoolean⚠
Safety
fmi3SetClock⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetContinuousStates⚠
Not supported: returns fmi3Error.
fmi3SetDebugLogging⚠
See fmi2SetDebugLogging.
fmi3SetFMUState⚠
Safety
fmi3SetFloat32⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetFloat64⚠
Safety
fmi3SetInt8⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetInt16⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetInt32⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetInt64⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetIntervalDecimal⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetIntervalFraction⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetShiftDecimal⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetShiftFraction⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetString⚠
Safety
fmi3SetTime⚠
Not supported: returns fmi3Error.
fmi3SetUInt8⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetUInt16⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetUInt32⚠
The FMU has no variables of this type: any value reference is refused.
fmi3SetUInt64⚠
The FMU has no variables of this type: any value reference is refused.
fmi3Terminate⚠
Safety
fmi3UpdateDiscreteStates⚠
Not supported: returns fmi3Error.

Type Aliases§

fmi3Boolean
fmi3Byte
fmi3FMUState
fmi3Float64
fmi3Instance
fmi3InstanceEnvironment
fmi3IntermediateUpdateCallback
fmi3LogMessageCallback
fmi3Status
fmi3String
fmi3ValueReference