Repository navigation
Fix Coil:Heating:Water energy balance and loop flow issues with constant flow plant loops
#11060
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
base: develop
Are you sure you want to change the base?
Changes from all commits
c5f1791
fa23414
2001924
e47dd65
1a5da07
eb50425
f773cfd
6397638
ac19caf
c86e252
701a951
7fe98e1
802cdba
8620434
e9c4c23
2f9290e
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 |
|---|---|---|
|
|
@@ -1610,11 +1610,8 @@ void SetupPumpMinMaxFlows(EnergyPlusData &state, int const LoopNum, int const Pu | |
| PumpMassFlowRateMax = min(InletNodeMax, PumpOverridableMaxLimit * PumpSchedFraction); | ||
|
|
||
| // Check for conflicts (MaxAvail < MinAvail) | ||
| if (PumpMassFlowRateMin > PumpMassFlowRateMax) { // the demand side wants to operate outside of the pump range | ||
| // shut the pump (and the loop) down | ||
| PumpMassFlowRateMin = 0.0; | ||
| PumpMassFlowRateMax = 0.0; | ||
| // Let the user know that his input file is overconstrained | ||
| if (PumpMassFlowRateMin > PumpMassFlowRateMax) { // the demand side cannot accept the pump's minimum flow | ||
| PumpMassFlowRateMin = PumpMassFlowRateMax; | ||
|
Comment on lines
-1613
to
+1614
Collaborator
Author
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. When the pump minimum flow exceeds the maximum flow the loop can accept, the minimum is now set to that maximum instead of setting both to zero. Previously, any overshoot shut down the pump and the loop for the whole simulation, silently. This includes overshoots caused only by density conversions of the same design volume flow: the pump uses |
||
| } | ||
|
|
||
| switch (thisPump.pumpType) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12349,7 +12349,7 @@ namespace UnitarySystems { | |
| } else { | ||
| mdot = this->HeatCoilWaterFlowRatio * this->MaxHeatCoilFluidFlow; | ||
| } | ||
| state.dataLoopNodes->Node(this->HeatCoilFluidInletNode).MassFlowRate = mdot; | ||
| PlantUtilities::SetComponentFlowRate(state, mdot, this->HeatCoilFluidInletNode, this->HeatCoilFluidOutletNodeNum, this->HeatCoilPlantLoc); | ||
|
Collaborator
Author
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. The water flow request is now set through |
||
| WaterCoils::SimulateWaterCoilComponents( | ||
| state, CompName, FirstHVACIteration, this->m_HeatingCoilIndex, QActual, this->m_FanOpMode, PartLoadRatio); | ||
| } break; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2793,7 +2793,7 @@ void CalcSimpleHeatingCoil(EnergyPlusData &state, | |
| Real64 E1; | ||
| Real64 E2; | ||
| Real64 Effec; | ||
| Real64 Cp; | ||
| Real64 Cp = 0.0; | ||
|
|
||
| auto &waterCoil = state.dataWaterCoils->WaterCoil(CoilNum); | ||
| UA = waterCoil.UACoilVariable; | ||
|
|
@@ -2875,6 +2875,12 @@ void CalcSimpleHeatingCoil(EnergyPlusData &state, | |
| HeatingCoilLoad *= PartLoadRatio; | ||
| } | ||
|
|
||
| // Water outlet state based on the actual water flow rate through the coil | ||
| if (HeatingCoilLoad != 0.0 && waterCoil.InletWaterMassFlowRate > DataBranchAirLoopPlant::MassFlowTolerance) { | ||
| TempWaterOut = TempWaterIn - HeatingCoilLoad / (Cp * waterCoil.InletWaterMassFlowRate); | ||
| waterCoil.OutletWaterEnthalpy = waterCoil.InletWaterEnthalpy - HeatingCoilLoad / waterCoil.InletWaterMassFlowRate; | ||
| } | ||
|
|
||
|
Comment on lines
+2878
to
+2883
Collaborator
Author
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. The water outlet temperature and enthalpy are now computed from the PLR-scaled coil load and the actual node water flow. With a cycling fan, the outlet water temperature used to be the full-output value. That's only correct if the node flow is the PLR-averaged flow. When the plant pushes more water through the coil, the water side gave up full-capacity heat while the air received PLR × capacity. When the node flow is the PLR-averaged flow, results are the same as before. |
||
| // Set the outlet conditions | ||
| waterCoil.TotWaterHeatingCoilRate = HeatingCoilLoad; | ||
| waterCoil.OutletAirTemp = TempAirOut; | ||
|
|
||
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.
When the supply side drives the loop flow above the demand side's request, for example with a
ConstantFlowboiler, and the demand side has no bypass:MinAvail, the same mechanism used for a pump's minimum flow. Demand components are then simulated with the flow they actually receive.