From 69b6af298e48d4d23a67b249ae890c1ab4f7c725 Mon Sep 17 00:00:00 2001 From: Scott Horowitz Date: Tue, 24 Dec 2024 18:22:38 -0700 Subject: [PATCH 1/3] Fixes the number of cooling speeds in the UnitarySystemPerformanceMultispeed object when you use a CoilCoolingDX object. --- .../ForwardTranslateUnitarySystemPerformanceMultispeed.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp b/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp index 86da5f777fe..6f5c5b4b090 100644 --- a/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp +++ b/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp @@ -71,6 +71,10 @@ namespace energyplus { if (coolingCoil->iddObjectType() == openstudio::IddObjectType::OS_Coil_Cooling_DX_MultiSpeed) { auto coolingCoilDXMultispeed = coolingCoil->cast(); sysPerf.setInt(UnitarySystemPerformance_MultispeedFields::NumberofSpeedsforCooling, coolingCoilDXMultispeed.stages().size()); + } else if (coolingCoil->iddObjectType() == openstudio::IddObjectType::OS_Coil_Cooling_DX) { + auto coolingCoilDX = coolingCoil->cast(); + sysPerf.setInt(UnitarySystemPerformance_MultispeedFields::NumberofSpeedsforCooling, + coolingCoilDX.performanceObject().baseOperatingMode().speeds().size()); } else { sysPerf.setInt(UnitarySystemPerformance_MultispeedFields::NumberofSpeedsforCooling, 1); } From 081e8f275b731e7c8038202b3b9fd577fa024a1c Mon Sep 17 00:00:00 2001 From: Scott Horowitz Date: Tue, 24 Dec 2024 18:34:29 -0700 Subject: [PATCH 2/3] Add hpp reference --- .../ForwardTranslateUnitarySystemPerformanceMultispeed.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp b/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp index 6f5c5b4b090..1be5b2e2c7d 100644 --- a/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp +++ b/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp @@ -19,6 +19,7 @@ #include "../../model/CoilHeatingGasMultiStage_Impl.hpp" #include "../../model/CoilHeatingGasMultiStageStageData.hpp" #include "../../model/CoilHeatingGasMultiStageStageData_Impl.hpp" +#include "../../model/CoilCoolingDX.hpp" #include "../../model/CoilCoolingDXMultiSpeed.hpp" #include "../../model/CoilCoolingDXMultiSpeed_Impl.hpp" #include "../../model/CoilCoolingDXMultiSpeedStageData.hpp" From 537acba63f87469bba3587840d1698271c76a055 Mon Sep 17 00:00:00 2001 From: Scott Horowitz Date: Tue, 24 Dec 2024 18:45:30 -0700 Subject: [PATCH 3/3] Add more hpp's --- .../ForwardTranslateUnitarySystemPerformanceMultispeed.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp b/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp index 1be5b2e2c7d..653981d441f 100644 --- a/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp +++ b/src/energyplus/ForwardTranslator/ForwardTranslateUnitarySystemPerformanceMultispeed.cpp @@ -20,6 +20,13 @@ #include "../../model/CoilHeatingGasMultiStageStageData.hpp" #include "../../model/CoilHeatingGasMultiStageStageData_Impl.hpp" #include "../../model/CoilCoolingDX.hpp" +#include "../../model/CoilCoolingDX_Impl.hpp" +#include "../../model/CoilCoolingDXCurveFitPerformance.hpp" +#include "../../model/CoilCoolingDXCurveFitPerformance_Impl.hpp" +#include "../../model/CoilCoolingDXCurveFitOperatingMode.hpp" +#include "../../model/CoilCoolingDXCurveFitOperatingMode_Impl.hpp" +#include "../../model/CoilCoolingDXCurveFitSpeed.hpp" +#include "../../model/CoilCoolingDXCurveFitSpeed_Impl.hpp" #include "../../model/CoilCoolingDXMultiSpeed.hpp" #include "../../model/CoilCoolingDXMultiSpeed_Impl.hpp" #include "../../model/CoilCoolingDXMultiSpeedStageData.hpp"