controllab / fmi-export-20sim

FMI export code generation template for 20-sim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fmi-export-20sim

FMI export code generation template for 20-sim 4.6 or higher

Supported integration methods:

  • Discrete
  • Euler
  • Runge Kutta 2
  • Runge Kutta 4

For Vode Adams and Modified BDF (MeBDFi) support, please use the FMI export code generation template included in 20-sim 4.8.

Installation

Download the code generation template using the "Download ZIP" button on Github or using a "git clone"

  1. Extract the zip file
  2. Copy the folder StandaloneFMU to a location on your 20-sim PC.
  3. Open 20-sim
  4. Choose from the Menu: Tools | Options
  5. Choose Folders
  6. Choose C-Code Folders
  7. Add the folder you copied in step 2.
  8. To export an FMU, choose Tools | Real Time Toolbox | C-Code Generation The FMU export should now be visible in the list.

External dependencies

  1. For automated compilation of the .fmu, we currently rely on the availability of the Visual Studio 2010, 2013, 2015, 2017 or 2019 compiler. Any version Express, Community, Professional or Enterprise will work. However, for a x64 FMU DLL, you cannot use the Express edition since it does not contain a x64 compiler.

Note that the FMU can be compiled with gcc (including MinGW) too on Windows, Linux and MacOSX. You can find the Makefile in the root directory of the generated code.

  1. Microsoft Visual C++ Redistributable Packages for Visual Studio 2013

About

FMI export code generation template for 20-sim

License:GNU General Public License v3.0


Languages

Language:C 71.7%Language:C++ 16.4%Language:XSLT 6.1%Language:Batchfile 3.6%Language:Python 1.1%Language:Makefile 1.1%