5.3 Discretisation of the Convective Fluxes 对流通量的离散[cfd-5-3]
在前面几节中ï¼我们讨论了各种可能的空间离散方法学的一般性问题ï¼包括必要的数据结构。接下来ï¼我们将更深入地了解对流通量的计算究竟如何实现。en
In the previous sections, we considered general issues of possible spatial discretisation methodologies including the necessary data structures. In what follows, we shall learn more about the details, how the evaluation of the convective fluxes can be implemented.
正如我们在3.1.5小节中已经看到的ï¼在有限体积方法的框架内ï¼基本上可以在以下几类格式之间选择:
- 中心格式;
- 通量向量分裂;
- 通量差分分裂;
- 总变差减小(TVD);以及
- 脉动分裂(fluctuation-splitting)
en
As we could already see in Subsection 3.1.5, in the framework of the finite volume approach, we have basically the choice between:
- central,
- flux-vector splitting,
- flux-difference splitting,
- total variation diminishing (TVD), and
- fluctuation-splitting
……格式。首先ï¼我们将较为详细地介绍非结构网格上的中心离散ï¼因为它与结构网格上的做法差别很大。相反ï¼上风格式的基本原理在结构网格与非结构网格上是相同的ï¼因此其细节可参见4.3.2-4.3.4节。然而ï¼非结构网格上的新内容是解重构(solution reconstruction)ï¼即为了得到控制体面上的流动变量值所必需的步骤。因此ï¼我们将在5.3.3小节中较为详细地讨论各种常用方法。限于篇幅ï¼这里不讨论仍处于研究状态的脉动分裂方法。与脉动分裂格式相关的文献ï¼读者可参阅3.1.5小节。en
schemes. First of all, we shall present the central discretisation on unstructured grids at some length, since it differs considerably from that on structured grids. On the contrary, the basics of the upwind schemes are identical on structured and unstructured grids. Hence, the details can be found in Sections 4.3.2-4.3.4. However, what is new on unstructured grids is the solution reconstruction, which is required in order to obtain the values of the flow variables at a face of the control volume. Therefore, we shall discuss the common approaches in some detail in Subsection 5.3.3. Because of space limitations, we will not treat the fluctuation-splitting approach here, which is still in research status. The reader is referred to Subsection 3.1.5 for the bibliography related to fluctuation-splitting schemes.
5.3.1 Central Schemes with Artificial Dissipation 带人工耗散的中心格式[cfd-5-3-1]
中心格式的基本思想ï¼是按照方程(5.20)ï¼用控制体面两侧守恒变量的算术平均来计算该面上的对流通量。这会导致解的奇偶失联(odd-even decouplingï¼即离散方程产生两个相互独立的解)以及激波处的波动ï¼因此为了保持稳定性必须加入人工耗散。人工耗散基于二阶与四阶差分的混合。该格式由Jameson等人[43]最先在结构网格上针对欧拉方程实现。以各位作者姓氏的首字母命名ï¼它也简称为JST格式。en
The basic idea of the central scheme is to compute the convective fluxes at a face of the control volume from the arithmetic average of the conservative variables on both sides of the face according to Eq. (5.20). Since this would lead to odd-even decoupling of the solution (generation of two independent solutions of the discretised equations) and wiggles at shocks, artificial dissipation has to be added for stability. The artificial dissipation is based on a blend of second- and fourth-order differences. The scheme was first implemented for the Euler equations on structured grids by Jameson et al. [43]. Because of the names of the authors, it is also abbreviated as the JST scheme.
在非结构网格上实现JST格式时ï¼二阶差分采用拉普拉斯(Laplacian)算子ï¼四阶差分采用拉普拉斯的拉普拉斯[44]、[27]。为了降低计算成本ï¼采用伪拉普拉斯算子(pseudo-Laplacian)代替真正的拉普拉斯算子。为此,[45]首先提出了二维格式ï¼随后[46]作了改进。后来,[2]把该格式推广到三维。它利用了一种距离加权过程。这样ï¼对于任何网格上线性变化的函数ï¼该格式的伪拉普拉斯算子都为零。应用于单元\(I\)中的某一般标量\(U\)时ï¼伪拉普拉斯算子的形式为en
The implementation of the JST scheme on unstructured grids utilises the Laplacian operator for the second-order differences and the Laplacian of Laplacian for the fourth-order differences [44], [27]. In order to reduce the computational cost, pseudo-Laplacians are employed instead of true Laplacians. For this purpose, a 2-D formulation was proposed first in [45] and then improved in [46]. Later on, the scheme was extended to 3D in [2]. It makes use of a distance-weighting procedure. In this way, the scheme leads to a vanishing pseudo-Laplacian for a linearly varying function on any grid. Applied to a general scalar quantity \(U\) in cell \(I\), the pseudo-Laplacian assumes the form
其中\(N_A\)表示相邻控制体的数目。在采用中点对偶格式(median-dual scheme)时ï¼单元指标须换成节点指标\((i,j)\)。式(5.24)中的求和最好像通量计算那样ï¼用对面(单元中心格式)或对边(中点对偶格式)的循环来计算。几何权重\(\theta\)定义为en
where \(N_A\) stands for the number of adjacent control volumes. The cell indices have to be substituted by node indices \((i,j)\) in the case of the median-dual scheme. The sum in Eq. (5.24) is best evaluated using either a loop over faces (cell-centred scheme) or a loop over edges (median-dual scheme) similar to the flux computation. The geometrical weights \(\theta\) are defined as
权重由一个优化问题的解得到[2]。该优化问题借助拉格朗日乘子求解。由此ï¼几何权重由下式给出en
and result from the solution of an optimisation problem [2]. The optimisation problem is solved by means of Lagrange multipliers. Herewith, the geometrical weights are obtained from the expression
其中\(x\)、\(y\)、\(z\)为单元形心的笛卡尔坐标(中点对偶格式则为节点坐标)。拉格朗日乘子\(\lambda\)对每个单元(节点)计算ï¼由[2]得en
where \(x,y,z\) are the Cartesian coordinates of the cell centroids (nodes in the case of the median-dual scheme). The Lagrange multipliers \(\lambda\) are computed for each cell (node) and follow from [2]
其中的系数为en
with the coefficients
对单元\(I\)写出ï¼一阶矩为en
Written for a cell \(I\), the first-order moments read
此外ï¼二阶矩由下式给出en
Furthermore, the second-order moments are given by
几何权重(5.25)在严重扭曲的网格上可能导致拉普拉斯算子的非正近似ï¼从而使稳定性丧失。因此,[45]建议把权重限制在\((0,2)\)范围内。不过ï¼这一措施会损害离散的精度。更多细节另见文献[12]中的讨论。en
The geometrical weights (5.25) can lead to a non-positive approximation of the Laplacian and hence to a lost of stability on severely distorted grids. Therefore, clipping the weights to the range \((0,2)\) was suggested in [45]. However, this measure impairs the accuracy of the discretisation. See also the discussion in Ref. [12] for further details.
其中\(N_F\)表示控制体的面数(它可能与相邻控制体的数目不同ï¼例如当一个四边形面被分成两个三角形时)。en
where \(N_F\) denotes the number of the faces of the control volume (which may differ from the number of adjacent control volumes, e.g., if a quadrilateral face is divided into two triangles).
其中\(V_m\)表示逆变速度(2.22),\(c_m\)为声速。这两个量都用面上平均的流动变量计算。控制体面上的谱半径由下式得到en
where \(V_m\) represents the contravariant velocity (2.22) and \(c_m\) the speed of sound, respectively. Both quantities are computed from flow variables averaged at the face. The spectral radius at the face of the control volume is obtained from
利用一个基于压力的传感器ï¼在激波处关闭四阶差分ï¼在流场的光滑区域关闭二阶差分。据此ï¼式(5.31)中的系数\(\epsilon_{IJ}^{(2)}\)与\(\epsilon_{IJ}^{(4)}\)定义为en
A pressure-based sensor is used to switch off the fourth-order differences at shocks and the second-order differences in smooth portions of the flow field. Herewith, the coefficients \(\epsilon_{IJ}^{(2)}\) and \(\epsilon_{IJ}^{(4)}\) in Eq. (5.31) are defined as
其中的压力传感器由下式给出en
with the pressure sensor given by
参数的典型取值为\(k^{(2)} = 1/2\)ï¼以及\(1/128 \le k^{(4)} \le 1/64\)。en
Typical values of the parameters are \(k^{(2)} = 1/2\) and \(1/128 \le k^{(4)} \le 1/64\).
正如我们在4.3.1小节中已经讨论过的ï¼若在式(5.31)中用一个矩阵[47]代替谱半径\((\hat{\Lambda}_c)_{IJ}\)ï¼上述中心格式的精度可以得到改进。这种所谓的矩阵耗散(matrix dissipation)格式在非结构网格上的实现方式与结构网格相同ï¼缩放矩阵的定义如同式(4.59)。矩阵耗散格式在三维混合网格上的应用可参见例如文献[48]。en
As we already discussed in Subsection 4.3.1, the accuracy of the above central scheme can be improved when we substitute a matrix [47] for the spectral radius \((\hat{\Lambda}_c)_{IJ}\) in Eq. (5.31). The implementation of this so-called matrix dissipation scheme on unstructured grids proceeds in the same way as on structured grids, with the scaling matrix defined as in Eq. (4.59). Application of the matrix dissipation scheme to 3-D mixed grids is discussed, e.g., in Ref. [48].
需要特别注意的是ï¼对于三角形/四面体以外的单元ï¼常用的显式Runge-Kutta型时间离散在与中心格式耦合时会出现严重的稳定性问题[49]。原因在于四阶差分是用拉普拉斯的拉普拉斯来表示的。一种补救办法是用左、右状态之差(参见4.3节)来近似四阶差分[49]ï¼即en
It is important to note that for elements other than triangles/tetrahedra, the popular explicit Runge-Kutta type of temporal discretisation experiences severe stability problems when it is coupled to the central scheme [49]. The reason is the representation of the fourth-order differences by the Laplacian of the Laplacian. A remedy is to employ a difference of the left and the right state (cf. Section 4.3) for the approximation of the fourth-order differences [49], i.e.,
这种做法在四边形/六面体网格上给出与相应结构格式相同的模板。左、右状态可用例如下文5.3.3小节所述的线性重构来计算。en
This approach leads on quadrilateral/hexahedral grids to the same stencil as the corresponding structured scheme. The left and right state are computed using, e.g., the linear reconstruction described below in Subsection 5.3.3.
5.3.2 Upwind Schemes 上风格式[cfd-5-3-2]
至少就目前而言ï¼上风格式在非结构网格上似乎比上述中心格式更受欢迎。实际上,Roe的通量差分分裂格式[50]是非结构网格上应用最广的方法。与中心格式相比ï¼它对边界层的分辨率明显更高ï¼对网格扭曲的敏感性更低ï¼这正是Roe格式吸引人的地方。然而ï¼性能改善的代价是更大的计算量——当必须使用限制器来抑制解的振荡时(5.3.5小节)ï¼这一代价变得相当可观。en
Upwind schemes seem to have gained, at least for the moment, much more popularity on unstructured grids than the above central scheme. In fact, the flux-difference splitting scheme of Roe [50] is the most widely employed approach on unstructured grids. It is the considerably more accurate resolution of boundary layers and the lower sensitivity to grid distortions in comparison to the central scheme, which explains the attractiveness of Roe's scheme. However, the price to be paid for the improved performance is the higher computational effort, which becomes quite significant if a limiter has to be used to suppress oscillations of the solution (Subsection 5.3.5).
4.3节中针对结构网格介绍的各种上风格式ï¼无需改动基本方法学即可用于非结构网格。只有左、右状态的计算(式(5.22))——即所谓的解重构——以及限制函数的计算需要新的公式。因此ï¼这里只讨论解重构与限制器。关于各种上风方法的细节ï¼读者可参阅4.3.2-4.3.4小节。采用中点对偶方法在非结构网格上实现Roe格式的例子可参见例如文献[33]。en
Any of the upwind schemes presented in Section 4.3 for structured grids are applicable to unstructured grids without modifications to the basic methodology. Only the computation of the left and right state (Eq. (5.22)), which is denoted as solution reconstruction, as well as the evaluation of the limiting function require new formulations. For this reason, only the solution reconstruction and the limiters are discussed here. For details on the various upwind methods, the reader is referred to Subsections 4.3.2-4.3.4. An example for the implementation of Roe's scheme on unstructured grids using the median-dual approach can be found, e.g., in Ref. [33].
5.3.3 Solution Reconstruction 解重构[cfd-5-3-3]
正如我们在4.3.2-4.3.4小节中所看到的ï¼上风格式要求在控制体面的左、右两侧给定流动状态。式(5.37)中改进的人工耗散格式也是如此。en
As we saw in Subsections 4.3.2-4.3.4, upwind schemes require flow states to be specified on the left and the right side of a control volume face. The same holds also for the modified artificial dissipation scheme in Eq. (5.37).
作为第一种做法ï¼可以假设解在每个控制体内部为常数。此时左、右状态就是为左、右控制体计算的流动变量。例如ï¼对中点对偶格式(图5.9)ï¼我们会取en
As a first approach, we can assume that the solution is constant inside each control volume. The left and right state are then simply the flow variables computed for the left and the right control volume. For example, in the case of the median-dual scheme (Fig. 5.9) we would set
其中\(U\)代表某个标量流动变量。这样得到的空间离散只有一阶精度。对黏性流动而言ï¼一阶精度的解耗散太大ï¼会导致剪切层过度增长。因此ï¼计算黏性流动必须采用空间精度更高的方法。en
with \(U\) representing some scalar flow variable. This leads to a spatial discretisation which is only first-order accurate. For viscous flows, a first-order accurate solution is too diffusive and leads to an excessive growth of shear layers. Therefore, methods with higher spatial accuracy are a must for the computation of viscous flows.
如果假设解在控制体内部有变化ï¼就可以达到二阶及更高阶精度。二阶精度方法是最常用的高阶方法ï¼它假设解在控制体上按线性方式变化。为了计算左、右状态ï¼需要对所假设的解的变化进行重构。下面我们将讨论线性变化与二次变化重构的最常用方法。关于各种线性重构技术的比较ï¼有兴趣的读者可参阅[38]。en
We can achieve second- and higher-order accuracy if we assume the solution changes over the control volume. For second-order accurate methods, which are the most commonly employed higher-order methods, the solution is assumed to vary in a linear fashion over the control volume. In order to compute the left and right state, a reconstruction of the assumed solution variation becomes necessary. In what follows, we shall discuss the most popular approaches for the reconstruction of linear and quadratic variations. The interested reader is referred to [38] for a comparison of various linear reconstruction techniques.
Reconstruction Based on MUSCL Approach 基于MUSCL方法的重构
达到二阶精度的一种可能途径ï¼是把MUSCL方法[51]推广到非结构网格。当用于中点对偶格式时ï¼该方法为每条边\(ij\)生成两个“虚拟”节点\(i'\)与\(j'\)[52]-[56]。如图5.12所示ï¼这些虚拟节点位于把边\(ij\)向两端各延长一个边长所得线段的端点处。在把解从周围单元(图5.12中着灰色者)插值到虚拟节点之后ï¼便可用MUSCL公式即式(4.46)计算左、右状态。于是,en
One possibility to achieve second-order accuracy consists of the extension of the MUSCL approach [51] to unstructured grids. When applied to the median-dual scheme, the method generates for each edge \(ij\) two "phantom" nodes \(i'\) and \(j'\) [52]-[56]. These phantom nodes are located at the endpoints of the line obtained by extending the edge \(ij\) by its length in both directions as sketched in Fig. 5.12. After the solution is interpolated from the surrounding elements (gray coloured in Fig. 5.12) to the phantom nodes, we can evaluate the left and right state using the MUSCL formulae Eq. (4.46). Hence,
其中前向\((\Delta_{+})\)与后向\((\Delta_{-})\)差分算子定义为en
with forward \((\Delta_{+})\) and the backward \((\Delta_{-})\) difference operators defined as
出现强间断时,MUSCL插值(5.39)必须辅以限制器函数(按照4.3.5小节)。这种方法的一个缺点是必须为每条边存储包含虚拟节点的单元。另一个概念上的缺点是:为一个控制体重构出的梯度并不唯一。此外ï¼在边界处可能出现困难ï¼因为此时某个虚拟点会落在物理域之外。en
The MUSCL interpolation (5.39) has to be enhanced by a limiter function (according to Subsection 4.3.5) in the case of strong discontinuities. A disadvantage of this methodology is the necessity to store for each edge the elements which contain the phantom nodes. A further conceptual disadvantage is that no unique gradient is reconstructed for a control volume. Furthermore, difficulties can arise at boundaries, where one of the phantom points lies outside the physical domain.

