Académique Documents
Professionnel Documents
Culture Documents
Finite-Volume (control-Volume)
Method-Introduction
12-1 Introduction (1)
In developing what has become known as
the finite-volume method, the conservation
principles are applied to a fixed region in
space known as a control volume, are
somewhat interchangeably in the literature.
12-1 Introduction(2)
In the finite-volume approach, a point of view is taken that
is distinctly different from finite-difference method(or
Taylar-series method ). In the Taylar-series method, we
accepted the PDE as the correct and appropriate from of
the conservation principle(physical law) governing our
problem and merely turned to mathematical tools to
develop algebraic approximations to derivatives. We never
again considered the physical law represented by the PDE.
In the finite-volume method, the conservation statement is
applied in a form applicable to a region in space (control
volume).
12-1 Introduction(3)
This integral form of the conservation
statement is usually well known from the
first principles, or it can in most cases, be
developed from the PDE form of the
conservation from.
12-1 Introduction(4)
The feature of the FV method is shared in
common with the finite-element methods.
The FV procedure can, in fact, be
considered as a variant of the finite-element
method, although it is, from another point of
view, just a particular type of finite-
difference method.
12-1 Introduction(5)
As an example, consider unsteady 2-D heat
conduction in a rectangular-shaped solid. The
problem domain is divided up into control volume
with associated points. We can establish the
control volumes first and place grid points in the
centers of the volumes (cell-centered method) or
establish the grid first and then fix the boundaries
of the control volumes (cell-vertex method) by, for
example placing the boundaries halfway between
grid points.
12-1 Introduction(6)
The General Differential Equation
The differential equation obeying the
generalized conservation principle can be
written by the general differential equation
as
v s (1)
t
:dependent variable, such as velocity
components (u,v,w), h or T, k, ε
concentration, etc.
12-1 Introduction(7)
: diffusion coefficients
S: source term
The four terms of eq.(1) are the unsteady term, the
convection term, the diffusion term and the source
term.
*Note: The “conservation form” of the PDE is also
referred to as “conservation law form” or
“divergence form”, i.e., all spatial derivatives
appear purely as divergences.
12-1 Introduction(8)
Conservation form of the governing
equations of fluid flow
Mass : v 0
t
v
Mometum : v v p v S M
t
h
Energy : v h kT ST
t
c
Species : v c DC SC
t
12-1 Introduction(9)
One-way and two-way coordinates :
1. Definitions: a two-way coordinate is such that
the conditions at a given location in that
coordinate are influenced by changes in
conditions on either side of that location. A
one-way coordinate is such that the conditions
at a given location in that coordinate are
influenced by changes in the conditions on
only one side of that location.
12-1 Introduction(10)
2. Examples: one-dimensional steady heat
conduction in a rod provides one example of a
two-way coordinate. The temperature of any
given point in the rod can be influenced by
changing the temperature of either end.
Normally, space coordinates are two-way
coordinates. Time, on the other hand, is
always a one-way coordinate. During the
unsteady cooling of a solid, the temperature at
a given instant can be influenced by changing
only these conditions that prevailed before
that instant.
12-1 Introduction(11)
3. Space as a one-way coordinate:
If there is a strong unidirectional flow in the
coordinate direction, then significant influences travel
only from upstream. The conditions at a given point
are then affected largely by the upstream conditions,
and very little by the downstream ones. It is true that
convection is a one-way process, but diffusion (which
is always present) has two-way influences. However.,
then the flow rate is large, condition overpowers
diffusion and thus make the space coordinate nearly
one-way.
12-1 Introduction(12)
4. Parabolic, elliptic, hyperbolic:
a) The term parabolic indicates a one way behavior,
while elliptic signifies the two-way concept.
b) It would be more meaningful if situations were
described as being parabolic or elliptic in a given
coordinate. Thus, the unsteady heat condition
problem, which is normally called parabolic, is
actually parabolic in time and elliptic in all
coordinate. A two-dimension boundary layer is
parabolic in the stream wise coordinate and elliptic
in the cross-stream coordinate
12-1 Introduction(13)
c) A hyperbolic problem has a kind of one-way
behavior, which is, however, not along coordinate
directions but along special-lines called
characteristics.
d) A situation is parabolic if there exists at least one
one-way coordinate: otherwise, it is elliptic.
e) A flow with one one-way space coordinate is
sometimes called a boundary-layer-type flow,
while a flow with all two-way coordinate is
referred to as a recirculating flow.
12-1 Introduction(14)
5. Computational implications:
The motivation for the foregoing discussion about
one-way and two-way coordinates is that, it a
one-way coordinate can be identified in a given
situation, substantial economy of computer
storage and computer time is possible.
12-2 An Illustrative Example(1)
The FV method used the integral form of
the conservation equation(eq.1) as the
starting point:
dV
s dV dA s dV (2)
n
CV CV A CV
k k sdx 0 (4)
x e x w w
12-2 An Illustrative Example(4)
2. Profile assumption: To make further further progress,
we need a profile assumption or an interpolation
formula. Here, linear interpolation functions are used
between the grid points, as shown in Fig 2.
Fig. 2
x
W w Δp e E
δxw δxe
12-2 An Illustrative Example(5)
3. The discrerization equation: If we evaluate
the derivatives dT/dx in eq.(4) from the
piecewise-linear profile, the resulting
equation will be
ke TE T p k w Tp Tw
s x 0 (5)
x e x w
12-2 An Illustrative Example(6)
where s is the average value of s over the cv.
It is useful to cast the discretiza tion eq(5)
into the following form :
a pTp aETE aW TW b (6)
ke kw
Where aE , aW , aP aE aW , b s x
x e x w
12-2 An Illustrative Example(7)
4. Comments:
a) In general, it is convenient to extend eq.(6) into
multidimensional form as
S S C S PTP
12-2 An Illustrative Example(10)
Where Sc stands for the constant part of S,
while Sp is the coefficient of Tp. With the
linearized source expression, the
discretization equation will become
aPTP aETE aW TW b
ke
where aE
x e
kw
aW
x w
aP aE aW s p x
b SC x
12-3 The Four Basic Rules(1)
Rule 1:Consistency at a control-volume face
-When a face is common to two adjacent control
volumes, the flux across it must be represented by
the same expression in the discretization equations
for the two control volumes
Rule 2:Positive coefficients
-All coefficients (ap and neighbor coefficients anb)
must always be positive.
12-3 The Four Basic Rules(2)
Rule 3:Negative-slope linearization of the
source term
-When the source term is linearized as S=SC+SPTP,
the coefficient SP must always be less than or equal
to zero.
Rule 4:Sum of the neighbor coefficients
-We require aP a nb
CHAPTER 13
(δx)e- (δx)e+
x
P e E
13-1 Steady One-dimensional
Condition(6)
Then, ke f e k p (1 f e )k E (3)
where fe
x e
( 4)
x e
If the interface e were midway between grid
points, fe would be 0.5, and ke would be he
arithmetic mean of kp and kE.
13-1 Steady One-dimensional
Condition(7)
2.We shall shortly show that this simple-minded
approach leads to rather incorrect implications in
some cases and cannot accurately handle the
abrupt changes of conductivity that may occur in
composite materials. Fortunately, a much better
alternative is available.
3.Our main objective is to obtain a good
representation for the heat flux qe at the interface
via
13-1 Steady One-dimensional
Condition(8)
TP TE
qe ( 6)
x e x e
kP kE
13-1 Steady One-dimensional
Condition(9)
Combination of Eqs.(4) —— (6) yields
1
1 fe fe
ke (7 )
k k
p E
e p E
we have fe=0.5; then k 1 0.5 k 1 k 1 (8)
2k p k E
or k e (9)
k p kE
Eq. (9) show that ke is the harmonic mean of kp and kE,
rather than the arithmetic mean.
13-1 Steady One-dimensional
Condition(10)
4.
1
x e x e
aE
k p k E
A similar expression can be written for aW.
13-1 Steady One-dimensional
Condition(11)
5. The recommended interface conductivity
formula (7) is based on the steady, no-source,
one-dimensional situation in which the
conductivity varies in a stepwise fashion from
one control volume to the next. Even in
situations with nonzero sources or with
continuous variation of conductivity, it
performs much better then the arithmetic-
mean formula.
13-1 Steady One-dimensional
Condition(12)
Iteration
1. Start with a guess or estimate for the values of T at all
grid points.
2. From these guessed T´s, calculate tentative values of
the coefficients in the discretization equation.
3. Solve the nominally set of algebraic equations to get
new values of T.
4. With these T´s as better guesses, return to step 2 and
repeat the process until further repetitions cease to
produce significant changes in the values of T.
13-1 Steady One-dimensional
Condition(13)
Source-Term Linearization
Tp*: the guess value or the previous-iteration
value of Tp
Example 1: Given S=5-4T
-Sc=5, Sp=-4—recommended
-Sc=5-4Tp *, Sp=0 —not impractical
-Sc=5+7Tp *,Sp=-11 —a steeper S~T
relationship, will slow down the
convergence
13-1 Steady One-dimensional
Condition(14)
Example 2: Given S=3+7T
1. Sc=3,Sp=7 —this is not acceptable, as it
makes Sp positive. The presence of a
positive Sp many cause divergence.
2. Sc=3+7Tp*, Sp=0 —this is the practice
one should follow.
3. Sc=3+9Tp*, Sp=-2 —this is an artificial
creative Sp. It will, in general, slow
down the convergence.
13-1 Steady One-dimensional
Condition(15)
Example 3: Given S=4-5T3
1. Sc=4-5Tp*3, Sp=0—this is the lazy-person
approach.
2. Sc=4, Sp=-5Tp*2—this given S~T curve is
steeper than this implies.
13-1 Steady One-dimensional
Condition(16)
3. Recommended* method:
* dS
S S p
T T
p
*
dT
4 5T *3
p 15T *2
p T p T p*
*3 *2
4 10T p 15T T p
p
*3 *2
Thus, S c 4 10T , S p 15T
p p
This linearization represents the tangent to
the S~T curve at Tp*
13-1 Steady One-dimensional
Condition(17)
4. Sc=4+20Tp*, Sp=-25Tp*2—This givens a
steeper S~T curve, which would slow down
convergence
S
(1)
(2)
(3)
(4)
T
13-1 Steady One-dimensional
Condition(18)
Boundary Conditions:
1. Typically, three kinds of boundary conditions
are encountered in heat condition. These are
-Given boundary temperature.
-Given boundary heat flux
-Boundary heat flux specified via a heat transfer
coefficient and the temperature of the surrounding
fluid.
13-1 Steady One-dimensional
Condition(19)
2. If the boundary temperature is given, no
particular difficulty arises, and no additional
equations are required. When the boundary
temperature is not given, we need to construct
an additional equation for TB. This is done by
integrating the differential equation over the
“half” control volume shown adjacent to the
boundary in the following Figure.
13-1 Steady One-dimensional
Condition(20)
“Half” C.V.
B I W P E
Fig 1
Typical C.V.
(δx)i
qB
B i I
Δx
Fig 2
13-1 Steady One-dimensional
Condition(21)
3. Apply the principles of energy conservation
i d dT dT dT
B dx k dx s dx k dx i k dx B
s x
k T T
q i
S S T x 0
B I
B
dx i
c p B
a BTB a I TI b
ki
where a I , b S c x q B , a B a I S P x
x i
13-1 Steady One-dimensional
Condition(22)
4. If qB is specified in terms of a heat transfer
coefficient h and a surrounding-fluid
temperature Tf such that
qB =h(Tf-TB)
Then, the equation for TB becomes
a BTB a I TI b
ki
where a I , b S C x hT f ,
x i
aB a I S P x h
13-1 Steady One-dimensional
Condition(23)
Solution of the Linear Algebra Equation
(TDMA)
1. The discretization equations can be written as
ai Ti bi Ti 1 ci Ti 1 d i (1)
13-2 Unsteady One-Dimensional
Condition(1)
The general Discretization Equation
1. Unsteady one-dimensional heat-conduction
equation
cT T
k (1)
t x x
if , c are constant, eq.(1) becomes
T T
c k (2)
t x x
13-2 Unsteady One-Dimensional
Condition(2)
2. The discretization equation
w e
W P E
e t t T t t e T
c dtdx k dxdt (3)
w t t t w x x
e t t T
c
w t t
dtdx cx TP T p0
13-2 Unsteady One-Dimensional
Condition(3)
ke TE Tp k w T p Tw
cx TP T 0
t t
dt (4)
x e x w
p
t
t
t t
Tp dt fT p (1 f )Tp0 t (5)
where f is a weighting factor between 0 and 1
from Eqs.(4) and (5), we can get
x ke TE T p0 k w T p Tw0
c T p T p0 f
t
x e
x w
ke TE0 T p0 k w T p0 Tw0
1 f ( 6)
x e x w
13-2 Unsteady One-Dimensional
Condition(4)
a pTp aE fTE 1 f TE0 aW fTW 1 f TW0
aP0 1 f aE 1 f aW T
P
0
( 6)
where
ke kw
aE aw
x e x w
cx
ap
0
a p faE faw a 0p
t
13-2 Unsteady One-Dimensional
Condition(5)
1. Example: Crank-Nicolson, and Fully
Implicit Schemes
cx 2
f 0 : exp licit scheme stability criteria : t
2k
f 0.5 : Crank Nicolson scheme
unconditio nally stable
f 1 : Fully implicit scheme
13-2 Unsteady One-Dimensional
Condition(6)
2. Variation of temperature with time for three
different schemes
Tp
Explicit
0
Tp
Crank-Nicolson
T p
Fully implicit
t t+Δt t
13-2 Unsteady One-Dimensional
Condition(7)
3. Why would we prefer the fully implicit
scheme?
a) For f=0 (explicit) scheme
→ apTp= aETE0 + awTw0 +( ap0-aE-aW ) TP0
This means that TP is not related to other unknows
such as TE or TW, but is explicitly obtainable in
terms of known temperature TP0, TE0, TW0.
13-2 Unsteady One-Dimensional
Condition(8)
b) For f=0.5, the coefficient of TP0 in eq(6) becomes
aP0-(aE + aW )/2. For uniform conductivity and
uniform grid spacing, this coefficient can be seen
to be ρc(∆x/∆t)-k/ ∆x. Whenever the time step is
not sufficiently small, this coefficient could
become negative, with its potential for physically
unrealistic results.
c) For f=1, the coefficient of TP0 in eq(6) must never
become negative. It is for this reason that we shall
adopt the fully implicit scheme in this book.
13-2 Unsteady One-Dimensional
Condition(9)
The Fully Implicit Discretitation Equation
1. aP TP =aE TE +aW TW +b
Where
ke kW cx
aE , aW , aP
0
,
x e x W t
b S C x a T
0
p
0
p
a P a E aW a P0 S P x
cT T T
k k s
t x x y y
if , c constant, then
T T T
c k k s
t x x y y
13-3 Two-And Three-
Dimensional Situations(2)
N
∆x
n
∆y
W E
w p e
s y
S x
13-3 Two-And Three-
Dimensional Situations(3)
→aP TP =aE TE +aW TW +aN TN +b
where
ke y k y k x k x
aE , aW W , a N n , aW s ,
x e x W y n y S
cxy
a
0
,
t
P
b SC xy a 0pTp0
aP aE aW aS a N aP0 S P xy
Discretiza tion Equation for Three Dimensions
aPTP aETE aW TW a N TN aS TS aT TT aBTB b
13-4 Overrelaxation and
Underrelaxation(1)
Overrelaxation is often used in conjunction with
the Gauss-Seidel method, the resulting scheme
being known as successive Over-Relaxation
(SOR). With the line-by-line method, the use of
overrelaxation is less common. Underrelaxation is
a very useful device for nonlinear problem. It is
often employed to avoid divergence in the
iterative solution of strongly nonlinear equations.
13-4 Overrelation and
Underrelaxation(2)
The general discretization equation of the form is
aPTP anbTnb b (1)
TP
a T b
nb nb
(2)
aP
anbTnb b
TP T
*
P
TP (3)
*
aP
TP* is the value of TP from the previous iteration.
anbTnb b
TP T
*
P TP (4a )
*
aP
or P TP anbTnb b 1 P TP* (4b)
a a
13-4 Overrelation and
Underrelaxation(3)
At first, it should be noted that, when the iterations,
that is, TP becomes equal to TP*. Eq. (4a) implies
that the converged values of T do satisfy the
original Eq.(1). Any relaxation scheme, of course
must possess this property; the final converged
solution, although obtained through the use of
arbitrary relaxation factors or similar devices,
must still satisfy the original discretization
equation.
13-4 Overrelation and
Underrelaxation(4)
There are no general rules for choosing the
best value of α. The optimum value depends
upon a number of factors, such as the nature
of the problem, the number of grid points,
the grid spacing, and the iterative procedure
used. Usually, a suitable value of α can be
found by experience.
CHAPTER 14
d
u 0 or u cons tan t
dx
d
d
u (1)
dx dx x
14-2 Steady One-Dimensional
Convection and Diffusion(2)
A Preliminary Derivation
1. Integration of Eq (1) over the C.V. shown in
Fig.1 gives
d d
u e u w (2)
dx e dx w
C.V.
w e
W P E
(δx)w (δx)e
14-2 Steady One-Dimensional
Convection and Diffusion(3)
2. Diffusion term: The same way of chapter 9.
3. Convection term:
e E P and w P W
1 1
2 2
The factor ½ arises from the assumption of
the interfaces being midway. Now, Eq (1) can
be written as
1
u e E P u w P W
1
2 2
e E P w P W
x e x w
14-2 Steady One-Dimensional
Convection and Diffusion(4)
4.
a)
F u , D
x
b) Both have the same dimensions; F indicates the
strength of the convection (or the flow), while D is
the diffusion conductance.
c) D always remains positive, F can take either
positive or negative values depending on the
direction of the fluid flow.
14-2 Steady One-Dimensional
Convection and Diffusion(5)
5. Discretization Equation:
a P P a E E aW W (3)
Fe
Where a E De (3a )
2
Fw
aW Dw (3b)
2
Fe Fw
aP De Dw
2 2
aE aW Fe Fw (3c)
14-2 Steady One-Dimensional
Convection and Diffusion(6)
6. Discussion:
a) Since by continuity Fe=Fw, we do get the property
aP= aE + aW
b) Eq (3) is also known as the central-difference
scheme and is the natural outcome of a Taylor-
series formulation.
14-2 Steady One-Dimensional
Convection and Diffusion(7)
c) Example: De=Dw=1 and Fe=Fw=4
Consider two sets of values:
i. If ΦE=200 and ΦW=100 , then ΦP=50!
ii. If ΦE=100 and ΦW=200 , then ΦP=250!
Since , in reality, cannot fall outside
the range of 100~200 established by
its neighbors, these results are clearly
unrealistic.
14-2 Steady One-Dimensional
Convection and Diffusion(8)
d) Eqs (3a)-(3c) indicate that the coefficients could,
at times, become negative. When |F| exceeds 2D,
then, depending on whether F is positive or
negative, where is a possibility of aE or aW
becoming negative. This will be a violation of one
of the basic rules.
14-2 Steady One-Dimensional
Convection and Diffusion(9)
The Upwind Scheme
1. The upwind scheme recognizes that the weak
point in the preliminary formulation is the
assumption that the convected property Φe at
the interface is the average of ΦE and ΦP , and
it proposes a better prescription. The
formulation of the diffusion term is left
unchanged, but the convection term is
calculated from the following assumption:
14-2 Steady One-Dimensional
Convection and Diffusion(10)
The value of Φ at an interface is equal to the
value of Φ at the grid point on the upwind side
of the face.
thus, Φe = Φp if Fe>0—(4a)
and, Φe = ΦE if Fe<0—(4b)
The value of Φw can be defined similarly.
w e
W P E
u e u w F e F w
14-2 Steady One-Dimensional
Convection and Diffusion(11)
2. We shall define 【A,B】 to denote the greater of
A and B . Then, the upwind scheme implies
a p p aE E aW W (6)
where aE De Fe ,0 (6a )
aW Dw Fw ,0 (6b)
aP De Fe ,0 Dw 1 Fw ,0
aE aW Fe Fw (6c)
14-2 Steady One-Dimensional
Convection and Diffusion(13)
4. Discussion:
It is evident from Eqs.(6) that no negative
coefficients would arise, thus, the solutions
will always be physically realistic.
14-2 Steady One-Dimensional
Convection and Diffusion(14)
The Exact Solution
u (1)
x x x
can be solved exactly if Γ is taken to be
constant.(ρu is constant)
14-2 Steady One-Dimensional
Convection and Diffusion(15)
If a domain 0≦x≦L is used, with the boundary
conditions
At x 0 0
At x L L
The solution of Eq(1) is
0 exp P x L 1
(7 )
L 0 exp P 1
where P is a Peclet number defined by
uL
p
It can be seen that P is the ratio of the strengths of
convection and diffusion.
14-2 Steady One-Dimensional
Convection and Diffusion(16)
2. The nature of the exact solution:
-P>>1
фL
P= -1
ф
P=0
P=1
Fig.2 Exact solution for the
ф0 one-dimensional convection-
P>>1 diffusion problem
0 L
x
14-2 Steady One-Dimensional
Convection and Diffusion(17)
a) In the limit of zero Peclet number, we get the
pure-diffusion (or conduction) problem, and the
ф~x variation is linear.
b) When the flow is in the positive x direction (i.e.,
for positive values of P), the values of ф in the
domain seem to be more influenced by the
upstream value ф0.
c) For a large positive value of P, the value of ф
remains very close to the upstream value ф0 over
much of the domain.
14-2 Steady One-Dimensional
Convection and Diffusion(18)
d) When the fluid flows in the negative x direction,
Φ L becomes the upstream value, which dominates
the values of Φ in the domain.
e) When a large negative P, the value Φ of over
most of the region is very nearly equal to Φ L .
14-2 Steady One-Dimensional
Convection and Diffusion(19)
3. Implications:
a) It is easy to see why our preliminary derivation
failed to give a satisfactory formulation. The Φ ~x
profile is far from being linear except for small
values of |P|.
b) Where |P| is large, the value of Φ at x=L/2 (the
interface is nearly equal to the value of Φ at the
upwind boundary. This is precisely the assumption
made in the upwind scheme; but there it is used
for all values of |P|, not just for large value.
14-2 Steady One-Dimensional
Convection and Diffusion(20)
c) Where |P| is large, dΦ/dx is nearly zero at x=L/2.
Thus the diffusion is almost absent. The upwind
scheme always calculates the diffusion term from
a linear Φ~x profile and thus overestimates
diffusion at large value of |P|.
14-2 Steady One-Dimensional
Convection and Diffusion(21)
The exponential scheme
1. It is useful to consider a total flux J that is
made of the convection flux ρu and the
diffusion flux -Γd /dx. Thus,
d
J u (8)
dx
with this definition eq (1) becomes
dJ
0 (9)
dx
which, when integrated over the C.V.
shown in fig.1 gives J e J w 0 (10)
14-2 Steady One-Dimensional
Convection and Diffusion(22)
2. The substitution of eq. (9) into eq. (8) would
give the expression for Je:
p E
J e Fe p (10)
exp pe 1
where pe
u e x e Fe
e De
14-2 Steady One-Dimensional
Convection and Diffusion(23)
3. Finally, substitution of eq. (11) and a similar
expression for Jw into eq. (10) leads to
p E W p
Fe p Fw W 0 (12)
exp pe 1 exp pw 1
aP P aE E aW W (13)
Fe
where aE (14a )
exp Fe / De 1
Fw exp Fw / Dw
aw (14b)
exp Fw / Dw 1
a p aE aW Fe Fw (14c)
14-2 Steady One-Dimensional
Convection and Diffusion(24)
4. Discussions:
a) These coefficients expressions define the
exponential scheme. When used for the steady
one-dimensional problem, this scheme is
guaranteed to produce the exact solution for any
value of the Peclet number and for any number of
grid points.
14-2 Steady One-Dimensional
Convection and Diffusion(25)
b) Despite its highly desirable behavior, it is not
widely used because
i. Exponentials are expensive to compute.
ii. Since the scheme is not for two- or three-dimensional
situations, nonzero sources, etc., the extra expense of
computing the exponentials does not seem to be justified.
14-2 Steady One-Dimensional
Convection and Diffusion(26)
The Hybrid scheme
1. To appreciate the connection between the
exponential scheme and the hybrid scheme,
we shall plot aE/De vs. pe as follows:
14-2 Steady One-Dimensional
Convection and Diffusion(27)
pe
a E De p e , 1 , 0
2
Fe
or a E Fe , De , 0
2
14-2 Steady One-Dimensional
Convection and Diffusion(31)
5. The significance of the hybrid scheme can be
understood by observing that
a) It is identical with the central-difference scheme
for –2 < pe < 2
b) Outside this range it reduces to the upwind scheme
in which the diffusion has been set equal to zero.
c) The name hybrid is indicative of a combination of
the central-difference and upwind scheme, but it is
best to consider the hybrid scheme as the three-
line approximation to the exact curve, shown in
Fig.3
14-2 Steady One-Dimensional
Convection and Diffusion(32)
6. The convection-diffusion discretization for
the hybrid scheme can now be written as
aP P aE E aW W
where
Fe
aE Fe , De , 0
2
Fw
aw Fw , Dw , 0
2
aP aE aW Fe Fw
14-2 Steady One-Dimensional
Convection and Diffusion(33)
The Power-Law scheme
1. It can be seen from Fig.3, that the departure
of the hybrid scheme from the exact curve is
rather large. A better approximation to the
exact curve is given by the Power-law scheme.
14-2 Steady One-Dimensional
Convection and Diffusion(34)
2. The Power-law expressions for aE can be
written as
aE
a ) For p e 10 p e (15a )
De
aE
b) For - 10 p e 0 1 0.1p e p e (15b)
5
De
aE
c) For 0 p e 10 1 0.1p e (15c)
5
De
14-2 Steady One-Dimensional
Convection and Diffusion(35)
A Generalized Formulation
1. The general convection-diffusion formulation
can be written as
a p p a E E a w w
where a E De A p Fe ,0
a w Dw A p Fw ,0
a p a E a w Fe Fw
14-2 Steady One-Dimensional
Convection and Diffusion(36)
2. The function A(|p|) for different schemes
p
Exponential (exact)
exp p 1
14-3 Discretization Equation for
Two Dimensions(1)
Discretization Equation of 2-D
J x J y
s (1)
t x y
where Jx and Jy are the total (convection
plus diffusion) fluxes defined by
J x u (1a )
x
J y v (1b)
y
14-3 Discretization Equation for
Two Dimensions(2)
The integration of eq(1) over the c.v. shown
in Fig.1 would give
N
∆x
n
W Jn ∆y E
w p e
Jw Je
s Js y
S x
Fig.2
14-3 Discretization Equation for
Two Dimensions(3)
p p
0p p0 xy
Je Jw Jn Js
t
S c S p p xy (2)
14-3 Discretization Equation for
Two Dimensions(4)
In a similar manner, we can integrate the
continuity eq
Fx Fy
0
t x y
over the c.v. and obtain
p
0p xy
Fe Fw Fn Fs 0 (3)
t
where F u
14-3 Discretization Equation for
Two Dimensions(5)
(2) (3) p
0p xy
p p0 t
J e Fe p J w Fw p
aW Dw A pw Fw ,0
a N Dn A pn Fn ,0
aS Ds A ps Fs ,0
0p xy
a 0p
t
b SC xy a 0p p 0p
a p aE aw a N aS a 0p S p xy
14-4 One-Way Space
Coordinate(1)
Time is a one-way coordinate. The convection-
diffusion formulation reveals that a space
coordinate can also become a one-way.
What makes a space coordinate One-Way?
When the Peclet number exceeds10, the Power-
law scheme will set the downstream-neighbor
coefficient equal to zero. (the hybrid scheme does
this for a Peclet number greater than 2.)
14-4 One-Way Space
Coordinate(2)
Suppose that, in the 2-D situation shown in
Fig.2 , there is a high flow rate in the
positive x direction. Then, for all the grid
points along a y-direction line, the
coefficient aE will be zero. In other words,
p will be dependent on W , N , and S , but
not on aE. Thus the x coordinate will
become a one-way coordinate since the
value at any point will be uninfluenced by
any of the downstream values.
14-4 One-Way Space
Coordinate(3)
p E
w
S
Fig.2
14-4 One-Way Space
Coordinate(4)
The outflow Boundary Conditions
At the outflow boundary shown in Fig.3, for
example, one may not know the temperature or the
heat flux. How can we then solve the problem?
The answer is surprisingly simple: No boundary-
condition information is needed at an outflow
boundary. For all grid points p next to the outflow
boundary, the coefficient aE will be zero, and
hence no boundary values will be needed. In other
words, the region near the outflow boundary
exhibits, for large Peclet number, local one-way
behavior.
14-4 One-Way Space
Coordinate(5)
outflow
boundary
Inflow
boundary N
W P E
S
Fig 3
14-4 One-Way Space
Coordinate(6)
A particularly bad choice of an outflow-
boundary location is the one in which there
is an “inflow” over a part of it. An example
of this shown in Fig.4. For such a bad
choice of the boundary, no meaningful
solution can be obtained.
14-4 One-Way Space
Coordinate(7)
Bad Good
Fig. 4
CHAPTER 15
W w P e E
x c.v.
Fig. 1
15-2 Some Related Difficulties(2)
2. To express pw-pe in terms of the grid-point
pressure, we may assume a piecewise-linear
profile for pressure. Therefore, we can get
pW p p p p pE pW pE
p w pe
2 2 2
This means that the momentum equation will
contain the pressure difference between two
alternate grid points, and not between
adjacent ones.
15-2 Some Related Difficulties(3)
3. There is another implication that is far more
serious. It can be seen from Fig.2, where a
pressure field is proposed in terms of the grid-
point values of pressure.
p=100 500 100 500 100 500
Fig. 2
such a zig-zag field cannot be regarded as
realistic; but for any grid point p, the
corresponding pW-pE can be seen to zero,
since the alternate pressure values are
everywhere equal.
15-2 Some Related Difficulties(4)
Representation of the continuity Equation
If we integrate the continuity equation over
the c.v. shown in Fig1, we have
ue-uw=0
15-2 Some Related Difficulties(5)
Once again, the use of a piecewise-linear
profile for u and of the midway locations of
the control-volume faces leads to
u p uE uW u p
0 or u E uW 0
2 2
Thus, the discretized continuity equation
demands the quality of velocities at
alternate grid points and not at adjacent
ones.
15-3 A Remedy : The staggered
Grid(1)
The difficulties described so far can be
resolved by recognizing that we do not have
to calculate all the variables for the same
grid points. We can, if we wish, employ a
different grid for each dependent variable.
15-3 A Remedy : The staggered
Grid(2)
Staggered grid:
1. The velocity components are calculated for
the points that lie on the face of the control
volume, as shown in Fig.3.
2. Other variables are calculated for the grid
points(small circles).
n
e
v v v (4b),
*
w w w (4c),
*
u , v , w velocity corrections
15-5 The Pressure and Velocity
Corrections(3)
If (1a)-(2a), we have
p p p E Ae (5)
ae u e a nb u nb
At this point, we shall boldly decide to drop
the term ∑anbu' nb from eq.(5) and the result
is
a e u e p p p E or u e d e p p p E (6)
Ae
where d e
ae
15-5 The Pressure and Velocity
Corrections(4)
Eq.(6) will be called the velocity-correction
formula, which can also be written as
ue u d e pp pE (7 a)
*
e
u v w
0
t x y z
p p xyz
0
u e u w yz
t
v n v s zx wt wb xy 0 (8)
15-6 The Pressure-Correction
Equation(2)
Substituting eqs(7) into eq(8), we can
obtain
a p pp aE pE aW pW a N pN aS pS aT pT aB pB b (9)
where aE e d e yz ,aW w d w yz ,
a N n d n yz , aS s d s yz ,
aT t d t yz , aB b d b yz ,
a p aE aW a N aS aT aB
b
0
p
p xyz
u yz
u * *
t
w e
uˆ e
a nb u nb b
(2)
ae
u e uˆ e d e p p p E (3a)
similarly, we can write v n vˆn d n p p p N (3b)
wt wˆ t d t p p pT (3c)
substituti ng (3a) ~ (3c) into continuity eq. , we can get
a p p p a E p E aW pW a N p N a S p S aT pT a B p B b (4)
15-8 A Revised Algorithm:
SIMPLER(3)
2. Although the pressure eq and p' eq are almost
identical, there is one major difference:
No approximations have been introduced in the
derivation of the pressure equation. Thus, if a
correct velocity field were used to calculate the
pseudo-velocities, the pressure equation would
at once give the correct pressure.
15-8 A Revised Algorithm:
SIMPLER(4)
The SIMPLER Algorithm
The revised algorithm consists of solving
the pressure equation to obtain the pressure
field and solving the pressure-correction
equation only to correct the velocities.
15-8 A Revised Algorithm:
SIMPLER(5)
The sequence of operations can be stated as:
1. Start with a guessed velocity field.
2. Calculate pseudo-velocity û,v,ŵ from eqs (1),(2).
3. Solve pressure equation by eq.(4) to obtain the pressure field.
4. Treat this pressure field as p*, solve momentum eq to obtain
u*,v*,w* solve p' eq.
5. Solve p' eq
6. Correct the velocity field (ue=u*+de(p'p-p'e),etc), but do not
correct the pressure.
7. Solve other Φ‘s if necessary.
8. Return to step 2 and repeat until convergence.
15-8 A Revised Algorithm:
SIMPLER(6)
Discussion
1. In general, since the pressure-correction
equation produces reasonable velocity fields,
and the pressure equation works out the direct
consequence of a given velocity field,
convergence to the final solution should be
much faster.
15-8 A Revised Algorithm:
SIMPLER(7)
2. In SIMPLE, a guessed pressure field plays an
important role. On the other hand, SIMPLER
does not use guessed pressures, but extracts a
pressure field from a given velocity field.
3. Because of the close similarity between the
pressure equation and the pressure-correction
equation, the discussion in previous section
about boundary conditions for p eq. is also
relevant to the pressure equation.
15-8 A Revised Algorithm:
SIMPLER(8)
4. Although SIMPLER has been found to give
faster convergence than SIMPLE, it should be
recognized that one iterations of SIMPLER
involves more computational effort. Since
SIMPLER requires fewer iterations for
convergence, the additional effort per iteration
is more than compensated by the overall saving
of effort
15-9 The SIMPLEC Algorithm
SIMPLEC stands for SIMPLE-Consistent.
It follows the same steps as the SIMPLE
algorithm.
The u-velocity correction equation of
SIMPLEC is given by
Ae
u e d e p e p e , d e
a e a nb
note : a u a
e e nb
p p p E Ae
u nb
15-10 Convergence Criterion
apΦp=∑anbΦnb+b
Residual R=∑anbΦnb+b- apΦp
Obviously, when the discretization eq is
satisfied, R will be zero. A suitable
convergence criterion is to require that the
largest value of |R| be less than a certain
small number.