A set of hand-coded FMUs for development, testing, and debugging of the Functional Mock-up Interface.
- BouncingBall - a bouncing ball model with state events
- Dahlquist - Dahlquist test equation
- Feedthrough - all variable types
- Resource - load data from a file
- Stair - a counter with time events
- StateSpace - arrays and structural parameters
- VanDerPol - Van der Pol test equation
⬇️ Download the latest release.
<model>
config.h- model specific types and definitionsFMI{2|3}.xml- model descriptionsmodel.c- implementation of the model
include
fmi{2|3}Functions.h- FMI header filesmodel.h- generic model interfacecosimulation.h- generic co-simulation interface
src
fmi{2|3}Functions.c- FMI implementationscosimulation.c- generic co-simulation
examples
*.c- various FMI 3.0 import examplesExamples.cmake- CMake configuration for the example projects
To build the FMUs you need CMake and a supported build tool e.g. Visual Studio, Xcode, or make:
cmake -B build .
cmake --build buildThe FMUs will be created in build/fmus/.
The code is released under the 2-Clause BSD license.