Skip to content

Commit

Permalink
New parameter to scale EV efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeake committed Jan 9, 2025
1 parent 70197bf commit da2b1de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions measures/ResStockArguments/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,12 @@ def arguments(model)
arg.setUnits('hours')
args << arg

arg = OpenStudio::Measure::OSArgument::makeDoubleArgument('ev_efficiency_percent_increase', false)
arg.setDisplayName('Electric Vehicle: Efficiency Improvement')
arg.setDescription('The increase (%) in efficiency of the electric vehicle.')
arg.setUnits('hours')
args << arg

return args
end

Expand Down Expand Up @@ -857,6 +863,11 @@ def run(model, runner, user_arguments)
args[:ev_hours_per_week] = (hours_per_year / UnitConversions.convert(1, 'yr', 'day')) * 7
end

if not args[:ev_efficiency_percent_increase].nil?
# Adjust efficiency (in kWh/mile) to reflect a percentage improvement in efficiency.
args[:ev_energy_efficiency] = args[:ev_energy_efficiency] / (1 + args[:ev_efficiency_percent_increase])
end

args.each do |arg_name, arg_value|
if args_to_delete.include?(arg_name) || (arg_value == Constants::Auto)
arg_value = '' # don't assign these to BuildResidentialHPXML or BuildResidentialScheduleFile
Expand Down
2 changes: 0 additions & 2 deletions measures/ResStockArguments/resources/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ module Constants
'emissions_wood_values',
'emissions_coal_values',
'emissions_wood_pellets_values',
'ev_battery_capacity',
'ev_battery_discharge_power',
'ev_hours_per_week',
'misc_plug_loads_vehicle_2_usage_multiplier',
'misc_plug_loads_vehicle_annual_kwh',
Expand Down
1 change: 1 addition & 0 deletions resources/options_lookup.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -9287,6 +9287,7 @@ Electric Vehicle Outlet Access Yes
Electric Vehicle Ownership No ResStockArguments ev_battery_present=false
Electric Vehicle Ownership Void
Electric Vehicle Ownership Yes ResStockArguments ev_battery_present=true
Electric Vehicle Efficiency Increase 15% ResStockArguments ev_efficiency_percent_increase=0.15
Energystar Climate Zone 2023 North-Central
Energystar Climate Zone 2023 Northern
Energystar Climate Zone 2023 South-Central
Expand Down

0 comments on commit da2b1de

Please sign in to comment.