Gerris (software)
   HOME

TheInfoList



OR:

Gerris is
computer software Software consists of computer programs that instruct the Execution (computing), execution of a computer. Software also includes design documents and specifications. The history of software is closely tied to the development of digital comput ...
in the field of
computational fluid dynamics Computational fluid dynamics (CFD) is a branch of fluid mechanics that uses numerical analysis and data structures to analyze and solve problems that involve fluid dynamics, fluid flows. Computers are used to perform the calculations required ...
(CFD). Gerris was released as
free and open-source software Free and open-source software (FOSS) is software available under a license that grants users the right to use, modify, and distribute the software modified or not to everyone free of charge. FOSS is an inclusive umbrella term encompassing free ...
, subject to the requirements of the
GNU General Public License The GNU General Public Licenses (GNU GPL or simply GPL) are a series of widely used free software licenses, or ''copyleft'' licenses, that guarantee end users the freedom to run, study, share, or modify the software. The GPL was the first ...
(GPL), version 2 or any later.


Scope

''Gerris'' solves the
Navier–Stokes equations The Navier–Stokes equations ( ) are partial differential equations which describe the motion of viscous fluid substances. They were named after French engineer and physicist Claude-Louis Navier and the Irish physicist and mathematician Georg ...
in 2 or 3 dimensions, allowing to model industrial fluids (aerodynamics, internal flows, etc.) or for instance, the mechanics of
droplets A drop or droplet is a small column of liquid, bounded completely or almost completely by free surfaces. A drop may form when liquid accumulates at the end of a tube or other surface boundary, producing a hanging drop called a pendant drop. Dro ...
, 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: # ocean tide # tsunamis # river flow # eddies in the ocean # sea state (surface waves) 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. Lastly, one can note that the (non-hydrostatic) Navier–Stokes solver was also used in the ocean to study: * fluvial plumes * internal waves * hydrothermal convection 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 equation In mathematics, a partial differential equation (PDE) is an equation which involves a multivariable function and one or more of its partial derivatives. The function is often thought of as an "unknown" that solves the equation, similar to ho ...
s: *
finite differences A finite difference is a mathematical expression of the form . Finite differences (or the associated difference quotients) are often used as approximations of derivatives, such as in numerical differentiation. The difference operator, commonly d ...
* finite volumes *
finite elements Finite element method (FEM) is a popular method for numerically solving differential equations arising in engineering and mathematical modeling. Typical problem areas of interest include the traditional fields of structural analysis, heat tran ...
''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 Domain Name System (DNS) is a hierarchical and distributed name service that provides a naming system for computers, services, and other resources on the Internet or other Internet Protocol (IP) networks. It associates various informatio ...
; 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 the implementation of turbulence models will focus on the
LES LES or Les may refer to: People * Les (given name) * Les (surname) * L.E.S. (producer), hip hop producer Space flight * Launch Entry Suit, worn by Space Shuttle crews * Launch escape system, for spacecraft emergencies * Lincoln Experimental ...
family rather than RANS approaches.


Programming language, library dependencies, included tools

''Gerris'' is developed in C using the libraries
Glib GLib is a bundle of three (formerly five) low-level system libraries written in C and developed mainly by GNOME. GLib's code was separated from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since ...
(object orientation, dynamic loading of modules, etc.) and GTS. 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 MPI or Mpi may refer to: Science and technology Biology and medicine * Magnetic particle imaging, a tomographic technique * Myocardial perfusion imaging, a medical procedure that illustrates heart function * Mannose phosphate isomerase, an enzyme ...
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: * analytic formulas in the parameter file * GTS triangulated files; note that the ''Gerris'' distribution includes a tool to translate the STL format (exported by various CAD software) into GTS triangulated surfaces * bathymetric/topographic database in KDT format; a tool is also provided to generate such a database from simple ASCII listings Among the various ways to output ''Gerris'' results, let us just mention here: * Graphical output in PPM format: images can then be converted in (nearly) any format using
ImageMagick ImageMagick, invoked from the command line as magick, is a free and open-source cross-platform software suite for displaying, creating, converting, modifying, and editing raster images. ImageMagick was created by John Cristy in 1987, and it ...
, and MPEG movies can be generated thanks to
FFmpeg FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing vide ...
(among others). * Simulation files (''.gfs''), which are actually parameters files concatenated with fields issued from the simulation; these files can then be (i) re-used as parameter files (defining new initial conditions), or (ii) processed with ''Gfsview''. * ''Gfsview'', a display software shipped with ''Gerris'', able to cope with the tree structure of the ''Gerris'' grid (a data structure which is not efficiently operated by general visualization software).


Licence

CFD software, as any software, can be developed in various "realms": * Business; * Academic; * Open Source. As far as CFD is concerned, a thorough discussion of these software development paths can be found in the statement by Zaleski. ''Gerris'' was distributed as
free and open-source software Free and open-source software (FOSS) is software available under a license that grants users the right to use, modify, and distribute the software modified or not to everyone free of charge. FOSS is an inclusive umbrella term encompassing free ...
right from the onset of the project.


Continued development

Following a redesign of the software organization, ''Gerris'' became ''Basilisk'', 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

* Advanced Simulation Library (2015) * Code Saturne (2007) *
FEATool Multiphysics FEATool Multiphysics ("Finite Element Analysis Toolbox for Multiphysics") is a physics, finite element analysis (FEA), and partial differential equation (PDE) simulation toolbox. FEATool Multiphysics features the ability to model fully coupled he ...
(2013) *
OpenFOAM OpenFOAM (Open Field Operation And Manipulation) is a C++ toolbox for the development of customized numerical solvers, and pre-/post-processing utilities for the solution of continuum mechanics problems, most prominently including computation ...
(2004) * SU2 code (2012)


Geophysical fluids

* POM (1999) * ROMS * GOTM * Telemac (2010, 2011 for Mascaret) * Delft3DDelft3D
/ref> (2011)


Notes


References

{{CAE software Free software programmed in C Computational fluid dynamics Computer-aided engineering software for Linux Scientific simulation software Software using the GNU General Public License