Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.71 KB

README.md

File metadata and controls

45 lines (37 loc) · 1.71 KB

#moduleFMU This is a module to import and cosimulation of FMUs, developed using FMI standards, for MBDyn.

#Requirement

  1. MBDyn simulation software. (can be downloaded from https://www.mbdyn.org/?Software_Download)
  2. This module is created by using FMILibrary. FMILibrary is a JModellica software that enables integration of Functional Mock-up Units (FMUs) import in applications. It can be downloaded from http://www.jmodelica.org/FMILibrary
  3. In Makefile.inc from modules/module-FMU/ in mbdyn-VERSION, replace
    $FMIL: Location where build directory of FMILibrary exists.
    $FMII: Location where FMILibrary is installed.

#Input Syntax The syntax for using the module is:

module load: "libmodule-FMU";

user defined:
<label>, FMU, “<location to FMU>”,
type, <cosimulation/import>, tolerance, <tolerance value>,
<fmu input variable>, <drive caller>,
<fmu input variable>, <drive caller>,
.....
output, yes;

Example Usage:
user defined:
99, FMU, "/location/to/VanderPol.fmu",
type, cosimulation,
"u", node, 1, structural, string, "X[3]", direct,
"u2", node, 1, structural, string, "X[2]", direct,
output, yes;

#Testing To make sure module is working fine,

  1. Look for FMIL Error
  2. MBDyn should terminate successfully
  3. The .out file will have the output states.

#Limitations

  1. Currently the module does not support the string drive.
  2. The module gives a segmentation fault if FMU with version 1.0 is used with simulation type not supported by the FMU.
  3. Constant timestep for cosimulation.

#Test Cases: All the FMUs which are tested are from: https://trac.fmi-standard.org/browser/branches/public/Test_FMUs