From 0e8b750f4e016b47b0613d6ba207fbd11a9012ad Mon Sep 17 00:00:00 2001 From: "Michael J. Witte" Date: Fri, 30 Aug 2024 10:43:13 -0500 Subject: [PATCH] Space IV.5 - Implement sizing by space ext perimeter length doc --- src/EnergyPlus/DataSizing.cc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/EnergyPlus/DataSizing.cc b/src/EnergyPlus/DataSizing.cc index 66f30fcabfc..c2fadb6cbe1 100644 --- a/src/EnergyPlus/DataSizing.cc +++ b/src/EnergyPlus/DataSizing.cc @@ -762,16 +762,12 @@ Real64 OARequirementsData::calcOAFlowRate(EnergyPlusData &state, Real64 curNumOccupants = 0.0; Real64 maxOccupants = 0.0; if (spaceNum > 0) { - floorArea = state.dataHeatBal->space(spaceNum).FloorArea; - // TODO MJW: For now just proportion space volume by floor area - if (thisZone.FloorArea > 0.0) { - volume = thisZone.Volume * state.dataHeatBal->space(spaceNum).FloorArea / thisZone.FloorArea; - } else { - volume = 0.0; - } - nomTotOccupants = state.dataHeatBal->space(spaceNum).TotOccupants; + auto &thisSpace = state.dataHeatBal->space(spaceNum); + floorArea = thisSpace.FloorArea; + volume = thisSpace.Volume; + nomTotOccupants = thisSpace.TotOccupants; curNumOccupants = state.dataHeatBal->spaceIntGain(spaceNum).NOFOCC; - maxOccupants = state.dataHeatBal->space(spaceNum).maxOccupants; + maxOccupants = thisSpace.maxOccupants; } else { floorArea = thisZone.FloorArea; volume = thisZone.Volume;