- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OpenModelica FMU-Export displayUnit
OpenModelica FMU-Export displayUnit
OpenModelica FMU-Export displayUnit
Hello,
I'um using the API-Call "convertMo2Fmu()" to export a modelica model into an fmu. After that I want to reload the model via fmpy (to python). Unfortunately via the API-call "convertMo2Fmu()" the information "displayUnit" is lost. So if I open the *.xml-file of the model, there are only the following informations:
<!-- Index of variable = "9" -->
<ScalarVariable
name="P"
valueReference="15"
description="electrical power"
causality="output"
>
<Real nominal="1000.0" unit="W"/>
</ScalarVariable>
<!-- Index of variable = "10" -->
In this example displayUnit should be "kW". And a second question:
Is it possible to export the annotation into the xml-file? For example:
parameter Real pi_charge_max(quantity = "1/Time", unit = "1/s", displayUnit = "1/h") = pi "Power to capacity ratio" annotation(Dialog(tab = "design"));
--> tab = "design"
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OpenModelica FMU-Export displayUnit