-
Notifications
You must be signed in to change notification settings - Fork 222
Fix addToNode resetting plant loop fluid type #5459
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
Conversation
| if (auto plant = node.plantLoop()) { | ||
| if (!plant->demandComponent(node.handle())) { | ||
| return StraightComponent_Impl::addToNode(node); |
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.
Okay I guess.
src/model/BoilerSteam.cpp
Outdated
| if (auto plant = node.plantLoop()) { | ||
| if (!plant->demandComponent(node.handle())) { | ||
| return StraightComponent_Impl::addToNode(node); |
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.
Why the switch from plant->supplyComponent to !plant->demandComponent?
What happens if you call it with a supply node on plantloop that's another model? It's NOT a demandComponent, so addToNode is called, when you could have avoided doing it?
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.
I think BoilerSteam is the weird case here FYI, and ultimately, we should refuse to add it with a warning if done on a PlantLoop that's water/glycol and not steam. But probably do that in #5455
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.
I was just following the addToNode method for GroundHeatExchangerHorizontalTrench. Sounds like this PR should just change addToNode for GroundHeatExchangerVertical, and leave BoilerHotWater/BoilerSteam alone.
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.
src/model/BoilerHotWater.cpp
Outdated
| } | ||
| if (auto plant = node.plantLoop()) { | ||
| if (!plant->demandComponent(node.handle())) { | ||
| return StraightComponent_Impl::addToNode(node); |
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.
Curious whether you can use Glycol ones with a BoilerHotWater or not in E+. Have you tried?
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.
I have not tried.
|
CI Results for 60b9d60:
|
jmarrec
left a comment
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.
I guess now this is just for GroundHeatExchangerVertical now that boilers have been reverted, and I'm ok with it. Not sure whether that fixes ALL of the original issue or not, but I want to reduce the number of open PRs so let's drop it.
Pull request overview
Pull Request Author
src/model/test)src/energyplus/Test)src/osversion/VersionTranslator.cpp)Labels:
IDDChangeAPIChangePull Request - Ready for CIso that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.