
NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS 105
Around the boundary of this region, ψ = 0 along OD, ψ = 1 along ABC ,and
∂ψ/∂z = 0 along both OA and CD. The derivative boundary conditions are the
result of symmetry of stream function about these two sections.
2.10 NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL
DIFFERENTIAL EQUATIONS
Problems concerning wave motions in fluid mechanics are governed by hyper-
bolic partial differential equations. One example mentioned in Section 2.7 is the
supersonic flow past a thin body whose governing equation is (2.7.2). Another
commonly cited example is the propagation of a one-dimensional sound wave of
small amplitude, described by (see Liepmann and Roshko, 1957, p. 68)
∂
2
u
∂t
2
= a
2
∂
2
u
∂x
2
(2.10.1)
in which t is time, x is the coordinate in the direction of wave propagation, a is
the speed of sound treated as constant in the linearized analysis, and u is the fluid
speed. It can be shown that density, pressure, and temperature are all governed
by equations of the same form.
In this section a numerical technique is developed for solving (2.10.1) to find
u at any time t > 0 in the spatial domain 0 ≤ x ≤ L, provided that the initial
conditions of u are given at t = 0 and are expressed in the following form, with
functions f and g to be specified for a particular problem:
u(x,0) = f (x) (2.10.2)
∂u
∂t
(x,0) = g(x) (2.10.3)
Boundary conditions are to be specified at both ends of the gaseous domain, say
within a channel of constant cross-sectional area. If one end of the channel is
enclosed by a rigid wall, then u must be zero there at all times. On the other hand,
at an end that opens to the atmosphere, the pressure there must be a constant or,
alternatively, ∂u/∂x must vanish at that section.
To solve this mixed initial-boundary-value problem numerically, we divide
the spatial range of the domain into small intervals of length h and the time axis
into intervals of size τ . The total number of vertical grid lines is m, whereas that
of horizontal grid lines can be as many as needed in a particular computation.
Lines and points in the grid system are named according to Fig. 2.10.1.
A difference equation can be derived following exactly the same procedure as
that used to obtain the numerical scheme (2.8.2) for solving the Poisson equation.
Using the central-difference formula to approximate the derivatives in (2.10.1),
we obtain, after regrouping,
u
i, j +1
= 2u
i, j
+C
2
)
u
i−1, j
−2u
i, j
+u
i+1, j
*
−u
i, j −1
(2.10.4)