From f806a917e53a3b2caaf29f07ac73918b6c66b60d Mon Sep 17 00:00:00 2001 From: Bereket Nigusse Date: Thu, 1 Aug 2024 08:27:16 -0400 Subject: [PATCH] Revised the initial fix; power usage is included --- src/EnergyPlus/PlantLoopHeatPumpEIR.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/EnergyPlus/PlantLoopHeatPumpEIR.cc b/src/EnergyPlus/PlantLoopHeatPumpEIR.cc index eeb7310eb38..42329ef6aab 100644 --- a/src/EnergyPlus/PlantLoopHeatPumpEIR.cc +++ b/src/EnergyPlus/PlantLoopHeatPumpEIR.cc @@ -486,10 +486,9 @@ void EIRPlantLoopHeatPump::calcAvailableCapacity(EnergyPlusData &state, Real64 c } } if (this->heatRecoveryHeatPump) { - this->setPartLoadAndCyclingRatio(state, partLoadRatio); this->calcLoadSideHeatTransfer(state, availableCapacity); this->calcPowerUsage(state); - Real64 sourceSideHeatTransfer = this->calcQsource(this->loadSideHeatTransfer, this->powerUsage); + Real64 sourceSideHeatTransfer = this->calcQsource(availableCapacity * partLoadRatio, this->powerUsage); // check to see if souce side outlet temp exceeds limit and reduce PLR if necessary auto &thisSourcePlantLoop = state.dataPlnt->PlantLoop(this->sourceSidePlantLoc.loopNum); Real64 const CpSrc = FluidProperties::GetSpecificHeatGlycol(state,