4.2 General Discretisation Methodologies 通用离散方法学[cfd-4-2]
在第4章的引言中ï¼我们已经提到了定义控制体和布置流动变量的三种做法。这里我们将更详细地逐一介绍这三种做法ï¼并讨论它们的优点与不足。en
In the introduction to Chapter 4, we already mentioned the three approaches for the definition of the control volume and for the location of the flow variables. Here, we shall present all three in more detail. We shall also discuss their advantages and shortcomings.
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.
4.2.2 Cell-Vertex Scheme: Overlapping Control Volumes 单元顶点格式:重叠控制体[cfd-4-2-2]
在单元顶点格式中ï¼所有流动变量都与计算网格的节点相关联。在基于重叠控制体的做法中ï¼网格单元仍然充当控制体ï¼与单元中心格式的情形一样。区别在于:此时为各控制体算出的残差必须分配到网格点上[4]、[7]、[8]。图4.4示意了这一情形。en
In a cell-vertex scheme, all flow variables are associated with the nodes of the computational grid. Within the approach based on overlapping control volumes, the grid cells still represent the control volumes, just as in the case of the cell-centred scheme. The difference is that now the residuals computed for the control volumes have to be distributed to the grid points [4], [7], [8]. The situation is sketched in Fig. 4.4.
考察图4.4中的控制体\(\Omega_{I,J}\)ï¼它由下列节点定义en
Let us consider the control volume \(\Omega_{I,J}\) in Fig. 4.4, which is defined by the nodes
注意ï¼点\((i,j)\)位于\(\Omega_{I,J}\)的左下角。对流通量——例如对面\(\Delta S_{I,J-1/2}\)ï¼它由点\((i,j)\)与\((i+1,j)\)给定——近似为en
Note that the point \((i,j)\) is located at the lower left corner of \(\Omega_{I,J}\). The convective fluxes, e.g., for the face \(\Delta S_{I,J-1/2}\), which is given by the points \((i,j)\) and \((i+1,j)\), are approximated as
面中点处的变量用定义该面的两个节点上变量的算术平均来计算ï¼即en
The variables at the midpoint of the face are evaluated using an arithmetic average of the variables at the nodes defining the face, i.e.,
这一做法在三维中保持不变。例如ï¼对于与图4.1b中法向量\(\vec{n}_3\)相关联的面ï¼平均变量为en
The approach remains the same in three dimensions. For example, for the face associated with the normal vector \(\vec{n}_3\) in Fig. 4.1b, the averaged variables read

