Skip to content

Commit 0dfe6b5

Browse files
author
Yujie Xu
committed
Cycling ratio need to be applied inside VRFOU_CalcCompH
because the demand is roughly Q_evap_req = TU_load + Pipe_Q - Ncomp (multiplied by an adjustment factor C_cap_operation). Ncomp is an input-ouptut variable of the function. Previously Cycling ratio is multiplied outside of VRFOU_CalcCompH after the function has computed Ncomp. However, this will lead to very small cycling ratio non-compatible with the demand as the demand is underestimated because of the Ncomp (in reality it should not be this large, it should be Ncomp * CyclingRatio). This doesn't matter on the cooling side as Ncomp is not involved in the demand calculation there.
1 parent aba83c7 commit 0dfe6b5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/EnergyPlus/HVACVariableRefrigerantFlow.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11696,7 +11696,6 @@ void VRFCondenserEquipment::CalcVRFCondenser_FluidTCtrl(EnergyPlusData &state, c
1169611696
}
1169711697

1169811698
// Key outputs of this subroutine
11699-
Ncomp *= CyclingRatio;
1170011699
Q_c_OU *= CyclingRatio;
1170111700
this->CompActSpeed = max(CompSpdActual, 0.0);
1170211701
this->Ncomp = max(Ncomp, 0.0) / this->EffCompInverter;
@@ -12197,8 +12196,8 @@ void VRFCondenserEquipment::CalcVRFCondenser_FluidTCtrl(EnergyPlusData &state, c
1219712196
}
1219812197
}
1219912198

12200-
this->TotalCoolingCapacity = TotalCondCoolingCapacity * CoolingPLR * CyclingRatio;
12201-
this->TotalHeatingCapacity = TotalCondHeatingCapacity * HeatingPLR * CyclingRatio;
12199+
this->TotalCoolingCapacity = TotalCondCoolingCapacity * CoolingPLR;
12200+
this->TotalHeatingCapacity = TotalCondHeatingCapacity * HeatingPLR;
1220212201

1220312202
if (this->MinPLR > 0.0) {
1220412203
bool const plrTooLow = this->VRFCondPLR < this->MinPLR;
@@ -14353,7 +14352,7 @@ void VRFCondenserEquipment::VRFOU_CalcCompH(
1435314352
CyclingRatio = 1.0;
1435414353
}
1435514354

14356-
Ncomp = this->RatedCompPower * CurveValue(state, this->OUCoolingPWRFT(CounterCompSpdTemp), T_discharge, T_suction);
14355+
Ncomp = this->RatedCompPower * CurveValue(state, this->OUCoolingPWRFT(CounterCompSpdTemp), T_discharge, T_suction) * CyclingRatio;
1435714356
// Cap_Eva1 is the updated compressor min speed capacity
1435814357
OUEvapHeatExtract = Cap_Eva1;
1435914358
this->EvaporatingTemp = T_suction;

0 commit comments

Comments
 (0)