Repository navigation
Fix HybridModel:Zone to Consume People Activity Schedule - #11854
Merged
Merged
Conversation
mitchute
commented
Oct 7, 2026
Comment on lines
5139
to
5145
| if (FractionSensible <= 0.0) { | ||
| FractionSensible = 0.6; | ||
| } | ||
|
|
||
| if (ActivityLevel <= 0.0) { | ||
| ActivityLevel = 130.0; | ||
| } |
Collaborator
Author
There was a problem hiding this comment.
There's a few hardcoded default values here and in other places related to this that probably should be elevated to a constexpr and put somewhere.
EnergyPlus/src/EnergyPlus/HybridModel.cc
Line 337 in 01c3cba
I think I'll do that next.
mitchute
commented
Oct 7, 2026
| zone.ZonePeopleRadiantHeatFraction = (hmZone.peopleRadiantFracSched != nullptr) ? hmZone.peopleRadiantFracSched->getCurrentVal() : 0.0; | ||
|
|
||
| Real64 FractionSensible = zone.ZonePeopleSensibleHeatFraction; | ||
| ActivityLevel = zone.ZonePeopleActivityLevel; |
Collaborator
Author
There was a problem hiding this comment.
This one is the fix
|
|
|
|
Collaborator
Author
|
|
Collaborator
Author
Collaborator
Author
|
Ready to go. Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Pull request overview
HybridModel:Zone loads the optional people activity schedule in InverseModelHumidity(); however, the people activity schedule value never gets used. This value from the schedule is read here:
EnergyPlus/src/EnergyPlus/ZoneTempPredictorCorrector.cc
Line 5132 in 01c3cba
But then the local variable never gets updated. As a result, the default value of 130 W/person is always used regardless of the schedule.
EnergyPlus/src/EnergyPlus/ZoneTempPredictorCorrector.cc
Lines 5142 to 5144 in 01c3cba
Description of the purpose of this PR
Pull Request Author
Reviewer