-
Notifications
You must be signed in to change notification settings - Fork 393
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
Expand Series Active Branch Logic in SetComponentFlowRate #10808
base: develop
Are you sure you want to change the base?
Conversation
|
@@ -149,7 +149,13 @@ void SetComponentFlowRate(EnergyPlusData &state, | |||
Real64 const MdotOldRequest = state.dataLoopNodes->Node(InletNode).MassFlowRateRequest; | |||
auto &loop_side = state.dataPlnt->PlantLoop(plantLoc.loopNum).LoopSide(plantLoc.loopSideNum); | |||
auto const &comp = loop_side.Branch(plantLoc.branchNum).Comp(plantLoc.compNum); | |||
|
|||
if (DataPlant::CompData::getPlantComponent(state, plantLoc).FlowCtrl == DataBranchAirLoopPlant::ControlType::SeriesActive) { | |||
Real64 seriesFlowVal = state.dataLoopNodes->Node(DataPlant::CompData::getPlantComponent(state, plantLoc).NodeNumIn).MassFlowRate; |
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.
@EnergyArchmage What about downstream components on a series active branch. For example, 2 chillers in series, the first chiller is off, but the second chiller is on. How does the first chiller find out there should be flow on the branch?
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.
That situation is the main point the change is trying to address. The beginning iteration there isn't any flow yet, so yes, the first chiller is off and doesn't see any flow on the node. But the next iteration, the second chiller will come on and make a flow request, and if flow gets going then the first chiller will see flow on the node. The idea is for the first chiller to not keep requesting zero flow even when there is flow. That zero request seems to set up a fight between a zero flow request and some flow and isn't helpful when we know there is already flow. Series active branches are supposed to look at the last node on the branch but it seems that design is not completely implemented and mismatched flow requests on upstream nodes can cause problems, like more iterations before things settle down.
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 not use if (comp.FlowCtrl == DataBranchAirLoopPlant::ControlType::SeriesActive)
on line 152 and comp.NodeNumIn
on line 153
CompData &CompData::getPlantComponent(EnergyPlusData &state, PlantLocation const &plantLoc)
{
return state.dataPlnt->PlantLoop(plantLoc.loopNum).LoopSide(plantLoc.loopSideNum).Branch(plantLoc.branchNum).Comp(plantLoc.compNum);
}
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.
It wasn't clear to me if that "comp" is a real pointer
@EnergyArchmage Ran local annual regressions (with minimum hourly reporting). Files with large mtr and/or table diffs:
So, the general trend is an increase in pump power, some files by a lot. I guess that's what you would expect, but I haven't looked at any detailed hourly results yet to see what's happening. That's next. |
For Hmm, but with develop for these same hours, the HR pump shows mass flow, but the HR coils both show zero flow and zero output, and zero flow at the HR demand outlet, so the loop's not balanced with develop for those hours. |
I have been plotting detailed frequency results and am not seeing any problems in the reference (develop) case. But something is going wrong with this code change where flow is staying on too often in the heat recovery loop. I am not very familiar with the run around loop implementation so haven't gotten very far. But I am not sure series-active branch control type was intended to apply to two demand coils on the same branch, it is more for supply side equipment. So may have to look at how series-active gets set for this case . |
@EnergyArchmage it has been 8 days since this pull request was last updated. |
@EnergyArchmage it has been 7 days since this pull request was last updated. |
2 similar comments
@EnergyArchmage it has been 7 days since this pull request was last updated. |
@EnergyArchmage it has been 7 days since this pull request was last updated. |
Pull request overview
NOTE: ENHANCEMENTS MUST FOLLOW A SUBMISSION PROCESS INCLUDING A FEATURE PROPOSAL AND DESIGN DOCUMENT PRIOR TO SUBMITTING CODE
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.