@@ -765,7 +765,6 @@ def get_outputs(runner, args)
765
765
# Remove EV battery discharging
766
766
@model . getElectricLoadCenterStorageLiIonNMCBatterys . each do |elcs |
767
767
next unless elcs . additionalProperties . getFeatureAsString ( 'is_ev' )
768
-
769
768
fuel . annual_output += get_report_variable_data_annual ( [ elcs . name . to_s . upcase ] , [ 'Electric Storage Discharge Energy' ] ) if fuel_type == FT ::Elec
770
769
end
771
770
@@ -778,6 +777,13 @@ def get_outputs(runner, args)
778
777
# We add Electric Storage onto the timeseries Electricity fuel meter
779
778
elec_storage_timeseries_output = get_report_meter_data_timeseries ( [ 'ElectricStorage:ElectricityProduced' ] , UnitConversions . convert ( 1.0 , 'J' , fuel . timeseries_units ) , 0 , args [ :timeseries_frequency ] )
780
779
fuel . timeseries_output = fuel . timeseries_output . zip ( elec_storage_timeseries_output ) . map { |x , y | x - y }
780
+
781
+ # Remove timeseries EV battery discharging
782
+ @model . getElectricLoadCenterStorageLiIonNMCBatterys . each do |elcs |
783
+ next unless elcs . additionalProperties . getFeatureAsString ( 'is_ev' )
784
+ ev_discharge_timeseries_output = get_report_variable_data_timeseries ( [ elcs . name . to_s . upcase ] , [ 'Electric Storage Discharge Energy' ] , UnitConversions . convert ( 1.0 , 'J' , fuel . timeseries_units ) , 0 , args [ :timeseries_frequency ] )
785
+ fuel . timeseries_output = fuel . timeseries_output . zip ( ev_discharge_timeseries_output ) . map { |x , y | x + y }
786
+ end
781
787
end
782
788
783
789
# Peak Electricity Consumption
@@ -1480,7 +1486,8 @@ def check_for_errors(runner, outputs)
1480
1486
@fuels => 'Fuel' ,
1481
1487
@emissions => 'Emissions' ,
1482
1488
@loads => 'Load' ,
1483
- @component_loads => 'Component Load' } . each do |outputs , output_type |
1489
+ @component_loads => 'Component Load' ,
1490
+ @vehicles => 'Vehicles' } . each do |outputs , output_type |
1484
1491
outputs . each do |key , obj |
1485
1492
next if obj . timeseries_output . empty?
1486
1493
@@ -2816,7 +2823,7 @@ def get_timeseries_units_from_fuel_type(fuel_type)
2816
2823
@vehicles [ VT ::VehicleDischarging ] = Vehicles . new ( variables : get_object_outputs ( VT , VT ::VehicleDischarging ) )
2817
2824
@vehicles . each do |vehicles_type , vehicle_data |
2818
2825
vehicle_data . name = "Vehicle: #{ vehicles_type } "
2819
- vehicle_data . annual_units = 'Mbtu '
2826
+ vehicle_data . annual_units = 'MBtu '
2820
2827
vehicle_data . timeseries_units = 'kWh'
2821
2828
end
2822
2829
0 commit comments