Skip to content

Commit 5a00a65

Browse files
Yujie XuYujie Xu
Yujie Xu
authored and
Yujie Xu
committed
multiply by coil runtime fraction not VRF RTF
1 parent 89671cc commit 5a00a65

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/EnergyPlus/HVACVariableRefrigerantFlow.cc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12497,8 +12497,17 @@ void VRFCondenserEquipment::CalcVRFCondenser_FluidTCtrl(EnergyPlusData &state)
1249712497
auto &thisTUList = state.dataHVACVarRefFlow->TerminalUnitList(TUListNum);
1249812498
for (int TUNum = 1; TUNum <= thisTUList.NumTUInList; ++TUNum) {
1249912499
auto &fan = state.dataFans->Fan(state.dataHVACVarRefFlow->VRFTU(TUNum).FanIndex);
12500-
fan.FanPower *= state.dataHVACVarRefFlow->VRF(VRFCond).VRFCondCyclingRatio;
12501-
fan.FanEnergy = fan.FanPower * state.dataHVACGlobal->TimeStepSysSec;
12500+
int heatingCoilNum = state.dataHVACVarRefFlow->VRFTU(TUNum).HeatCoilIndex;
12501+
int coolingCoilNum = state.dataHVACVarRefFlow->VRFTU(TUNum).CoolCoilIndex;
12502+
auto &heatingCoil = state.dataDXCoils->DXCoil(heatingCoilNum);
12503+
auto &coolingCoil = state.dataDXCoils->DXCoil(coolingCoilNum);
12504+
// only deal with cooling for now. heating RTF might have some issue
12505+
if (heatingCoil.HeatingCoilRuntimeFraction == 0.0) { // in cooling mode
12506+
// here coolingCoil.CoolingCoilRuntimeFraction equals state.dataHVACVarRefFlow->VRF(VRFCond).VRFCondCyclingRatio
12507+
// this is not the case for heating
12508+
fan.FanPower *= coolingCoil.CoolingCoilRuntimeFraction;
12509+
fan.FanEnergy = fan.FanPower * state.dataHVACGlobal->TimeStepSysSec;
12510+
}
1250212511
}
1250312512
}
1250412513

0 commit comments

Comments
 (0)