Skip to content

modelica/Reference-FMUs

Repository files navigation

Reference FMUs

A set of hand-coded FMUs for development, testing, and debugging of the Functional Mock-up Interface.

⬇️ Download the latest release.

Repository structure

<model>

  • config.h - model specific types and definitions
  • FMI{2|3}.xml - model descriptions
  • model.c - implementation of the model

include

  • fmi{2|3}Functions.h - FMI header files
  • model.h - generic model interface
  • cosimulation.h - generic co-simulation interface

src

  • fmi{2|3}Functions.c - FMI implementations
  • cosimulation.c - generic co-simulation

examples

  • *.c - various FMI 3.0 import examples
  • Examples.cmake - CMake configuration for the example projects

Build the FMUs

To build the FMUs you need CMake and a supported build tool e.g. Visual Studio, Xcode, or make:

cmake -B build .
cmake --build build

The FMUs will be created in build/fmus/.

License

The code is released under the 2-Clause BSD license.

About

Functional Mock-up Units for development, testing and debugging

Topics

Resources

License

Stars

220 stars

Watchers

18 watching

Forks

Contributors