Finite volume method for three-dimensional diffusion problem

From HandWiki

Finite volume method (FVM) is a numerical method. FVM in computational fluid dynamics is used to solve the partial differential equation which arises from the physical conservation law by using discretisation. Convection is always followed by diffusion and hence where convection is considered we have to consider combine effect of convection and diffusion. But in places where fluid flow plays a non-considerable role we can neglect the convective effect of the flow. In this case we have to consider more simplistic case of only diffusion. The general equation for steady convection-diffusion can be easily derived from the general transport equation for property [math]\displaystyle{ \phi }[/math] by deleting transient. General transport equation is defined as:

[math]\displaystyle{ \frac{\partial \rho \phi }{\partial t} + \operatorname{div}(\rho \phi \upsilon) = \operatorname{div}(\Gamma \operatorname{grad} \phi) + S_\phi }[/math] …………………………………………….1

Where,

[math]\displaystyle{ \phi }[/math] is a conservative form of all fluid flow,

[math]\displaystyle{ \rho }[/math] is density,

[math]\displaystyle{ \operatorname{div}(\rho \phi \upsilon) }[/math] is a net rate of flow of [math]\displaystyle{ \phi }[/math] out of fluid element represents convective term,

[math]\displaystyle{ \frac{\partial \rho \phi }{\partial t} }[/math] is a transient term,

[math]\displaystyle{ \operatorname{div}(\Gamma \operatorname{grad} \phi) }[/math] is a rate of change [math]\displaystyle{ \phi }[/math] of due to diffusion,

[math]\displaystyle{ S_\phi }[/math] is a rate of increase of [math]\displaystyle{ \phi }[/math] due to source.

Due to steady state condition transient term becomes zero and due to absence of convection convective term becomes zero, therefore steady state three- dimensional convection and diffusion equation becomes:

[math]\displaystyle{ \operatorname{div}(\Gamma \operatorname{grad} \phi) + S_\phi = 0 }[/math]………………………………………………………….2

Therefore,

[math]\displaystyle{ \frac{\partial}{\partial x}\left (\Gamma \frac{\partial \phi}{\partial x}\right )+\frac{\partial}{\partial y}\left (\Gamma \frac{\partial \phi}{\partial y}\right )+\frac{\partial}{\partial z}\left (\Gamma \frac{\partial \phi}{\partial z}\right )+S_\phi = 0 }[/math]…………………………………………………………………….3

Flow should also satisfy continuity equation therefore,

[math]\displaystyle{ \nabla \cdot (\rho \mathbf{u}) = 0 }[/math] ………………………………………………………………………………………………………4

To solve the problem we will follow following general steps

3D Discretization

Grid formation:

1. Divide the domain into discrete control volume.

2. Place the nodal point between end points defining the physical boundaries. Boundaries/ faces of the control volume are created midway between adjacent nodes.

3. Set up the control volume near the edge of domain such that physical as well as control volume boundaries will coincide with each other.

4. Considering a general nodal point P accompanied by six neighboring nodal point ‘E’ (which represent east), ‘W’ (which represent west), ‘N’ (which represent north), ‘S’ (which represent south), ‘T’ (which represent Top), ‘B’ (which represent bottom). In the considered control volume east side face is referred by ‘e’, west side face is referred by ‘w’, north side face is referred by ‘n’, south side face is referred by ‘s’, top side face is referred by ‘t’, bottom side face is referred by ‘b’.

5. Now the distance between nodes W and P, between nodes P and E, between nodes P and N, between nodes S and P, between nodes P and T, between nodes B and P are denoted as [math]\displaystyle{ {\delta x_{WP}} , {\delta x_{PE}} , {\delta x_{PN}} , {\delta x_{SP}} , {\delta x_{PT}} , {\delta x_{BP}} }[/math]respectively.

Discretisation:

On integration of equation 3 in one dimension over the general control volume gives:

[[math]\displaystyle{ \left ( \Gamma A \frac{d\phi }{dx} \right )_e - \left ( \Gamma A \frac{d\phi }{dx} \right )_w] + [\left ( \Gamma A \frac{d\phi }{dx} \right )_n - \left ( \Gamma A \frac{d\phi }{dx} \right )_s] + [\left ( \Gamma A \frac{d\phi }{dx} \right )_t - \left ( \Gamma A \frac{d\phi }{dx} \right )_b] + \overrightarrow{S} \Delta V = 0 }[/math]

Now using central differencing method we can rewrite above equation as

[[math]\displaystyle{ \Gamma_eA_e\left ( \frac{\phi_E - \phi_P}{\delta x_{PE}}\right ) - \Gamma_wA_w\left ( \frac{\phi_P - \phi_W}{\delta x_{PE}}\right )] + [\Gamma_nA_n\left ( \frac{\phi_E - \phi_P}{\delta x_{PE}}\right ) - \Gamma_s A_s\left ( \frac{\phi_P - \phi_W}{\delta x_{PE}}\right )] + [\Gamma_tA_t\left ( \frac{\phi_E - \phi_P}{\delta x_{PE}}\right ) - \Gamma_bA_b\left ( \frac{\phi_P - \phi_W}{\delta x_{PE}}\right )] + (S_u + S_p\phi_p) = 0 }[/math]

This can be rearranged to give the discretised equation for interior nodes:

[math]\displaystyle{ a_P\phi_P = a_W\phi_W + a_E\phi_E + a_S\phi_S + a_N\phi_N + a_B\phi_B + a_T\phi_T + S_u }[/math]

Where

[math]\displaystyle{ a_W }[/math] [math]\displaystyle{ a_E }[/math] [math]\displaystyle{ a_S }[/math] [math]\displaystyle{ a_N }[/math] [math]\displaystyle{ a_B }[/math] [math]\displaystyle{ a_T }[/math] [math]\displaystyle{ a_P }[/math]
[math]\displaystyle{ \frac{\Gamma_w}{\delta x_{WP}} A_w }[/math] [math]\displaystyle{ \frac{\Gamma_e}{\delta x_{PE}} A_e }[/math] [math]\displaystyle{ \frac{\Gamma_s}{\delta x_{SP}} A_s }[/math] [math]\displaystyle{ \frac{\Gamma_n}{\delta x_{PN}} A_n }[/math] [math]\displaystyle{ \frac{\Gamma_b}{\delta x_{BP}} A_w }[/math] [math]\displaystyle{ \frac{\Gamma_t}{\delta x_{PT}} A_t }[/math] [math]\displaystyle{ a_W + a_E + a_S + a_N + a_B + a_T - S_P }[/math]

Solution of equation:

1. For solving the one- dimensional convection- diffusion problem we have to express equation (8) at all the grid nodes.

2. Now obtained set of algebraic equations is then solved to obtain the distribution of the transported property [math]\displaystyle{ \phi }[/math].

See also

External links

References

[1] [2] [3] [4] [5] [6][7] [8] [9] [10]



  1. Date Anil- Introduction to Computational Fluid Dynamics
  2. Lomax, Pulliam- Fundamentals of Computational Fluid Dynamics
  3. Fletcher C.A.J- Computational techniques for fluid dynamics
  4. J. Ferziger, M. Peric - Computational Methods for Fluid Dynamics
  5. H. Versteeg, W. Malalasekra - An Introduction To Computational Fluid Dynamics
  6. J. Blazek - Computational Fluid Dynamics - Principles and Applications
  7. T. Chung - Computational Fluid Dynamics
  8. Hoffmann - Computational Fluid Dynamics
  9. Anderson J D- Computational fluid dynamics - The basics with applications
  10. Tannehill Anderson Pletcher- Computational Fluid Mechanics And Heat Transfer