
AN APPLICATION TO BIOLOGICAL FLUID DYNAMICS: FLOW IN AN ELASTIC TUBE 129
V (z, t) is the instantaneous, area-averaged flow velocity, p(z, t) is the local pres-
sure, and the effect of wall friction is parameterized in terms of the force term,
f (force per unit mass of fluid in the axial z direction). Fluid density is ρ,and
(2.13.3) is an equation of state expressing the cross-sectional area of the ves-
sel, S , as a function of the pressure in the vessel, p, and the axial coordinate,
z. Because we consider an elastic tube with no branches and therefore with no
leakage, the volumetric outflow term is set to ψ = 0.
Once the equation of state (2.13.3) and the friction term f are specified,
the computational problem reduces to integrating the system of equations
comprising (2.13.1) and (2.13.2) for the variables S and V ; p is calculated
from the equation of state.
Before specifying the various inputs into the computer code necessary to inte-
grate this system of equations, we will outline the multilevel (predictor–corrector)
explicit second-order finite difference scheme that was developed by MacCor-
mack (1969) for the numerical integration of nonlinear hyperbolic partial differ-
ential equations. The original method and its variations have been used in many
applications in computational aerodynamics and fluid mechanics.
Consider the one-dimensional linear convection equation,
∂u
∂t
+a
∂u
∂x
= 0 (2.13.4)
where a is a constant convection velocity, and u is a flow function, u = u(x, t),
that is being convected. The application of the MacCormack scheme to this
hyperbolic partial differential equation can be written as
u
i
= u
n
i
−
at
x
(u
n
i+1
−u
n
i
) (2.13.5)
u
i
= u
n
i
−
at
x
(
u
i
−u
i−1
) (2.13.6)
u
n+1
i
=
1
2
(
u
i
+u
i
) (2.13.7)
In (2.13.5)–(2.13.7), the index n refers to time level and the index i
represents position in space. The scheme will be stable for Courant number,
C =
|
a(t/x)
|
≤ 1; highest accuracy will be obtained when C = 1, which
is generally possible for linear equations. It is apparent from the fact that the
characteristic direction for this problem is the line whose slope is dx/dt = a,and
when the solution advances on this characteristic, which is the case when C = 1,
then it is exact. In many cases, when the equation is nonlinear, e.g., if a = u,
then generally C < 1 will be required, so that one would have to sacrifice
accuracy for numerical stability. For example, in Problem 2.15, it will be
necessary to maintain C < 0.2, otherwise the solution rapidly becomes unstable.
Let us now consider the nonlinear convection equation,
∂u
∂t
+u
∂u
∂x
= 0 (2.13.8)