From 575d906a387d94b5e006c1993662be3cea6f4449 Mon Sep 17 00:00:00 2001 From: Tanaya Mankad Date: Wed, 4 Sep 2024 15:13:44 -0600 Subject: [PATCH] Fix formatting. --- src/EnergyPlus/UnitarySystem.cc | 4 +-- .../unit/Coils/CoilCoolingDX.unit.cc | 26 +++++++------------ 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/src/EnergyPlus/UnitarySystem.cc b/src/EnergyPlus/UnitarySystem.cc index 15c50d643c2..ab249031d01 100644 --- a/src/EnergyPlus/UnitarySystem.cc +++ b/src/EnergyPlus/UnitarySystem.cc @@ -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) { diff --git a/tst/EnergyPlus/unit/Coils/CoilCoolingDX.unit.cc b/tst/EnergyPlus/unit/Coils/CoilCoolingDX.unit.cc index 1adbe6e1ba0..89ea7bafd8c 100644 --- a/tst/EnergyPlus/unit/Coils/CoilCoolingDX.unit.cc +++ b/tst/EnergyPlus/unit/Coils/CoilCoolingDX.unit.cc @@ -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 @@ -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); @@ -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); @@ -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); @@ -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);