Top ten iPhone apps for people who could build iPhone apps (but who choose to make web things instead) (warpedvisions.org)
Archive for December, 2009
[Link] Top ten iPhone apps for people who could build iPhone apps (but who choose to make web things instead)
December 24th, 2009[Link] Christmas Plans
December 22nd, 2009[Link] Backup Ubuntu using rdiff-backup|Ubuntu Geek
December 19th, 2009[Link] Website mockups and jQuery: disable anchors by default
December 19th, 2009Poster Presentation on Traffic Flow
December 17th, 2009Lighthill-Whitham Model
The continuity equation for traffic flow is defined as:

where
is the car density,
is the car speed, and
is the traffic flow (
). This equation corresponds to a one dimensional fluid-dynamic model where no vehicles will enter or leave the traffic flow except at the boundary.
Let us assume that the car’s velocity depends only on the density (
). The simplest model
would be to consider the following linear relationship:
where
is the traffic density in which you have bumper-to-bumper traffic and
is the maximum speed that a vehicle can travel. This usually corresponds to the speed limit.
You will notice that when there are no vehicles on the road an individual vehicle would travel at
. Likewise, when you have bumper-to-bumper traffic, the vehicles on the road won’t be moving.
The relationship between density and traffic flow can be shown by the Fundamental Diagram of Road Traffic which has a maximum flow at
.

If we put our velocity model into the continuity equation, we get the following:
Shock Waves
The Lighthill-Whitham Model is a non-linear wave equation. This equation can be solved using the method of characteristic lines. One of the defining features of this equation is the creation of expansion and shock waves. Shock waves are formed when characteristic lines intersect which causes
to become discontinuous. It can be shown that shock waves will have speed
where
and
is the density when approaching from the right and left of the discontinuity.
Dealing with shock waves numerically has serious difficulties. To avoid shock waves, we can add a small diffusive term to the LW Model. If we define the traffic flow as
we can get a variation of burgers equation
Fourier-Galerkin Spectral Method
The diffusive LW model can be solved using a Fourier-Galerkin Spectral Method. If we assume the problem has periodic boundary conditions and
, we can expand
using
as a basis. This will lead us to the following system of equations

where
After a Traffic Light Turns Green
Let’s analyze the behavior of traffic after a light turns green. We can do this by using the following initial conditions:
If we use the Fourier-Galerkin Spectral Method, we get the following results

when
,
,
, and
. You will notice the Gibbs phenomenon in our initial conditions. This is because a step-function can’t be exactly represented by our Fourier basis functions. However, the diffusive term will quickly damp any highly oscillating term.
If we look at the exact solution to this problem for the Non-Diffusive LW Model, we will get an expansion wave. The length of expansion can be shown to be
.
If we look at the Diffusive LW Model, we can see that the expansion length is dependant on
.

After a Traffic Light Turns Red
Let’s analyze the behavior of traffic after a light turns red. We can do this by using the following initial conditions:

If we use the Fourier-Galerkin Spectral Method, we get the following results

when
,
,
,
, and
. After the Gibbs phenomenon dies down from our diffusive term, you will notice a shock that moves at speed
.
If we look at the exact solution to this problem for the Non-Diffusive LW Model, we will get a shock that moves at speed

If we use the same parameters as the above numerics, we get a shock speed of
.
If we look at the Diffusive LW Model, we can see that the shock speed doesn’t vary much for different values of
.

References:
[2] Gottlieb, D. & Orszag, S.A. (1977). Numerical analysis of spectral methods: Theory and Applications. Montpelier,Vermont: Capital City Press
[3] Haberman, R. (1977). Mathematical Models: Mechanical Vibrations, Population Dynamics, and Traffic Flow. Englewood Cliffs, NJ: Prentice-Hall
[4] Helbing, D. (2001). Traffic and related self-driven many-particle systems. Rev. Mod. Phys. 73 (4), 1067–1141.

