-
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
Update Weather diffuse radiation model #1477
Comments
@EttoreZ : Please use the branch |
@EttoreZ nice work! |
An update after a long silence. I was planning on merging the changes today but I reached an impasse that requires some attention. Basically among the fixes and improvements I made to the Perez diffuse radiation model, there is one on the calculation of the relative air mass that takes into account the altitude of the location, which in theory is present on the TMY3 file and I implemented a way to read it. However the latitude, which could also be read directly from the TMY3 is not used in the diffuse radiation model, it is instead left as a parameter that the user is inserting themselves. Given the situation I have the following suggestions: |
@EttoreZ good to hear from you again! I would propose an implantation similar to what we currently have for
Library developers can use that variable if they want, or allow overrides by the end user if they want. I would not make it a |
@Mathadon I am sorry for the ambiguity. I will try to be more clear. When I referred to the latitude I meant exactly the parameter you quoted "lat" as an example on how to deal with the new parameter "alt" as in you pointed out the altitude of the location. in the TMY3 reader the parameter alt is available as such:
Now the question arises in this model
By doing this though I guess people need to be aware of the fact that their models using the DiffusePerez model with the current implementation will not run after updating the library because of a missing parameter.
I hope I was more clear in my explanation. |
Ok that clears things up a bit! So the concern is mostly about backwards compatibility? Simply set default In IDEAS we have
in our |
I see, then I will implement it putting |
Of course, you should only make reference to a component that has been declared in the same model, which is the case in IDEAS. |
I think best would be to add altitude to the weather data bus, get its values from the Then the parameter This way, we can obtain For the record, |
I am almost ready to make the pull request according to Michael specifications. The conversion script is still missing. However, If we want to compromise between the approach proposed by @mwetter and suitable for the Buildings and the approach proposed by @Mathadon and suitable for IDEAS I guess introducing the switch input/parameter would allow a smoother implementation even without the conversion script, what do you think? |
I agree with @mwetter |
Ok perfect, I just need to implement the conversion script then and make the pull request. Is there a guideline to follow regarding how to implement and where to place the conversion script in the library ? |
@EttoreZ : Please add the conversion commands to the top of |
@mwetter while updating the All the other updates to the library:
should not get a conversion script, correct? Lastly, once everything is ready, the pull request should be tagged as not backward compatible? |
@EttoreZ : The parameter I don't understand the
make a copy in the The examples such as Yes, the pull request should be tagged as non-backward compatible. |
From the weather BESTEST analysis emerged that that the IBPSA library gives slightly different results with respect to other software tools (TRNSYS and E+) for diffuse radiation on a tilted surface. By analyzing the results, documentation and source code I found that the main differences are:
As soon as a branch is created I will make a pull request with the updates. Furthermore, in the BESTEST the weather files were updated, if it is fine I can update using this branch, else I will create a dedicated issue.
The text was updated successfully, but these errors were encountered: