|
Peano
|
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. | |
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.
| 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.
| Q | Five conserved quantities (output). |
| x | Position. |
| t | Time stamp (ignored). |
| amplitude | Amplitude of the density wave, smaller than one in modulus. |
| velocity | Speed along the x-axis. |
| pressure | Constant pressure. |
| gamma | Adiabatic index. |
References exagrype::euler::pressure().
