Skip to content

Generate Flat Modelica

Jens Möckel edited this page Nov 17, 2015 · 2 revisions

Dymola provides the possibility to produce flattened Modelica as an output.

Generate flat Modelica via flag

There are two flags, that could be used to have flattened Modelica as an output file.

  1. Setting OutputFlatModelica to true generates an output file with file name [Full path of your model].mof which contains a listing of flat Modelica code.
  2. Setting Advanced.OutputModelicaCode to true generates an output file with file name dsmodel.mof which contains a listing of translated Modelica code.

FlatMviaFlag

Generate flat Modelica via GUI

One could also use the graphical interface of Dymola to generate flat Modelica output files by enabling corresponding options in the Simulation Setup.

FlatMviaGUI