
FLOW STABILITY AND PSEUDO-SPECTRAL METHODS 185
demonstration, and the accuracy of the result is not a main consideration here.
On the other hand, results of higher resolutions can be obtained by increasing
the total number of grid points.
Problem 3.13 Solve for the Stokes flow in the square cavity shown in Fig. 3.7.1
with a free surface CD and a bottom surface AB moving at a constant unit velocity
in the positive x direction.
3.8 FLOW STABILITY AND PSEUDO-SPECTRAL METHODS
In this section, we consider two problems that serve as examples of flow sta-
bility subject to different types of excitation. The first is the Rayleigh-Benard
problem, in which a horizontal layer of fluid heated from below becomes unsta-
ble due to buoyancy forces lifting the hot fluid upward. Then, continuity requires
fluid from the colder, upper region of the flow to move downward, thus set-
ting up a pattern called Benard cells. A full account of this problem is offered
in Section 4.3. Here, we will simply consider the same problem introduced in
Section 4.3, but instead of solving the full nonlinear system, we will first lin-
earize the governing equations, then apply separation of variables and convert
the governing partial differential equations into a system of ordinary differential
equations, and finally solve the resulting system using a MATLAB eigenvalue
solver. The solution of this system will provide the conditions under which an
otherwise quiescent horizontal layer of fluid will become unstable with respect
to a certain scaling parameter of the system. Once a threshold value for this
parameter is exceeded, then the system becomes unstable and a convective flow
pattern is established. The characteristic nondimensional number for this problem
is the Rayleigh number, defined as
Ra =
gαTH
3
κν
(3.8.1)
Here, g is the gravitational acceleration, α is the thermal expansion coefficient,
T is the temperature difference between the lower (hot) surface and the upper
(cold) surface, H is the height of the horizontal fluid layer, κ is the thermal
diffusivity, and ν is the kinematic viscosity of the fluid. From (3.8.1), it is appar-
ent that the Rayleigh number is the ratio, (buoyant energy production)/(energy
diffusion).
We adopt the Boussinesq approximation (Section 4.3), and write the governing
equations in the primitive variable form (see Section 4.5). For two-dimensional
incompressible flows, the primitive variables of the problem are the velocity
components u, w and the pressure p. In the presence of surface heating, as
in the present problem, the energy equation must also be considered. Conse-
quently, for this problem, the fourth dependent variable is temperature, T .The
governing equations are the continuity equation, the x-momentum equation, the
z-momentum equation (in the vertical direction, by convention), and the energy