Optimal Velocity (OV) model is a traffic flow model proposed by Bando et al.[1,2]. The governing equation is as follows,
dxi/dt = vi dvi/dt = a [V(xi+1-xi)-vi],with positions xi and velocities vi of cars. The parameter "a" is sensitivity denoting the speed of the response. This model involves the phase transition from the uniform flow phase to the traffic jam.
The function V(b) denotes the optimal velocity determined by the intervehicle distance. Here, we take the following tanh type function
V(b) = tanh(b-2) + tanh(2)as V(x). The function form is shown in the following figure.
This OV model describes the following features,
In this model, there are two free parameters,
the density "L/N" and the sensitivity "a".
The phase diagram obtained from the linear stability analysis
is shown in the following diagram.
The uniform flow becomes unstable when a < 2 V'(L/N).
There are 20 cars (the red circles) running on the circuit with the size L=40. The green circles denote the distance between two cars (dx = xi+1-xi) and velocities (vi) for each cars.
While the cars are running uniformly at the beginning of the simulation, some clusters will be formed, and finally, the system will have traffic jam. Click the flash to restart the simulator.
Here is the sample code to simulate OV model using the 4th order Runge-Kutta scheme. There are 10 cars in the system with size L=20. The sensitivity a is set to be 1.
Source Files (HTML)
% tar xvzf ov.tar.gz % make % ./ov > result.datThe executable file will put the spatiotemporal diagram. You can see the diagram using gnuplot or other plotters.
% gnuplot gnuplot> p "result.dat" 0 0
Java Applet is available.
At the beginning, the cars run uniformly. However, the uniform flow becomes unstable and finally the traffic jam occurs.