use dymola python bridge to run framework on windows
Created by: Honigmelone
Hi,
thanks for updating this repository for python 3. I wanted to try the code on my machine and was experiencing trouble with the automated simulation execution, due to it only being implemented for linux. In this pull request I want to show a possibility to use this in windows as well. The proposed solution, might also be favourable for runtime optimization.
why
- the current setup executes a
*.mosfile directly with the dymola executable. - this loads all user interface libraries see stackoverflow
- the approach is unflexible, since the specific command to launch the dymola executable varies depending on the used operating system
- the approach is doesn't allow treatment of errors during execution
how
- Dymola ships a python interface of its own see https://github.com/RWTH-EBC/AixLib/wiki/How-to:-Dymola-Python-Interface
- Small adjustments are needed to in the
*.moswriter
tasks left
- clean the code. This is just a working example.
I would be happy if you would consider such a change.