图4.4:单元顶点格式的重叠控制体(二维);箭头表示残差从单元形心向公共节点\(i,j\)的分配。图例:四个单元\(\Omega_{I-1,J-1}\)、\(\Omega_{I,J-1}\)、\(\Omega_{I-1,J}\)、\(\Omega_{I,J}\)(阴影四边形)共享公共节点\(i,j\)(实心圆点);各单元形心以实心方块标记\(I-1,J-1\)、\(I,J-1\)、\(I-1,J\)、\(I,J\);箭头表示把各单元(形心)的残差分配到公共节点;外圈网格点标记为\(i-1,j-1\)、\(i,j-1\)、\(i+1,j-1\)、\(i-1,j\)、\(i+1,j\)、\(i-1,j+1\)、\(i,j+1\)、\(i+1,j+1\)。
如果假定边1-2沿\(i\)方向、边1-5沿\(j\)方向、边1-4沿\(k\)方向ï¼并把点\((i,j,k)\)与图4.1b中的角点1相关联ï¼则方程(4.27)中的平均也可以写成en
If we assume the edge 1-2 being oriented in the \(i\)-direction, edge 1-5 in the \(j\)-direction, edge 1-4 in the \(k\)-direction, and if we finally associate the point \((i,j,k)\) with the corner 1 in Fig. 4.1b, the average in Eq. (4.27) can also be written as
对流通量于是同样由下式得到en
The convective flux is then again obtained from
把关系式(4.25)、(4.26)与(4.28)、(4.29)给出的所有面的贡献分别求和ï¼便得到所有网格单元的中间残差\(\vec{R}_{I,J,K}\)。为了把基于单元的残差与基于节点的残差联系起来ï¼还需要作进一步近似ï¼即采用残差分布公式(residual distribution formula)。它基本上是一个函数ï¼由共享该网格节点的所有单元的加权和来计算未知的基于节点的残差。已经提出的分布公式有:
- Ni的体积加权和[7];
- Hall的非加权求和[8];
- Rossow的特征(上风)加权方法[11]、[12]。
en
Summing up all face contributions given by relations (4.25), (4.26) and (4.28), (4.29), respectively, we obtain intermediate residuals \(\vec{R}_{I,J,K}\) for all grid cells. In order to relate the cell-based to the node-based residuals, a further approximation is made using a residual distribution formula. It is basically a function, which evaluates the unknown node-based residual from a weighted sum of all cells having the particular grid node in common. The following distribution formulae were devised:
- volume weighted sum due to Ni [7];
- non-weighted sum due to Hall [8];
- characteristic (upwind) weighting procedure of Rossow [11], [12].
对截断误差的理论研究[4]表明,Ni的格式比Hall的方法更精确。然而在实践中,Ni的分布公式在网格强烈扭曲和拉伸的地方会导致问题。例如ï¼使用O型网格时ï¼曾观察到翼型后缘附近压力场的强烈振荡[13]、[4]。此外ï¼只有把数值黏性加大很多才能获得收敛。上风加权方法[11]、[12]的基本思想与脉动分裂(fluctuation-splitting)格式[14]-[17]相当类似(参见3.1.5小节)ï¼但其数值实现要简单得多。从根本上说ï¼残差只沿特征方向向上游发送。en
Theoretical investigations of the truncation error [4] suggest that Ni's scheme is more accurate than Hall's approach. However, in practice Ni's distribution formula leads to problems in places, where the grid is strongly distorted and stretched. For example, strong oscillations of the pressure field near the trailing edge of an airfoil were observed when using O-grids [13], [4]. Furthermore, convergence could only be achieved when the numerical viscosity was increased considerably. The underlying idea of the upwind weighting procedure [11], [12] is quite similar to that of the fluctuation-splitting schemes [14]-[17] (cf. Subsection 3.1.5), but the implementation is numerically much simpler. Basically, the residuals are sent only upstream in the characteristic direction.
在这三种做法中,Hall的分布格式被证明最为稳健。在Hall的格式中ï¼某一节点处的残差由共享该节点的所有单元的中间残差\(\vec{R}_{I,J,K}\)直接求和得到。于是ï¼在图4.4所示的二维情形中ï¼我们得到en
Of the three approaches, Hall's distribution scheme proved to be the most robust. In Hall's scheme, the residual at a particular node results from a simple sum of all intermediate residuals \(\vec{R}_{I,J,K}\), which cells share the node. Thus, in the 2-D case rendered in Fig. 4.4, we get
在三维中ï¼必须以同样的方式把总共八个基于单元的残差求和。仔细考察(4.30)可以发现,\(\vec{R}_{i,j}\)恰好就是穿过超级单元(supercell)边界的净通量en
In three dimensions, in total eight cell-based residuals have to be summed up in the same way. A close inspection of (4.30) reveals that \(\vec{R}_{i,j}\) is just the net flux through the boundary of the supercell
这是因为穿过内部各面的通量互相抵消。超级单元也代表以点\((i,j)\)为中心的“总”控制体。在三维情形中ï¼总体积由以下单元构成en
due to the fact that the fluxes across the inner faces cancel each other. The supercell also represents the "total" control volume, centred at the point \((i,j)\). In the 3-D case, the total volume consists of the cells
从图4.4可以看出ï¼这些控制体至少重叠一个单元ï¼该格式正因此得名。en
As it can be seen from Fig. 4.4, the control volumes overlap by at least one cell, which gave the scheme its name.
源项用相应网格节点处的流动变量计算ï¼即en
The source term is calculated using the flow variables from the corresponding grid node, i.e.,