2
$\begingroup$

For fun, I'm trying to play with really simple simulation of a Tesla Model 3. Modeling its acceleration and such. But I've hit a roadblock early on despite validating my math several times.

What I want to do is find the car's velocity at a time $t$ given the motor's torque, wheel radius, and mass.

When I look up values for this car, here's what I get:

  • Peak torque: $\tau = 639\ \text{N}\cdot\text{m}$
  • Mass: $m = 1800\ \text{kg}$
  • Wheel radius: $R = 0.2413\ \text{m}$

Here's how I'm calculating acceleration:

$$ F = \frac{\tau}{R} \\ a = F/m \\ a = \frac{\tau}{Rm} $$

Considering that I'm modeling torque as constant, acceleration will also be constant, which means:

$$ v(t) = at = \frac{\tau}{Rm}t $$

However, when I plug in $t = 3.2$ (the Model 3 accelerates from 0-60mph in 3.2 seconds), the velocity is only $\text{4.7 m/s}$. It should be closer to $\text{30 m/s}$. Where is this discrepancy coming from? Are the official numbers I found simply wrong?

$\endgroup$
2
  • 1
    $\begingroup$ Assuming a constant acceleration, you don't need to use code. The velocity would just be $v(t)=\tau t/mR\approx (1.5\,\mathrm{m/s^2})\cdot t$, so your results make sense with what you are putting in. But you should really edit the question to explicitly focus on the physics concepts you are confused about. Checking work/calculations is off topic here. $\endgroup$ Commented Jun 3, 2021 at 1:06
  • $\begingroup$ Thanks. I edited the question to remove the code entirely—the confusion lies in how when I put in the numbers I find online, the velocity of the car at a given time seems way too slow. $\endgroup$ Commented Jun 3, 2021 at 1:30

1 Answer 1

3
$\begingroup$

What you need is the whole torque curve (torque vs. speed of the motor).

tqcurve

These are quite complex, but there are distinct stages. First, there is a constant torque, then at about 45 mph the motor transitions to constant power, and over 75 mph to some other form of less power.

To calculate acceleration you have to know the power $P$ produced at speed $v$ and then calculate (in compatible units)

$$ a = \frac{P}{m v} $$

(The above ignores air resistance for now)

Next you can calculate the time to reach a certain speed with $$t = \int \frac{1}{a}\,{\rm d}v$$

or you can calculate the distance needed to reach a certain speed with $$ x = \int \frac{v}{a}\,{\rm d}v$$

  1. Constant Torque - The power at every speed $v$ is a straight line with a general equation of $P = c_1 v$. Specifically at speed $v_1$ the power is $P_1$ so $c_1 = P_1/v_1$. The solution is trivial with $$\begin{aligned} t & = \frac{m v}{c_1} & x & = \frac{m v^2}{2 c_1} \end{aligned}$$ this carries up to speed $v_1$ at which point $t_1 = \frac{m v_1^2}{P_1}$ and $x_1 = \frac{m v_1^3}{2 P_1}$.

  2. Constant Power - The power at every speed $v$ is constant $P = P_1$. The solution now is $$\begin{aligned} t & = t_1 + \frac{m (v^2-v_1^2)}{2 P_1} & x & = x_1 + \frac{m (v^3-v_1^3)}{3 P_1} \end{aligned}$$ this carries up to speed $v_2$ at which point $t_2 = \frac{m (v_2^2+v_1^2)}{2 P_1}$ and $x_2 = \frac{m ( v_1^3+2 v_2^3)}{6 P_1}$.

  3. Diminishing Power - Since we don't know the form of the curve here, and at these speeds aerodynamics become dominant, the analysis stops here.


Appendix

To help in unit conversions consider the following calculation for acceleration from power and speed

$$\frac{270\,\mathrm{hp}}{4400\,\mathrm{lbm}\cdot 50\,\mathrm{mph}}=4.513\,\mathrm{m/s^2}$$

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.