-
Notifications
You must be signed in to change notification settings - Fork 461
Open
Labels
DefectIncludes code to repair a defect in EnergyPlusIncludes code to repair a defect in EnergyPlus
Milestone
Description
Issue overview
Based on reading the code, this appears to be broken, but I haven't produced a defect file to prove this.
The whole max/min people thing in ZoneEquipmentManager::SetUpZoneSizingArrays is broken if there is more than one People object in a zone and the schedules are not the same.
And ZoneMinOccupancy is wrong if there is more than one People object regardless of schedules, because it's multiplying repeatedly by the min schedule value.
A code snippet to illustrate, from SetUpZoneSizingArrays.
for (PeopleNum = 1; PeopleNum <= state.dataHeatBal->TotPeople; ++PeopleNum) {
if (state.dataHeatBal->People(PeopleNum).ZonePtr == state.dataSize->FinalZoneSizing(CtrlZoneNum).ActualZoneNum) {
TotPeopleInZone += (state.dataHeatBal->People(PeopleNum).NumberOfPeople *
state.dataHeatBal->Zone(state.dataSize->FinalZoneSizing(CtrlZoneNum).ActualZoneNum).Multiplier *
state.dataHeatBal->Zone(state.dataSize->FinalZoneSizing(CtrlZoneNum).ActualZoneNum).ListMultiplier);
SchMax = GetScheduleMaxValue(state, state.dataHeatBal->People(PeopleNum).NumberOfPeoplePtr);
if (SchMax > 0) {
state.dataSize->FinalZoneSizing(CtrlZoneNum).ZonePeakOccupancy = TotPeopleInZone * SchMax;
} else {
state.dataSize->FinalZoneSizing(CtrlZoneNum).ZonePeakOccupancy = TotPeopleInZone;
}
ZoneMinOccupancy +=
TotPeopleInZone * ScheduleManager::GetScheduleMinValue(state, state.dataHeatBal->People(PeopleNum).NumberOfPeoplePtr);
}
}
Details
Some additional details for this issue (if relevant):
- Version of EnergyPlus v9.6.0-fb325cb
- Noticed while working on Add Space Concept to EnergyPlus Zone Structure, Part 1 #8394
Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
- Defect file added (list location of defect file here)
- Ticket added to Pivotal for defect (development team task)
- Pull request created (the pull request will have additional tasks related to reviewing changes that fix this defect)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DefectIncludes code to repair a defect in EnergyPlusIncludes code to repair a defect in EnergyPlus