From da2b1de497d5b00781b60a78ffbae563e9ce37e2 Mon Sep 17 00:00:00 2001 From: aspeake Date: Wed, 8 Jan 2025 18:01:25 -0700 Subject: [PATCH] New parameter to scale EV efficiency --- measures/ResStockArguments/measure.rb | 11 +++++++++++ measures/ResStockArguments/resources/constants.rb | 2 -- resources/options_lookup.tsv | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/measures/ResStockArguments/measure.rb b/measures/ResStockArguments/measure.rb index c9e1a57260..ee1f8d08a0 100644 --- a/measures/ResStockArguments/measure.rb +++ b/measures/ResStockArguments/measure.rb @@ -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 @@ -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 diff --git a/measures/ResStockArguments/resources/constants.rb b/measures/ResStockArguments/resources/constants.rb index 9086264607..ad0db16943 100644 --- a/measures/ResStockArguments/resources/constants.rb +++ b/measures/ResStockArguments/resources/constants.rb @@ -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', diff --git a/resources/options_lookup.tsv b/resources/options_lookup.tsv index eaa05cc42d..1ac21608da 100644 --- a/resources/options_lookup.tsv +++ b/resources/options_lookup.tsv @@ -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