Saint Venant - 2D periodic Shallow Water and Navier-Stokes solver (Release 1.0)


The package SAINT-VENANT solves the Saint-Venant (Shallow Water) and Navier-Stokes equations in 2D periodic domains using a pseudo-spectral Fourier method. The presence of solid boundaries can be accounted for by using the volume penalization method. Apart from the simulation unit, the package also contains tools allowing for generation of MPEG movies and extensive analysis of obtained field using wavelet and Fourier techniques. The package is the result of a team work coordinated by Marie Farge:
  • Marie Farge developed the first version, written in Fortran77, from 1981 until 1987; detailed information about the content of the code is available in her 'These d'Etat', Universite Paris VI, 25 November 1987,
  • in 2000 Alexandre Azzalini converted the code into Fortran90 and added the penalization part in collaboration with Gaele Perret; detailed information about the implementation of penalization is available in his 'These de doctorat', Universite Paris VI, 17 December 2004,
  • in 2004 Bartek Protas added the incompressible case.


  • This is the first release of the package and we are aware that there may still be many imperfections, as certain elements of the package are incomplete, whereas other may have not been thoroughly tested. As time permits, we will work to expand the package and make it more reliable. We encourage people to use this code for research and / or study and look forward to receiving any comments, remarks, suggestions for improvement, etc.

    The package consists of the following three parts:
  • Tarball containing the complete distribution, including all source files, libraries, documentation, etc.,
  • Documentation,
  • Tarball containing a sample test case.
  • Here are some sample animations showing evolutions of
  • vorticity,
  • velocity modulus, and
  • pressure
  • fields obtained in a 1024x1024 simulation of decaying incompressible 2D turbulence.


    Disclaimer: All parts of the SAINT-VENANT package are free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The SAINT-VENANT package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.