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).
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)
ov.tar.gz (1.9KB)
Usage:
% 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
At the beginning, the cars run uniformly.
However, the uniform flow becomes unstable and
finally the traffic jam occurs.