图5.12:基于沿边ij方向的单元插值确定左、右状态(二维中点对偶格式)。图例:\(i'\)、\(i\)、\(j\)、\(j'\)——虚拟节点与边ij的端点;\(U_L\)、\(U_R\)——控制体面上的左状态与右状态;着灰色的单元表示用于插值到虚拟节点的周围单元;虚线表示由边ij向两端延长所得的线段。

图5.13:二维单元中心格式(a)与中点对偶格式(b)的线性重构。图例:(a)\(I\)、\(J\)——单元形心;\(U_L\)、\(U_R\)——面上的左、右状态;\(\vec{r}_L\)、\(\vec{r}_R\)——由形心指向面中点的向量;\(\Omega\)——控制体。(b)\(i\)、\(j\)——节点;\(\vec{r}_{ij}\)——由节点\(i\)指向\(j\)的边向量;\(U_L\)、\(U_R\)——面上的左、右状态;\(\Omega\)——对偶控制体。
Piecewise Linear Reconstruction 分段线性重构
Barth与Jespersen在[30]中提出了一种与有限元格式密切相关的重构方法。这里假设解在控制体上分段线性分布。于是ï¼对单元中心格式ï¼可由下列关系式求出左、右状态en
Barth and Jespersen presented in [30] a reconstruction method, which is closely related to the finite element schemes. Here, it is assumed that the solution is piecewise linearly distributed over the control volume. Then, we can find the left and right state for a cell-centred scheme from the relations
其中\(\nabla U_I\)是\(U\)(即\([\partial U/\partial x,\, \partial U/\partial y,\, \partial U/\partial z]^T\))在单元中心\(I\)处的梯度,\(\Psi\)表示限制器函数(参见5.3.5小节)。向量\(\vec{r}_L\)与\(\vec{r}_R\)从单元形心指向面中点ï¼如图5.13a所示。en
where \(\nabla U_I\) is the gradient of \(U\) (\(= [\partial U/\partial x,\, \partial U/\partial y,\, \partial U/\partial z]^T\)) at the cell centre \(I\) and \(\Psi\) denotes a limiter function (cf. Subsection 5.3.5), respectively. The vectors \(\vec{r}_L\) and \(\vec{r}_R\) point from the cell-centroid to the face-midpoint, as indicated in Fig. 5.13a.
同样的方法也适用于中点对偶格式[30]ï¼即en
The same approach applies to the median-dual scheme [30], i.e.,
按照图5.9或图5.13b,en
According to Fig. 5.9 or Fig. 5.13b,
表示从节点\(i\)指向节点\(j\)的向量。en
represents the vector from node \(i\) to node \(j\).
容易看出,Barth与Jespersen的方法相当于围绕面相邻的形心/节点作泰勒级数展开并只保留线性项。线性重构在规则网格上形式上为二阶精度[38]。只要梯度\(\nabla U\)的计算没有误差ï¼该格式在任意网格上都能精确重构线性函数。线性重构很可能是各种重构方法中最常用的一种。en
It can be easily seen that the method of Barth and Jespersen corresponds to a Taylor-series expansion around the neighbouring centres/nodes of the face, where only the linear term is retained. The linear reconstruction is formally second-order accurate on regular grids [38]. The scheme reconstructs a linear function exactly on any grid, provided the gradient \(\nabla U\) is evaluated without an error. The linear reconstruction is likely the most popular one among the reconstruction methods.
上述格式需要在单元中心或节点处计算梯度。这既可以用Green-Gauss方法也可以用最小二乘方法实现ï¼二者将在下文5.3.4小节中介绍。此外ï¼限制器函数在非结构网格上的实现将在5.3.5小节中详细描述。en
The above scheme requires the computation of gradients at cell centres or at nodes, respectively. This can be accomplished either by the Green-Gauss or the least-squares approach, which are presented below in Subsection 5.3.4. Furthermore, the implementation of the limiter function on unstructured grids is described in detail in Subsection 5.3.5.
Linear Reconstruction Based on Nodal Weighting Procedure 基于节点加权过程的线性重构
Frink[26]证明ï¼对单元中心格式ï¼在纯三角形或四面体网格上线性重构(5.41)无需显式计算梯度。原因在于这类单元的两个不变几何特征。其一ï¼从任一节点出发穿过单元形心的直线总会与对面(与该节点相对的面)的中点相交。其二ï¼从单元形心到面中点的距离ï¼是从面中点到对面节点距离的四分之一(对三角形为三分之一)。这样ï¼单元中心处的梯度便可用简单有限差分近似[26]。例如ï¼若要重构图5.7a中面中点\(F_3\)处的解ï¼式(5.41)就成为en
It was demonstrated by Frink [26] that for the cell-centred scheme the linear reconstruction (5.41) does not require an explicit evaluation of the gradient on purely triangular or tetrahedral grids. The reason are two invariant geometric features of these elements. First, a line from a node through the cell-centroid will always intersect the midpoint of the opposing face. Second, the distance from the cell-centroid to the face-midpoint is one-fourth (one-third for a triangle) of the distance from the face-midpoint to the opposite node. Thus, the gradient at the cell centre can be approximated by a simple finite difference [26]. For example, if we were to reconstruct the solution at the face-midpoint \(F_3\) in Fig. 5.7a, the formulae (5.41) would become
其中\(U_C\)为单元形心处的值,\(U_1\)、\(U_2\)等表示节点值ï¼而\(\Psi\)表示限制器。en
with \(U_C\) being the value at the cell-centroid, \(U_1\), \(U_2\), etc. denoting the nodal values, and finally \(\Psi\) standing for a limiter, respectively.
Frink设计了两种确定节点值的方法。第一种基于逆距离加权(inverse distance weighting)。此时ï¼周围单元对某节点的贡献与该节点到单元形心的距离成反比[26]、[57]ï¼即en
Two different ways were devised by Frink in order to determine the nodal values. The first approach is based on inverse distance weighting. Here, the contribution to a node from the surrounding cells is inverse proportional to the distance from the node to the cell-centroid [26], [57], i.e.,
其中权重\(\theta_{iJ} = 1/r_{iJ}\)。距离按下式计算en
with the weights \(\theta_{iJ} = 1/r_{iJ}\). The distance is computed from
下标\(J\)与\(i\)分别指单元形心与节点。上述方法得到的重构不足二阶精度。不过Frink指出ï¼至少对无黏流动不需要限制器[26]ï¼从而显著减少了计算量。en
The subscripts \(J\) and \(i\) refer to the cell-centroid and to the node, respectively. The above methodology leads to a reconstruction which is less than second-order accurate. However, Frink pointed out that no limiter is needed at least for inviscid flows [26], which reduces the computational effort significantly.
第二种方法基于Holmes等人[45]与Rausch等人[46]在二维上的工作ï¼后来由Frink[2]推广到三维。这里ï¼式(5.45)中的权重\(\theta_{iJ}\)定义为:当变化为线性时ï¼节点值可被精确算出。这导致与伪拉普拉斯算子(5.24)的计算相同的约束条件ï¼因此权重也相同ï¼由式(5.25)-(5.30)给出ï¼只需把单元形心坐标\(x_I\)、\(y_I\)、\(z_I\)换成节点坐标\(x_i\)、\(y_i\)、\(z_i\)。由于节点值对线性函数是精确的ï¼该格式形式上为二阶精度。为了保证在扭曲网格上的正性ï¼权重必须限制在\((0,2)\)范围内[45]。遗憾的是ï¼这会降低重构的精度。Frink等人[4]最近还报道了该重构在Navier-Stokes方程下的一些异常行为。en
The second approach is based on work of Holmes et al. [45] and Rausch et al. [46] in 2D. It was later extended to 3D by Frink [2]. Here, the weights \(\theta_{iJ}\) in Eq. (5.45) are defined such that the nodal values are computed exactly if the variation is linear. This leads to the same constraints as for the computation of the pseudo Laplacian (5.24). Consequently, the weights are also the same and follow from the Equations (5.25)-(5.30). The coordinates \(x_I\), \(y_I\), \(z_I\) of the cell-centroids are just replaced by the node coordinates \(x_i\), \(y_i\), \(z_i\). The scheme is formally second-order accurate because the nodal values are computed exactly for a linear function. In order to assure positivity on distorted grids, the weights have to be restricted to the range \((0,2)\) [45]. Unfortunately, this reduces the accuracy of the reconstruction. Frink et al. [4] also recently reported some anomalous behaviour of the reconstruction for the Navier-Stokes equations.
Piecewise Quadratic Reconstruction 分段二次重构
要想用多项式重构达到高于二阶的精度ï¼就必须在围绕面相邻单元形心/节点的截断泰勒级数展开中保留更多项。基于Barth与Frederickson的工作[58],Barth提出了k精确(k-exact)重构格式的概念[59]ï¼即对\(k\)次多项式精确的重构。Barth方法中多项式的定义方式保证了均值守恒(conservation of the mean)ï¼换言之ï¼重构多项式的平均值等于控制体内的平均解。这一性质保证了重构过程中质量、动量与能量的守恒。该方法曾以\(k = 3\)在中点对偶格式中实现ï¼多项式系数用最小二乘方法计算。Mitchell与Walters[60]以及Mitchell[61]对单元中心格式遵循了类似思路。然而ï¼这些方法所需的数值工作量高得惊人ï¼数据结构也很复杂ï¼因而未能得到广泛应用。en
In order to achieve higher than second-order accuracy with a polynomial reconstruction, we have to keep further terms in the truncated Taylor-series expansion around the neighbouring cell-centres/nodes of the face. Based on the work of Barth and Frederickson [58], Barth developed the concept of k-exact reconstruction scheme [59], i.e., a reconstruction exact for a polynomial of degree \(k\). The polynomial in Barth's method is defined in a way which guarantees the conservation of the mean, or in other words, the average of the reconstruction polynomial is equal to the mean solution in the control volume. This property assures the conservation of mass, momentum, and energy during the reconstruction. The method was implemented for \(k = 3\) in a median-dual scheme. The coefficients of the polynomial were computed using a least-squares approach. Similar ideas were followed for the cell-centred scheme by Mitchell and Walters [60], and by Mitchell [61]. However, these methods require a prohibitively high numerical effort and a complex data structure which prevented their widespread use.
Delanaye与Essers[62]以及Delanaye[63]为单元中心格式发展了一种特殊的二次重构形式ï¼其计算效率高于Barth的方法。左、右状态用截断到二次项的泰勒级数近似[62]、[63]en
Delanaye and Essers [62] and Delanaye [63] developed a particular form of the quadratic reconstruction for cell-centred schemes, which is computationally more efficient than the method of Barth. The left and right state are approximated using Taylor series truncated after the quadratic term [62], [63]
该矩阵在单元形心\(I\)处取值。变量\(\Psi_{I,1}\)与\(\Psi_{I,2}\)分别表示用于线性项与二次项的两种不同限制器函数[62]。二次重构方法在规则网格上为三阶精度;由于误差项相消ï¼在任意网格上至少为二阶精度[63]。不过ï¼要达到这些性质ï¼必要条件是:式(5.47)中的梯度\(\nabla U\)至少以二阶精度计算,Hessian至少以一阶精度计算。这通过把Green-Gauss梯度计算与基于最小二乘的二阶导数近似相结合来实现[62]、[63]ï¼从而得到数值上高效的格式。但与线性重构相比ï¼其内存与CPU时间开销仍然相当可观。该方法使用由面相邻与节点相邻单元组成的固定模板。模板以及Green-Gauss梯度计算所用的积分路径示于图5.14。为了确定二次多项式的所有系数ï¼模板至少须提供六个(三维为十个)值。为了保持二次重构所提供的精度ï¼必须考虑解在面上的线性变化而不是常值。这意味着解必须在二维面的两个点——所谓Gauss求积点(参见图5.14)——处重构(三角面则为三个点)ï¼并且通量须在控制体面上分段积分[37]。en
evaluated at the cell-centroid \(I\). The variables \(\Psi_{I,1}\) and \(\Psi_{I,2}\) represent two different limiter functions for the linear and the quadratic term [62], respectively. The quadratic reconstruction method is third-order accurate on regular grids and at least second-order accurate on arbitrary grids due to cancellation of error terms [63]. Necessary conditions for achieving these properties are, however, that the gradient \(\nabla U\) in Eq. (5.47) is evaluated at least with second-order and the Hessian with first-order accuracy. This is accomplished by combining Green-Gauss gradient evaluation with least-squares based approximation of the second derivatives [62], [63], which leads to a numerically efficient scheme. But the memory and the CPU-time overheads are still quite significant in comparison to the linear reconstruction. The method utilises a fixed stencil composed of face and node neighbours. The stencil is shown in Fig. 5.14 together with the integration path employed for the Green-Gauss gradient computation. In order to determine all coefficients of the quadratic polynomial, at least six (ten in 3D) values must be provided by the stencil. To maintain the accuracy provided by the quadratic reconstruction, it is necessary to consider a linear variation of the solution over the face instead of a constant value. This implies that the solution must be reconstructed at two points - the so-called Gauss quadrature points (cf. Fig. 5.14) - of a 2-D face (at three points of a triangular face) and that the fluxes have to be integrated in a piecewise manner over the face of the control volume [37].

