Professional Documents
Culture Documents
A Comparitive Study of FVM and FDM
A Comparitive Study of FVM and FDM
A Comparitive Study of FVM and FDM
DOI: 10.5923/j.ajcam.20110102.13
Abstract Now-a-days computational fluid mechanics has become very vital area in which obtained governing equations
are differential equations. Sometimes, these governing equations cannot be easily solved by existing analytical methods.
Due to this reason, we use various numerical techniques to find out approximate solution for such problems. Among these
techniques, finite volume method is also being used for solving these governing equations here we are describing compara-
tive study of Finite volume method and finite difference method.
Keywords Convection-Diffusion Problems, Finite Volume Method, Finite Difference Method
finite element method, values are calculated at discrete volume to yield a discretized equation to yield a discretized
places on a meshed geometry. "Finite volume" refers to the equation at its nodal points P.
small volume surrounding each node point on a mesh. In the Step 3: Solution
finite volume method, volume integrals in a partial differen- After discretization over each volume method, we are
tial equation that contain a divergence term are converted to finding a system of algebraic equation. Which are easily
surface integrals, using the divergence theorem. These terms solved by numerical scheme such as Gauss-Siedel method.
are then evaluated as fluxes at the surfaces of each finite Generally equations are in tri-diagonal form in next section
volume. Because the flux entering a given volume is iden- we are describing this method by a suitable example
tical to that leaving the adjacent volume, these methods are
conservative. Another advantage of the finite volume
method is that it is easily formulated to allow for unstruc- 3. Finite Volume Method for Real Life
tured meshes. The method is used in many computational
fluid dynamics packages. In finite difference,[5] the de-
Problem
pendent variable values are stored at the nodes only. Infinite In this section, we describe the finite volume method for
element method, the dependent values are stored at the ele- solving convection-diffusion problem. Firstly, we shall de-
ment nodes. But in finite volume method, the dependent fine a convection-diffusion problem.
values are stored in the centre of the finite volume. In FVM,
conservation of mass, momentum, energy is ensured at each Convection-diffusion problem
cell/finite volume level. This is not true in finite difference The general transport equation for any fluid property is
and finite element approach. It is always better to use gov- given by
∂ ( ρϕ )
erning equation in conservative form with finite volume + div( ρϕ u ) =
div(Γgradϕ ) + Sϕ .
approach to solve any problem which ensures conservation
∂t (1)
of all the properties in each cells/control volume. One ad- In problems where fluid flow plays a significant role we
vantage of the finite volume method over finite difference must account for the effects of convection. Diffusion always
methods is that it does not require a structured mesh (al- occurs alongside convection in nature so here we examine
though a structured mesh can also be used). method to predict combined convection and Diffusion. The
Now we shall discuss the steps involving FVM for solving steady convection-diffusion equation can be derived from
differential equation: transport equation (1) for a general property by deleting
Step 1: Grid Generation transient term
The first step in the finite volume method is grid genera- div( ρ uΦ=
) div(Γgrad Φ ) + sΦ . (2)
tion by dividing the domain in to discrete control volumes. Formal integration over control volume gives
Let us place a number of nodal points in the space between A ∫ n.( ρ uΦ)dA = ∫ n(Γgrad Φ)dA + ∫ S
A A CV
Φ dV .
sumption:
Let F = ρu represent convective mass flux per unit area
and D = Γ represent diffusion conductance.
δx
Now we are taking Aw = Ae = A and applying the cen-
tral differencing the integrated convection-Diffusion be-
comes
The discretization of equation (7) and its coefficient apply
Fe Φ e − FwΦ=
w De (Φ E − Φ P ) − Dw (Φ P − ΦW ). (4) at internal nodal points 2, 3, 4, but control volume 1 and 5
And continuity equation becomes need special treatment we integrate equation (3) and using
Fe − Fw =
0. (5) central differencing for both diffusion and convective flux
Central differencing scheme through the east face of cell 1.
Fe
The central differencing approximation has been used to F D D ( ) (8)
P E A A e E P A P A
2
represent the diffusion terms which appears in equation (4).
and similarly for control volume 5, we may write
So e ( P E) ( W P)
Φ = Φ +Φ / 2; Φ = Φ +Φ / 2. Fw
P W DB B P Dw ( P W ) (9)
w
FB B
Putting these values on equation (4) becomes 2
Fe F But value of in west face and east face is given
(Φ P + Φ E ) − e (Φ W + Φ P ) = D e (Φ E − Φ P ) − D w (Φ P − Φ W )
2 2 ( w A 1) and (e B 0). (10)
Fw Fe Fw Fe
Dw − + De − Φ P = Dw + Φ W + De − Φ E
Using (10) in equation (8) and (9) and rearranging, we
2 2 2 2
note that DA DB 2 / x and FA FB gives discretized
Fw Fe Fw Fe
Dw + + De − + ( Fe − Fw ) Φ P = Dw + Φ W + De − Φ E equation at boundary nodes of the following form
2 2 2 2
(6) a P P aW W aE E SU (11)
Equation (6) can be written as
and central coefficients are
a p = aw + aE + ( Fe − Fw ) − S P (12)
aP P aW W aE E , (7)
Where aP , aW and aE are coefficients of Φ P , ΦW and Node aW aE SP SU
Φ E , respectively.
F
1 0 D -(2D+F) (2 D F ) A
Example: A property Φ is transported by means of con- 2
xi x0 ih, i=1,2, ,n. The solution of above system of equation is given below:
The corresponding value of at these points are denoted by 1 1.0208
( xi ) i ( x0 ih). 2 0.9723
Thus from equation (17) And (18) we obtain 1.0854
3
1.4375
i1 i1 4
'i O(h 2 )
5
2.4644
2h
2i i1 Result:
and ''i i1 o(h 2 ).
h2 The result and graph of both cases are given below.
We solve the above problem by finite difference method for
Case1: U=0.1
same nodal points and finding how FVM is better than Finite
difference method. Finite
Analytical
Finite
Node Distance volume difference
Case1: U=0.1 solution
Solution solution
Since the governing equation is d (ρuΦ ) = d Γ dΦ , we can
dx dx dx 0.9048
1 0.1 0.9421 0.9387
write this equation in discretized form as for x 0.2,
i1 2i i1 i1
2
'i i1 0. 0.7884
h 2h 2 0.2 0.8006 0.7963
After simplifying this equation we may write
11i1 20i 9i1 0. Thus set of algebraic equation
is 0.6461
3 0.3 0.6276 0.6224
11 A 201 9 2 0
111 20 2 93 0
11 2 203 9 4 0 0.4722
4 0.4 0.4163 0.4100
113 20 4 95 0
11 4 205 9 B 0.
In matrix form the above set of algebraic equations may be 5 0.5 0.1579 0.1505 0.2597
written as
72 Anand Shukla et al.: A Comparative Study of Finite Volume Method and Finite Difference Method
for Convection-Diffusion Problem
5. Conclusions
After analysing the results and by above discussion, we
see that when velocity is larger, finite volume solution does
not have better convergence. The reasons for this are given
below:
1. The internal coefficients of discretized scalar transport
equation (7) are
A steady one-dimensional flow field is also governed by
the discretized continuity equation (5).When this equation
holds then flow field satisfies continuity and also satisfi-
esScarborough condition, which is given as
Σ|a | 1 at all nodes
nb
| a' | < 1 at one nodeat least
P
2. In case two when velocity is 2.5 m/s, the solution does
Fe
not provide better convergence, with aE De . The
Figure 1. Comparison of FVM and FDM with Analytical Solution (AS), 2
U=0.1 convective contribution to the east coefficient is negative; if
Case2:U=2.5 the convection dominates it is possible for aE to be negative.
Finite Finite Given that Fw 0 and Fe 0 (that is flow is unidirectional),
Analytical
Node Distance volume difference for aE to be positive De and Fe must satisfy the condition
solution
Solution solution
1.0208 Fe
1 0.1 1.0356 1.0000 Pee 2.
De
2 0.2 0.8694 0.9999 0.9723
If Pe is greater than two then east confidents will be
e
REFERENCES
[1] B. Guo and X. Wang, Testing of new high-order finite
difference methods for solving the convection-diffusion eq-
uation, E-Journal of Reservoir Engineering, 1,(1)(2005), 1-14
[2] C. Japhet, F. Natafand and F. Rogier, The optimized order
two method Application to convection-diffusion problems,
Future Generation Computer Systems, 18(1)(2001), 17-30
[3] J. D. Anderson, Computational Fluid Dynamics: The Basics
with Applications, Macgraw-Hill Publications, Edition 6,
2008.
Figure 2. Comparison of FVM and FDM with Analytical Solution (AS),
[4] H. Versteeg and W. Malalasekra,, An Introduction to Com-
U=2.5
putational Fluid Dynamics: The Finite Volume Method,
Lomgman Scientific and Technical Publishers, 1995.
aW aE aP [5] Tapan K Sengupta and Orient Longman, Fundamentals of
Computational Fluid Dynamics, Orient Longman Pvt. Ltd.,
FW FE 2004.
DW DE aW aE ( Fe Fw )
2 2 [6] P. K. Kundu and I. M. Cohen, Mechanics, third edition, El-
American Journal of Computational and Applied Mathematics 2011; 1(2): 67-73 73