Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Does this help?

state.dataHeatBalFanSys->ZoneHeatIndexHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] += state.dataGlobal->TimeStepZone;
state.dataHeatBalFanSys->ZoneHeatIndexOccuHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                         NumOcc * state.dataGlobal->TimeStepZone;
state.dataHeatBalFanSys->ZoneHeatIndexOccupiedHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                        (NumOcc > 0) * state.dataGlobal->TimeStepZone;

Does this help?help? It looks like it's occupancy * hours, and occupancy when > 0 * hours. So total occupancy * hours and "occupied" occupancy * hours.

state.dataHeatBalFanSys->ZoneHeatIndexHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] += state.dataGlobal->TimeStepZone;
state.dataHeatBalFanSys->ZoneHeatIndexOccuHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                         NumOcc * state.dataGlobal->TimeStepZone;
state.dataHeatBalFanSys->ZoneHeatIndexOccupiedHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                        (NumOcc > 0) * state.dataGlobal->TimeStepZone;

Does this help? It looks like it's occupancy * hours, and occupancy when > 0 * hours. So total occupancy * hours and "occupied" occupancy * hours.hours. But then why would that give a different answer for these 2 reports?

state.dataHeatBalFanSys->ZoneHeatIndexHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] += state.dataGlobal->TimeStepZone;
state.dataHeatBalFanSys->ZoneHeatIndexOccuHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                         NumOcc * state.dataGlobal->TimeStepZone;
state.dataHeatBalFanSys->ZoneHeatIndexOccupiedHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                        (NumOcc > 0) * state.dataGlobal->TimeStepZone;

Does this help? It looks like it's occupancy * hours, and occupancy when > 0 * hours. So total occupancy * hours and "occupied" occupancy * hours. But then why would that give a different answer for these 2 reports?

state.dataHeatBalFanSys->ZoneHeatIndexHourBinsRepPeriod(ZoneNum, ZoneHeatIndexHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] += state.dataGlobal->TimeStepZone;
state.dataHeatBalFanSys->ZoneHeatIndexOccuHourBinsRepPeriod(ZoneNum, ZoneHeatIndexOccuHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                          NumOcc * state.dataGlobal->TimeStepZone;
state.dataHeatBalFanSys->ZoneHeatIndexOccupiedHourBinsRepPeriod(ZoneNum, ZoneHeatIndexOccupiedHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                         (NumOcc > 0) * state.dataGlobal->TimeStepZone;

Does this help? It looks like it's hours, occupancy * hours, and occupancy when > 0 * hours. So total occupancy * hours and "occupied" occupancy * hours. But then why would that give a different answer for these the last 2 reports?

ZoneHeatIndexHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] += state.dataGlobal->TimeStepZone;
ZoneHeatIndexOccuHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                                   NumOcc * state.dataGlobal->TimeStepZone;
ZoneHeatIndexOccupiedHourBinsRepPeriod(ZoneNum, ReportPeriodIdx)[0] +=
                                  (NumOcc > 0) * state.dataGlobal->TimeStepZone;