Skip to content

Improve 0-60 mph Acceleration Validation#256

Open
jakeholden wants to merge 8 commits into
fastsim-3from
f3/fix-420/zerotosixty
Open

Improve 0-60 mph Acceleration Validation#256
jakeholden wants to merge 8 commits into
fastsim-3from
f3/fix-420/zerotosixty

Conversation

@jakeholden
Copy link
Copy Markdown
Collaborator

Summary

Systematic validation of FASTSim-3's 0-60 mph acceleration predictions against published test data for 39 US-market vehicles, with corrections to vehicle model parameters and traction-limiting logic.

Changes

Code Changes

fastsim-core/src/simdrive/mod.rs — Added traction-limited speed check to set_ach_speed(). Previously only power was checked to determine if the cycle was met; now the achieved speed is also bounded by speed_trac_fwd_max (tire grip limit). This prevents vehicles from exceeding physically achievable acceleration based on available traction force.

fastsim-core/src/vehicle/chassis.rs — Updated TryFrom (fastsim-2 → fastsim-3 conversion) to correctly infer drive_type and drive_axle_weight_frac for AWD vehicles.

Vehicle YAML Corrections

Vehicle Change Rationale
2022 Ford F-150 Lightning 4WD drive_type: AWD, drive_axle_weight_frac: 1.0 Dual-motor AWD; was incorrectly RWD
2022 Volvo XC40 Recharge twin drive_type: AWD, drive_axle_weight_frac: 1.0 Dual-motor AWD
2023 Volvo C40 Recharge drive_type: AWD, drive_axle_weight_frac: 1.0 Dual-motor AWD
2023 Polestar 2 LR Dual motor drive_type: AWD, drive_axle_weight_frac: 1.0 Dual-motor AWD
2022 Toyota RAV4 Hybrid LE drive_type: AWD, drive_axle_weight_frac: 1.0` Dual-motor AWD
2016 FORD C-MAX HEV Increased battery capacity, adjusted speed_soc_fc_on_buffer Fixed fc_on_soc > max_soc parameterization bug that prevented simulation from running

Benchmarking Infrastructure

benchmarks/bench_accel_0_to_60.py (new) — Comprehensive acceleration benchmark script covering 39 vehicles across all powertrain types (Conv, HEV, PHEV, BEV) with:

  • Published 0-60 times matched to closest production trim
  • Per-powertrain summary statistics (mean Δ, median Δ, MAE, mean Δ%)
  • Scatter plot, per-vehicle bar chart, and powertrain summary plots

benchmarks/bench_fe_comparison.py (new) — Fuel economy regression script to verify acceleration-related changes do not degrade EPA label fuel economy predictions.

Results

image image
Powertrain N Mean Δ (s) MAE (s) Mean Δ%
Conv 12 +0.57 0.73 +7.6%
HEV 7 −0.88 1.22 −7.7%
PHEV 4 −0.58 0.68 −5.9%
BEV 14 +0.07 0.42 +0.1%
ALL 37 −0.02 0.70 +0.4%

Fuel economy impact: ~0.0% change for all vehicles except RAV4 Hybrid (+2.6%) and Audi A3 (−2.4%), both due to corrected drive type parameters.

Known Remaining Issues

  • HEV/PHEV fast bias (−6 to −8%): Power-split hybrid systems allow unrestricted summation of engine + motor peak power; real eCVT systems have ~15% power recirculation loss not yet modeled. Recommend future pwr_out_max_combined_watts parameter.
  • 2016 BMW i3 REx: Cannot complete HWFET in charge-sustaining mode (25 kW range extender insufficient at highway speed) — requires EREV-specific label test path.
  • 2016 FORD C-MAX HEV: Parameterization remains fragile; small SOC buffer margin on HWFET.

jakeholden and others added 8 commits May 19, 2026 14:37
… speed loss during sustained trace-miss events by only applying a minimal epsilon reduction when the solved speed matches the previous step, instead of flooring every step. Updates acceleration test tolerances to reflect improved trace accuracy and faster acceleration behavior.
Introduces a traction-limited speed ceiling, clamping achievable speed based on tire grip rather than power output (after solver). This avoids unrealistic acceleration at low speeds caused by applying traction as a power limit, especially for FWD/RWD vehicles with dynamic weight transfer.

Adds a benchmark script to compare simulated 0-60 mph times with published values, supporting validation and regression testing.

Improves chassis parameter handling and serialization defaults for better robustness and data compatibility.
Introduces a benchmarking script to analyze the impact of fuel converter ramp lag and wheel friction coefficient on 0-60 mph acceleration times for reference vehicles. Enables systematic exploration of key parameters to support model calibration and validation efforts.
…AWD where necessary and drive axle weight frac = 1.0 if AWD
Reduces maximum power output parameters by 15% for several vehicle configurations to reflect updated performance assumptions or limitations. Also updates .gitignore to exclude workspace, image, and documentation files.
Introduces a benchmarking tool for comparing fuel economy across vehicle models and code revisions, enabling easier impact assessment of model changes.

Updates multiple vehicle configurations to restore undereated power figures, revise chassis parameters, and correct drive types for improved modeling accuracy.

Refreshes lock file to include new dependencies and updates package versions for compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants