Skip to content

Commit 0e8b750

Browse files
committed
Space IV.5 - Implement sizing by space ext perimeter length doc
1 parent 50eb559 commit 0e8b750

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/EnergyPlus/DataSizing.cc

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -762,16 +762,12 @@ Real64 OARequirementsData::calcOAFlowRate(EnergyPlusData &state,
762762
Real64 curNumOccupants = 0.0;
763763
Real64 maxOccupants = 0.0;
764764
if (spaceNum > 0) {
765-
floorArea = state.dataHeatBal->space(spaceNum).FloorArea;
766-
// TODO MJW: For now just proportion space volume by floor area
767-
if (thisZone.FloorArea > 0.0) {
768-
volume = thisZone.Volume * state.dataHeatBal->space(spaceNum).FloorArea / thisZone.FloorArea;
769-
} else {
770-
volume = 0.0;
771-
}
772-
nomTotOccupants = state.dataHeatBal->space(spaceNum).TotOccupants;
765+
auto &thisSpace = state.dataHeatBal->space(spaceNum);
766+
floorArea = thisSpace.FloorArea;
767+
volume = thisSpace.Volume;
768+
nomTotOccupants = thisSpace.TotOccupants;
773769
curNumOccupants = state.dataHeatBal->spaceIntGain(spaceNum).NOFOCC;
774-
maxOccupants = state.dataHeatBal->space(spaceNum).maxOccupants;
770+
maxOccupants = thisSpace.maxOccupants;
775771
} else {
776772
floorArea = thisZone.FloorArea;
777773
volume = thisZone.Volume;

0 commit comments

Comments
 (0)