Solvers and options#
Every backend has two solver classes (Backends).
solver |
for |
|---|---|
|
balance laws: SWE, SME, Euler, diffusion |
|
pressure-split models ( |
Settings are keyword arguments of the solver class, declared with param.
A choice is a member of an enum from zoomy_core.symsolver.settings (Imex.ssp2, Projection.increment).
A wrong value or a misspelt name raises an error that names the closest valid one.
Options#
option |
default |
meaning |
|---|---|---|
|
- |
end time |
|
|
CFL number of the adaptive step |
|
|
constant step, |
|
|
SSP-RK order 1, 2 or 3, |
|
|
order 2: cells that fail the model’s admissibility, such as \(h \ge 0\), are redone at order 1 |
|
|
|
|
|
output interval, |
|
|
HDF5 snapshots and a callback per snapshot (NumPy, JAX) |
|
|
implementations of the opaque functions the model calls (NumPy, JAX) |
|
|
preCICE participant, see Backends |
Restart#
option |
default |
meaning |
|---|---|---|
|
|
a restart state written by the same backend |
|
|
interval of the restart states, |
|
|
where they go, |
Chorin#
option |
default |
meaning |
|---|---|---|
|
|
|
|
|
|
|
- |
relative tolerance of the pressure solve |
|
|
NumPy, JAX: |
|
|
OpenFOAM, AMReX: |
Tutorials: End to end: 1-D dam break, Chorin projection: a VAM channel, Function hooks, Derivatives of function hooks.