-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add misc appliances to panel load calc #1323
Changes from all commits
e13ed1f
1cbe4a5
9d7639c
7d0b6ee
95d4103
4d17bb4
a985e00
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 |
---|---|---|
|
@@ -860,14 +860,45 @@ def run(model, runner, user_arguments) | |
args[:electric_panel_breaker_spaces_type] = 'headroom' | ||
args[:electric_panel_breaker_spaces] = breaker_spaces_headroom | ||
|
||
# FIXME | ||
# Assign miscellaneous permanently connected appliance loads | ||
if args[:electric_panel_load_other_power].nil? | ||
args[:electric_panel_load_other_power] = 0 | ||
end | ||
microwave_power = [0, 100, 200, 300].sample(1, random: Random.new(args[:building_id])) | ||
garbage_disposal_power = [0, 200, 400, 600].sample(1, random: Random.new(args[:building_id])) | ||
args[:electric_panel_load_other_power] += microwave_power[0] | ||
args[:electric_panel_load_other_power] += garbage_disposal_power[0] | ||
# Assume all homes have a microwave | ||
if args[:geometry_unit_num_bedrooms] <= 2 | ||
microwave_power = 900 # W, small, <= 0.9 cu ft, 1-2 ppl | ||
elsif args[:geometry_unit_num_bedrooms] <= 4 | ||
microwave_power = 1100 # W, medium, <= 1.6 cu ft, 3-4 ppl | ||
else | ||
microwave_power = 1250 # W, large, 1.7-2.2 cu ft, 5+ ppl | ||
end | ||
|
||
garbage_disposal_ownership = 0.52 # AHS 2013 | ||
if Random.new(args[:building_id]).rand > garbage_disposal_ownership | ||
garbage_disposal_power = 0 | ||
else | ||
# Power estimated from avg load amp not HP rating, from InSinkErators | ||
if args[:geometry_unit_num_bedrooms] <= 1 | ||
garbage_disposal_power = 672 # W, 1/3 HP, avg load 5.6A, 1-2 ppl | ||
elsif args[:geometry_unit_num_bedrooms] <= 3 | ||
garbage_disposal_power = 756 # W, 1/2 HP, avg load 6.3A, 2-4 ppl | ||
elsif args[:geometry_unit_num_bedrooms] <= 4 | ||
garbage_disposal_power = 1140 # W, 3/4 HP, avg load 9.5A, 3-5 ppl | ||
else | ||
garbage_disposal_power = 1224 # W, 1 HP, avg load 10.2A, 4+ ppl | ||
end | ||
end | ||
|
||
if args[:geometry_garage_width] == 0 | ||
garage_door_power = 0 | ||
else | ||
# Assume one automatic door opener if has garage, regardless of no. garages | ||
garage_door_power = 373 # W, 1/2 HP (1 mech HP = 745.7 W) | ||
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. I had this built into OS-HPXML defaults: https://github.com/NREL/OpenStudio-HPXML/blob/electric_panel/HPXMLtoOpenStudio/resources/defaults.rb#L6128-L6130 But maybe it makes sense to do the assignment here instead. 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. Yeah, this is more of a ResStock assumption |
||
end | ||
|
||
args[:electric_panel_load_other_power] += microwave_power | ||
args[:electric_panel_load_other_power] += garbage_disposal_power | ||
args[:electric_panel_load_other_power] += garage_door_power | ||
|
||
# Register values to runner | ||
args.each do |arg_name, arg_value| | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
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, this has been updated to vary based on bedrooms instead of occupants.