-
Notifications
You must be signed in to change notification settings - Fork 418
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
Fix ideal loads heating sizing with outdoor air #7472
Conversation
Develop - Before this fix - See how the cooling capacity increases with outdoor air, but not the heating capacity:
After - this branch - now both heating and cooling capacity increase with outdoor air:
|
@@ -1737,6 +1737,7 @@ namespace PurchasedAirManager { | |||
SizingString = PurchAirNumericFields(PurchAirNum).FieldNames(FieldNum) + " [m3/s]"; | |||
IsAutoSize = false; | |||
PrintFlag = true; | |||
ZoneEqSizing(CurZoneEqNum).OAVolFlow = FinalZoneSizing(CurZoneEqNum).MinOA; |
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.
Minimally invasive surgery here. Hopefully no unexpected diffs will show up.
@@ -149,23 +149,20 @@ TEST_F(EnergyPlusFixture, SizePurchasedAirTest_Test1) | |||
DataEnvironment::StdRhoAir = 1.0; // Prevent divide by zero in ReportSizingManager | |||
ZoneEqSizing(CurZoneEqNum).SizingMethod.allocate(24); | |||
CurSysNum = 0; | |||
ZoneHVACSizing.allocate(1); | |||
ZoneHVACSizing(1).CoolingSAFMethod = SupplyAirFlowRate; | |||
ZoneHVACSizing(1).HeatingSAFMethod = SupplyAirFlowRate; |
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.
Cleaned out some unnecessary things in the existing unit test.
FinalZoneSizing(CurZoneEqNum).DesHeatVolFlow = 1.0; | ||
ZoneEqSizing(CurZoneEqNum).HeatingAirVolFlow = 1.0; | ||
FinalZoneSizing(CurZoneEqNum).DesHeatCoilInTemp = 30.0; |
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.
The unit test shouldn't be setting ZoneEqSizing - the component sizing function should be doing that.
SizePurchasedAir(PurchAirNum); | ||
EXPECT_DOUBLE_EQ(1.0, PurchAir(PurchAirNum).MaxHeatVolFlowRate); | ||
EXPECT_NEAR(50985.58, PurchAir(PurchAirNum).MaxHeatSensCap, 0.1); | ||
EXPECT_DOUBLE_EQ(2.0, PurchAir(PurchAirNum).MaxCoolVolFlowRate); | ||
EXPECT_NEAR(30844.14, PurchAir(PurchAirNum).MaxCoolTotCap, 0.1); | ||
} | ||
|
||
TEST_F(EnergyPlusFixture, SizePurchasedAirTest_Test2) |
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.
Added a second unit test with OA.
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.
Correct use of ZoneEqSizing to pass OA to sizing routine (RequestSizing). Unit test added to include impact of OA on sizing.
CI is clean, unit test confirms correction to heating coil sizing when OA > 0. |
Pull request overview
Fixes #7375. ZoneHVAC:IdealLoadsAirSystem sizing for Design Size Maximum Sensible Heating Capacity did not account for the design outdoor air flow in v9.0 and v9.1.
Work Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Review Checklist
This will not be exhaustively relevant to every PR.