Peano
Loading...
Searching...
No Matches
exagrype::euler::initialvalues Namespace Reference

Analytical initial conditions for the Euler equations. More...

Functions

void smoothWave (double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &x, double t, double amplitude, double velocity, double pressure, double gamma)
 Density wave on constant pressure.

Detailed Description

Analytical initial conditions for the Euler equations.

All routines fill the first five entries of Q (density, momentum, total energy) at point x and time t. Entries behind them (auxiliary variables) are left untouched.

Function Documentation

◆ smoothWave()

void exagrype::euler::initialvalues::smoothWave ( double *__restrict__ Q,
const tarch::la::Vector< Dimensions, double > & x,
double t,
double amplitude,
double velocity,
double pressure,
double gamma )

Density wave on constant pressure.

The density is 1 + amplitude * sin(2 pi x(0)) and the fluid moves along the x-axis with constant velocity. Pressure and velocity are constant, i.e. the wave is an exact solution of the Euler equations which is advected. The data are independent of t.

Parameters
QFive conserved quantities (output).
xPosition.
tTime stamp (ignored).
amplitudeAmplitude of the density wave, smaller than one in modulus.
velocitySpeed along the x-axis.
pressureConstant pressure.
gammaAdiabatic index.

References exagrype::euler::pressure().

Here is the call graph for this function: