diff --git a/tst/EnergyPlus/unit/SizingManager.unit.cc b/tst/EnergyPlus/unit/SizingManager.unit.cc index f54992def5c..2afef565ac3 100644 --- a/tst/EnergyPlus/unit/SizingManager.unit.cc +++ b/tst/EnergyPlus/unit/SizingManager.unit.cc @@ -4151,7 +4151,7 @@ TEST_F(EnergyPlusFixture, SizingManager_ZoneSizing_Coincident_NonAir_10x_Latent_ " ElectricEquipment,", " Space 1 Latent ElecEq, !- Name", " Space 1, !- Zone or ZoneList Name", - " Morning, !- Schedule Name", + " Morning2, !- Schedule Name", " EquipmentLevel, !- Design Level Calculation Method", " 1000.0, !- Design Level {W}", " , !- Watts per Zone Floor Area {W/m2}", @@ -4170,6 +4170,18 @@ TEST_F(EnergyPlusFixture, SizingManager_ZoneSizing_Coincident_NonAir_10x_Latent_ " Until: 12:00,1.0, !- Field 11", " Until: 24:00,0.0; !- Field 11", + " Schedule:Compact,", + " Morning2, !- Name", + " , !- Schedule Type Limits Name", + " Through: 12/31, !- Field 9", + " For: Alldays, !- Field 10", + " Until: 8:00,0.0, !- Field 11", + " Until: 9:00,0.5, !- Field 11", + " Until: 11:00,0.8, !- Field 11", + " Until: 12:00,1.0, !- Field 11", + " Until: 13:00,0.9, !- Field 11", + " Until: 24:00,0.0; !- Field 11", + " ElectricEquipment,", " Space 2 ElecEq, !- Name", " Space 2, !- Zone or ZoneList Name", @@ -4224,16 +4236,9 @@ TEST_F(EnergyPlusFixture, SizingManager_ZoneSizing_Coincident_NonAir_10x_Latent_ SimulationManager::ManageSimulation(*state); int space1Num = 1; - int curSimDay = 1; - auto &calSpSiz = state->dataSize->CalcSpaceSizing(curSimDay, space1Num); - - EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(57), 7500.00, 0.01); - EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(58), 8333.33, 0.01); - EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(59), 9166.66, 0.01); - EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(60), 10000.00, 0.01); - EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(61), 10000.00, 0.01); - EXPECT_TRUE(calSpSiz.LatentCoolLoadSeq(60) > calSpSiz.LatentCoolLoadSeq(59)); - EXPECT_TRUE(calSpSiz.LatentCoolLoadSeq(61) == calSpSiz.LatentCoolLoadSeq(60)); + auto &calFinalSpSiz = state->dataSize->CalcFinalSpaceSizing(space1Num); + EXPECT_EQ(calFinalSpSiz.TimeStepNumAtLatentCoolMax, 72); + EXPECT_EQ("18989.14", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpHtCalcDesLd, "SPACE 1")); EXPECT_EQ("0.527", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpHtCalcDesAirFlow, "SPACE 1")); EXPECT_EQ("0.527", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpHtUserDesAirFlow, "SPACE 1")); @@ -4245,7 +4250,7 @@ TEST_F(EnergyPlusFixture, SizingManager_ZoneSizing_Coincident_NonAir_10x_Latent_ EXPECT_EQ("0.669", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpClUserDesAirFlow, "SPACE 1")); EXPECT_EQ("CHICAGO_IL_USA ANNUAL COOLING 1% DESIGN CONDITIONS DB/MCWB", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpClDesDay, "SPACE 1")); - EXPECT_EQ("7/21 10:20:00", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpClPkTime, "SPACE 1")); + EXPECT_EQ("7/21 12:00:00", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpClPkTime, "SPACE 1")); EXPECT_EQ("6311.95", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpHtCalcDesLd, "SPACE 2")); EXPECT_EQ("0.175", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpHtCalcDesAirFlow, "SPACE 2"));