-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix #4446 - add SizingSystem::autosizedOccupantDiversity. #4450
Conversation
…oes it report two values,for heating **and** cooling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I manually tested this by using this executable on the baseline_sys07.rb resources test.
cd testruns/baseline_sys07.rb/run/
[1] run(main)> m = osload('in.osm')
sqlF=> #<OpenStudio::Model::Model:0x0000563c932ff910 @__swigtype__="_p_openstudio__model__Model">
[2] run(main)> sqlFile = OpenStudio::SqlFile.new("eplusout.sql")
=> #<OpenStudio::SqlFile:0x0000563c92eaa6a8 @__swigtype__="_p_openstudio__SqlFile">
[3] run(main)> m.setSqlFile(sqlFile)
=> true
[4] run(main)> a = m.getAirLoopHVACs[0]
=> #<OpenStudio::Model::AirLoopHVAC:0x0000563c946be7f8 @__swigtype__="_p_openstudio__model__AirLoopHVAC">
[5] run(main)> sz = a.sizingSystem
=> #<OpenStudio::Model::SizingSystem:0x0000563c946159f0 @__swigtype__="_p_openstudio__model__SizingSystem">
[6] run(main)> sz.autosizedOccupantDiversity
=> #<OpenStudio::OptionalDouble:0x0000563c945b4e48 @__swigtype__="_p_boost__optionalT_double_t">
[7] run(main)> sz.autosizedOccupantDiversity.get
=> 1.0
I also ran the test_autosizing_rb
test that was failing because of this missing method, and now it passes.
// Note: as of 9.6.0, for some reason, it returns one entry for cooling and one for heating... | ||
// And it's only present in the tabular report 'Standard62.1Summary' | ||
// Both the Heating and Cooling are actually the same underlying value. Cf https://github.com/NREL/OpenStudio/pull/4450#issue-1011104323 | ||
std::string tableName = "System Ventilation Requirements for Cooling"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I'm using the Cooling one, but both are exactly the same
val = autosizedOccupantDiversity(); | ||
if (val) { | ||
setOccupantDiversity(val.get()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add it to applySizingValues() too
CI Results for c4c5a98:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and all green!
Pull request overview
autosizedOccupantDiversity
for SizingSystem #4446As indicated on #4446 (comment) I got puzzled by the fact that the tabular reports the Occupant Diversity for both heating and cooling.
But both report the same value:
https://github.com/NREL/EnergyPlus/blob/f420c06a69737dddcf4ba740ad855b45a03a8ef3/src/EnergyPlus/SizingManager.cc#L1594-L1595
https://github.com/NREL/EnergyPlus/blob/f420c06a69737dddcf4ba740ad855b45a03a8ef3/src/EnergyPlus/SizingManager.cc#L1679-L1680
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.