I had fun trying to make this as intuitive as possible. I hope I've succeeded without doing the physics of the situation much injustice.
When a car is driving straight ahead, the plane in which the wheels are rotating is aligned with the direction of movement. Another way of saying this is that the rotation axis is perpendicular to the momentum vector $\vec{p}=m\vec{v}$ of the car. So the friction merely makes it harder for the car to move, which is part of the reason why you need to put your foot on the gas pedal to maintain a constant speed. At the same time, the friction is what allows you to maintain that constant speed because the rotating tires sort of grab onto the ground, which is the intuitive picture of friction. The tires grab the ground and pull/push it backwards beneath themselves, as you would do when dragging yourself over the floor (if it had handles to grab onto). Those grabbing and pulling/pushing forces are what keeps you going.
Things change when the wheels are turned. The plane in which they are rotating now is at an angle with the direction of motion. Alternatively but equivalently, we could say the rotation axis now makes an angle with the momentum vector of the car. To see how friction then makes the car turn, think again in terms of the wheels grabbing onto the ground. The fact that they now make an angle with the direction of motion, means the force the tires are exerting is also at an angle with the direction of motion - or equivalently, the momentum vector.
Now, a force is a change in momentum$^1$ and so (because the wheels are part of the rigid body that is a car) this force will change the direction of the car's momentum vector until it is aligned with the exerted force. Imagine dragging yourself forward on a straight line of handles on the floor and then suddenly grabbing hold of a handle slightly to one side instead of the one straight ahead. You'll steer yourself away from the original direction in which you were headed.
$^1$ Mathematically: $$\vec{F}=\frac{d\vec{p}}{dt}$$
There are several interesting things going on when a car turns.
First - let's take the simple diagram of two front wheels turned by 45°:
![enter image description here](https://i.stack.imgur.com/Gx8ts.png)
As you can see, the top tire would like the car to turn around the point $C_1$, but the bottom tire (at the same angle) wants to turn around $C_2$. This means that in reality both tires will experience some lateral slip. In ordinary cars, this problem is normally solved with something called the Ackermann steering geometry which makes the wheels turn by a slightly different amount so they both "want" the same center of rotation; this means that in reality the inner wheel is turned a bit more sharply than the outer wheel:
![enter image description here](https://i.stack.imgur.com/PWWdJ.png)
This is a bit of a simplification, but I hope you appreciate that wheels should not, in general, point in the same direction when you turn (in fact, for reasons of stability they don't point the same way when you drive straight, either - this is something called the toe and it needs adjusting from time to time when you get a wheel alignment done on your car).
Now let's look at the forces acting on the wheels.
To simplify things, I am going to draw just two wheels like you did in your simulation. We see that the inner wheel is making a tighter turn than the outer wheel; the net force on the car must be such that the center of mass $C$ makes a circle of radius $R$ about point $P$:
![enter image description here](https://i.stack.imgur.com/Ie6pS.png)
Now let us assume initially that the wheels only have lateral friction: that is, they roll perfectly and the force on them is perpendicular to the direction they are pointing. The resulting force must be centered on the center of mass, and point to the center of rotation. In other words - can we solve for $F_1$ and $F_2$? Extending the forces $F_1$ and $F_2$ along their direction, we get the following diagram and see there is a relationship between $F_1$ and $F_2$:
![enter image description here](https://i.stack.imgur.com/BhksV.png)
Now if the front wheel were to change the direction in which it is pointing, the amount and direction of force that it provides will change. But until the car changes its path, the force on the rear ($F_1$) does not change.
What you need to do is this.
By changing the angle of the front wheels and solving for the rotation in the steady state (basically, solving the parallelogram of forces I drew above) you will get a relationship between the forces $F_1$ and $F_2$ and the angle between the wheel and the velocity vector (in fact this is the same in magnitude as the angles $\theta_1$ and $\theta_2$ in my diagram).
When the front wheel changes direction, you are changing the angle between it and the velocity vector; but if you suddenly change the front wheel to pointing "straight", the rear wheel (still) finds itself at an angle to the velocity vector. This means that there will be a lateral force (which you can calculate from the relationship above), and a torque that will straighten out the car.
UPDATE a better way to look at the equation of motion is to work backwards: you know that the motion of the font of the car must follow the direction in which the wheel is (instantaneously) pointing; similarly, the back must follow the direction the rear wheel is pointing. This tells you what the position of the car will be after $\Delta t$, and from this you can compute the instantaneous acceleration and thus force / torque of the wheels. Such a model will give you the right motion as well as the correct forces.
I wrote a simple implementation of the motion (not the force calculation) in Python:
# simple car simulation
# one front wheel, one back wheel
import math
import numpy as np
from scipy import interpolate
import matplotlib.pyplot as plt
def sind(x):
return math.sin(x*math.pi/180.)
def cosd(x):
return math.cos(x*math.pi/180.)
def atan2d(y,x):
return 180/math.pi*math.atan2(y,x)
# dimensions:
length = 2 # axis to axis
# time when wheel is turned, and by how much:
timePoints = [0, 1, 5, 9, 12, 15]
thetaPoints = [0, 0, 15, 15, 0, 0]
theta = interpolate.interp1d(timePoints, thetaPoints)
# time step for simulation:
dt = 0.05
# show that it worked:
plt.figure()
t = np.arange(0, 15, dt)
plt.plot(t, theta(t))
plt.xlabel('time')
plt.ylabel('steering angle')
plt.title('steering angle vs time')
plt.show()
# position of rear wheel of car at time t:
x = 0
y = 0
# velocity of rear wheel
v = 5
# angle of car body
alpha = 0
plt.figure()
for T, th in enumerate(theta(t)):
dx = v * dt * cosd(alpha)
dy = v * dt * sind(alpha)
vf = v / cosd(th)
dxf = vf * dt * cosd(th+alpha)
dyf = vf * dt * sind(th+alpha)
yl = dyf - dy + length * sind(alpha)
xl = dxf - dx + length * cosd(alpha)
alpha = atan2d(yl, xl)
plt.plot(x,y,'.b')
if (T%50==0):
plt.plot([x, x+xl], [y,y+yl], 'r', linewidth=5)
x = x + dx
y = y + dy
plt.xlabel('x')
plt.ylabel('y')
plt.title('trajectory')
plt.axis('equal')
plt.show()
In this case the wheel is turned slowly - according to the following plot:
![enter image description here](https://i.stack.imgur.com/yEuTM.png)
and the trajectory is given by this plot (the red line corresponds to the direction that the car is pointing every 2.5 seconds - you can see that when the wheel is straight, the car follows the direction of the wheels):
![enter image description here](https://i.stack.imgur.com/sr8UU.png)
Best Answer
The arrow pointing north on each wheel is the normal force on the wheels caused by the ground, and due to Newton's Third Law of Motion, the south arrows on the ground are the equal but opposite forces.
The arrow pointing south on each wheel is the normal force due to the car's hub. Thus, the north arrows on the hub is the normal force due to the wheels (Third Law of Motion once again).
The west arrow on each wheel is the force of static friction caused by the ground and tire contact. The east arrow on the ground is the same force, opposite direction.
Lastly, the east arrow on each wheel represents the frictional force caused by the car brakes. Therefore the west arrow on the hub is the equal but opposite force.
Note that the brakes apply a translational force, and since the force of friction acts in an opposing direction at the point of contact between the tire and ground, the force of friction is what causes the rotational motion of the wheels. When the car is accelerating, the forces due to the brakes are replaced with the engine's applied force, i.e. thrust, which is also translational.