SCAPE
SCAPE (inSilico Car Analysis/Performance Enhancer) simulates the Elsie MacGill EV Team's car, so we could test ideas before we had a car to test them on.
- Result
- 96.4% agreement with track telemetry
- Error
- Cut from about 10% to about 4% in version 2.0
- Models
- Friction, battery depletion, drivetrain efficiency, mass
- Role
- Led SCAPE development
- Links
- Team report
Why we built it
The team races in the Waterloo Electric Vehicle Challenge, where the goal is to complete the most laps in about an hour. In our first year we had little time with a physical car, so we built digital tools to pull out the numbers we needed. SCAPE handled the drivetrain and energy side. A sister project by my teammates, ELEVATE, modelled the driver and course in Unreal.
Version 1.0
SCAPE 1.0 predicted the car's performance from dynamics and energetics: energy lost to friction as a function of speed, how mass increases rolling friction, how far the car travels at a given speed, and the speed the battery can sustain once losses are counted. It stepped the car's kinetic energy forward, with the motor's work minus friction's work equal to the change in energy.
It was a solid framework, but much of its testing data was incomplete, so its coefficients were not tuned.
- Battery and motor
- Energy balance
- Speed and distance
- Laps
Version 2.0
In year two we tested the real car with data collection and multimeters for voltage and current. Powered tests showed that 1.0 underestimated friction at higher speeds. By correlating motor power, acceleration, and velocity, we refit the friction model to F = 15.2v² + 0.352mv + 0.87 N. The constant term captures static friction, which matters at low speed.
We also added a full motor model built on power equals torque times angular speed, including how the motor's speed drops under load. With those changes, prediction error fell from about 10% to about 4%, and SCAPE's speed and energy predictions reached 96.4% agreement with telemetry logged on track.