-
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
Changes from 4 commits
026d454
c049f57
22dab5a
c0038bb
03f5e8f
ecba60c
60b9d60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -341,12 +341,9 @@ namespace model { | |
| } | ||
|
|
||
| bool BoilerSteam_Impl::addToNode(Node& node) { | ||
| if (boost::optional<PlantLoop> plant = node.plantLoop()) { | ||
| if (plant->supplyComponent(node.handle())) { | ||
| if (StraightComponent_Impl::addToNode(node)) { | ||
| plant->setFluidType("Steam"); | ||
| return true; | ||
| } | ||
| if (auto plant = node.plantLoop()) { | ||
| if (!plant->demandComponent(node.handle())) { | ||
| return StraightComponent_Impl::addToNode(node); | ||
|
||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -353,14 +353,10 @@ namespace model { | |
| return OS_GroundHeatExchanger_VerticalFields::OutletNodeName; | ||
| } | ||
|
|
||
| // addToNode | ||
| bool GroundHeatExchangerVertical_Impl::addToNode(Node& node) { | ||
| if (boost::optional<PlantLoop> plant = node.plantLoop()) { | ||
| if (plant->supplyComponent(node.handle())) { | ||
| if (StraightComponent_Impl::addToNode(node)) { | ||
| plant->setFluidType("Water"); | ||
| return true; | ||
| } | ||
| if (auto plant = node.plantLoop()) { | ||
| if (!plant->demandComponent(node.handle())) { | ||
| return StraightComponent_Impl::addToNode(node); | ||
|
Comment on lines
+357
to
+359
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay I guess. |
||
| } | ||
| } | ||
|
|
||
|
|
||
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.