Numerical Solution of Flow Field
From ThermalFluidsPedia
Line 1:  Line 1:  
{{Comp Method for Forced Convection Category}}  {{Comp Method for Forced Convection Category}}  
  
  
==Special Difficulties==  ==Special Difficulties==  
For a twodimensional incompressible flow problem without a body force, the continuity and momentum equations in the Cartesian coordinate system are  For a twodimensional incompressible flow problem without a body force, the continuity and momentum equations in the Cartesian coordinate system are  
Line 18:  Line 16:  
<math>\rho u\frac{\partial u}{\partial x}+\rho v\frac{\partial u}{\partial y}=\frac{\partial }{\partial x}\left( \mu \frac{\partial u}{\partial x} \right)+\frac{\partial }{\partial y}\left( \mu \frac{\partial u}{\partial y} \right)\frac{\partial p}{\partial x}</math>  <math>\rho u\frac{\partial u}{\partial x}+\rho v\frac{\partial u}{\partial y}=\frac{\partial }{\partial x}\left( \mu \frac{\partial u}{\partial x} \right)+\frac{\partial }{\partial y}\left( \mu \frac{\partial u}{\partial y} \right)\frac{\partial p}{\partial x}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(2)}} 
}  }  
Line 26:  Line 24:  
<math>\rho u\frac{\partial v}{\partial x}+\rho v\frac{\partial v}{\partial y}=\frac{\partial }{\partial x}\left( \mu \frac{\partial v}{\partial x} \right)+\frac{\partial }{\partial y}\left( \mu \frac{\partial v}{\partial y} \right)\frac{\partial p}{\partial y}</math>  <math>\rho u\frac{\partial v}{\partial x}+\rho v\frac{\partial v}{\partial y}=\frac{\partial }{\partial x}\left( \mu \frac{\partial v}{\partial x} \right)+\frac{\partial }{\partial y}\left( \mu \frac{\partial v}{\partial y} \right)\frac{\partial p}{\partial y}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(3)}} 
}  }  
It is observed that the momentum equations in each direction could be expressed in the same format as eq. (4.200) by replacing the general variable <math>\varphi </math> by the components of velocity in that particular (x, or y) direction. The source term for the momentum equations in the x and y directions can be expressed as <math>S_{u}=\partial p/\partial x</math> and <math>S_{v}=\partial p/\partial y,</math> respectively. It seems that we can directly apply the discretization schemes discussed in the preceding subsection in order to obtain the solution of the flow field. The only additional work necessary is to include the pressure gradient in each momentum equation.  It is observed that the momentum equations in each direction could be expressed in the same format as eq. (4.200) by replacing the general variable <math>\varphi </math> by the components of velocity in that particular (x, or y) direction. The source term for the momentum equations in the x and y directions can be expressed as <math>S_{u}=\partial p/\partial x</math> and <math>S_{v}=\partial p/\partial y,</math> respectively. It seems that we can directly apply the discretization schemes discussed in the preceding subsection in order to obtain the solution of the flow field. The only additional work necessary is to include the pressure gradient in each momentum equation.  
Line 36:  Line 34:  
<math>\left( \frac{\partial p}{\partial x} \right)_{P}=\frac{p_{e}p_{w}}{\Delta x}</math>  <math>\left( \frac{\partial p}{\partial x} \right)_{P}=\frac{p_{e}p_{w}}{\Delta x}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(4)}} 
}  }  
If central difference is employed, the pressures at the faces of the control volume become  If central difference is employed, the pressures at the faces of the control volume become  
Line 49:  Line 47:  
<math>\left( \frac{\partial p}{\partial x} \right)_{P}=\frac{p_{E}p_{W}}{2\Delta x}</math>  <math>\left( \frac{\partial p}{\partial x} \right)_{P}=\frac{p_{E}p_{W}}{2\Delta x}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(5)}} 
}  }  
Similarly, the pressure gradient in the ydirection can be expressed as  Similarly, the pressure gradient in the ydirection can be expressed as  
Line 58:  Line 56:  
<math>\left( \frac{\partial p}{\partial y} \right)_{P}=\frac{p_{N}p_{S}}{2\Delta y}</math>  <math>\left( \frac{\partial p}{\partial y} \right)_{P}=\frac{p_{N}p_{S}}{2\Delta y}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(6)}} 
}  }  
[[Image:Fig4.22.pngthumb400 pxalt=Checkerboard pressure field Figure 1: Checkerboard pressure field.]]  [[Image:Fig4.22.pngthumb400 pxalt=Checkerboard pressure field Figure 1: Checkerboard pressure field.]]  
Line 76:  Line 74:  
<math>a_{e}u_{e}=\sum{a_{nb}u_{nb}+b+A_{e}(p_{P}p_{E})}</math>  <math>a_{e}u_{e}=\sum{a_{nb}u_{nb}+b+A_{e}(p_{P}p_{E})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(7)}} 
}  }  
where the first term on the right hand side represents the summation of all the neighbor points of e. The effect of pressure has been separated from the source term, and the pressures at P and E were used to calculate the velocity ue. For a twodimensional problem, the area on which the pressure difference acts on is <math>A_{e}=\Delta y</math>.  where the first term on the right hand side represents the summation of all the neighbor points of e. The effect of pressure has been separated from the source term, and the pressures at P and E were used to calculate the velocity ue. For a twodimensional problem, the area on which the pressure difference acts on is <math>A_{e}=\Delta y</math>.  
Line 86:  Line 84:  
<math>a_{n}v_{n}=\sum{a_{nb}v_{nb}+b+A_{n}(p_{P}p_{N})}</math>  <math>a_{n}v_{n}=\sum{a_{nb}v_{nb}+b+A_{n}(p_{P}p_{N})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(8)}} 
}  }  
where the area on which pressure difference acts on is <math>A_{n}=\Delta x</math> for a twodimensional problem.  where the area on which pressure difference acts on is <math>A_{n}=\Delta x</math> for a twodimensional problem.  
Line 96:  Line 94:  
<math>a_{t}w_{t}=\sum{a_{nb}w_{nb}+b+A_{t}(p_{P}p_{T})}</math>  <math>a_{t}w_{t}=\sum{a_{nb}w_{nb}+b+A_{t}(p_{P}p_{T})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(9)}} 
}  }  
which is obtained by integrating the momentum equation in the zdirection for the control volume of wt that are staggered to the positive zdirection by a half grid. The area on which the pressure difference, <math>p_{P}p_{T}</math>, acts on is <math>A_{t}=\Delta x\Delta y</math>.  which is obtained by integrating the momentum equation in the zdirection for the control volume of wt that are staggered to the positive zdirection by a half grid. The area on which the pressure difference, <math>p_{P}p_{T}</math>, acts on is <math>A_{t}=\Delta x\Delta y</math>.  
Line 108:  Line 106:  
<math>a_{e}u_{e}^{*}=\sum{a_{nb}u_{nb}^{*}+b+A_{e}(p_{P}^{*}p_{E}^{*})}</math>  <math>a_{e}u_{e}^{*}=\sum{a_{nb}u_{nb}^{*}+b+A_{e}(p_{P}^{*}p_{E}^{*})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(10)}} 
}  }  
Line 116:  Line 114:  
<math>a_{n}v_{n}^{*}=\sum{a_{nb}v_{nb}^{*}+b+A_{n}(p_{P}^{*}p_{N}^{*})}</math>  <math>a_{n}v_{n}^{*}=\sum{a_{nb}v_{nb}^{*}+b+A_{n}(p_{P}^{*}p_{N}^{*})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(11)}} 
}  }  
Line 124:  Line 122:  
<math>a_{t}w_{t}^{*}=\sum{a_{nb}w_{nb}^{*}+b+A_{t}(p_{P}^{*}p_{T}^{*})}</math>  <math>a_{t}w_{t}^{*}=\sum{a_{nb}w_{nb}^{*}+b+A_{t}(p_{P}^{*}p_{T}^{*})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(12)}} 
}  }  
Since the velocity field obtained from eqs. (4.295) – (4.297) is based on a guessed pressure field, it may not satisfy the continuity equation. An algorithm based on pressure correction (Patankar, 1980) can be used to obtain the correct pressure field and consequently, the velocity field. If the correct pressure can be obtained by  Since the velocity field obtained from eqs. (4.295) – (4.297) is based on a guessed pressure field, it may not satisfy the continuity equation. An algorithm based on pressure correction (Patankar, 1980) can be used to obtain the correct pressure field and consequently, the velocity field. If the correct pressure can be obtained by  
Line 133:  Line 131:  
<math>\begin{matrix}{}\\\end{matrix}p=p^{*}+{p}'</math>  <math>\begin{matrix}{}\\\end{matrix}p=p^{*}+{p}'</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(13)}} 
}  }  
where <math>{p}'</math> is pressure correction, the new velocity field based on the corrected pressure field will be  where <math>{p}'</math> is pressure correction, the new velocity field based on the corrected pressure field will be  
Line 142:  Line 140:  
<math>\begin{matrix}{}\\\end{matrix}u=u^{*}+{u}',\text{ }v=v^{*}+{v}',\text{ }w=w^{*}+{w}'</math>  <math>\begin{matrix}{}\\\end{matrix}u=u^{*}+{u}',\text{ }v=v^{*}+{v}',\text{ }w=w^{*}+{w}'</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(14)}} 
}  }  
where <math>{u}',\text{ }{v}',\text{ and }{w}'</math> are velocity corrections. The corrected velocity field satisfies eqs(4.292) – (4.294), i.e.,  where <math>{u}',\text{ }{v}',\text{ and }{w}'</math> are velocity corrections. The corrected velocity field satisfies eqs(4.292) – (4.294), i.e.,  
Line 161:  Line 159:  
<math>a_{e}{u}'_{e}=\sum{a_{nb}{u}'_{nb}+A_{e}({p}'_{P}{p}'_{E})}</math>  <math>a_{e}{u}'_{e}=\sum{a_{nb}{u}'_{nb}+A_{e}({p}'_{P}{p}'_{E})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(15)}} 
}  }  
Line 169:  Line 167:  
<math>a_{n}{v}'_{n}=\sum{a_{nb}{v}'_{nb}+A_{n}({p}'_{P}{p}'_{N})}</math>  <math>a_{n}{v}'_{n}=\sum{a_{nb}{v}'_{nb}+A_{n}({p}'_{P}{p}'_{N})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(16)}} 
}  }  
Line 177:  Line 175:  
<math>a_{t}{w}'_{t}=\sum{a_{nb}{w}'_{nb}+A_{t}({p}'_{P}{p}'_{T})}</math>  <math>a_{t}{w}'_{t}=\sum{a_{nb}{w}'_{nb}+A_{t}({p}'_{P}{p}'_{T})}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(17)}} 
}  }  
It can be seen from eqs. (4.300) – (4.302) that the correction of the velocity can be from (1) the difference on pressure correction at two neighbor points in the main grid (the second terms), and (2) velocity correction from all neighbor points (the first terms). The solution of the velocity correction from eqs. (4.300) – (4.302) will be very complicated because the velocity correction at neighbor points will be related to pressure corrections at more grid points, and eventually velocity correction at any point will be related to the pressure corrections in the entire computational domain. Assuming the contribution of the latter is negligible, which is equivalent to assuming <math>a_{nb}=0</math> in eqs. (4.300) – (4.302), the velocity correction becomes  It can be seen from eqs. (4.300) – (4.302) that the correction of the velocity can be from (1) the difference on pressure correction at two neighbor points in the main grid (the second terms), and (2) velocity correction from all neighbor points (the first terms). The solution of the velocity correction from eqs. (4.300) – (4.302) will be very complicated because the velocity correction at neighbor points will be related to pressure corrections at more grid points, and eventually velocity correction at any point will be related to the pressure corrections in the entire computational domain. Assuming the contribution of the latter is negligible, which is equivalent to assuming <math>a_{nb}=0</math> in eqs. (4.300) – (4.302), the velocity correction becomes  
Line 186:  Line 184:  
<math>\begin{matrix}{}\\\end{matrix}{u}'_{e}=d_{e}({p}'_{P}{p}'_{E}),\text{ }{v}'_{n}=d_{n}({p}'_{P}{p}'_{N}),\text{ }{w}'_{t}=d_{t}({p}'_{P}{p}'_{T})</math>  <math>\begin{matrix}{}\\\end{matrix}{u}'_{e}=d_{e}({p}'_{P}{p}'_{E}),\text{ }{v}'_{n}=d_{n}({p}'_{P}{p}'_{N}),\text{ }{w}'_{t}=d_{t}({p}'_{P}{p}'_{T})</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(18)}} 
}  }  
where  where  
Line 195:  Line 193:  
<math>\begin{matrix}{}\\\end{matrix}d_{e}=A_{e}/a_{e},\text{ }d_{n}=A_{n}/a_{n},\text{ }d_{t}=A_{t}/a_{t}</math>  <math>\begin{matrix}{}\\\end{matrix}d_{e}=A_{e}/a_{e},\text{ }d_{n}=A_{n}/a_{n},\text{ }d_{t}=A_{t}/a_{t}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(19)}} 
}  }  
Substituting eq. (4.303) into eq. (4.299), we have  Substituting eq. (4.303) into eq. (4.299), we have  
Line 204:  Line 202:  
<math>u_{e}=u_{e}^{*}+d_{e}({p}'_{P}{p}'_{E})</math>  <math>u_{e}=u_{e}^{*}+d_{e}({p}'_{P}{p}'_{E})</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(20)}} 
}  }  
Line 212:  Line 210:  
<math>v_{n}=v_{n}^{*}+d_{n}({p}'_{P}{p}'_{N})</math>  <math>v_{n}=v_{n}^{*}+d_{n}({p}'_{P}{p}'_{N})</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(21)}} 
}  }  
Line 220:  Line 218:  
<math>w_{t}=w_{t}^{*}+d_{t}({p}'_{P}{p}'_{T})</math>  <math>w_{t}=w_{t}^{*}+d_{t}({p}'_{P}{p}'_{T})</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(22)}} 
}  }  
which can be used to obtain the corrected velocity field from the pressure correction.  which can be used to obtain the corrected velocity field from the pressure correction.  
Line 231:  Line 229:  
<math>\frac{\partial \rho }{\partial t}+\frac{\partial (\rho u)}{\partial x}+\frac{\partial (\rho v)}{\partial y}+\frac{\partial (\rho w)}{\partial z}=0</math>  <math>\frac{\partial \rho }{\partial t}+\frac{\partial (\rho u)}{\partial x}+\frac{\partial (\rho v)}{\partial y}+\frac{\partial (\rho w)}{\partial z}=0</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(23)}} 
}  }  
Integrating eq. (4.308) over the main control volume [see Fig. 4.23(a) for the twodimensional projection of the threedimensional control volume] and using a fullyimplicit scheme, we obtain  Integrating eq. (4.308) over the main control volume [see Fig. 4.23(a) for the twodimensional projection of the threedimensional control volume] and using a fullyimplicit scheme, we obtain  
Line 247:  Line 245:  
<math>\begin{matrix}{}\\\end{matrix}a_{P}{p}'_{P}=a_{E}{p}'_{E}+a_{W}{p}'_{W}+a_{N}{p}'_{N}+a_{S}{p}'_{S}+a_{T}{p}'_{T}+a_{B}{p}'_{B}+b</math>  <math>\begin{matrix}{}\\\end{matrix}a_{P}{p}'_{P}=a_{E}{p}'_{E}+a_{W}{p}'_{W}+a_{N}{p}'_{N}+a_{S}{p}'_{S}+a_{T}{p}'_{T}+a_{B}{p}'_{B}+b</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(24)}} 
}  }  
where  where  
Line 256:  Line 254:  
<math>\begin{matrix}{}\\\end{matrix}a_{E}=\rho _{e}d_{e}\Delta y\Delta z,\text{ }a_{W}=\rho _{w}d_{w}\Delta y\Delta z</math>  <math>\begin{matrix}{}\\\end{matrix}a_{E}=\rho _{e}d_{e}\Delta y\Delta z,\text{ }a_{W}=\rho _{w}d_{w}\Delta y\Delta z</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(25)}} 
}  }  
Line 264:  Line 262:  
<math>\begin{matrix}{}\\\end{matrix}a_{N}=\rho _{n}d_{n}\Delta z\Delta x,\text{ }a_{S}=\rho _{s}d_{s}\Delta z\Delta x</math>  <math>\begin{matrix}{}\\\end{matrix}a_{N}=\rho _{n}d_{n}\Delta z\Delta x,\text{ }a_{S}=\rho _{s}d_{s}\Delta z\Delta x</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(26)}} 
}  }  
Line 272:  Line 270:  
<math>\begin{matrix}{}\\\end{matrix}a_{T}=\rho _{t}d_{t}\Delta x\Delta y,\text{ }a_{B}=\rho _{b}d_{b}\Delta x\Delta y</math>  <math>\begin{matrix}{}\\\end{matrix}a_{T}=\rho _{t}d_{t}\Delta x\Delta y,\text{ }a_{B}=\rho _{b}d_{b}\Delta x\Delta y</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(27)}} 
}  }  
Line 280:  Line 278:  
<math>\begin{matrix}{}\\\end{matrix}a_{P}=a_{E}+a_{W}+a_{N}+a_{S}+a_{T}+a_{B}</math>  <math>\begin{matrix}{}\\\end{matrix}a_{P}=a_{E}+a_{W}+a_{N}+a_{S}+a_{T}+a_{B}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(28)}} 
}  }  
{ class="wikitable" border="0"  { class="wikitable" border="0"  
Line 290:  Line 288:  
\end{align}</math>  \end{align}</math>  
</center>  </center>  
  {{EquationRef(  +  {{EquationRef(29)}} 
}  }  
Line 300:  Line 298:  
==The SIMPLE Algorithm==  ==The SIMPLE Algorithm==  
The above approach for the solution of the incompressible flow field was named SIMPLE, which stands for SemiImplicit Method for PressureLinked Equations. It was originally proposed by Patankar and Spalding (1972) and summarized in Patankar (1980). This algorithm is a semiimplicit method because the first terms on the righthand side of eqs. (4.300) – (4.302) are neglected. If these terms are retained, we will have to solve for the velocity corrections ( ) for the entire flow field simultaneously and the algorithm will become fullyimplicit. The procedure for SIMPLE algorithm can be summarized as following:<BR>  The above approach for the solution of the incompressible flow field was named SIMPLE, which stands for SemiImplicit Method for PressureLinked Equations. It was originally proposed by Patankar and Spalding (1972) and summarized in Patankar (1980). This algorithm is a semiimplicit method because the first terms on the righthand side of eqs. (4.300) – (4.302) are neglected. If these terms are retained, we will have to solve for the velocity corrections ( ) for the entire flow field simultaneously and the algorithm will become fullyimplicit. The procedure for SIMPLE algorithm can be summarized as following:<BR>  
  1. Guess a pressure field, p*.<BR>  +  1. Guess a pressure field, p*.<BR> 
  2. Obtain the starred velocity field, (u*, v*, and w*) from eqs. (4.295) – (4.297). <BR>  +  2. Obtain the starred velocity field, (u*, v*, and w*) from eqs. (4.295) – (4.297). <BR> 
  3. Solve the pressure correction equation (4.309) to get .<BR>  +  3. Solve the pressure correction equation (4.309) to get .<BR> 
  4. Obtain a new pressure field from eq. (4.298).<BR>  +  4. Obtain a new pressure field from eq. (4.298).<BR> 
  5. Improve the velocity field using eqs. (4.305) – (4.307). <BR>  +  5. Improve the velocity field using eqs. (4.305) – (4.307). <BR> 
  6. Obtain solutions for other ’s from eq. (4.274). If the flow field is not affected by a particular , it should be solved after a converged solution for flow field is obtained.<BR>  +  6. Obtain solutions for other ’s from eq. (4.274). If the flow field is not affected by a particular , it should be solved after a converged solution for flow field is obtained.<BR> 
  7. Treat the corrected pressure in Step 4 as a new starred pressure and go back to step 2. The iteration procedure is repeated until a converged solution is obtained. <BR>  +  7. Treat the corrected pressure in Step 4 as a new starred pressure and go back to step 2. The iteration procedure is repeated until a converged solution is obtained. <BR> 
Since the invention of the SIMPLE algorithm in 1972, it has evolved into the classic approach for computational fluid dynamics and heat transfer. Although there are several improved versions in the literature, SIMPLE still remains one of basic the most powerful algorithms. The objective of this section is to introduce the readers to the world of computational fluid dynamics and heat transfer without the overwhelming numerical details. Additional information can be found in the seminal books of Patankar (1980) and Tao (2001), as well as the Handbook of Numerical Heat Transfer (Minkowycz et al., 2006).  Since the invention of the SIMPLE algorithm in 1972, it has evolved into the classic approach for computational fluid dynamics and heat transfer. Although there are several improved versions in the literature, SIMPLE still remains one of basic the most powerful algorithms. The objective of this section is to introduce the readers to the world of computational fluid dynamics and heat transfer without the overwhelming numerical details. Additional information can be found in the seminal books of Patankar (1980) and Tao (2001), as well as the Handbook of Numerical Heat Transfer (Minkowycz et al., 2006). 
Revision as of 06:37, 21 July 2010
Computational methodologies for forced convection 
Contents 
Special Difficulties
For a twodimensional incompressible flow problem without a body force, the continuity and momentum equations in the Cartesian coordinate system are



It is observed that the momentum equations in each direction could be expressed in the same format as eq. (4.200) by replacing the general variable by the components of velocity in that particular (x, or y) direction. The source term for the momentum equations in the x and y directions can be expressed as and respectively. It seems that we can directly apply the discretization schemes discussed in the preceding subsection in order to obtain the solution of the flow field. The only additional work necessary is to include the pressure gradient in each momentum equation. With the aid of Fig. 4.17, the pressure gradient in the xdirection can be expressed as

If central difference is employed, the pressures at the faces of the control volume become
Substituting the above expressions into eq. (4.289), the pressure gradient in the xdirection becomes

Similarly, the pressure gradient in the ydirection can be expressed as

It can be seen that the pressure gradient at point P is related to the pressures of the neighbor grid points and is not related to its own pressure. Thus, the pressure gradient is obtained by using the pressures of two alternative points, so that the accuracy of the pressure gradient for grid size Δx (or Δy) is equivalent to that obtained for coarse grid size 2Δx (or 2Δy). Another consequence of eqs. (4.290) and (4.291) is that if we have a pressure distribution as shown in Fig. 1 – referred to as a checkerboard pressure field – the discretization scheme represented by eqs. (4.290) and (4.291) will obtain and throughout the computational domain, i.e., eqs. (4.290) and (4.291) cannot recognize the difference between a checkerboard pressure field and a uniform pressure field. In other words, if a checkerboard pressure field is supposed to be the real pressure field for any reason, the discretization scheme based on eqs. (4.290) and (4.291) can neither detect nor eliminate such an unrealistic effect.
While it is straightforward to use the momentum equations (4.287) and (4.288) to solve for the velocity components in the x and ydirections, the pressure only appears as a source term in the momentum equations and there is not a separate equation for pressure itself. Since the continuity equation, (4.286), is not used, it would be logical to use the continuity equation to get the pressure field. Although a correct pressure field will yield a velocity field that satisfies the continuity equation, an algorithm must be developed to obtain the correct pressure field. The checkerboard pressure field problem and the lack of an equation for pressure are associated with the coupling between the pressure and velocity. An unrealistic (e.g., checkerboard) pressure field can be obtained if such a coupling relationship is not reflected in the algorithm (e.g., using central difference scheme to discretize the pressure gradient in the momentum equations).
Staggered grid
To overcome the checkerboard pressure field and develop an effective algorithm for the pressure field, one can use a staggered grid system (Patankar and Spalding, 1972; Patankar, 1980) that stores the pressure and all other variables on the main grid but calculates the velocity at the face of the control volume (see Fig. 1). The control volume for the velocity component in the xdirection, u, is staggered from the control volume for all other variables to the right direction by half a grid. Similarly, the control volume for v is staggered up by a half grid. The discretized equations for u and v will be obtained by integrating the momentum equation in their control volumes shown in Fig. 1 (b) and (c), respectively. The discretization equations in the staggered grid system for all variables except velocity are the same as those presented in the preceding subsection. Since velocity is defined at the face of the control volume, the grid Peclet numbers can be directly calculated from the velocity component, i.e., no assumption on the velocity profile between the grid points is needed. For the momentum equation in the xdirection, we will need to integrate eq. (4.287) for the control volumes of u shown in Fig. 1 (b). The result can be expressed as

where the first term on the right hand side represents the summation of all the neighbor points of e. The effect of pressure has been separated from the source term, and the pressures at P and E were used to calculate the velocity ue. For a twodimensional problem, the area on which the pressure difference acts on is A_{e} = Δy. Similarly, the discretization equation for v can be obtained by integrating eq.(4.287) for the control volume of vn shown in Fig. 1(c), i.e.,

where the area on which pressure difference acts on is A_{n} = Δx for a twodimensional problem. For a threedimensional problem, eqs(4.292) and (4.293) are still valid except the neighbor points from the top and bottom should be included in the first term on the righthand side. The areas on which the pressure difference act on should be modified to A_{e} = ΔyΔz and A_{n} = ΔxΔz. In addition to eqs. (4.292) and (4.293), another equation for the velocity component in the zdirection, wt, is also needed, i.e.,

which is obtained by integrating the momentum equation in the zdirection for the control volume of wt that are staggered to the positive zdirection by a half grid. The area on which the pressure difference, p_{P} − p_{T}, acts on is A_{t} = ΔxΔy.
Pressure Correction Equation
The ability (of one) to solve eqs. (4.292) – (4.294) to obtain the velocity field relies on the accuracy of the pressure field, which is unknown a priori. If we assume that the pressure field is p* – which can be obtained from the previous time step, iteration, or guessing – the corresponding velocity field can be obtained by solving eqs. (4.292) – (4.294).



Since the velocity field obtained from eqs. (4.295) – (4.297) is based on a guessed pressure field, it may not satisfy the continuity equation. An algorithm based on pressure correction (Patankar, 1980) can be used to obtain the correct pressure field and consequently, the velocity field. If the correct pressure can be obtained by

where p' is pressure correction, the new velocity field based on the corrected pressure field will be

where u', v', and w' are velocity corrections. The corrected velocity field satisfies eqs(4.292) – (4.294), i.e.,
Subtracting eqs. (4.295) – (4.297) from the above three equations yields the following equations for the velocity corrections:



It can be seen from eqs. (4.300) – (4.302) that the correction of the velocity can be from (1) the difference on pressure correction at two neighbor points in the main grid (the second terms), and (2) velocity correction from all neighbor points (the first terms). The solution of the velocity correction from eqs. (4.300) – (4.302) will be very complicated because the velocity correction at neighbor points will be related to pressure corrections at more grid points, and eventually velocity correction at any point will be related to the pressure corrections in the entire computational domain. Assuming the contribution of the latter is negligible, which is equivalent to assuming a_{nb} = 0 in eqs. (4.300) – (4.302), the velocity correction becomes

where

Substituting eq. (4.303) into eq. (4.299), we have



which can be used to obtain the corrected velocity field from the pressure correction. The assumption of neglecting the first terms in eqs. (4.300) – (4.302) significantly simplifies the equations in order to obtain the corrected velocity field. If, however, this simplification results in unacceptable error in the final velocity field, it may not be used. As the iteration progresses, v^{ * }, gradually approaches the true velocity, the velocity correction at each point approaches zero. After the converged velocity is obtained, the velocity correction from all the neighbor points will be zero. Therefore, neglecting the first terms in eqs. (4.300) – (4.302) will not affect the ultimate velocity field. It will, however, affect how quickly a converged solution can be obtained. We now turn our attention to the algebraic equation for the pressure correction. Since the starred velocity field (u*, v*, and w*) does not satisfy the continuity equation, we hope that the corrected velocity will satisfy the continuity equation. For a threedimensional flow, the continuity equation is

Integrating eq. (4.308) over the main control volume [see Fig. 4.23(a) for the twodimensional projection of the threedimensional control volume] and using a fullyimplicit scheme, we obtain
Substituting eqs. (4.305) – (4.307) into the above equation, the following algebraic equation for pressure correction is obtained:

where





If the starred velocity terms (u*, v*, and w*) already satisfy the continuity equation, we have b = 0 from eq. (4.314). Therefore, b defined in eq. (4.314) can be viewed as the negative value of the “residual” mass for grid point P. If the continuity equation is satisfied, such residual mass should be zero. Practically, the maximum absolute value of b in the entire computational domain as well as the absolute value of the summation of b in the entire domain are used as criteria for the convergence. In order to apply eq(4.309) to obtain the pressure correction, the boundary conditions for pressure correction have to be specified. If the pressure at the boundary is given, no correction for the pressure at the boundary is needed so p' = 0 at the boundary. If the boundary velocity is given (see Fig. 1), the velocity correction for the boundary velocity (ue in Fig. 1) will be zero. It follows from eq. (4.303) that de for the control volume shown in Fig. 1 has to be zero. Therefore, one can set a_{E} = 0 [see eq. (4.310)] if ue in Fig. 1 is given.
The SIMPLE Algorithm
The above approach for the solution of the incompressible flow field was named SIMPLE, which stands for SemiImplicit Method for PressureLinked Equations. It was originally proposed by Patankar and Spalding (1972) and summarized in Patankar (1980). This algorithm is a semiimplicit method because the first terms on the righthand side of eqs. (4.300) – (4.302) are neglected. If these terms are retained, we will have to solve for the velocity corrections ( ) for the entire flow field simultaneously and the algorithm will become fullyimplicit. The procedure for SIMPLE algorithm can be summarized as following:
1. Guess a pressure field, p*.
2. Obtain the starred velocity field, (u*, v*, and w*) from eqs. (4.295) – (4.297).
3. Solve the pressure correction equation (4.309) to get .
4. Obtain a new pressure field from eq. (4.298).
5. Improve the velocity field using eqs. (4.305) – (4.307).
6. Obtain solutions for other ’s from eq. (4.274). If the flow field is not affected by a particular , it should be solved after a converged solution for flow field is obtained.
7. Treat the corrected pressure in Step 4 as a new starred pressure and go back to step 2. The iteration procedure is repeated until a converged solution is obtained.
Since the invention of the SIMPLE algorithm in 1972, it has evolved into the classic approach for computational fluid dynamics and heat transfer. Although there are several improved versions in the literature, SIMPLE still remains one of basic the most powerful algorithms. The objective of this section is to introduce the readers to the world of computational fluid dynamics and heat transfer without the overwhelming numerical details. Additional information can be found in the seminal books of Patankar (1980) and Tao (2001), as well as the Handbook of Numerical Heat Transfer (Minkowycz et al., 2006).