In this example we shall investigate supersonic flow over a forward-facing
step. The problem description involves a flow of Mach 3 at an inlet to a
rectangular geometry with a step near the inlet region that generates shock
waves.
This example introduces the following OpenFOAM features for the first
time:
The domain is 2 dimensional and consists of a short inlet section
followed by a forward-facing step of 20% the height of the section as shown in
Figure 3.7
Figure 3.7:
Geometry of the forward step geometry
Governing equations
Mass continuity
(3.9)
Ideal gas
(3.10)
Momentum equation for Newtonian fluid
(3.11)
Energy equation for fluid (ignoring some viscous terms), ,
with Fourier’s Law
(3.12)
Initial conditions
, , .
Boundary conditions
Inlet (left) with fixedValue for velocity ,
pressure and temperature ;
Outlet (right) with zeroGradient on , and ;
No-slip adiabatic wall (bottom);
Symmetry plane (top).
Transport properties
Dynamic viscosity of air
Thermodynamic properties
Specific heat at constant volume
Gas constant
Conductivity
Case name
forwardStep case located in the $OpenFOAM_TUTORIALS/sonicFoam
directory.
Solver name
sonicFoam: an implementation for compressible trans-sonic/supersonic
laminar gas flow.
The case is designed such that the speed of sound of the gas
, the consequence being that the velocities are directly
equivalent to the Mach number, e.g. the inlet velocity of is equivalent
to Mach 3. This speed of sound calculation can be verified using the
relationship for a perfect gas, , i.e. the ratio of specific
heats
The mesh used in this case is relatively simple, specified with uniform rectangular
cells of length 0.06 in the direction and 0.05 in the direction.
The geometry can simply be divided into 3 blocks, one below the top
of the step, and two above the step, one either side of the step front.
The full set of vertices and blocks are given in the mesh description file
below:
The case approaches a steady-state at some time after 5 . The results for
pressure at 10 are shown in Figure 3.8. The results clearly show
discontinuities in pressure, i.e. shock waves, emanating from ahead of the base of
the step.