-
Notifications
You must be signed in to change notification settings - Fork 58
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
Issue1125 st ro be #1127
Issue1125 st ro be #1127
Conversation
…ation in StrobeInfoManager and updated the StROBe model for issue #1125
@cprotopa do you agree with these changes? |
annotation (Placement(transformation(extent={{-120,-30},{-160,-10}}))); | ||
Modelica.Blocks.Sources.RealExpression mDHW(y=strobe.tabDHW.y[id]/60) | ||
Modelica.Blocks.Sources.RealExpression mDHW(y=strobe.tabDHW_internal[id]/60) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concerning mDHW
I think a larger update is needed.
StROBe actually outputs liters/minute water withdrawal. Here there is a division by 60 to make it in l/s. We need to see what would be the best units here. Would SI not be m3/s? Also, it's not really "mass flow". A big discussion, I suggest to open in another issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SI is kg/s. Best to discuss this in a separate issue indeed, if it's really an issue :)
The model works fine for me, so I believe the changes are correctly implemented. Since we are at it, though, I would suggest we make some more thorough clean up of
Btw, also:
Perhaps this should be done in a separate pull request? What would be best, @Mathadon ? |
Yup, good to make a separate issue/pull request for that! The C-to-K conversion I did not notice before and is indeed a bit dangerous. @jelgerjansen was this intentional, and what is the rationale for making the change? |
@Mathadon I made the change because the other temperatures (eg. the indoor building temperature) are expressed in Kelvin and it made more sense to me to do the conversion at the lowest level. |
That’s true, but as Christina points out, there are many people that are accustomed now to having this variable in C. @cprotopa , I propose to make the conversion but perhaps change the variable name such that users get an error because the older variable no longer exists?
|
Hm.. Which variable though? If it's locally changed, say we change the name of |
Uhm, yes that would definitely be an option. I wasn't sure where the input actually comes from. It's set by a user? Or is it read from file? In both cases we could indeed add a warning/error.. |
In fact,
It is also used as such for example in Another option I can think of, is to actually change the StROBe python code to produce the files in K in the first place. This means we would leave the model in IDEAS as is, and assume input files are appropriately in K. |
The correct approach indeed seems to be to make the change on the strobe side then and to leave the current implementation as it is. @jelgerjansen can you revert the temperature conversion?
@cprotopa I’ll leave it up to you to decide whether or not you’d like to ‘fix’ strobe?
Thx!
|
Ok, then I will change StROBe. What can be added for clarity in
The units are W for P,Q, Q_Con, Q_Rad, PHp, and PPv. It's then K for TSet and TSet2, and l/min for mDHW (this last one we will discuss in another issue). @jelgerjansen could you also add this? Otherwise I will do it afterwards. |
… added units in parameter documentation)
I reverted the temperature conversion and updated the documentation. (@Mathadon will add my last commit to this issue) |
this is ready to merge when unit tests pass |
closes #1125