Skip to content

Commit

Permalink
fix simdrivelabel discrepancy for EVs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Carow authored and Kyle Carow committed Dec 6, 2023
1 parent 8ab54b7 commit 95fb1ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/fastsim-core/src/simdrivelabel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ pub fn get_label_fe(
out.adj_comb_kwh_per_mi =
0.55 * out.adj_udds_kwh_per_mi + 0.45 * out.adj_hwy_kwh_per_mi;

out.adj_udds_kwh_per_mi *= CHG_EFF;
out.adj_hwy_kwh_per_mi *= CHG_EFF;
out.adj_comb_kwh_per_mi *= CHG_EFF;
out.adj_udds_ess_kwh_per_mi = out.adj_udds_kwh_per_mi * CHG_EFF;
out.adj_hwy_ess_kwh_per_mi = out.adj_hwy_kwh_per_mi * CHG_EFF;
out.adj_comb_ess_kwh_per_mi = out.adj_comb_kwh_per_mi * CHG_EFF;

// range for combined city/highway
out.net_range_miles = veh.ess_max_kwh / out.adj_comb_ess_kwh_per_mi;
Expand Down

0 comments on commit 95fb1ac

Please sign in to comment.