-
Notifications
You must be signed in to change notification settings - Fork 84
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
Trying to solve Issue842 multiyear #994
Trying to solve Issue842 multiyear #994
Conversation
Todo:
|
@mwetter thanks for the reply. |
@AnaConstantin |
I wonder if
of Modelica.Blocks.Tables.CombiTable1Ds can be of any help here. It all comes with new MSL 3.2.3. |
… simulation using two years of data with an increment of one month
@mwetter I did the examples. They are all under IBPSA.BoundaryConditions.WeatherData.Validation. |
One more thing, I know the actual error handling is important, but how do you test it using scripts and CI? |
Still would be interesting how the issue can be solved if the above mentioned features of CombiTable1Ds are utilized. I believe you only need to check if the time span u_max-u_min is an integer multiple of 31536000 and can set both set repeatWeatherFile and CombiTable1Ds.extrapolation accordingly. I guess you can also relax the assumption on equidistant weather data then. |
@tbeu thank you for your suggestion. The issue is that for the weather files which span a year for ReaderTMY3 time span u_max-u_min is not equal to a year. There is a detailed explanation on this under "Start and end data for annual weather data files" in the the documentation of ReaderTMY3. |
For solving #842.
First of all sorry for taking so long to work on this issue. It has been really challenging to get any free time, let alone IBPSA free time.
Anyways I have done a new implementation focusing only on the ConvertTime.mo block
If the simulation time goes over the time span of the weather file, the weather file is repeated only if the time span is a year or a multiple of a year. By time span I mean: end time stamp - beginning time stamp + average increment. To my mind positive and negative time stamps are treated correctly in this manner.
I did add the condition regarding the shift for the solar radiation, I'm not really sure however that it is absolutely necessary. In my implementation it required an additional parameter, an additonal variable and a pair of equations.
I have used the ReaderTMY3.mo file from the master, as the one in the branch was not updated to the changes from December 2017 regarding the absolute file name.
So please update the branch for the issue, and ideally there should be no more merge conflicts.