Skip to content

Commit

Permalink
Merge 3c62414 into e7ecb2d
Browse files Browse the repository at this point in the history
  • Loading branch information
yujiex authored Sep 24, 2024
2 parents e7ecb2d + 3c62414 commit 1564bc2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/EnergyPlus/HVACVariableRefrigerantFlow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,9 @@ void CalcVRFCondenser(EnergyPlusData &state, int const VRFCond)

vrf.ElecHeatingPower =
(vrf.RatedHeatingPower * TotHeatCapTempModFac) * TotHeatEIRTempModFac * EIRFPLRModFac * HREIRAdjustment * VRFRTF * InputPowerMultiplier;

// adjust defrost power based on heating RTF
vrf.DefrostPower *= VRFRTF;
}
// adjust defrost power based on RTF
vrf.DefrostPower *= VRFRTF;
vrf.VRFCondRTF = VRFRTF;

// calculate crankcase heater power
Expand Down Expand Up @@ -11592,7 +11591,8 @@ void VRFCondenserEquipment::CalcVRFCondenser_FluidTCtrl(EnergyPlusData &state, c
Tdischarge = this->refrig->getSatTemperature(state, max(min(Pdischarge, RefPHigh), RefPLow), RoutineName);

// Evaporative capacity ranges_Min
CapMinPe = min(Pdischarge - this->CompMaxDeltaP, RefMinPe);
// suction pressure lower bound need to be no less than both terms in the following
CapMinPe = max(Pdischarge - this->CompMaxDeltaP, RefMinPe);
CapMinTe = this->refrig->getSatTemperature(state, max(min(CapMinPe, RefPHigh), RefPLow), RoutineName);
CompEvaporatingCAPSpdMin = this->CoffEvapCap * this->RatedEvapCapacity * CurveValue(state, this->OUCoolingCAPFT(1), Tdischarge, CapMinTe);
CompEvaporatingPWRSpdMin = this->RatedCompPower * CurveValue(state, this->OUCoolingPWRFT(1), Tdischarge, CapMinTe);
Expand Down Expand Up @@ -11664,8 +11664,7 @@ void VRFCondenserEquipment::CalcVRFCondenser_FluidTCtrl(EnergyPlusData &state, c
Tdischarge,
h_IU_cond_out_ave,
this->IUCondensingTemp,
// Te can't be smaller than user input lower bound
max(this->IUEvapTempLow, CapMinTe),
CapMinTe,
Tfs,
Pipe_Q_h,
Q_c_OU,
Expand Down Expand Up @@ -12198,8 +12197,8 @@ void VRFCondenserEquipment::CalcVRFCondenser_FluidTCtrl(EnergyPlusData &state, c
}
}

this->TotalCoolingCapacity = TotalCondCoolingCapacity * CoolingPLR;
this->TotalHeatingCapacity = TotalCondHeatingCapacity * HeatingPLR;
this->TotalCoolingCapacity = TotalCondCoolingCapacity * CoolingPLR * CyclingRatio;
this->TotalHeatingCapacity = TotalCondHeatingCapacity * HeatingPLR * CyclingRatio;

if (this->MinPLR > 0.0) {
bool const plrTooLow = this->VRFCondPLR < this->MinPLR;
Expand Down Expand Up @@ -12237,6 +12236,7 @@ void VRFCondenserEquipment::CalcVRFCondenser_FluidTCtrl(EnergyPlusData &state, c
this->ElecHeatingPower = 0;
}
this->VRFCondRTF = VRFRTF;
this->DefrostPower *= VRFRTF;

// Calculate CrankCaseHeaterPower: VRF Heat Pump Crankcase Heater Electric Power [W]
if (this->MaxOATCCHeater > OutdoorDryBulb) {
Expand Down

0 comments on commit 1564bc2

Please sign in to comment.