The CompressibleFlowSolverRedesign solves the same unsteady compressible Euler and Navier-Stokes equations in conservative variables as the CompressibleFlowSolver described in the previous chapter – see Eq. (10.1) and following for the governing equations, which are unchanged. It is built on the redesigned operator framework, in which every step of the discretisation (basis transforms, volume fluxes, Riemann solvers, boundary conditions, diffusion) is an operator with interchangeable implementations for each execution space. The same session file therefore runs
in Serial on a single core,
in AVX using SIMD vectorisation (AVX2/AVX512 on x86, NEON on Arm), and
on a Device (CUDA, HIP or SYCL GPU back-ends),
and in parallel under MPI, where the trace exchange overlaps interior work with communication. The discretisation is discontinuous Galerkin (weak DG for the advection terms and an interior penalty scheme for the viscous terms); a continuous projection is not available in this solver.
The solver currently provides:
the Euler and Navier-Stokes equations in conservative variables (EulerCFE and
NavierStokesCFE) with explicit time integration, in 1D, 2D and 3D;
equations of state as a templated property of every operator that needs one: ideal gas and Van der Waals gas;
Riemann solvers: Average, AUSM0–AUSM3, HLL, HLLC, LaxFriedrichs and Roe;
constant and Sutherland’s law viscosity;
slip and no-slip (adiabatic or isothermal, including per-region wall temperatures) walls, farfield conditions based on Riemann invariants, entropy-consistent inflows, pressure outflow, stagnation inflow and zeroth-order extrapolation;
restart from checkpoint (.fld) files, including at a different polynomial order from
the one the file was written at.
Features of the legacy solver that are not yet available here include the implicit (JFNK) path, shock capturing and artificial viscosity, de-aliasing, axisymmetric flows, quasi-1D nozzle flows and the forcing and filter frameworks.