Home > Sample Problems > Shu-Osher Shock Tube
Shu-Osher Shock Tube Problem
Problem Description
The Shu-Osher problem simulates a normal shock front moving inside a one-dimensional inviscid flow with artificial density fluctuations. In the test case, the length of the computation domain is 1. The downstream flow is assumed to have a sinusoidal density fluctuation (老=1+汍sin(x/竹)) with a wave length of 竹 = 1/8 and an amplitude of 汍 = 0.2.A normal shock front with a Mach number of 3.0 is initially placed at the position x = 竹. The initial conditions for the simulation are
老=3.857143;
u=2.629369;
P=10.3333
when
x<1/8
老=1+0.2sin8x;
u=0;
P=1
when
x≡1/8
Mesh
The mesh is an even spaced 1D grid. Two kinds of grids are used: a coarse grid (192 grid points) and a fine grid (384 grid points)
Simulation Parameters
Overall
Flow Conditions | ||
Mach No. |
3.0 | |
Viscosity |
Inviscid | |
Spatial
Scheme | ||
MUSCL |
WENO 33 |
WENO 34 |
Time
Scheme | ||
Runge-Kutta 4th order |
|
|
2 subiterations per time step |
|
|
Boundary
Conditions | ||
I=1: Inlet |
老=3.857143; u=2.629369;
P=10.3333 | |
I=178: Outlet |
Outflow boundary condition (type 31) | |
Initial
Conditions | ||
x<1/8: 老=3.857143; u=2.629369; P=10.3333 | ||
x≡1/8: 老=1+0.2sin8x; u=0; P=1 |
Table
1. Simulation Parameters for Shu-Osher Problem
A WENO simulation result with a very fine grid (768 grid points) can be regarded as the exact solution. Figure 1 shows the initial density profile and the fine grid density profile at t = 0.178.
Figure 1. The initial and exact density profiles.
Obtain the
Files
Both mesh files and project input files can be accessed below. Remember to place the grid files in a subfolder with the set up file /shockwave.
Setup file (shockwave.afl)
Grid file (shock.in).
Start the
Simulation
Change the directory to the subfolder with the selected grid and spatial scheme. Start the simulation by
mpirun 每np 1 mpiaeroflo.exe <
shockwave.afl
Comparison of
Different Spatial Schemes
The MUSCL, WENO 33, and WENO 34 schemes are used for the simulations with a coarse grid (192 grid points) and a fine grid (384), respectively. The density profiles for different spatial schemes are shown in Figure 2 for coarse grid simulation and in Figure 3 for fine grid simulation, respectively. Both of the results are compared with the exact result. The result shows that the fine grid results are much better than coarse grid results and for the same grid simulation the WENO results (both 33 and 34 schemes) are better than MUSCL result, and WENO 34 is a little bit better than WENO 33.
Figure 2. The density profiles of
MUSCL, WENO 33, and WENO 34 schemes at t=0.178 for a coarse grid
simulation.
Figure 3. The density profiles of
MUSCL, WENO 33, and WENO 34 schemes at t=0.178 for a fine grid
simulation.
CFL
Test
The CFL performances for different spatial schemes are also tested for this problem. The test results are summarized in Table 2. Since the problem is an unsteady, for all test simulations, whether the simulation is converged or diverged is decided by if the simulation can be calculated to t = 0.178 without being blowout.
|
Spatial
Scheme |
Time
Scheme |
Turbulence
Model |
Grid
Size 忖s=min(忖xi) |
Test Value
CFL= 忖t/ 忖s, CFLa=(1+1/M)CFL | ||
Converge (﹟) or
Diverge(x) |
|
|
|
|
﹟ |
﹟ |
x |
Shu-Osher
Problem Ma=3.0 |
MUSCL |
RK4 |
inviscid |
5.2356E-3 |
1.0E-3 CFL=0.191 CFLa=0.255 |
1.6E-3 CFL=0.306 CFLa=0.407 |
1.7E-3 CFL=0.325 CFLa=0.433 N=58 |
WENO
33 |
RK4 |
inviscid |
1.0E-3 CFL=0.191 CFLa=0.255 |
1.9E-3 CFL=0.363 CFLa=0.484 |
2.0E-3 CFL=0.382 CFLa=0.509 N=2 | ||
WENO
34 |
RK4 |
inviscid |
1.0E-3 CFL=0.191 CFLa=0.255 |
1.7E-3 CFL=0.325 CFLa=0.433 |
1.8E-3 CFL=0.344 CFLa=0.459 N=0 |
* The CFL condition is computed by
CFL= 忖t/ 忖s, which
assume the reference flow velocity u=1.0.
** 忖s=min(忖xi) is the minimum
computational grid spacing
***
CFLa=(u+a) 忖t/ 忖s=u(1+1/M)CFL is a measure of how far a sound wave
can travel through the flow.
Table 2. CFL Number Test for
Different Schemes
Reference: