@@ -3881,6 +3881,14 @@ TEST_F(EnergyPlusFixture, PTACDrawAirfromReturnNodeAndPlenum_Test)
3881
3881
state->dataZoneEnergyDemand ->DeadBandOrSetback .allocate (state->dataGlobal ->NumOfZones );
3882
3882
state->dataZoneEnergyDemand ->DeadBandOrSetback = 0.0 ;
3883
3883
3884
+ state->dataEnvrn ->OutDryBulbTemp = 30.0 ;
3885
+ state->dataEnvrn ->OutHumRat = 0.0015 ;
3886
+ state->dataEnvrn ->OutBaroPress = 101325.0 ;
3887
+ state->dataEnvrn ->OutEnthalpy = Psychrometrics::PsyHFnTdbW (30.0 , 0.0015 );
3888
+ state->dataEnvrn ->WindSpeed = 4.9 ;
3889
+ state->dataEnvrn ->WindDir = 270.0 ;
3890
+ state->dataEnvrn ->StdRhoAir = 1.2 ;
3891
+
3884
3892
ZoneAirLoopEquipmentManager::GetZoneAirLoopEquipment (*state);
3885
3893
SimAirServingZones::GetAirPathData (*state);
3886
3894
state->dataSimAirServingZones ->GetAirLoopInputFlag = false ;
@@ -3902,13 +3910,6 @@ TEST_F(EnergyPlusFixture, PTACDrawAirfromReturnNodeAndPlenum_Test)
3902
3910
state->dataZoneEnergyDemand ->ZoneSysEnergyDemand (i).RemainingOutputReqToCoolSP = -5000.0 ;
3903
3911
state->dataZoneEnergyDemand ->ZoneSysEnergyDemand (i).RemainingOutputReqToHeatSP = -200.0 ;
3904
3912
}
3905
- state->dataEnvrn ->OutDryBulbTemp = 30.0 ;
3906
- state->dataEnvrn ->OutHumRat = 0.0015 ;
3907
- state->dataEnvrn ->OutBaroPress = 101325.0 ;
3908
- state->dataEnvrn ->OutEnthalpy = Psychrometrics::PsyHFnTdbW (30.0 , 0.0015 );
3909
- state->dataEnvrn ->WindSpeed = 4.9 ;
3910
- state->dataEnvrn ->WindDir = 270.0 ;
3911
- state->dataEnvrn ->StdRhoAir = 1.2 ;
3912
3913
GetZoneAirSetPoints (*state);
3913
3914
state->dataHeatBalFanSys ->TempControlType .allocate (6 );
3914
3915
state->dataHeatBalFanSys ->TempControlType = HVAC::ThermostatType::DualSetPointWithDeadBand;
@@ -4009,8 +4010,8 @@ TEST_F(EnergyPlusFixture, PTACDrawAirfromReturnNodeAndPlenum_Test)
4009
4010
// EXPECT_NEAR(23.153277047505515, state->dataLoopNodes->Node(11).Temp, 0.001);
4010
4011
4011
4012
// ATMixer primary air inlet node, or air loop SAT, T = OAT + fan heat
4012
- EXPECT_NEAR (34.2002 , state->dataLoopNodes ->Node (ATMixer1PriInNode).Temp , 0.001 );
4013
- EXPECT_NEAR (0.0003 , state->dataLoopNodes ->Node (ATMixer1PriInNode).HumRat , 0.001 );
4013
+ EXPECT_NEAR (31.1803 , state->dataLoopNodes ->Node (ATMixer1PriInNode).Temp , 0.001 );
4014
+ EXPECT_NEAR (0.0015 , state->dataLoopNodes ->Node (ATMixer1PriInNode).HumRat , 0.001 );
4014
4015
EXPECT_NEAR (35169.5566 , state->dataLoopNodes ->Node (ATMixer1PriInNode).Enthalpy , 0.001 );
4015
4016
4016
4017
// *** this next test is different from develop, air loop is on, this pri/ret flow was 0 before
@@ -4027,7 +4028,7 @@ TEST_F(EnergyPlusFixture, PTACDrawAirfromReturnNodeAndPlenum_Test)
4027
4028
// same temperature test as above commented out test (23.15327704750551), now shows 21.2 C
4028
4029
// how do you mix 2 air streams with T1in=31.18 and T2in=23.15 and get Tout=21.23 ??
4029
4030
// must be a node enthalpy issue with this unit test?
4030
- EXPECT_NEAR (21.5613 , state->dataLoopNodes ->Node (ATMixer1AirOutNode).Temp , 0.001 );
4031
+ EXPECT_NEAR (21.2317 , state->dataLoopNodes ->Node (ATMixer1AirOutNode).Temp , 0.001 );
4031
4032
EXPECT_NEAR (0.324036 , state->dataLoopNodes ->Node (ATMixer1AirOutNode).MassFlowRate , 0.001 );
4032
4033
4033
4034
// mass balance zone 1 ATMixer outlet enthalpy based on pri and sec inlet stream enthalpy
0 commit comments