Central Difference Scheme
From ThermalFluidsPedia
Line 34:  Line 34:  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(2)}} 
}  }  
Defining the mass flux and diffusive conductance  Defining the mass flux and diffusive conductance  
Line 43:  Line 43:  
<math>F=\rho u,\text{ }D=\frac{\Gamma }{\delta x}</math>  <math>F=\rho u,\text{ }D=\frac{\Gamma }{\delta x}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(3)}} 
}  }  
  eq. (  +  eq. (2) can be rearranged as 
{ class="wikitable" border="0"  { class="wikitable" border="0"  
Line 55:  Line 55:  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(4)}} 
}  }  
where  where  
Line 64:  Line 64:  
<math>a_{E}=D_{e}\frac{1}{2}F_{e}</math>  <math>a_{E}=D_{e}\frac{1}{2}F_{e}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(5)}} 
}  }  
Line 72:  Line 72:  
<math>a_{W}=D_{w}+\frac{1}{2}F_{w}</math>  <math>a_{W}=D_{w}+\frac{1}{2}F_{w}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(6)}} 
}  }  
Line 80:  Line 80:  
<math>\begin{matrix}{}\\\end{matrix}a_{P}=a_{W}+a_{E}+(F_{e}F_{w})</math>  <math>\begin{matrix}{}\\\end{matrix}a_{P}=a_{W}+a_{E}+(F_{e}F_{w})</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(7)}} 
}  }  
  This scheme is termed the central difference scheme because the values of <math>\varphi </math> at the faces of the control volume are taken as the averaged value between two grid points. The continuity equation  +  This scheme is termed the central difference scheme because the values of <math>\varphi </math> at the faces of the control volume are taken as the averaged value between two grid points. The continuity equation requires that <math>F_{e}=F_{w}</math> and therefore, eq. (7) reduces to 
<math>a_{P}=a_{W}+a_{E}</math>  <math>a_{P}=a_{W}+a_{E}</math>  
  To evaluate the performance of the central difference scheme, let us consider the case of a uniform grid, i.e., <math>(\delta x)_{e}=(\delta x)_{w}=\delta x</math>, for which case eq. (  +  To evaluate the performance of the central difference scheme, let us consider the case of a uniform grid, i.e., <math>(\delta x)_{e}=(\delta x)_{w}=\delta x</math>, for which case eq. (2) can be rearranged as 
{ class="wikitable" border="0"  { class="wikitable" border="0"  
Line 93:  Line 93:  
<math>\varphi _{P}=\frac{1}{2}\left[ \left( 1\frac{\text{Pe}_{\Delta }}{2} \right)\varphi _{E}+\left( 1+\frac{\text{Pe}_{\Delta }}{2} \right)\varphi _{W} \right]</math>  <math>\varphi _{P}=\frac{1}{2}\left[ \left( 1\frac{\text{Pe}_{\Delta }}{2} \right)\varphi _{E}+\left( 1+\frac{\text{Pe}_{\Delta }}{2} \right)\varphi _{W} \right]</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(8)}} 
}  }  
where  where  
Line 102:  Line 102:  
<math>\text{Pe}_{\Delta }=\frac{\rho u\delta x}{\Gamma }=\frac{F}{D}</math>  <math>\text{Pe}_{\Delta }=\frac{\rho u\delta x}{\Gamma }=\frac{F}{D}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(9)}} 
}  }  
is the Peclet number using grid size as the characteristic length, which is referred to as the grid Peclet number. The grid Pe is a ratio of the strength of convection over diffusion. To ensure stability of the discretization scheme, the value of <math>\varphi _{P}</math> should always fall between <math>\varphi _{E}</math> and <math>\varphi _{W}</math>, which requires that the coefficients, <math>\varphi _{E}</math> and <math>\varphi _{W}</math>, are positive, i.e.,  is the Peclet number using grid size as the characteristic length, which is referred to as the grid Peclet number. The grid Pe is a ratio of the strength of convection over diffusion. To ensure stability of the discretization scheme, the value of <math>\varphi _{P}</math> should always fall between <math>\varphi _{E}</math> and <math>\varphi _{W}</math>, which requires that the coefficients, <math>\varphi _{E}</math> and <math>\varphi _{W}</math>, are positive, i.e.,  
Line 111:  Line 111:  
<math>\left \text{Pe}_{\Delta } \right\le 2</math>  <math>\left \text{Pe}_{\Delta } \right\le 2</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(10)}} 
}  }  
  This is the criterion for stability of the central difference scheme. It can be demonstrated that the central difference becomes unstable if eq. (  +  
+  This is the criterion for stability of the central difference scheme. It can be demonstrated that the central difference becomes unstable if eq. (10) is violated. The fact that the central difference scheme is stable under small grid Peclet number indicates that the central difference scheme is accurate only if the convection is not very significant. 
Current revision as of 03:20, 21 July 2010
Computational methodologies for forced convection 
Integrating the governing equation over the control volume P (shaded area in the figure to the right), one obtains

The righthand side of eq. (1) can be obtained by assuming the distribution of between any two neighboring grid points is piecewise linear, i.e.,
where Γ_{e} and Γ_{w} are the diffusivities at the faces of the control volume. To ensure that the flux of across the faces of the control volume is continuous, the harmonic mean diffusivity at the faces should be used. To evaluate the left hand side of eq. (1), it is necessary to know the values of at the faces of the control volume. If the piecewise linear profile of is chosen, it follows that
Therefore, eq. (1) becomes

Defining the mass flux and diffusive conductance

eq. (2) can be rearranged as

where



This scheme is termed the central difference scheme because the values of at the faces of the control volume are taken as the averaged value between two grid points. The continuity equation requires that F_{e} = F_{w} and therefore, eq. (7) reduces to
a_{P} = a_{W} + a_{E}
To evaluate the performance of the central difference scheme, let us consider the case of a uniform grid, i.e., (δx)_{e} = (δx)_{w} = δx, for which case eq. (2) can be rearranged as

where

is the Peclet number using grid size as the characteristic length, which is referred to as the grid Peclet number. The grid Pe is a ratio of the strength of convection over diffusion. To ensure stability of the discretization scheme, the value of should always fall between and , which requires that the coefficients, and , are positive, i.e.,

This is the criterion for stability of the central difference scheme. It can be demonstrated that the central difference becomes unstable if eq. (10) is violated. The fact that the central difference scheme is stable under small grid Peclet number indicates that the central difference scheme is accurate only if the convection is not very significant.