Gerris (software) explained

Gerris
Discontinued:yes
Replaced By:Basilisk
Genre:CFD

Gerris is computer software in the field of computational fluid dynamics (CFD). Gerris was released as free and open-source software, subject to the requirements of the GNU General Public License (GPL), version 2 or any later.

Scope

Gerris solves the Navier–Stokes equations in 2 or 3 dimensions, allowing to model industrial fluids (aerodynamics, internal flows, etc.) or for instance, the mechanics of droplets, thanks to an accurate formulation of multiphase flows (including surface tension). Actually, the latter field of study is the reason why the software shares the same name as the insect genus.

Gerris also provides features relevant to geophysical flows:

  1. ocean tide[1]
  2. tsunamis[2] [3]
  3. river flow[4]
  4. eddies in the ocean[5]
  5. sea state (surface waves)[6] [7]

Flow types #1 to #3 were studied using the shallow-water solver included in Gerris, case #4 brings in the primitives equations and application #5 relies on the spectral equations for generation/propagation/dissipation of swell (and/or wind sea): for this purpose Gerris makes use of the source terms from WaveWatchIII.[8]

Lastly, one can note that the (non-hydrostatic) Navier–Stokes solver was also used in the ocean to study:

On the contrary Gerris does not allow the modeling of compressible fluids (supersonic flows).

Numerical scheme

Several methods can be used to provide a numerical solution to partial differential equations:

Gerris belongs to the finite volumes family of CFD models.

Type of grid

Most models use meshes which are either structured (Cartesian or curvilinear grids) or unstructured (triangular, tetrahedral, etc.). Gerris is quite different on this respect: it implements a deal between structured and unstructured meshes by using a tree data structure, allowing to refine locally (and dynamically) the (finite-volume) description of the pressure and velocity fields. Indeed, the grid evolves in the course of a given simulation owing to criteria defined by the user (e.g. dynamic refinement of the grid in the vicinity of sharp gradients).

Turbulent closure

Gerris mainly aims at DNS; the range of Reynolds available to the user thus depends on the computing power they can afford (although the auto-adaptive mesh allows one to focus the computing resources on the coherent structures). According to the Gerris FAQ[12] the implementation of turbulence models will focus on the LES family rather than RANS approaches.

Programming language, library dependencies, included tools

Gerris is developed in C using the libraries Glib (object orientation, dynamic loading of modules, etc.) and GTS.[13] The latter brings in facilities to perform geometric computations such as triangulation of solid surfaces and their intersection with fluid cells. Moreover Gerris is fully compliant with MPI parallelisation (including dynamic load balancing).

Gerris does not need a meshing tool since the local (and time dependent) refinement of the grid is on charge of the solver itself. As far as solid surfaces are concerned, several input formats are recognized:

Among the various ways to output Gerris results, let us just mention here:

Licence

CFD software, as any software, can be developed in various "realms":

As far as CFD is concerned, a thorough discussion of these software development paths can be found in the statement by Zaleski.[14]

Gerris was distributed as free and open-source software right from the onset of the project.[15] [16]

Continued development

Following a redesign of the software organization, Gerris became Basilisk,[17] which allows one to develop its own solver (not necessarily in fluid mechanics) using various data structures (including of course the quadtree/octree) and optimized operators for iteration, derivation, etc. Solvers are written in C, more specifically the Basilisk C. However many solvers are available "turnkey", including Navier-Stokes et Saint-Venant.

See also

Other computing software are freely available in the field of fluid mechanics. Here are some of them (if the development was not initialized under a free license, the year when it moved to Open Source is mentioned in parentheses):

Industrial fluids

Geophysical fluids

