The Sod shock tube problem, named after Gary A. Sod, is a common test for the accuracy of computational fluid codes, like Riemann solvers, and was heavily investigated by Sod in 1978.The test consists of a one-dimensional Riemann problem with the following parameters, for left and right states of an ideal gas.
\left(\begin{array}{c}\rhoL\\PL\\uL\end{array}\right) = \left(\begin{array}{c}1.0\\1.0\\0.0\end{array}\right)
\left(\begin{array}{c}\rhoR\\PR\\uR\end{array}\right) = \left(\begin{array}{c}0.125\\0.1\\0.0\end{array}\right)
where
\rho
P
u
The time evolution of this problem can be described by solving the Euler equations,which leads to three characteristics, describing the propagation speed of thevarious regions of the system. Namely the rarefaction wave, the contact discontinuity andthe shock discontinuity.If this is solved numerically, one can test against the analytical solution,and get information how well a code captures and resolves shocks and contact discontinuitiesand reproduce the correct density profile of the rarefaction wave.
NOTE: The equations provided below are only correct when rarefaction takes place on left side of domain and shock happens on right side of domain.The different states of the solution are separated by the time evolution of thethree characteristics of the system, which is due to the finite speedof information propagation. Two of them are equal to the speedof sound of the left and right states
cs1=\sqrt{\gamma
PL | |
\rhoL |
cs5=\sqrt{\gamma
PR | |
\rhoR |
\gamma
Defining:
\Gamma=
\gamma-1 | |
\gamma+1 |
\beta=
\gamma-1 | |
2\gamma |
\rho4=\rho5
P4+\GammaP5 | |
P5+\GammaP4 |
P4=P3
u3
u4
u4=\left(P3'-
P | ||||
|
u3
\beta\right) | ||
=\left(P | \sqrt{ | |
3' |
| |||||||
\Gamma2\rhoL |
u3-u4=0
P3=\operatorname{calculate}(P3,s,s,,)
u3=u5+
(P3-P5) | ||||
|
u4=u3
\rho3
\rho3=\rho1\left(
P3 | |
P1 |
\right)1/\gamma