dai_bach 
July 16, 2013 21:51 
Are you looking to model a freesurface flow?
Hi,
This reply may come far too late for the original post but I hope it may help other openfoam users. I've been trying to model certain classes of freesurface gravity currents for which the horizontal length scale (x and/or y) is much larger than the vertical scale (z). In this framework, vertical accelerations are small compared to gravity, and the conservation equations can be depth averaged which leads to what are often called the shallow water equations. For this reason, I started to investigate the shallowWaterFoam solver. However, as is described in
HTML Code:
http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2010/johanPilqvist/johanPilqvistReport.pdf
this solver has been written for atmospheric/oceanic flows where the depth (z) is large compared to the Earth's radius. Furthermore, the top and bottom stresses are assumed to be zero. Hence, as is, this solver cannot be used to treat the kind of problem that I've described above. However, with modifications to the equation set in shallowWaterFoam.C, the same files can be used to tackle these classes of problems via a finite volume method.
