
316 Multidimensional Computational Methods
12.5 An implicit formula for solving the unsteady flow in a channel, given
by the parabolic equation
u
t
=−
p
x
+
2
u
y
2
,isui j −ui j − 1 =−t
p
x
+
ui −1j−2ui j +ui +1j
, where is defined by =t/x
2
. This scheme
is apparently stable for all positive values of . Solve for flow starting from rest with
u0 = u1 = 0
p
x
=
$
0t≤0
−1t>0
Take = 05x= 01t= 01, and do 200 time steps. Compare with the exact
solution (parabolic profile).
12.6 Repeat the previous problem, this time using the Crank-Nicholson method, with
the more accurate finite difference equation in the form
ui j −ui j −1 =−
t
p
x
+
1
2
ui −1j−2ui j +ui +1j
+
1
2
ui −1j−1 −2ui j −1 +ui +1j−1
12.7 Repeat problem 12.5, this time using the DuFort-Frankel method for solving the
problem. This method is explicit and uses
ui−1j−uij−1−uij+1+ui+1j
x
2
for the second
derivative in x and
uij+1−uij−1
2t
for the time derivative.
a. Put these approximations into the Navier-Stokes equation and rearrange to
obtain a form suited to solving for the velocity at the grid points.
b. Draw the computational molecule for this method. Indicate round dots where
space derivatives are taken and squares where time derivatives are taken.
12.8 For the diffusion equation in two space derivatives and one time derivative
the alternating direction implicit method (ADI) is unconditionally stable. Starting with
f
t
=
2
f
x
2
+
2
f
y
2
, the method uses the form
f
∗
i j −fi j k
t/2
=
f
∗
i +1j−2f
∗
i j +f
∗
i −1j
x
2
+
fi j +1k−2fi j k +fi j −1k
y
2
and follows it with
fi j k +1 −f
∗
i j
t/2
=
f
∗
i +1j−2f
∗
i j +f
∗
i −1j
x
2
+
fi j +1k+1 −2fi j k +1 +fi j −1k+1
y
2
The first solves for the intermediate values f
∗
, the second completing the solution for
f at the next time step. Rearrange the equations to put them into a form suitable for
programming.
12.9 One way of dealing with the nonlinearities of the Navier-Stokes equations is
to treat steady-state flows as transient flows starting from a quiescent state. For natural