4.2.1 Cell-Centred Scheme 单元中心格式[cfd-4-2-1]
如果控制体与网格单元完全相同ï¼且流动变量位于网格单元的形心处(如图4.3所示)ï¼我们称之为单元中心格式(cell-centred scheme)。在计算离散化流动方程(4.2)时ï¼需要在单元的各个面上提供对流通量和黏性通量[6]。它们可以按以下三种方式之一来近似:
- 通量平均(average of fluxes)——由单元面左右两侧网格单元形心处的值分别计算通量ï¼再取平均ï¼但使用同一面向量(一般只用于对流通量);
- 变量平均(average of variables)——对与单元面左右两侧网格单元形心相关联的变量取平均;
- 由分别插值到单元面左右两侧的流动量计算通量(只用于对流通量)。
en
We speak of a cell-centred scheme if the control volumes are identical with the grid cells and if the flow variables are located at the centroids of the grid cells as indicated in Fig. 4.3. When we evaluate the discretised flow equations (4.2), we have to supply the convective and the viscous fluxes at the faces of a cell [6]. They can be approximated in one of the three following ways:
- by the average of fluxes computed from values at the centroids of the grid cells to the left and to the right of the cell face, but using the same face vector (generally applied only to the convective fluxes);
- by using an average of variables associated with the centroids of the grid cells to the left and to the right of the cell face;
- by computing the fluxes from flow quantities interpolated separately to the left and to the right side of the cell face (employed only for the convective fluxes).

图4.3:单元中心格式的控制体(二维)。图例:阴影四边形\(\Omega_{I,J}\)为控制体(即网格单元)ï¼其四个角点(实心圆点)为网格点\(i,j\)、\(i+1,j\)、\(i,j+1\)、\(i+1,j+1\);实心方块\(I-1,J\)、\(I,J\)、\(I+1,J\)、\(I,J+1\)、\(I,J-1\)表示各单元形心处流动变量的存储位置;\(\vec{n}_{I+1/2,J}\)、\(\vec{n}_{I-1/2,J}\)、\(\vec{n}_{I,J+1/2}\)、\(\vec{n}_{I,J-1/2}\)为控制体各面的单位法向量。
以图4.3中的单元面\(\vec{n}_{I+1/2,J}\)为例ï¼第一种做法——通量平均——在二维中写作en
Thus, taking the cell face \(\vec{n}_{I+1/2,J}\) in Fig. 4.3 as an example, the first approach - average of fluxes - reads in two dimensions
第二种可能的做法——变量平均——可以表述为en
The second possible approach - average of variables - can be formulated as follows
其中ï¼控制体面\(\vec{n}_{I+1/2,J}\)上的守恒变量/因变量定义为两个相邻单元处数值的算术平均ï¼即en
where the conservative/dependent variables at the face \(\vec{n}_{I+1/2,J}\) of the control volume are defined as the arithmetic average of values at the two adjacent cells, i.e.,
第三种做法先把流动量(大多为速度分量、压力、密度和总焓)分别插值到单元面的两侧。插值得到的量——称为左(left)状态与右(right)状态(见4.3节开头)——在两侧一般并不相同。通过单元面的通量随后利用某个非线性函数由左、右状态之差求出。于是en
The third methodology starts with an interpolation of flow quantities (being mostly velocity components, pressure, density and total enthalpy) separately to both sides of the cell face. The interpolated quantities - termed the left and the right state (see the begin of Section 4.3) - differ in general between both sides. The fluxes through the cell face are then evaluated from the difference of the left and right state using some non-linear function. Hence,
其中en
where
其中en
with
其中\(\vec{U}_L\)与\(\vec{U}_R\)是单元面上插值得到的数值。en
where \(\vec{U}_L\) and \(\vec{U}_R\) are the interpolated values at the cell face.
离散化流动方程(4.2)中尚待计算的最后一项是源项\(\vec{Q}\)。如引言中所述ï¼源项通常假定在控制体内部为常数。因此ï¼它用相应单元中心处的流动变量来计算。于是ï¼我们可以定义en
The last term in the discretised flow equations (4.2) which remains to be evaluated is the source term \(\vec{Q}\). As we already stated in the introduction, the source term is usually supposed to be constant inside the control volume. For this reason, it is calculated using the flow variables from the corresponding cell centre. Hence, we may define
利用上述关系ï¼可以算出通过各面的通量ï¼并按照(4.2)完成对\(\Omega_{I,J,K}\)边界的数值积分。换言之ï¼完整的残差\(\vec{R}_{I,J,K}\)便得到了。在4.3节和4.4节中ï¼我们将进一步了解对流通量与黏性通量计算的细节。en
Using the above relations, the fluxes through the faces can be computed and the numerical integration over the boundary of \(\Omega_{I,J,K}\) may be performed according to (4.2). In other words, the complete residual \(\vec{R}_{I,J,K}\) is obtained. In Sections 4.3 and 4.4, we shall learn more about the details of the evaluation of the convective and viscous fluxes.