Peano
Loading...
Searching...
No Matches
gauge Namespace Reference

-wave-with-Euler More...

Detailed Description

-wave-with-Euler

-wave

-wave-with-scalar-field

Gauge wave benchmark for the ExaGRyPE Python API with an additional Euler fluid

The gauge wave is a pure gauge perturbation of flat spacetime, i.e. an analytical solution of the Einstein equations that travels along the x-axis with speed one. It is periodic over the unit cube. This script evolves it with the first-order CCZ4 solver of exagrype.api (exagrype.api.FOCCZ4Solver), discretised with fourth-order Finite Differences and classic Runge-Kutta 4 (exahype2.api.rkfd4).

Next to CCZ4, the compound hosts a compressible Euler solver (exagrype.api.euler.Euler), discretised with Finite Volumes and explicit Euler time stepping (exahype2.api.fv.RusanovWithExplicitEuler). Both solvers are configured right here, and both run on the same mesh with periodic boundary conditions. They are hosted by exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling, which copies the fields of each solver into auxiliary variables of the other one at the begin of each time step (piecewise linear interpolation between the two resolutions), and which synchronises the time step sizes at the end.

Each mesh cell hosts a patch of p x p x p grid cells for CCZ4 and a patch of (2p+1) x (2p+1) x (2p+1) volumes for Euler. With p=8, Euler has 17 x 17 x 17 volumes per cell. The Euler volumes are hence a bit smaller than half the size of the CCZ4 grid cells.

The script requires a Peano build with

--enable-exahype --enable-blockstructured --enable-loadbalancing --enable-exagrype

and is run from this directory via

python3 gauge-wave-with-Euler.py --mode release
python3 gauge-wave-with-Euler.py --mode debug --cell-size 0.1111 --patch-size 8