图5.14:Delanaye[62]、[63]二次重构方法在二维下的模板(实心矩形)。图例:虚线表示Green-Gauss梯度计算的积分路径(控制体\(\Omega'\));叉号表示通量积分的求积点;\(I\)、\(\Omega\)——中心单元及其控制体;\(J\)、\(J+1\)——模板中的远邻单元形心。
5.3.4 Evaluation of the Gradients 梯度的计算[cfd-5-3-4]
分段线性重构与二次重构的讨论中还遗留一个问题ï¼即梯度的确定。计算黏性通量(5.4节)也需要速度分量与温度的梯度。下面介绍两种方法:第一种基于Green-Gauss定理ï¼第二种利用最小二乘法。en
An open point, which remains from the discussion of the piecewise linear and the quadratic reconstruction, is the determination of the gradient. Gradients of the velocity components and the temperature are also required for the evaluation of the viscous fluxes (Section 5.4). Two approaches will be presented in the following: the first is based on the Green-Gauss theorem, and the second utilises the least-squares method.
Green-Gauss Approach Green-Gauss方法
该方法把某标量函数\(U\)的梯度近似为\(U\)与外指单位法向量的乘积在某个控制体\(\Omega'\)上的面积分ï¼即en
This method approximates the gradient of some scalar function \(U\) as the surface integral of the product of \(U\) with an outward-pointing unit normal vector over some control volume \(\Omega'\), i.e.,
Median-Dual Scheme 中点对偶格式
Barth与Jespersen[30]从Galerkin有限元方法导出了Green-Gauss方法的一种特殊离散。后来,Barth[64]把该离散推广到三维。Barth与Jespersen把式(5.49)应用于在某个节点处相会的所有单元的并集所构成的区域。他们证明ï¼这一方法可以表述成与基于边的数据结构相容的形式。不过ï¼这只对三角形/四面体网格上的中点对偶格式有效。所得公式为en
Barth and Jespersen [30] derived a particular discretisation of the Green-Gauss approach from the Galerkin finite element method. Later on, the discretisation was extended to 3D by Barth [64]. Barth and Jespersen applied Eq. (5.49) to the region formed by the union of the elements meeting at a node. They proved that the approach can be formulated such that it becomes compatible with the edge-based data structure. However, this works only for the median-dual scheme on triangular/tetrahedral grids. The resulting formula reads
这里ï¼式(5.49)中的\(\Omega'\)等于中点对偶控制体\(\Omega\)的体积。求和遍及与节点\(i\)相连的所有\(N_F\)条边。此外,\(\vec{n}_{ij}\)表示按式(5.23)定义的平均单位法向量,\(\Delta S_{ij}\)为总面面积。同一公式(5.50)在二维或三维都适用。需要指出的是ï¼为了得到一致的近似ï¼边界处的求和必须作改变[65](另见8.10节)。en
Here, \(\Omega'\) in Eq. (5.49) equals to the volume of the median-dual control volume \(\Omega\). The summation extends over all \(N_F\) edges incident to node \(i\). Furthermore, \(\vec{n}_{ij}\) denotes the average unit normal vector according to Eq. (5.23), and \(\Delta S_{ij}\) is the total face area, respectively. The same formula (5.50) is applicable in two or in three dimensions. It is important to mention that the summation has to be changed at boundaries in order to obtain a consistent approximation [65] (see also Section 8.10).
Cell-Centred Scheme 单元中心格式
Green-Gauss方法同样可用于单元中心格式。于是ï¼某单元形心\(I\)处的梯度可由下式得到en
We can use the Green-Gauss method in the cell-centred scheme as well. Hence, the gradient at some cell-centroid \(I\) can be obtained from
Mixed Grids 混合网格
用式(5.50)或式(5.51)计算Green-Gauss梯度的主要吸引力在于它与通量计算(如式(5.19))的相似性:这意味着梯度重构不需要额外的数据结构。主要缺点是式(5.50)或式(5.51)的近似在混合网格上会失效。[49]中证明ï¼梯度可能变得很不准确ï¼尤其是在不同单元类型相接之处。对中点对偶格式ï¼如果把式(5.49)中的体积\(\Omega'\)取为与节点\(i\)相关的所有单元的并集ï¼就可以解决这一问题。参照图5.8所示的情形ï¼二维梯度于是由下式给出en
The main attractiveness of the Green-Gauss gradient evaluation by Eq. (5.50) or (5.51) is its similarity to the computation of the fluxes (e.g., Eq. (5.19)). This means that no additional data structures are needed for the reconstruction of gradients. The main disadvantage is that the approximation in Eq. (5.50) or Eq. (5.51), respectively, fails on mixed grids. It was demonstrated in [49] that the gradient can become highly inaccurate, particularly where different element types meet. We can solve the problem in the case of the median-dual scheme when we keep the volume \(\Omega'\) in Eq. (5.49) identical to the union of all cells incident to node \(i\). Referring to the situation sketched in Fig. 5.8, the gradient results then in 2D from
其中取\(i = 0\)ï¼外表面数\(N_O = 6\)(由点\(P_1\)-\(P_6\)给出)ï¼当\(j = 6\)时\(j+1 = 1\)。此外,\(\vec{n}_j\)与\(\Delta S_j\)表示外单元面的单位法向量与面积。在三维中ï¼可用en
with \(i = 0\), the number of outer faces \(N_O = 6\) (given by the points \(P_1\)-\(P_6\)), and \(j+1 = 1\) for \(j = 6\). Furthermore, \(\vec{n}_j\) and \(\Delta S_j\) stand for the unit normal vector and the area of the outer cell faces. In 3D, we can use
这里假设所有的面都是三角形——或天然如此ï¼或经分解而成。同样的补救办法也可用于单元中心格式。此时控制体\(\Omega'\)的表面由远一与远二相邻单元的形心定义[62]、[63]ï¼如图5.14所示。梯度按式(5.52)或式(5.53)计算ï¼只是把节点指标换成单元指标。en
when we assume all faces are triangles - either naturally or by decomposition. The same remedy can be also employed for the cell-centred scheme. The surface of the control volume \(\Omega'\) is then defined by the centroids of the distant-one and distant-two neighbouring cells [62], [63], as it is rendered in Fig. 5.14. The gradient is computed correspondingly to Eq. (5.52) or (5.53) with cell instead of node indices.
这种基于单元的方法的明显缺点是必须增加一种数据结构ï¼以提供中心节点/形心与\(\Omega'\)外表面之间的联系。这样一来ï¼该方法不再是网格透明的(grid-transparentï¼即不再与单元信息无关)ï¼高效的gather-scatter循环也不再可能。这使得下面介绍的最小二乘技术在混合网格上更有吸引力。en
The clear disadvantage of such a cell-based approach is the necessity of an additional data structure, which provides a link between the central node/centroid and the outer faces of \(\Omega'\). Thus, the approach is no longer grid-transparent (i.e., independent of the cell information) and an efficient gather-scatter loop is no longer possible. This renders the least-squares technique, which is described below, more attractive on mixed grids.
在三角形或四面体网格上使用基于边/面的实现(5.50)或(5.51)ï¼在混合网格上使用基于单元的方法(5.52)或(5.53),Green-Gauss方法至少为一阶精度[63]。它还是一致的(consistent)ï¼即线性函数的梯度可计算到舍入误差精度。一阶精度对线性重构已经足够。二次重构所需的任意网格上的二阶精度ï¼可以通过从梯度的一阶近似中减去截断误差的估计来达到[63]。en
Using the edge-/face-based implementation (5.50) or (5.51) on triangular or tetrahedral grids, and the cell-based methodology (5.52) or (5.53) on mixed grids, the Green-Gauss approach is at least first-order accurate [63]. It is also consistent, i.e., the gradient of a linear function is computed to roundoff error. First-order accuracy is sufficient for the linear reconstruction. Second-order accuracy on arbitrary grids, which is required for the quadratic reconstruction, can be achieved by subtracting an estimate of the truncation error from the first-order approximation of the gradient [63].
Least-Squares Approach 最小二乘方法
用最小二乘方法计算梯度最早由Barth引入[64]、[36]。为了说明该方法ï¼考虑中点对偶格式。此时ï¼最小二乘方法基于对与中心节点\(i\)相连的每条边使用一阶泰勒级数近似。沿边\(ij\)的解的变化可由下式计算en
The evaluation of gradients by the least-squares approach was first introduced by Barth [64], [36]. In order to illustrate the method, let us consider the median-dual scheme. Herewith, the least-squares approach is based upon the use of a first-order Taylor series approximation for each edge which is incident to the central node \(i\). The change of the solution along an edge \(ij\) can be computed from
其中\(\Delta(\cdot)_{ij} = (\cdot)_j - (\cdot)_i\),\(\partial_m(\cdot) = \partial(\cdot)/\partial m\)。此外,\(N_A\)表示与\(i\)通过边相连的相邻节点\(j\)的数目,\(\theta_j\)为某个加权系数。权重可以依赖于几何和/或解(参见例如[40])。不过实践中\(\theta_j\)通常取为1。为方便起见ï¼把上述方程组(5.55)简写为en
with \(\Delta(\cdot)_{ij} = (\cdot)_j - (\cdot)_i\) and \(\partial_m(\cdot) = \partial(\cdot)/\partial m\). Further, \(N_A\) denotes the number of adjacent nodes \(j\) connected to \(i\) by an edge and \(\theta_j\) stands for some weighting coefficient. The weights can depend on the geometry and/or on the solution (see, e.g., [40]). However, in practice \(\theta_j\) is usually set to unity. For convenience, we abbreviate the above system (5.55) as
由式(5.56)解出梯度向量\(\vec{x}\)需要对矩阵\(\bar{A}\)求逆。为了防止病态问题(特别是在拉伸网格上),Anderson与Bonhaus建议用Gram-Schmidt过程把\(\bar{A}\)分解为正交矩阵\(\bar{Q}\)与上三角矩阵\(\bar{R}\)的乘积[66]。他们的方法最近在[49]中被推广到三维。于是ï¼式(5.56)的解立即由下式给出en
Solving Eq. (5.56) for the gradient vector \(\vec{x}\) requires the inversion of the matrix \(\bar{A}\). To prevent problems with ill-conditioning (particularly on stretched grids), Anderson and Bonhaus suggested to decompose \(\bar{A}\) into the product of an orthogonal matrix \(\bar{Q}\) and an upper triangular matrix \(\bar{R}\) using the Gram-Schmidt process [66]. Their approach was recently extended to 3D in [49]. Hence, the solution to Eq. (5.56) immediately follows from
用带双下标的小写字母表示矩阵元素ï¼矩阵\(\bar{A} = [\vec{a}_1,\, \vec{a}_2,\, \vec{a}_3]\)的Gram-Schmidt正交化可写为\(\bar{Q} = [\vec{q}_1,\, \vec{q}_2,\, \vec{q}_3]\)ï¼其中en
Using a lower case letter with double subscripts to denote a matrix element, we may write the Gram-Schmidt orthogonalisation of the matrix \(\bar{A} = [\vec{a}_1,\, \vec{a}_2,\, \vec{a}_3]\) as \(\bar{Q} = [\vec{q}_1,\, \vec{q}_2,\, \vec{q}_3]\), where
上三角矩阵\(\bar{R}\)的元素由下式求得en
The entries in the upper triangular matrix \(\bar{R}\) are obtained from
其中权重向量\(\vec{w}_{ij}\)定义为en
with the vector of weights \(\vec{w}_{ij}\) defined as
其中en
where
对单元中心格式ï¼最小二乘方法的表述在形式上保持不变ï¼只需把节点换成单元形心。例子可参见文献[16]。en
The formulation of the least-squares approach remains formally the same for a cell-centred scheme, only the nodes have to be substituted by cell-centroids. An example may be found in Ref. [16].
最小二乘方法在一般网格上为一阶精度[63]。它也是一致的ï¼即无论单元类型如何ï¼线性函数的梯度都能计算到舍入误差精度。因此该方法特别适合混合网格。其计算成本与Green-Gauss方法相当ï¼因为只需在对面/边的单个循环内做一次向量-标量乘法(式(5.60))。不过ï¼我们必须在每个节点处预先计算并存储上三角矩阵\(\bar{R}\)的六个元素(式(5.59))。文献[67]的详细研究表明ï¼为了在高度拉伸且又弯曲的网格上准确近似非线性函数的梯度ï¼式(5.55)、(5.60)中的加权系数\(\theta_j\)必须取为节点\(i\)与\(j\)之间距离的倒数(类似于式(5.45)中的\(\theta_{ij}\))。然而ï¼这对三角形(四面体)网格上的单元中心格式并无帮助[67]。en
The least-squares method is first-order accurate on general grids [63]. It is also consistent, i.e., the gradient of a linear function is computed to roundoff error, regardless of the type of the elements. Therefore, the method is particularly suited to mixed grids. The computational costs are comparable to those of the Green-Gauss approach, since only a vector-scalar multiplication (Eq. (5.60)) is needed within a single loop over faces/edges. However, we have to pre-compute and store the six entries (Eq. (5.59)) of the upper triangular matrix \(\bar{R}\) at each node. A detailed investigation in Ref. [67] revealed that the weighting coefficient \(\theta_j\) in Eqs. (5.55), (5.60) has to be set equal to the inverse of the distance between the nodes \(i\) and \(j\) (similar to \(\theta_{ij}\) in Eq. (5.45)), in order to obtain an accurate approximation for the gradient of a non-linear function on a highly stretched and additionally curved grid. However, this does not help in the case of the cell-centred scheme on triangular (tetrahedral) grids [67].
经验还表明ï¼当黏性壁面上采用棱柱或六面体单元时ï¼中点对偶格式的最小二乘方法需要注意一些问题。考察图5.15ï¼假设我们要计算节点\(i\)处速度分量的梯度。可以看出ï¼只有来自边\(ij\)的贡献是有用的ï¼因为与\(i\)通过边相连的其他节点上\(u = v = w = 0\)。为了扩大模板的支持范围ï¼可以插入所谓的虚拟边(virtual edges)[49]ï¼如图5.15中的虚线所示。虚拟边能显著改善离散格式的精度与稳健性。应当强调ï¼它们只用于梯度重构ï¼而不用于通量计算。en
Experience also shows that the least-squares approach requires some attention in the case of the median-dual scheme, if prismatic or hexahedral cells are employed on a viscous wall. Consider Fig. 5.15 and assume that we want to compute the gradients of the velocity components at node \(i\). It may become obvious that only the contribution from the edge \(ij\) is useful, since at other nodes connected to \(i\) by an edge \(u = v = w = 0\). To increase the support of the stencil, we can insert the so-called virtual edges [49], as they are rendered by the dashed lines in Fig. 5.15. The virtual edges help to improve the accuracy and the robustness of the discretisation scheme considerably. It should be stressed that they are employed only for the gradient reconstruction but not for the flux computation.

图5.15:用于计算节点\(i\)处梯度的虚拟边(虚线)[49]。图例:所示为边界上(阴影)的棱柱单元(a)与六面体单元(b);\(i\)、\(j\)——节点;虚线为虚拟边。
5.3.5 Limiter Functions 限制器函数[cfd-5-3-5]
二阶及更高阶的上风空间离散需要使用所谓的限制器(limiter)或限制器函数(limiter function)ï¼以防止在大梯度区域(如激波处)产生振荡与虚假解。因此ï¼我们至少要达到单调性保持(monotonicity preserving)的格式。这意味着流场中的极大值必须不增ï¼极小值必须不减ï¼并且在时间推进过程中不得产生新的局部极值。对于结构网格上的上风格式ï¼我们已在4.3.5小节讨论过这一点。en
Second- and higher-order upwind spatial discretisations require the use of so-called limiters or limiter functions in order to prevent the generation of oscillations and spurious solutions in regions with large gradients (e.g., at shocks). Hence, what we want to achieve is at least a monotonicity preserving scheme. This means that maxima in the flow field must be non-increasing, minima non-decreasing, and no new local extrema may be created during the time evolution. We discussed this point in Subsection 4.3.5 for the case of structured upwind discretisation schemes.
在非结构网格上ï¼限制器的目的是减小用于重构控制体面左、右状态的梯度。限制器函数在强间断处必须为零ï¼以得到保证单调性的一阶上风格式。把限制器置零即导致式(5.38)的常数重构。当然ï¼在流场光滑区域必须保留原来的无限制重构ï¼以使数值耗散尽可能低。下面我们将描述两种广泛使用的限制器函数——即Barth与Jespersen的限制器[30]ï¼以及Venkatakrishnan的限制器[68]、[69]。en
On unstructured grids, the purpose of a limiter is to reduce the gradients used to reconstruct the left and right state at the face of the control volume. The limiter function must be zero at strong discontinuities, in order to obtain a first-order upwind scheme which guarantees monotonicity. Setting the limiter to zero leads to the constant reconstruction of Eq. (5.38). Of course, the original unlimited reconstruction has to be retained in smooth flow regions, in order to keep the amount of numerical dissipation as low as possible. In the following, we shall describe two widely used limiter functions - namely the limiters of Barth and Jespersen [30], and of Venkatakrishnan [68], [69].
Limiter of Barth and Jespersen Barth与Jespersen限制器
限制器函数在非结构网格上的首次实现见于文献[30]。对中点对偶格式ï¼它定义在节点\(i\)处为en
The first implementation of a limiter function on unstructured grids was presented in Ref. [30]. In the case of the median-dual scheme, it is defined at the node \(i\) as
其中的缩写为en
with the abbreviations
在式(5.64)与式(5.65)中,\(\min_j\)或\(\max_j\)表示节点\(i\)的所有直接邻居\(j\)(即所有与\(i\)通过边相连的节点)上的最小值或最大值。此外ï¼边向量\(\vec{r}_{ij}\)(示于图5.9或图5.13b)按式(5.43)定义。最后,\(U_j\)表示某个相邻节点\(j\)处的标量。对单元中心格式ï¼与上面类似的公式成立ï¼只需把节点指标换成单元指标ï¼并且en
In Equations (5.64) and (5.65), \(\min_j\) or \(\max_j\) means the minimum or maximum value of all direct neighbours \(j\) of node \(i\) (i.e., all nodes connected to \(i\) by an edge). Furthermore, the edge vector \(\vec{r}_{ij}\), which is shown in Fig. 5.9 or in Fig. 5.13b, is defined according to Eq. (5.43). Finally, \(U_j\) denotes a scalar quantity at some neighbouring node \(j\). Similar formulae to those above hold for the cell-centred scheme with cell instead of node indices and with
其中\(\vec{r}_L\)表示从单元形心指向相应单元面中点的向量。为了避免式(5.64)中除以非常小的\(\Delta_2\)值ï¼最好把\(\Delta_2\)改写为\(\mathrm{Sign}(\Delta_2)(\left|\Delta_2\right| + \omega)\)ï¼其中\(\omega\)约为机器精度[68]。en
where \(\vec{r}_L\) denotes the vector from the cell-centroid to the midpoint of the corresponding cell face. In order to avoid division by a very small value of \(\Delta_2\) in Eq. (5.64), it is better to modify \(\Delta_2\) as \(\mathrm{Sign}(\Delta_2)(\left|\Delta_2\right| + \omega)\), where \(\omega\) is approximately the machine accuracy [68].
Barth限制器强制解单调。但它耗散较大ï¼倾向于抹平间断。另一个问题是:在流场光滑区域ï¼数值噪声也会激活限制器。这通常阻碍向定常状态的完全收敛[68]、[38]。因此,Venkatakrishnan的限制器函数变得更为流行。en
Barth's limiter enforces a monotone solution. However, it is rather dissipative and it tends to smear discontinuities. A further problem presents the activation of the limiter due to numerical noise in smooth flow regions. This usually prevents the full convergence to steady state [68], [38]. Therefore, the limiter function due to Venkatakrishnan became more popular.
Venkatakrishnan's limiter Venkatakrishnan限制器
Venkatakrishnan限制器[68]、[69]因其优越的收敛特性而被广泛使用。该限制器按下列因子缩减顶点\(i\)处重构的梯度\(\nabla U\)en
Venkatakrishnan's limiter [68], [69] is widely used because of its superior convergence properties. The limiter reduces the reconstructed gradient \(\nabla U\) at the vertex \(i\) by the factor
其中en
where
在上面的式(5.68)中,\(U_{max}\)与\(U_{min}\)表示所有周围节点\(j\)(包括节点\(i\)本身)的最大值/最小值。\(U_{max}\)、\(U_{min}\)与\(\Delta_2\)的定义见式(5.65)。参数\(\epsilon^{2}\)用于控制限制的强度。把\(\epsilon^{2}\)置零会导致完全限制ï¼但这可能使收敛停滞。相反ï¼若把\(\epsilon^{2}\)取得很大ï¼限制器函数将返回约等于1的值ï¼于是完全没有限制ï¼解中可能出现波动。实践中发现,\(\epsilon^{2}\)应与局部长度尺度成比例ï¼即en
In the above Eq. (5.68), \(U_{max}\) and \(U_{min}\) stand for the minimum/maximum values of all surrounding nodes \(j\) and including the node \(i\) itself. Definitions of \(U_{max}\), \(U_{min}\) and \(\Delta_2\) are given in Eq. (5.65). The parameter \(\epsilon^{2}\) is intended to control the amount of limiting. Setting \(\epsilon^{2}\) to zero results in full limiting, but this may stall the convergence. Contrary to that, if \(\epsilon^{2}\) is set to a large value, the limiter function will return a value of about unity. Hence, there will be no limiting at all and wiggles could occur in the solution. In practice, it was found that \(\epsilon^{2}\) should be proportional to a local length scale, i.e.,
其中\(K\)为\(\mathcal{O}(1)\)量级的常数,\(\Delta h\)例如取控制体体积的立方根(二维取面积的平方根)。需要注意ï¼限制器函数(5.67)必须用无量纲量定义。式(5.69)中系数\(K\)对激波分辨率的影响示于图5.16。可以看到ï¼完全限制\((K = 0)\)的解与\(K = 5\)的解相同。然而ï¼显式时间推进格式在\(K = 0\)时只收敛了约三个数量级ï¼而\(K = 5\)时收敛到机器零(图5.17)。图5.16还表明ï¼随着\(K\)增大ï¼解逐渐变为无限制ï¼表现为激波处的过冲不断增大。en
where \(K\) is a constant of \(\mathcal{O}(1)\) and \(\Delta h\) is for example the cube-root of the volume (square-root of the area in 2D) of the control volume. It is important to notice that the limiter function (5.67) must be defined with non-dimensional quantities. The influence of the coefficient \(K\) in Eq. (5.69) on the resolution of a shock is demonstrated in Fig. 5.16. It can be seen that the fully limited \((K = 0)\) and the solution for \(K = 5\) are identical. However, the explicit time-stepping scheme converged only about three orders of magnitude for \(K = 0\), whereas for \(K = 5\) it converged to machine zero (Fig. 5.17). Figure 5.16 also shows that the solution becomes gradually unlimited with increasing values of \(K\). This manifests itself as an increasing overshoot at the shock.
计算上述任一限制器函数的工作量都相当大。为了算出\(U_{max}\)、\(U_{min}\)以及限制器\(\Psi\)本身ï¼需要对边循环两次(单元中心格式则对面循环)ï¼并对节点(单元)循环一次。此外,\(U_{max}\)、\(U_{min}\)与\(\Psi\)必须按节点(单元)逐一存储ï¼而且要为每个流动变量分别存储。en
The computational effort for the evaluation of one of the above limiter functions is relatively high. Two loops over edges (faces in the case of the cell-centred scheme) and one loop over nodes (cells) are necessary in order to compute \(U_{max}\), \(U_{min}\) as well as the limiter \(\Psi\) itself. Furthermore, \(U_{max}\), \(U_{min}\) and \(\Psi\) have to be stored node-(cell-)wise, separately for each flow variable.

图5.16:Venkatakrishnan限制器中常数\(K\)(由式(5.67)给出)对圆弧无黏绕流解的影响。图例:纵轴为马赫数(Mach number);曲线自左至右对应\(K = 0\)、\(K = 5\)、\(K = 20\)、\(K = 50\)及无限制(unlimited)。

图5.17:Venkatakrishnan限制器中常数\(K\)对圆弧无黏绕流收敛历史的影响。图例:纵轴为归一化密度残差的\(L_2\)范数ï¼横轴为迭代次数(Iterations);\(K = 0\)时残差停滞;\(K = 5\)、\(20\)、\(50\)与无限制(unlimited)则收敛到机器零。