I've noticed that there are plenty of people who knows a great deal about
car physics in this newsgroup. So, I will try my luck with a couple of
questions for you. Bear with me if my post gets a bit loooong, but please
read it through.
I'm trying to develop my own little car simulator and so far I have just
implemented acceleration forces and weight transfer, i.e. my car can't brake
or turn.
I have one problem with my simulation and I was hoping that someone would
perhaps give me some answers. When I try to run the simulation at higher
frequencies, e.g. 60Hz, my car doesn't get anywhere. The reason is that
after the first frame, my engine speed drops to about 26 rpm. I start with
an engine speed of 2000 rpm and after one frame I calculate the new engine
speed according to the speed the car has reached in this frame. Something
like this:
wheelAngularSpeed = carSpeed / wheelRadius
engineSpeed = 60 * 1/2pi * wheelAngularSpeed * totalRatio
Is this a correct calculation do you think?
The rev drop decreases the acceleration force too much to overcome the
rolling resistance, which is about 130N. Maybe this resistance is too high?
I used Zuvich's approximation formula RX = 0.01(1 + V/100) * W, where V is
the speed in mph and W is the weight of the car in Newton. I have put a
restriction on the acceleration force so that it doesn't decrease below 0.
Otherwise, the car would go backwards in this simulation. Now it just goes
forward with the frightening speed of 0.23 km/h...
At lower frequencies, e.g. 10Hz, this is not a problem, since the linear
interpolation makes the speed rise to 0.78 km/h at the first frame, which
means that the rev drops down to 90 rpm. This makes a acceleration force of
145N which overcomes the rolling resistance force of 130N.
The following is some prints from my simulation at 60Hz:
Ntf is the combined gear and final ratio.
ntf is the total efficiency.
r is the wheel radius.
RX is the rolling resistance.
DA is the drag.
Tractive force is torque * Ntf * ntf / r
Facc is the acceleration force = torque * Ntf * ntf / r - RX - DA
0 km/h, 2000 rpm at 0 seconds
Torque at 2000 rpm: 163
Ntf: 12.8142
ntf: 0.7
r: 0.293
RX: 0
DA: 0
Tractive force: 4990.1
Facc: 4990.1
0.226823 km/h, 26.3136 rpm at 0.0166667 seconds
Torque at 26.3136 rpm: 2.63136
Ntf: 12.8142
ntf: 0.7
r: 0.293
RX: 129.807
DA: 0.00151679
Tractive force: 80.5567
Facc: 0
0.226823 km/h, 26.3136 rpm at 0.0333333 seconds
Torque at 26.3136 rpm: 2.63136
Ntf: 12.8142
ntf: 0.7
r: 0.293
RX: 129.807
DA: 0.00151679
Tractive force: 80.5567
Facc: 0
I hope someone could find the time to read this loooong post through and
answer some of my questions. If I was unclear in any part, please ask me to
explain it better.
Thanks in advance,
Andreas Ekstrand