Copy weather file to project for increased portability of projects
Created by: marcusfuchs
As I understand the current code, it stores an absolute path to the weather file in the exported building model. We have the use case where we generate models on one machine, but simulate on another machine. Making sure to set the correct absolute path for the weather file over multiple machines has proven to be relatively cumbersome and error-prone in our experience.
Therefore I suggest the following alternative approach:
- Generate a folder
Resources
within the project export file structure - Copy a weather file from the given path (or TEASER's default weather file location) to this
Resources
folder - Use
Modelica.Utilities.Files.loadResource("modelica://...
to load the weather file from the relative project path
For our applications, this would be the preferred standard way of handling weather files in the TEASER exported models. If others agree, I can propose an implementation. An if others prefer the current way, maybe we could add the suggested approach as an option?