Using Model-Based Design To Build The Tesla Roadster
Using Model-Based Design To Build The Tesla Roadster
Tesla Roadster
By Dr. Chris Gadda, Tesla Motors and Dr. Andrew Simpson, Tesla Motors
Large automakers invest billions of dollars in the design and development of a new vehicle. At
Tesla, we developed the 2008 Tesla Roadster, the world’s first 100-percent electric production
sports car, on a budget of just $145 million. Because our budget is tiny in comparison to that of
traditional car companies, we were compelled to optimize engineering resources and make smart
design decisions.
To help meet these objectives, we used MathWorks tools for Model-Based Design to model the
entire vehicle and its major subsystems, run detailed simulations, analyze performance, and
evaluate design trade-offs.
With the Roadster, we did not need to make this trade-off. More than 85 percent of the energy in
the batteries is used to propel the vehicle, and when we make the vehicle more powerful, we are
also making it more efficient. Our design goals focused on making a car that was fast, safe, and
energy-efficient. The Roadster can accelerate from 0 to 60 mph in under four seconds, but it is
also environmentally friendly: it has a range of 244 miles per charge on EPA combined cycle,
and recharge electricity consumption of only 28 kWh per 100 miles of driving.
We combined these models into a full-system model of the entire car, which we used to simulate
the overall vehicle performance, including its potential speed and range, how much heat would
be generated from individual components, and how much energy was lost to tires, wind
resistance, and other factors. By comparing simulated results against the measured results from
road tests of prototype vehicles, we validated the model and modified it to improve its accuracy.
We have since replaced the MATLAB subsystem models with equivalent Simulink models. At
the same time, we refined the simulation architecture so that we could more easily separate
design from development. The top-level Simulink model references each component as an
independent Simulink model file, enabling us to apply version control to each component.
Engineers can then work on different components in parallel. For example, one engineer can edit
the model of the battery while another works on the transmission.
We incorporate the results from the detailed simulation into a lookup table, which we can plug in
as a higher-level model for longer vehicle-level simulations. An engineer designing an inverter
can run a detailed dynamic simulation in the complete vehicle while another engineer uses a less
detailed model of the inverter to predict the vehicle’s maximum range. This approach helps us
acquire the information we need to make design decisions much faster.
We use our parametric vehicle model to simulate vehicles that are in production, vehicles about
to go into production, and even future designs. We do this by capturing all the characteristics of
the car in a standardized inputs template that we modify from simulation to simulation. This
approach is particularly efficient for component sizing. For example, to simulate different
transmission configurations, instead of substituting transmission blocks or changing the Simulink
model we simply define the necessary parameters as input vectors. We then use a MATLAB
script to invoke multiple simulations that sweep through the design options.
Recently, Tesla began an initiative to improve the Roadster’s total range per change. We had
some ideas on how to improve the system but lacked real evidence that our ideas would work.
Because we had a well-calibrated Simulink model of the vehicle and we trusted the simulation
results it produced, we could quantify the effect of design changes with actual data.
This effort would have taken years and been prohibitively expensive without modeling and
simulation. Each physical prototype takes six months or a year to produce. We could not afford
to iterate through hundreds of gear ratios in hardware. The enhanced powertrain is now working
as designed in prototype vehicles.