Skip to content
/ fmu4cpp Public template
forked from Ecos-platform/fmu4cpp

Build FMUs using modern C++

License

Notifications You must be signed in to change notification settings

fmi-tools/fmu4cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FMU4cpp (early prototype)

FMU4cpp is a CMake template repository that allows you to easily create cross-platform FMUs compatible with FMI 2.0 for Co-simulation using C++.

The framework generates the required modelDescription.xml and further packages the necessary content into a ready-to-use FMU archive.

How do I get started?

  1. Change the value of the modelIdentifier variable in CMakeLists.txt to something more appropriate.
  2. Edit the content of model.cpp.
  3. Build.

An FMU named <modelIdentifier>.fmu is now located in your build folder.

Cross-compilation

Cross-compilation (64-bit linux/windows) occurs automatically when you push your changes to GitHub. Simply rename the produced model.zip to <modelName>.fmu.

Such easy, such wow.

Requirements

  • C++17 compiler
  • CMake >= 3.15

Languages

  • C++ 54.0%
  • C 40.8%
  • CMake 5.2%