Skip to content
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

Merged
merged 7 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 36 additions & 5 deletions measures/ResStockArguments/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor Author

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.

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)
Copy link
Contributor

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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|
Expand Down
684 changes: 342 additions & 342 deletions test/base_results/baseline/annual/results_output.csv

Large diffs are not rendered by default.

272 changes: 136 additions & 136 deletions test/base_results/upgrades/annual/results_output.csv

Large diffs are not rendered by default.