From 4aaa7c0b09bd71c8552498138592c753d9761bc3 Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Fri, 13 Dec 2024 13:41:19 +0100 Subject: [PATCH] Calculate DesignLeavingWaterTemp in all cases, since it's reported (and used to report Range & Approach) --- src/EnergyPlus/FluidCoolers.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/EnergyPlus/FluidCoolers.cc b/src/EnergyPlus/FluidCoolers.cc index a13f590d5bb..3e4656c8d71 100644 --- a/src/EnergyPlus/FluidCoolers.cc +++ b/src/EnergyPlus/FluidCoolers.cc @@ -1572,6 +1572,24 @@ void FluidCoolerspecs::size(EnergyPlusData &state) ErrorsFound = false; if (state.dataPlnt->PlantFinalSizesOkayToReport) { + + if (this->DesignLeavingWaterTemp <= HVAC::SmallTempDiff) { + this->WaterTemp = this->DesignEnteringWaterTemp; // design inlet water temperature + this->AirTemp = this->DesignEnteringAirTemp; // design inlet air dry-bulb temp + this->AirWetBulb = this->DesignEnteringAirWetBulbTemp; // design inlet air wet-bulb temp + this->AirPress = state.dataEnvrn->StdBaroPress; + this->AirHumRat = Psychrometrics::PsyWFnTdbTwbPb(state, this->AirTemp, this->AirWetBulb, this->AirPress); + Real64 OutletTemp = 0; + rho = FluidProperties::GetDensityGlycol(state, + state.dataPlnt->PlantLoop(this->plantLoc.loopNum).FluidName, + Constant::InitConvTemp, + state.dataPlnt->PlantLoop(this->plantLoc.loopNum).FluidIndex, + CalledFrom); + CalcFluidCoolerOutlet( + state, this->indexInArray, rho * this->DesignWaterFlowRate, this->HighSpeedAirFlowRate, this->HighSpeedFluidCoolerUA, OutletTemp); + this->DesignLeavingWaterTemp = OutletTemp; + } + // create predefined report OutputReportPredefined::PreDefTableEntry( state, state.dataOutRptPredefined->pdchMechType, this->Name, DataPlant::PlantEquipTypeNames[static_cast(this->FluidCoolerType)]);