Skip to content

Commit

Permalink
Calculate DesignLeavingWaterTemp in all cases, since it's reported (a…
Browse files Browse the repository at this point in the history
…nd used to report Range & Approach)
  • Loading branch information
jmarrec committed Dec 13, 2024
1 parent a179c0d commit 4aaa7c0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/EnergyPlus/FluidCoolers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(this->FluidCoolerType)]);
Expand Down

0 comments on commit 4aaa7c0

Please sign in to comment.