Professional Documents
Culture Documents
Chapter 3.2 Finite Difference and Finite Volume Method
Chapter 3.2 Finite Difference and Finite Volume Method
FV -- integral forms
✓ Approximation of integrals
✓ Conservative by construction
✓ Suitable to arbitrary meshes
S
V dS = 0
u v ui +1, j − ui , j vi , j +1 − vi , j
+ =0 + =0
x y x y
This is based on the Taylor series expansion. If we develop any (x0+x) at x0, as
a Taylor series in x, we obtain
x 2 2
( x0 + x) = ( x0 ) + x + + ....
x x0 2 x x 2
0
( x0 + x) − ( x0 )
= + O(x) x
x x
Professor Qing Xiao NM963 Theory and practice of marine CFD 3
Finite Difference Method (FD) (2/2)
u 3u (x)3
ui +1, j − ui −1, j = 2( ) i , j x + 2( 3 ) i , j + .....
x x 6
u ui +1, j − ui −1, j
( )i , j = + O(x) 2
x 2x
vi , j − vi , j −1
+ O(y ) Backward difference
y
v vi , j +1 − vi , j
( )i , j = + O(y ) Forward difference
y y
vi , j +1 − vi , j −1
+ O(y ) 2 Cetral difference
2y
u v ui +1, j − ui −1, j vi , j +1 − vi , j −1
+ =0 + =0
x y 2x 2y
ui +1, j − ui −1, j + vi , j +1 − vi , j −1 = 0
Professor Qing Xiao NM963 Theory and practice of marine CFD 4
FD Advantages & Disadvantages
Advantages
✓ Simplicity
✓ Possibility to easily obtain high-order approximations, and hence to
achieve high-order accuracy of the spatial discretisation
Disadvantages
Pa. The depth of the channel is divided into N (N=4 in this case)
equally-sized cells of dimension xy as shown, with the velocity
uj using a cell vertex storage.
3 H2 p y2
u( y) = ( )(− ) 1 −
2 12 x ( H / 2) 2
p
pressure drop (known)
x
Professor Qing Xiao NM963 Theory and practice of marine CFD 9
Finite Volume Decomposition
Use Finite Volume Method to solve the velocity profile in Q1.
Assume the depth of the channel H=0.2 m, dynamic viscosity μ=10-
3 kg/m∙s, pressure drop per unit length in x axis direction is 0.04
Pa. The depth of the channel is divided into N (N=4 in this case)
equally-sized cells of dimension xy as shown, with the velocity
uj using a cell vertex storage.
▪ Governing equation 𝜕𝑢 1 𝜕𝑝
ර 𝑑𝑆 = ර 𝑑𝑆
𝑆 𝜕𝑦 𝜇 𝑆 𝜕𝑥
1 1 1 𝜕𝑝 𝑗 = 2…𝑁
𝑢𝑗+1 − 𝑢𝑗 − 𝑢𝑗 − 𝑢𝑗−1 = ∙ ∆𝑦
∆𝑦 𝑗+1 ∆𝑦 𝑗−1 𝜇 𝜕𝑥