Skip to content

Cookbook ​

Recipes: a problem, the code that solves it, what it prints, and where the reference is. Every recipe's code is a compiled program in docs/examples/src/ and its output, below the code, is that program's output, checked (fobis build --mode examples-gnu, scripts/run_examples.sh).

RecipeThe question it answers
Choose an operator and its orderFD or FV data, centred or upwind, the derivative or its face value, which order for which window
Ghost cells for a windowhow many ghost cells each operator needs on each side, by order, derived from its window
Replace ADAM's FDV callsthe GIDEON call for each ADAM routine, the index map, what changes numerically
Averages and point valueswhen a finite-volume solver must convert averages to point values and back, and at which order
Face values from point valuesa viscous flux at the faces, an upwind-biased face value, the value at a boundary face, from point values
A run-time order, fastthe dispatcher's cost, and how to pay it once instead of at every point
Single and quadruple precisionthe R4P and R16P builds, what each verifies, GIDEON_NAN
Dissipation dialled by a sensorthe face differences, the upwind-central split, a sensor between the central and the biased scheme, Jameson's blend
Filtering a central schemethe odd-even mode removed by an explicit or a compact filter, the smooth waves kept to its order
Compact-WENO rowscompact face values where smooth, given values where a sensor flags: one masked solve
Add an operatora new family through the generator: derive, cross-check, emit, test, the golden-file rule

The conventions every recipe relies on (names, windows by offset, the face between offsets 0 and 1) are in Conventions; every kernel, with its window, is in Operators.

Released under your choice of GPL-3.0-or-later, BSD-2-Clause, BSD-3-Clause or MIT.