Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanaya-mankad committed Sep 4, 2024
1 parent 785efca commit 575d906
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/EnergyPlus/UnitarySystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2112,8 +2112,8 @@ namespace UnitarySystems {
NoLoadCoolingAirFlowRateRatio = 1.0 / state.dataDXCoils->DXCoil(this->m_CoolingCoilIndex).NumOfSpeeds;
}
} else if (this->m_CoolingCoilType_Num == HVAC::CoilDX_Cooling) {
NoLoadCoolingAirFlowRateRatio = state.dataCoilCooingDX->coilCoolingDXs[this->m_CoolingCoilIndex]
.performance->EvapAirFlowFraction();
NoLoadCoolingAirFlowRateRatio =
state.dataCoilCooingDX->coilCoolingDXs[this->m_CoolingCoilIndex].performance->EvapAirFlowFraction();
}
if (this->m_HeatingCoilType_Num == HVAC::Coil_HeatingAirToAirVariableSpeed ||
this->m_HeatingCoilType_Num == HVAC::Coil_HeatingWaterToAirHPVSEquationFit) {
Expand Down
26 changes: 9 additions & 17 deletions tst/EnergyPlus/unit/Coils/CoilCoolingDX.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided that the following conditions are met:
//
// (1) Redistributions of source code must retain the above copyright notice, this list of
//// (1) Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
// (2) Redistributions in binary form must reproduce the above copyright notice, this list of
Expand Down Expand Up @@ -725,10 +725,8 @@ TEST_F(EnergyPlusFixture, DISABLED_CoilDXCoolingVsMultiSpeed_CycFanCycCoil)
speedRatio = 0.75;
evapInletNode.MassFlowRate =
speedRatio * thisCoil.performance->RatedAirMassFlowRateMaxSpeed() + (1.0 - speedRatio) * thisCoil.performance->RatedAirMassFlowRateMinSpeed();
thisCoil.simulate(*state, coilMode, speedNum, speedRatio, fanOp,
singleMode);
EXPECT_NEAR(MultiSpeedTotalCoolingRate3, thisCoil.totalCoolingEnergyRate,
0.1);
thisCoil.simulate(*state, coilMode, speedNum, speedRatio, fanOp, singleMode);
EXPECT_NEAR(MultiSpeedTotalCoolingRate3, thisCoil.totalCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedSensCoolingRate3, thisCoil.sensCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedLatCoolingRate3, thisCoil.latCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedOutletTemp3, evapOutletNode.Temp, 0.01);
Expand Down Expand Up @@ -771,10 +769,8 @@ TEST_F(EnergyPlusFixture, DISABLED_CoilDXCoolingVsMultiSpeed_CycFanCycCoil)
speedRatio = 0.75;
evapInletNode.MassFlowRate =
speedRatio * thisCoil.performance->RatedAirMassFlowRateMaxSpeed() + (1.0 - speedRatio) * thisCoil.performance->RatedAirMassFlowRateMinSpeed();
thisCoil.simulate(*state, coilMode, speedNum, speedRatio, fanOp,
singleMode);
EXPECT_NEAR(MultiSpeedTotalCoolingRate6, thisCoil.totalCoolingEnergyRate,
0.1);
thisCoil.simulate(*state, coilMode, speedNum, speedRatio, fanOp, singleMode);
EXPECT_NEAR(MultiSpeedTotalCoolingRate6, thisCoil.totalCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedSensCoolingRate6, thisCoil.sensCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedLatCoolingRate6, thisCoil.latCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedOutletTemp6, evapOutletNode.Temp, 0.01);
Expand Down Expand Up @@ -1147,10 +1143,8 @@ TEST_F(EnergyPlusFixture, DISABLED_CoilDXCoolingVsMultiSpeed_ContFanCycCoil)
speedRatio = 0.75;
evapInletNode.MassFlowRate =
speedRatio * thisCoil.performance->RatedAirMassFlowRateMaxSpeed() + (1.0 - speedRatio) * thisCoil.performance->RatedAirMassFlowRateMinSpeed();
thisCoil.simulate(*state, coilMode, speedNum, speedRatio, fanOp,
singleMode);
EXPECT_NEAR(MultiSpeedTotalCoolingRate3, thisCoil.totalCoolingEnergyRate,
0.1);
thisCoil.simulate(*state, coilMode, speedNum, speedRatio, fanOp, singleMode);
EXPECT_NEAR(MultiSpeedTotalCoolingRate3, thisCoil.totalCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedSensCoolingRate3, thisCoil.sensCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedLatCoolingRate3, thisCoil.latCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedOutletTemp3, evapOutletNode.Temp, 0.01);
Expand Down Expand Up @@ -1193,10 +1187,8 @@ TEST_F(EnergyPlusFixture, DISABLED_CoilDXCoolingVsMultiSpeed_ContFanCycCoil)
speedRatio = 0.75;
evapInletNode.MassFlowRate =
speedRatio * thisCoil.performance->RatedAirMassFlowRateMaxSpeed() + (1.0 - speedRatio) * thisCoil.performance->RatedAirMassFlowRateMinSpeed();
thisCoil.simulate(*state, coilMode, speedNum, speedRatio, fanOp,
singleMode);
EXPECT_NEAR(MultiSpeedTotalCoolingRate6, thisCoil.totalCoolingEnergyRate,
0.1);
thisCoil.simulate(*state, coilMode, speedNum, speedRatio, fanOp, singleMode);
EXPECT_NEAR(MultiSpeedTotalCoolingRate6, thisCoil.totalCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedSensCoolingRate6, thisCoil.sensCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedLatCoolingRate6, thisCoil.latCoolingEnergyRate, 0.1);
EXPECT_NEAR(MultiSpeedOutletTemp6, evapOutletNode.Temp, 0.01);
Expand Down

0 comments on commit 575d906

Please sign in to comment.