What factors affect the angular velocity in a driving simulator?

  • Thread starter Thread starter wright593
  • Start date Start date
  • Tags Tags
    Simulator
Click For Summary

Homework Help Overview

The discussion revolves around developing a driving simulator, specifically focusing on the factors affecting angular velocity in a rear-wheel drive car model. The original poster is attempting to model the dynamics of the vehicle, including engine torque, wheel inertia, and the effects of forces such as drag and rolling resistance on the wheels' angular velocity.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster raises questions about the integration of angular acceleration to determine angular velocity, the role of vehicle drag, and the correct application of engine torque across the wheels. Participants suggest modifications to the calculations and clarify the distinction between torque and force in the context of wheel dynamics.

Discussion Status

Participants are actively engaging with the original poster's questions, offering insights and suggestions for adjustments to the calculations. There is an ongoing exploration of how different forces interact and affect the simulation, with no explicit consensus reached yet.

Contextual Notes

Participants note the importance of accurately modeling the forces acting on the wheels, including the distribution of mass and the effects of drag. The original poster is also considering how to balance constants in their calculations to achieve realistic results.

wright593
Messages
3
Reaction score
0
Hi

I am hoping somebody can help me as I'm going round in circles trying to develop a driving simulator for my games programming dissertation.

I am modeling a car which is rear-wheel driven. Each wheel is modeled individually and determines the force it applies to the chassis.

I use the engine RPM to obtain a maximum engine torque value which I then multiply by the gear ratio and throttle position (between 0 and 1) to come up with the overall engine torque which I supply to each of my 2 drive wheels.

Each wheel then divides the engine torque by its radius to come up with the traction force. Rolling resistance is then subtracted from this and the result is multiplied by the direction vector and returned.

The force returned from each wheel is then summed up and aerodynamic drag is subtracted. The acceleration (force / inertia at the wheels) is calculated and then integrated for velocity.

My questions are:

1) To calculate the engine RPM and slip ratio (for braking), I need to keep track of the angular velocity of the drive wheels. However, when I attempt to integrate angular acceleration (total torque / inertia of wheel) to get this then it grows to big very quickly. What limits angular velocity, does the vehicle drag affect the wheels velocity somehow?

2) The inertia of the car wheel is: 0.5 * mass * radius^2. Is mass just the mass of the wheel or is it the mass distribution of the car on the wheel?

3) Is the engine torque applied to both wheels, or is it divided by the wheels?

Any help would be greatly appreciated. Thanks in advance
 
Last edited:
Physics news on Phys.org
Well I think I followed what you were doing pretty well, and from my understanding there seems to a be a problem after you subtract the drag force. The equation is not:
acceleration = force / inertia
it should be:
angular acceleration = torque / inertia

Also you might want to do this separately for each tire, so I would divide the drag force by two and subtract that half from each tire individually. Then you would need to convert that force back into torque by multiplying by the radius, and then find angular acceleration by dividing this torque by the inertia if the individual wheel.

As for the 3 questions:
1) Perhaps the above modification will correct this. Also, how are you integrating? Do you actually have a formula at that point for the acceleration? Because, if this is a computer program, I would think you would most likely only have a value.
As for the drag affecting the velocity, I think you already accounted for drag the right way through force (which will then be translated to angular acceleration). Normally I would say that this drag which is applied to the entire body, should be applied at the axle?? But it works either way, if you make the modification I suggested above I think it would be the same thing.
Remember, the magnitude of the drag force depends on the current velocity of the overall vehicle.

2) It's just the mass of the wheel. However, when you find the rolling friction make sure to use the mass of the entire vehicle.

3) The torque should be divided evenly across both wheels.
 
Thanks for your quick reply Gear.0

You're right, I should be using torque instead of force. Now my integration looks like this for each wheel:

driveForce = engineTorqueOnWheel / wheelRadius

totalForce = driveforce - rollingResistence

totalTorque = totalForce * wheelRadius

angularAcceleration = totalTorque / wheelInertia;

wheelVelocity += acceleration * angularAcceleration ;

With the torque modification, the problem with the integration still occurs. When you say "I would divide the drag force by two and subtract that half from each tire individually" do you mean the rolling resistance should or that I should apply the vehicle drag to the wheel

Thanks again
 
I thought you also subtracted drag force? In your first post I think you said you did something like:

totalForce = driveForce - rollingResistance - dragForce
So I was just saying to divide the dragForce term between both wheels.

Also, I don't think you really mean "integration" the way it is used in mathematics. It sounds like you just mean "calculate".
The only thing I can think of that might make your angular velocity grow too quickly is that you are applying the engine effects incorrectly maybe.
I don't know how real engines work, but can it really just apply a constant acceleration indefinitely? Meaning if your wheel is already going 1,000,000 radians /s and the engine is still running, it will actually increase this value?
That seems unlikely to me...

You said you are using the RPM of the engine? Isn't that "rounds-per-minute"? which is a velocity, not an acceleration... So the engine would not be applying a torque once it is at full speed. It only applies a torque while the RPM is changing.
At least that is my best guess as to how it works, but I know for sure it can't apply a constant unending acceleration, otherwise you could have vehicles basically traveling as fast as you want them with no limit.
 
Once I have summed up the forces from each of the wheels I then calculate and subtract the overall drag before calculating the acceleration of the vehicle as a whole. I think I need to calculate a drag value for each of the wheels though.

That last line of calculations was supposed to read

wheelVelocity += acceleration * deltaTime;

Isn't it the same form of integration? It is essentially finding a point on a curve.

RPM is revolutions per minute, it is how fast the drive shaft is rotating. As RPM increases, so does torque but only to a point after which it drops. I lookup the torque value from a torque curve. I think acceleration is unending but the vehicle drag eventually gets so high that it prevents the velocity from getting any higher. At least that's how I understand it.
 
Well, perhaps you could just do a calculation to see what the angular velocity should be at equilibrium.

You might just be using constants that aren't very well balanced, and you may find that equilibrium is reached at a very high angular velocity.

In that case your code would be fine, you would just need to tweak the values you are using for things like, gravity, coefficient of friction, RPM, etc etc..
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 60 ·
3
Replies
60
Views
7K
  • · Replies 102 ·
4
Replies
102
Views
8K
  • · Replies 15 ·
Replies
15
Views
5K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 18 ·
Replies
18
Views
8K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 32 ·
2
Replies
32
Views
3K
  • · Replies 20 ·
Replies
20
Views
2K