File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -762,16 +762,12 @@ Real64 OARequirementsData::calcOAFlowRate(EnergyPlusData &state,
762
762
Real64 curNumOccupants = 0.0 ;
763
763
Real64 maxOccupants = 0.0 ;
764
764
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 ;
773
769
curNumOccupants = state.dataHeatBal ->spaceIntGain (spaceNum).NOFOCC ;
774
- maxOccupants = state. dataHeatBal -> space (spaceNum) .maxOccupants ;
770
+ maxOccupants = thisSpace .maxOccupants ;
775
771
} else {
776
772
floorArea = thisZone.FloorArea ;
777
773
volume = thisZone.Volume ;
You can’t perform that action at this time.
0 commit comments