From 7e8f062ec2b8983ab726a676989692cdbddf01a5 Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Mon, 18 Sep 2023 21:09:23 +0200 Subject: [PATCH] Potential fix for #4963 - When Method is None or empty, doesn't matter if the flow rate is Autosized, it takes precendence cf https://github.com/NREL/EnergyPlus/blob/4502b0c6561281693f837217eb99339372b86abd/src/EnergyPlus/UnitarySystem.cc#L6080-L6081 --- src/model/AirLoopHVACUnitarySystem.cpp | 2 +- src/model/test/AirLoopHVACUnitarySystem_GTest.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model/AirLoopHVACUnitarySystem.cpp b/src/model/AirLoopHVACUnitarySystem.cpp index 02fdd8168c2..83d74760264 100644 --- a/src/model/AirLoopHVACUnitarySystem.cpp +++ b/src/model/AirLoopHVACUnitarySystem.cpp @@ -1391,7 +1391,7 @@ namespace model { OS_ASSERT(ok); getImpl()->setSupplyAirFlowRateMethodDuringCoolingOperation("None"); getImpl()->setSupplyAirFlowRateMethodDuringHeatingOperation("None"); - autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisRequired(); + setSupplyAirFlowRateMethodWhenNoCoolingorHeatingisRequired("None"); setMaximumSupplyAirTemperature(80.0); setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(21.0); ok = setMaximumCyclingRate(2.5); diff --git a/src/model/test/AirLoopHVACUnitarySystem_GTest.cpp b/src/model/test/AirLoopHVACUnitarySystem_GTest.cpp index 43f275c1b8f..a9f2461a00f 100644 --- a/src/model/test/AirLoopHVACUnitarySystem_GTest.cpp +++ b/src/model/test/AirLoopHVACUnitarySystem_GTest.cpp @@ -121,6 +121,7 @@ TEST_F(ModelFixture, AirLoopHVACUnitarySystem_CloneOneModelWithDefaultData) { testObject.setCoolingCoil(coolingCoil); testObject.setHeatingCoil(heatingCoil); testObject.setSupplementalHeatingCoil(suppHeatingCoil); + testObject.autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisRequired(); auto testObjectClone = testObject.clone(m).cast();