Professional Documents
Culture Documents
+ =
+ +
D
D D D
13
Discretization example - continued
Rearranging the previous equation results in:
This equation can now be simplified to:
Here nb refers to the neighboring cells. The coefficients a
nb
and b will be
different for every cell in the domain at every iteration. The species
concentration field can be calculated by recalculating c
P
from this
equation iteratively for all cells in the domain.
( / / / / ) ( / )
( / )
( / )
( / )
P n P e P w w n p e e s s W w W w w
N n n
E e e
S s S s s
P
c A v A u A x A y A x A y c A u A x
c A y
c A x
c A v A y
S
+ + + + + = + +
+
+
+ +
D D D D D
D
D
D
P P W W N N E E S S
nb nb
nb
a c a c a c a c a c b
a c b
= + + + +
= +
14
Finite Volume Method for Diffusion Problems
15
Finite Volume Method for Diffusion Problems
16
Finite Volume Method for Diffusion Problems
17
Finite Volume Method for Diffusion Problems
18
Finite Volume Method for Diffusion Problems
19
Finite Volume Method for Diffusion Problems
20
Finite Volume Method for Diffusion Problems
Tri-diagonal matrix
21
Finite Volume Method for Diffusion Problems
22
Finite Volume Method for Diffusion Problems
23
Finite Volume Method for Diffusion Problems
Boundary conditions
0 = +
(
\
|
\
|
x qA
x
T T
A k
x
T T
A k
W P
w
P E
e
24
Finite Volume Method for Diffusion Problems
Boundary conditions
25
Finite Volume Method for Diffusion Problems
Boundary conditions
26
Finite Volume Method for Diffusion Problems
Boundary conditions
27
Finite Volume Method for Diffusion Problems
28
Finite Volume Method for Diffusion Problems
29
Finite Volume Method for Diffusion Problems
30
Finite Volume Method for Diffusion Problems
Exercise!
31
Finite Volume Method for Diffusion Problems
32
Finite Volume Method for Diffusion Problems
Exercise!
33
Finite Volume Method for Convection-Diffusion
Problems
34
Finite Volume Method for Convection-Diffusion
Problems
35
Finite Volume Method for Convection-Diffusion
Problems
36
Finite Volume Method for Convection-Diffusion
Problems
Just for now!
37
Finite Volume Method for Convection-Diffusion
Problems
P
e
E
(x)
E
We determine the value of at the
face by linear interpolation between the
cell centered values.
38
Finite Volume Method for Convection-Diffusion
Problems
39
Finite Volume Method for Convection-Diffusion
Problems
40
Finite Volume Method for Convection-Diffusion
Problems
Other properties are also considered: Consistency, stability,
convergence and accuracy
41
Finite Volume Method for Convection-Diffusion
Problems
42
Finite Volume Method for Convection-Diffusion
Problems
Discrete approximation
The discrete approximation is consistent with the differential equation iff
43
Finite Volume Method for Convection-Diffusion
Problems
44
Finite Volume Method for Convection-Diffusion
Problems
45
Finite Volume Method for Convection-Diffusion
Problems
46
Finite Volume Method for Convection-Diffusion
Problems
47
Finite Volume Method for Convection-Diffusion
Problems
48
Finite Volume Method for Convection-Diffusion
Problems
49
Finite Volume Method for Convection-Diffusion
Problems
50
Finite Volume Method for Convection-Diffusion
Problems
Property of fluid flow
51
Finite Volume Method for Convection-Diffusion
Problems
52
Finite Volume Method for Convection-Diffusion
Problems
1
=
i w i e
Guarantees that diffusive fluxes are equal
from both sides of the CV
53
Finite Volume Method for Convection-Diffusion
Problems
54
Finite Volume Method for Convection-Diffusion
Problems
55
Finite Volume Method for Convection-Diffusion
Problems
56
Finite Volume Method for Convection-Diffusion
Problems
57
Finite Volume Method for Convection-Diffusion
Problems
58
Finite Volume Method for Convection-Diffusion
Problems
59
Finite Volume Method for Convection-Diffusion
Problems
60
Finite Volume Method for Convection-Diffusion
Problems
Second-order upwind scheme
We determine the value of from the
cell values in the two cells upstream of
the face.
This is more accurate than the first
order upwind scheme, but in regions
with strong gradients it can result in face
values that are outside of the range of
cell values. It is then necessary to apply
limiters to the predicted face values.
P
e
E
(x)
E
W
W
Flow direction
interpolated
value
61
Finite Volume Method for Convection-Diffusion
Problems
Hot fluid
Cold fluid
T = 100C
T = 0C
Diffusion set to zero
k=0
62
Finite Volume Method for Convection-Diffusion
Problems
8 x 8
64 x 64
First-order Upwind Second-order Upwind
Grid refinement coupled with a higher-order interpolation
scheme will minimize the false diffusion
63
Finite Volume Method for Convection-Diffusion
Problems
64
Finite Volume Method for Convection-Diffusion
Problems
65
Finite Volume Method for Convection-Diffusion
Problems
66
Finite Volume Method for Convection-Diffusion
Problems
67
Finite Volume Method for Convection-Diffusion
Problems
P
e
E
(x)
E
x
L
This is based on the analytical solution
of the one-dimensional convection-
diffusion equation.
68
Finite Volume Method for Convection-Diffusion
Problems
P
e
E
(x)
e
E
W
W
Flow direction
A quadratic curve is fitted
through two upstream nodes and
one downstream node.
This is a very accurate scheme,
but in regions with strong
gradients, overshoots and
undershoots can occur. This can
lead to stability problems in the
calculation.
69
Finite Volume Method for Convection-Diffusion
Problems
Diagrama de variable normalizada
En 1D con el flujo de W a E se define la variable normalizada de P a E
W E
W
Esquemas lineales
( )
( ) QUICK
UDS
CDS
P e
P e
P e
2 1
8
3
1
2
1
+ =
=
+ =
Diagrama de variable normalizada
(Gaskell & Lau, 1988)
P e
vs
( )
P
f
( ) ( ) 1
0
1
0
> < =
P P P P
f
El nico esquema lineal que las
satisface es UDS. Existen esque-
mas no lineales que cumplen las
condiciones
71
Note on accuracy of numerical schemes
Each of the previously discussed numerical schemes assumes some
shape of the function . These functions can be approximated by Taylor
series polynomials:
The first order upwind scheme only uses the constant and ignores the
first derivative and consecutive terms. This scheme is therefore
considered first order accurate.
For high Peclet numbers the power law scheme reduces to the first
order upwind scheme, so it is also considered first order accurate.
The central differencing scheme and second order upwind scheme do
include the first order derivative, but ignore the second order derivative.
These schemes are therefore considered second order accurate.
QUICK does take the second order derivative into account, but ignores
the third order derivative. This is then considered third order accurate.
... ) (
!
) (
.... ) (
! 2
) ( ' '
) (
! 1
) ( '
) ( ) (
2
+ + + + + =
n
P e
P
n
P e
P
P e
P
P e
x x
n
x
x x
x
x x
x
x x
72
Finite Volume Method for Convection-Diffusion
Problems
73
Finite Volume Method for Convection-Diffusion
Problems
74
Finite Volume Method for Convection-Diffusion
Problems
Uniform grid with 10 CVs
Oscillations
False diffusion
5 =
x
Pe
75
Finite Volume Method for Convection-Diffusion
Problems
Uniform grid with 40 CVs
25 . 1 =
x
Pe
False diffusion
76
Finite Volume Method for Convection-Diffusion
Problems
Nonniform grid with 10 CVs
7 . 0 , 31 . 0 , 0125 . 0
max min
= = =
e
r x x
False diffusion
77
Finite Volume Method for Convection-Diffusion
Problems