Professional Documents
Culture Documents
DYNAMICS
EXAMPLE 5.4
THE HIGHER-ORDER DIFFERENCING SCHEMES FOR
CONVECTION-DIFFUSION PROBLEMS
Using the QUICK scheme solve the problem considered in Example 5.1 for
u = 0.2m/s on a five-point grid. Compare the QUICK solution with the exact and
the central differencing solution.
A property ϕ is transported by means of convection and diffusion through
the one-dimensional domain sketched in figure 1. The analytical solution:
0 exp ux / 1
L 0 exp uL / 1
(1)
The boundary conditions are ϕ 0 = 1 at x = 0 and ϕ L = 0 at x = L. The
following data apply: length L = 1.0m, ρ = 1.0kg/m 3, Γ = 0.1kg/m.s
ϕ=1 ϕ=0
u
x=0 x=L
Figure 1. The one-dimensional domain sketched
SOLUTION
The grid shown in figure 2 is below used here for the discretization.
δx
A 1 2 u 3 u 4 5 B
ϕ=1 ϕ=0
x=0 x=L
W w P e E
δx δx
Figure 2. The grid used
We have
F F F .u 0.2 kg
w
e s.m2
D w De D x 0.5
kg
s.m2
Pe Pe F 0.4
w e D
1. Original form of QUICK
© hvtinh97@gmail.com 1
ADVANCED COMPUTATIONAL FLUID DYNAMICS - HW#5
aP a WW a W aE Fe Fw SP
With neighbour coefficients, where
Table 2
Nod
a WW aW aE SP Su
e
1 * 3 8 2 8 * 2
0 0 De
3
DA Fe
8
D*A Fe FA 3 DA 8 Fe FA A
3 8
1 0 0 0.592 -1.583 1.583
aP 2.175
7 1 3 1 1
0 Dw Fw Fe De Fe Fw FwA
8 8 8 4 4
2
0 0.7 0.425 0.05 -0.05
© hvtinh97@gmail.com 2
ADVANCED COMPUTATIONAL FLUID DYNAMICS - HW#5
aP 1.075
1 1 6 8 8 *
Fw
8
D w DB* Fw
3 8
0 DB* FB 3 DB FB B
3
5 -0.025 0.817 0 -1.133 0
aP 1.925
Therefore, at node 1, 2 and 5, the discretised equation becomes
1 0.9648
0.8707
2
3 0.7309
4 0.5226
0.2123
5
The resulting matrix equation can be solved with MATLAB software.
© hvtinh97@gmail.com 3
ADVANCED COMPUTATIONAL FLUID DYNAMICS - HW#5
The function plot(x,y) generates a plot with the x value_distance (m) on the
horizontal axis and the y values_property ϕ on the vertical axis. The session is:
© hvtinh97@gmail.com 4
ADVANCED COMPUTATIONAL FLUID DYNAMICS - HW#5
u = 0.2 m/s
Numerical solution
Exact solution
8 E EE
1 2 3P 1 e Fe
0.7 0.5
© hvtinh97@gmail.com 5
ADVANCED COMPUTATIONAL FLUID DYNAMICS - HW#5
aP a WW a W aE Fe Fw SP
Where
The discretised equation at node 1 is
8 8 8
Fe 7 P 3 E 2 A FAA De E P 1 DA* 9P 8A E
3
8 8 8 3
FBB Fw w 3 P 2 W 1 WW 1 DB* 8B 9P W D w P W
8 8 8 8 8 8
Fe P 3 E 2 P 1 W Fw 7 W 3 P 2 A De E P Dw P W
Table 5
Nod
a WW aW aE SP Su
e
1 3 8 1 8 * 1
0 0 De D*A Fe
3 8
D*A Fe Fw 3 D A 4 Fe FA A
3 4
1 0 0 0.592 -1.583 1.583
aP 2.175
7 1 3 1 1
0 D w Fw Fe De Fe Fw FwA
8 8 8 4 4
2
0 0.7 0.425 0.05 -0.05
© hvtinh97@gmail.com 6
ADVANCED COMPUTATIONAL FLUID DYNAMICS - HW#5
aP 1.075
1 1 3 8 8 *
Fw
8
D w DB* Fw
3 4
0 DB* Fe 3 DB FB B
3
5 -0.025 0.817 0 -1.133 0
aP 1.925
Therefore, at node 1, 2 and 5, the discretised equation becomes
1 0.9648
0.8707
2
3 0.7309
4 0.5226
0.2123
5
The resulting matrix equation can be solved with MATLAB software.
© hvtinh97@gmail.com 7
ADVANCED COMPUTATIONAL FLUID DYNAMICS - HW#5
© hvtinh97@gmail.com 8
ADVANCED COMPUTATIONAL FLUID DYNAMICS - HW#5
BIBLIOGRAPHY
[1] H K Versteeg and W Malalasekera, 2007. An Introduction to Computational
Fluid Dynamics (The Finite Volume Method). Second Edition. Pearson Education
Limited.
© hvtinh97@gmail.com 9