Finite volume method for two dimensional diffusion problem

The methods used for solving two dimensional Diffusion problems are similar to those used for one dimensional problems. The general equation for steady diffusion can be easily derived from the general transport equation for property Φ by deleting transient and convective terms[1]

\frac{\partial{}}{\partial{}x}\left(\Gamma{}\frac{\partial{}\phi{}}{\partial{}x}\right)+\frac{\partial{}}{\partial{}y}\left(\Gamma{}\frac{\partial{}\phi{}}{\partial{}y}\right)+S=0

where,
\Gamma is the Diffusion coefficient[2] and S is the Source term.[3]

A portion of the two dimensional grid used for Discretization is shown below:

Graph of 2 dimensional plot

In addition to the east (E) and west (W) neighbors, a general grid node P , now also has north (N) and south (S) neighbors. The same notation is used here for all faces and cell dimensions as in one dimensional analysis. When the above equation is formally integrated over the Control volume, we obtain

\int_{\Delta{v}}\frac{\partial{}}{\partial{}x}\left(\Gamma{}\frac{\partial{}\phi{}}{\partial{}x}\right)dx.dy+\int_{\Delta{v}}\frac{\partial{}}{\partial{}y}\left(\Gamma{}\frac{\partial{}\phi{}}{\partial{}y}\right)dx.dy+\int_{\Delta{v}}S_{\phi{}}dV=0

Using the divergence theorem, the equation can be rewritten as :


\left[{\Gamma{}}_eA_e\left(\frac{\partial{}\phi{}}{\partial{}x}\right)_{e}-{\Gamma{}}_wA_w\left(\frac{\partial{}\phi{}}{\partial{}x}\right)_{w}\right]+\left[{\Gamma{}}_nA_n\left(\frac{\partial{}\phi{}}{\partial{}y}\right)_{n}-{\Gamma{}}_sA_s\left(\frac{\partial{}\phi{}}{\partial{}y}\right)_{s}\right]+\bar{S}\Delta{}V=0

This equation represents the balance of generation of the property φ in a Control volume and the fluxes through its cell faces. The derivatives can by represented as follows by using Taylor series approximation:


{{\Gamma{}}_wA_w\left(\frac{\partial{}\phi{}}{\partial{x}}\right)}_w=
{\Gamma{}}_wA_w\frac{({\phi{}}_p-{\phi{}}_w)}{{\delta{}x}_{WP}}

Flux across the east face =


{{\Gamma{}}_eA_e\left(\frac{\partial{}\phi{}}{\partial{x}}\right)}_e=
{\Gamma{}}_eA_e\frac{({\phi{}}_e-{\phi{}}_p)}{{\delta{}x}_{PE}}

Flux across the south face =


{{\Gamma{}}_sA_s\left(\frac{\partial{}\phi{}}{\partial{y}}\right)}_s=
{\Gamma{}}_sA_s\frac{({\phi{}}_p-{\phi{}}_s)}{{\delta{}y}_{SP}}

Flux across the north face =


{{\Gamma{}}_nA_n\left(\frac{\partial{}\phi{}}{\partial{y}}\right)}_n=
{\Gamma{}}_nA_n\frac{({\phi{}}_n-{\phi{}}_p)}{{\delta{}y}_{PN}}

Substituting these expressions in equation (2) we obtain


{\Gamma{}}_eA_e\frac{({\phi{}}_e-{\phi{}}_p)}{{\delta{}x}_{PE}} - {\Gamma{}}_wA_w\frac{({\phi{}}_p-{\phi{}}_w)}{{\delta{}x}_{WP}} + {\Gamma{}}_nA_n\frac{({\phi{}}_n-{\phi{}}_p)}{{\delta{}y}_{PN}} - {\Gamma{}}_sA_s\frac{({\phi{}}_p-{\phi{}}_s)}{{\delta{}y}_{SP}}+ \bar{S}\Delta{}V=0

When the source term is represented in linearized form  \bar{S}\Delta{}V = S_u + S_p*S_{\varphi} , this equation can be rearranged as,

\left[
\frac{{\Gamma{}}_eA_e}{{\delta{}x}_{PE}}
 + \frac{{\Gamma{}}_wA_w}{{\delta{}x}_{WP}}
 + \frac{{\Gamma{}}_nA_n}{{\delta{}y}_{PN}}
 + \frac{{\Gamma{}}_sA_s}{{\delta{}y}_{SP}}
- S_p\right] \phi{}_P =  
\frac{{\Gamma{}}_eA_e}{{\delta{}x}_{PE}}\phi{}_E
 + \frac{{\Gamma{}}_wA_w}{{\delta{}x}_{WP}}\phi{}_W
 + \frac{{\Gamma{}}_nA_n}{{\delta{}x}_{PN}}\phi{}_N
 + \frac{{\Gamma{}}_sA_s}{{\delta{}x}_{SP}}\phi{}_S
+ S_u


This equation can now be expressed in a general discretized equation form for internal nodes, i.e.,

a_P \phi{}_P= a_W \phi{}_W + a_E \phi{}_E + a_S \phi{}_S + a_N \phi{}_N + S_u

Where,

a_W a_E a_S a_N a_P
\frac{{\Gamma{}}_wA_w}{{\delta{}x}_{WP}}
\frac{{\Gamma{}}_eA_e}{{\delta{}x}_{PE}}
\frac{{\Gamma{}}_sA_s}{{\delta{}x}_{SP}}
\frac{{\Gamma{}}_nA_n}{{\delta{}x}_{PN}}
a_W+a_E+a_S+a_N-S_p

The face areas in y two dimensional case are :

 A_{w} = A_{e} = \Delta{}y  

and

 A_{n} = A_{s} = \Delta{}x.

We obtain the distribution of the property \varphi{} i.e. a given two dimensional situation by writing discretized equations of the form of equation (3) at each grid node of the subdivided domain. At the boundaries where the temperature or fluxes are known the discretized equation are modified to incorporate the boundary conditions. The boundary side coefficient is set to zero (cutting the link with the boundary) and the flux crossing this boundary is introduced as a source which is appended to any existing s_{u} and  S_{p} terms. Subsequently the resulting set of equations is solved to obtain the two dimensional distribution of the property \varphi{}

References

  1. "Navier-Stokes Equations in Fluid Mechanics". Efunda.com. Retrieved 2013-10-29.
  2. "Diffusion – useful equations". Life.illinois.edu. Retrieved 2013-10-29.
  3. "SSCP: Programming Strategies". Physics.drexel.edu. Retrieved 2013-10-29.

External links

See also

This article is issued from Wikipedia - version of the Wednesday, December 09, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.