simulationomnet++fmipyfmi

How to export my OMNeT++ model as an FMU( Functional Mockup Unit)?


I am trying to co-simulate MATLAB and OMNeT++. For the co-simulation interface, I am using Ptolemy-VirGIL to connect the two models as FMUs. MATLAB export is quite easy but I cannot find a way to export my OMNeT++ model as an FMU. Kindly help.


Solution

  • OMNet++ does not offer export as FMU.

    Export as FMU is neither mentioned in the OmNet++ Documentation nor does the OMNeT++ source code contain any meaningful mentions of FMU or FMI.

    You can create your own wrapper or find someone who does it for you. Start out with a simple ModelExchange example from the FMU SDK, and put your OMNet++ model in there.

    The SDK is a little extensive, in principal the only files that need to be adapted are (illustrated with the bouncingBall example):

    1. ./fmu20/src/models/bouncingBall/modelDescription_me.xml
    2. ./fmu20/src/models/bouncingBall/bouncingBall.c

    In the XML file, you define your model's interface. The C file needs to be adapted to contain/call your OMNet++ model.