ArticleslgStudy

computer science

Gerris (software)

Gerris (software) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gerris (software) rather than just read about it. In short: 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.

Gerris (software) — main illustration
Gerris (software) — illustration

Key takeaways

  • Gerris (software) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gerris (software) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gerris (software) from memory before moving on to harder problems.

Reference excerpt

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:

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 equations:

finite differences finite volumes finite elements 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 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. 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:

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, and MPEG movies can be generated thanks to FFmpeg (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 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 (2013) OpenFOAM (2004) SU2 code (2012)

Geophysical fluids POM (1999) ROMS GOTM Telemac (2010, 2011 for Mascaret) Delft3D (2011)

See also List of computational fluid dynamics software

Notes

References

Illustrations

Gerris (software) illustration
Gerris (software) illustration
Gerris (software): Banner of the Gerris website
Banner of the Gerris website

Worked examples

Example 1 — a first encounter with Gerris (software)

Start with the simplest possible case. Write down what Gerris (software) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gerris (software) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gerris (software) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gerris (software)

In research
Gerris (software) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gerris (software) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gerris (software) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational fluid dynamics, Computer-aided engineering software for Linux, Free software programmed in C, so understanding it makes those chapters shorter.
In everyday life
Look for Gerris (software) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Gerris (software) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gerris (software) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gerris (software) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gerris (software) in simple terms?

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.

Why does Gerris (software) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gerris (software)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gerris (software).

Tags

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

Keep exploring