-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map mobile homes to HPXML's "manufactured home" #1270
Changes from 1 commit
0195938
88589a2
9830d39
fc79e6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -408,33 +408,43 @@ def run(model, runner, user_arguments) | |
|
||
# Conditioned floor area | ||
if args[:geometry_unit_cfa] == Constants.Auto | ||
# FIXME: Need to disaggregate detached and mobile home | ||
cfas = { ['0-499', HPXML::ResidentialTypeSFD] => 298, # AHS 2021, 1 detached and mobile home weighted average | ||
['0-499', HPXML::ResidentialTypeSFA] => 273, # AHS 2021, 1 detached and mobile home weighted average | ||
['0-499', HPXML::ResidentialTypeSFA] => 273, # AHS 2021, 1 attached | ||
['0-499', HPXML::ResidentialTypeApartment] => 322, # AHS 2021, multi-family weighted average | ||
['0-499', HPXML::ResidentialTypeManufactured] => 298, # AHS 2021, 1 detached and mobile home weighted average | ||
['500-749', HPXML::ResidentialTypeSFD] => 634, # AHS 2021, 1 detached and mobile home weighted average | ||
['500-749', HPXML::ResidentialTypeSFA] => 625, # AHS 2021, 1 attached | ||
['500-749', HPXML::ResidentialTypeApartment] => 623, # AHS 2021, multi-family weighted average | ||
['500-749', HPXML::ResidentialTypeManufactured] => 634, # AHS 2021, 1 detached and mobile home weighted average | ||
['750-999', HPXML::ResidentialTypeSFD] => 881, # AHS 2021, 1 detached and mobile home weighted average | ||
['750-999', HPXML::ResidentialTypeSFA] => 872, # AHS 2021, 1 attached | ||
['750-999', HPXML::ResidentialTypeApartment] => 854, # AHS 2021, multi-family weighted average | ||
['750-999', HPXML::ResidentialTypeManufactured] => 881, # AHS 2021, 1 detached and mobile home weighted average | ||
['1000-1499', HPXML::ResidentialTypeSFD] => 1228, # AHS 2021, 1 detached and mobile home weighted average | ||
['1000-1499', HPXML::ResidentialTypeSFA] => 1207, # AHS 2021, 1 attached | ||
['1000-1499', HPXML::ResidentialTypeApartment] => 1138, # AHS 2021, multi-family weighted average | ||
['1000-1499', HPXML::ResidentialTypeManufactured] => 1228, # AHS 2021, 1 detached and mobile home weighted average | ||
['1500-1999', HPXML::ResidentialTypeSFD] => 1698, # AHS 2021, 1 detached and mobile home weighted average | ||
['1500-1999', HPXML::ResidentialTypeSFA] => 1678, # AHS 2021, 1 attached | ||
['1500-1999', HPXML::ResidentialTypeApartment] => 1682, # AHS 2021, multi-family weighted average | ||
['1500-1999', HPXML::ResidentialTypeManufactured] => 1698, # AHS 2021, 1 detached and mobile home weighted average | ||
['2000-2499', HPXML::ResidentialTypeSFD] => 2179, # AHS 2021, 1 detached and mobile home weighted average | ||
['2000-2499', HPXML::ResidentialTypeSFA] => 2152, # AHS 2021, 1 attached | ||
['2000-2499', HPXML::ResidentialTypeApartment] => 2115, # AHS 2021, multi-family weighted average | ||
['2000-2499', HPXML::ResidentialTypeManufactured] => 2179, # AHS 2021, 1 detached and mobile home weighted average | ||
['2500-2999', HPXML::ResidentialTypeSFD] => 2678, # AHS 2021, 1 detached and mobile home weighted average | ||
['2500-2999', HPXML::ResidentialTypeSFA] => 2663, # AHS 2021, 1 attached | ||
['2500-2999', HPXML::ResidentialTypeApartment] => 2648, # AHS 2021, multi-family weighted average | ||
['2500-2999', HPXML::ResidentialTypeManufactured] => 2678, # AHS 2021, 1 detached and mobile home weighted average | ||
['3000-3999', HPXML::ResidentialTypeSFD] => 3310, # AHS 2021, 1 detached and mobile home weighted average | ||
['3000-3999', HPXML::ResidentialTypeSFA] => 3228, # AHS 2021, 1 attached | ||
['3000-3999', HPXML::ResidentialTypeApartment] => 3171, # AHS 2021, multi-family weighted average | ||
['3000-3999', HPXML::ResidentialTypeManufactured] => 3310, # AHS 2021, 1 detached and mobile home weighted average | ||
['4000+', HPXML::ResidentialTypeSFD] => 5587, # AHS 2021, 1 detached and mobile home weighted average | ||
['4000+', HPXML::ResidentialTypeSFA] => 7414, # AHS 2019, 1 attached | ||
['4000+', HPXML::ResidentialTypeApartment] => 6348 } # AHS 2021, 4,000 or more all unit average | ||
['4000+', HPXML::ResidentialTypeApartment] => 6348, # AHS 2021, 4,000 or more all unit average | ||
['4000+', HPXML::ResidentialTypeManufactured] => 5587 } # AHS 2021, 1 detached and mobile home weighted average | ||
cfa = cfas[[args[:geometry_unit_cfa_bin], args[:geometry_unit_type]]] | ||
if cfa.nil? | ||
runner.registerError("ResStockArguments: Could not look up conditioned floor area for '#{args[:geometry_unit_cfa_bin]}' and '#{args[:geometry_unit_type]}'.") | ||
|
@@ -465,7 +475,8 @@ def run(model, runner, user_arguments) | |
|
||
# Other | ||
if args[:misc_plug_loads_other_annual_kwh].to_s == Constants.Auto | ||
if [HPXML::ResidentialTypeSFD].include?(args[:geometry_unit_type]) | ||
# FIXME: Need to disaggregate detached and mobile home | ||
if [HPXML::ResidentialTypeSFD, HPXML::ResidentialTypeManufactured].include?(args[:geometry_unit_type]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably not worth changing this right now. I'm looking to incorporate these plug load equations into OpenStudio-HPXML, and will separate out SFD and MH there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
args[:misc_plug_loads_other_annual_kwh] = 863.26 + 219.26 * args[:geometry_unit_num_occupants] + 0.33 * args[:geometry_unit_cfa] # RECS 2020 | ||
elsif [HPXML::ResidentialTypeSFA].include?(args[:geometry_unit_type]) | ||
args[:misc_plug_loads_other_annual_kwh] = 654.92 + 206.52 * args[:geometry_unit_num_occupants] + 0.21 * args[:geometry_unit_cfa] # RECS 2020 | ||
|
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.
@joseph-robertson Do you know how to generate new numbers that disaggregate SFD and MH?
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 do not; I believe @afontani did this. But note that we very recently have been discussing modifying this approach with not only a replacement of AHS with RECS, but also some kind of random selection of CFAs within bins. We should probably discuss.
@rajeee
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.
In that case, we can probably keep this PR as is. It makes no substantive changes (no changes to simulation results); it only updates the building type in the HPXML and lays the groundwork for making additional MH-specific changes in the future.