Notes and References

  1. Msadek . R. . Hydrodynamic tidal model of Cook Strait . Technical Report, National Institute of Water and Atmospheric Research . 2005 .
  2. Popinet . S. . Adaptive modelling of long-distance wave propagation and fine-scale flooding during the Tohoku tsunami . Natural Hazards and Earth System Sciences . 12 . 4 . 2012 . 1213–1227 . 10.5194/nhess-12-1213-2012. 2012NHESS..12.1213P . free .
  3. Popinet . S. . Quadtree-adaptive tsunami modelling . Ocean Dynamics . 61 . 9 . 2011 . 1261–1285 . 10.1007/s10236-011-0438-z. 2011OcDyn..61.1261P . 10.1.1.374.7506 . 14848237 .
  4. Hyunuk . A. . Y. . Soonyoung . Well-balanced shallow water flow simulation on quadtree cut cell grids . Advances in Water Resources . 39 . 2012 . 60–70 . 10.1016/j.advwatres.2012.01.003. 2012AdWR...39...60A .
  5. Popinet . S. . G. . Rickard . A tree-based solver for adaptive ocean modelling . Ocean Modelling . 16 . 3–4 . 2007 . 224–249 . 10.1016/j.ocemod.2006.10.002. 2007OcMod..16..224P .
  6. Tsai . C.-C. . T.-H. . Hou . S. . Popinet . Wind wave prediction of tropical cyclones by a quadtree-adaptive model . Coastal Engineering . 77 . 2013 . 108–119 . 10.1016/j.coastaleng.2013.02.011.
  7. Popinet . S. . R.M. . Gorman . G.J. . Rickard . H.L. . Tolman . A quadtree-adaptive spectral wave model . Ocean Modelling . 34 . 1–2 . 2010 . 36–49 . 10.1016/j.ocemod.2010.04.003. 2010OcMod..34...36P . 10.1.1.374.5299 . 14415336 .
  8. http://polar.ncep.noaa.gov/waves/wavewatch/wavewatch.shtml WaveWatchIII
  9. O'Callaghan . J. . G. . Rickard . S. . Popinet . C. . Stevens . Response of buoyant plumes to transient discharges investigated using an adaptive solver . Journal of Geophysical Research . 115 . 2010 . C11 . C11025 . 10.1029/2009jc005645. 2010JGRC..11511025O . free .
  10. Rickard . G. . J. . O'Callaghan . S. . Popinet . Numerical simulations of internal solitary waves interacting with uniform slopes using an adaptive model . Ocean Modelling . 30 . 2009 . 1 . 16–28 . 10.1016/j.ocemod.2009.05.008. 2009OcMod..30...16R .
  11. Tao . Y. . S. . Rosswog . M. . Brüggen . A simulation modeling approach to hydrothermal plumes and its comparison to analytical models . Ocean Modelling . 61 . 2013 . 68–80 . 10.1016/j.ocemod.2012.10.001. 2013OcMod..61...68T .
  12. Web site: Gerris (Frequently Asked Questions) . 2013-05-15 . 2018-06-12 . https://web.archive.org/web/20180612070712/http://gfs.sourceforge.net/wiki/index.php/FAQ . dead .
  13. http://gts.sourceforge.net/ GTS
  14. Web site: Science and Fluid Dynamics should have more open sources . Institut Jean le Rond d'Alembert . Stéphane Zaleski . 2001 . 12 May 2013 .
  15. Popinet . S. . Gerris: a tree-based adaptive solver for the incompressible Euler equations in complex geometries . Journal of Computational Physics . 190 . 2 . 2003 . 572–600 . 10.1016/s0021-9991(03)00298-5. 2003JCoPh.190..572P . 10.1.1.12.5063 .
  16. Popinet . S. . Free Computational Fluid Dynamics . Cluster World . 2 . 2004 . 2–8.
  17. http://basilisk.fr Basilisk
  18. http://www.myroms.org/ ROMS
  19. http://www.gotm.net/ GOTM
  20. http://www.opentelemac.org/ Telemac-Mascaret
  21. http://oss.deltares.nl/web/delft3d Delft3D