Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update heatpump testbench to AixLib 0.9.1 #5

Open
jnettels opened this issue Jun 10, 2020 · 0 comments
Open

Update heatpump testbench to AixLib 0.9.1 #5

jnettels opened this issue Jun 10, 2020 · 0 comments

Comments

@jnettels
Copy link
Member

The Modelica project heatpump testbench was initially based on AixLib 0.7.3. This shows how a tight integration of Python and Modelica is possible, e.g. preparing a simulation by swapping heatpump base data and simulation via Python.

With AixLib 0.9.1, there are currently two issues preventing a seamless update:

  • AixLib 0.9.1 is not fully compatible with OpenModelica. AixLib.DataBase.ThermalMachines.Chiller.ChillerBaseDataDefinition causes an error in OpenModelica, while it works in Dymola. There is an easy workaround, but currently the authors seem unwilling to include it, since it makes the code somewhat less elegant. See issue "FastHVAC heat pump does not run in OpenModelica" 864 in https://github.com/RWTH-EBC/AixLib (I do not want to link directly, because that reference would be shown there). I tried to be as polite as I can possibly be, but I do not agree with their decision. Fortunately, we do not need the chiller function, so we can work around the issue.
  • Replacing the heat pump data programmatically via Python is an essential part of the testbench. Due to changes to the heatpump model in 0.9.1, this data selection is now contained in a redeclare statement. This syntax of the Modelica standard is not fully supported by OpenModelica (Dymola handles it just fine), so there is no command to replace this information. See this for more details: https://stackoverflow.com/questions/62168453. An update with that feature is being worked on, but we can only wait patiently for it to happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant