3.1.5 Central and Upwind Schemes 中心格式与上风格式[cfd-3-1-5]
到目前为止ï¼我们只讨论了空间离散可作的基本选择。但在上述三种主要方法——有限差分、有限体积和有限元——之中ï¼执行空间离散的数值格式多种多样。在此背景下ï¼把对流通量与黏性通量(分别为式(2.19)中的\(\vec{F}_c\)与\(\vec{F}_v\))的离散区分开来讨论会比较方便。鉴于黏性通量的物理性质ï¼唯一合理的方式是采用中心差分(中心平均)来离散它们ï¼因此它们在结构网格上的离散是直截了当的。在非结构的三角形或四面体网格上ï¼即便采用有限体积格式ï¼黏性通量也最好用 Galerkin 有限元方法学来近似[58]。对于非结构混合网格ï¼情形变得更为复杂ï¼此时对梯度作修正后的平均更为合适[59]-[63]。en
So far, we discussed only the basic choices which exist for the spatial discretisation. But within each of the above three main methods - finite difference, finite volume and finite element - various numerical schemes exist to perform the spatial discretisation. In this context, it is convenient to differentiate between the discretisation of the convective and the viscous fluxes (\(\vec{F}_c\) and \(\vec{F}_v\) in Eq. (2.19), respectively). Because of the physical nature of the viscous fluxes, the only reasonable way is to employ central differences (central averaging) for their discretisation. Thus, their discretisation on structured grids is straightforward. On unstructured triangular or tetrahedral grids, the viscous fluxes are best approximated using the Galerkin finite element methodology, even in the case of a finite volume scheme [58]. The situation becomes more complicated for unstructured mixed grids, where a modified averaging of gradients is more appropriate [59]-[63].
然而ï¼真正的多样性体现在对流通量的离散上。为了对各种方法学进行分类ï¼我们把注意力集中于为有限体积法发展的格式ï¼尽管其中多数概念同样可以直接应用于有限差分法或有限元法。en
However, the real variety is found in the discretisation of the convective fluxes. In order to classify the individual methodologies, we will restrict our attention to schemes developed for the finite volume method, although most of the concepts are also directly applicable to the finite difference or the finite element method.
Central Schemes 中心格式
第一类可以计入那些完全基于中心差分公式或中心平均的格式ï¼它们被称为中心格式(central schemes)。其原理是:为了计算控制体某个面上的通量ï¼把守恒变量向左、向右取平均。由于中心格式无法识别并抑制解的奇偶失联(odd-even decouplingï¼即产生离散化方程的两个相互独立的解)ï¼必须加入所谓的人工耗散(artificial dissipationï¼因其与黏性项相似而得名)以使其稳定。最广为人知的实现出自 Jameson 等[64]。在结构网格上ï¼它基于二阶差分与四阶差分的混合ï¼并以对流通量雅可比矩阵的最大特征值作为标度。在非结构网格上则采用未分割 Laplacian 算子与双调和算子的组合[65]。若对方程采用不同的标度因子ï¼该格式可以得到显著改进ï¼这一途径称为矩阵耗散格式(matrix dissipation scheme)[66]。应当指出ï¼在非结构混合单元网格上ï¼显式 Runge-Kutta 时间推进格式与常规中心格式结合时可能变得不稳定[67]。en
To the first category we may count schemes, which are based solely on central difference formulae or on central averaging, respectively. These are denoted as central schemes. The principle is to average the conservative variables to the left and to the right in order to evaluate the flux at a side of the control volume. Since the central schemes cannot recognise and suppress an odd-even decoupling of the solution (i.e., the generation of two independent solutions of the discretised equations), the so-called artificial dissipation (because of its similarity to the viscous terms) has to be added for stabilisation. The most widely known implementation is due to Jameson et al. [64]. On structured grids, it is based on a blend of 2nd- and 4th-differences scaled by the maximum eigenvalue of the convective flux Jacobian. A combination of an undivided Laplacian and biharmonic operator is employed on unstructured grids [65]. The scheme can be improved remarkably using different scaling factors for each equation. This approach is known as the matrix dissipation scheme [66]. It should be mentioned that on unstructured, mixed element grids the explicit Runge-Kutta time-stepping scheme can become unstable, when combined with the conventional central scheme [67].
Upwind Schemes 上风格式
另一方面ï¼还有更先进的空间离散格式ï¼它们是通过考虑 Euler 方程的物理性质而构造的。由于它们区分上游与下游的影响(波传播方向)ï¼故称为上风格式(upwind schemes)。这些格式大致可分为四大类:
- 通量向量分裂(flux-vector splitting);
- 通量差分分裂(flux-difference splitting);
- 总变差减小(total variation diminishing,TVD);以及
- 脉动分裂(fluctuation-splitting)格式。
下面各小节将对其中每一类作简要介绍。en
On the other hand, there are more advanced spatial discretisation schemes, which are constructed by considering the physical properties of the Euler equations. Because they distinguish between upstream and downstream influences (wave propagation directions), they are termed upwind schemes. They can be roughly divided into four main groups:
- flux-vector splitting,
- flux-difference splitting,
- total variation diminishing (TVD), and
- fluctuation-splitting schemes.
Each of these is described briefly in the following subsections.
Flux-Vector Splitting Schemes 通量向量分裂格式
其中一类的通量向量分裂格式ï¼依据某些特征变量的符号把对流通量向量分解为两部分ï¼这些特征变量一般与对流通量雅可比矩阵的特征值相似但不相同。通量向量的这两部分随后用偏上风的差分来离散。最早属于这种类型的通量向量分裂格式由 Steger 与 Warming[68]以及 Van Leer[69]于20世纪80年代初分别发展。第二类通量向量分裂格式则把通量向量分解为对流部分与压力(即声学)部分。Liou 等的 AUSM 格式(Advection Upstream Splitting Methodï¼迎风对流分裂方法)[70]、[71]ï¼以及 Jameson 的 CUSP 格式(Convective Upwind Split Pressureï¼对流上风分裂压力)[72]、[73]都利用了这一思想。进一步的类似途径还有 Edwards 提出的低耗散通量分裂格式(LDFSS,Low-Diffusion Flux-Splitting Scheme)[74]ï¼以及 Rossow 的基于马赫数的对流-压力分裂格式(MAPS,Mach number-based Advection Pressure Splitting)[75]、[76]。第二类通量向量分裂格式近来获得了更大的流行ï¼特别是因为它们改善了剪切层的分辨率ï¼而计算量只有中等水平。与通量差分分裂或 TVD 格式相比ï¼通量向量分裂格式的另一个优点是:它们可以相当容易地推广到真实气体流动。我们稍后再回到真实气体模拟。en
One class of the flux-vector splitting schemes decomposes the vector of the convective fluxes into two parts according to the sign of certain characteristic variables, which are in general similar to but not identical to the eigenvalues of the convective flux Jacobian. The two parts of the flux vector are then discretised by upwind biased differences. The very first flux-vector splitting schemes of this type were developed in the beginning of the 1980's by Steger and Warming [68] and by Van Leer [69], respectively. A second class of flux-vector splitting schemes decompose the flux vector into a convective and a pressure (an acoustic) part. This idea is utilised by schemes like AUSM (Advection Upstream Splitting Method) of Liou et al. [70], [71], or the CUSP scheme (Convective Upwind Split Pressure) of Jameson [72], [73], respectively. Further similar approaches are the Low-Diffusion Flux-Splitting Scheme (LDFSS) introduced by Edwards [74], or the Mach number-based Advection Pressure Splitting (MAPS) scheme of Rossow [75], [76]. The second group of flux-vector splitting schemes gained recently larger popularity particularly because of their improved resolution of shear layers, but only a moderate computational effort. An advantage of the flux-vector splitting schemes is also that they can be quite easily extended to real gas flows, as opposed to flux-difference splitting or TVD schemes. We shall return to real gas simulations further below.
Flux-Difference Splitting Schemes 通量差分分裂格式
第二类——通量差分分裂格式(flux-difference splitting schemes)——基于对界面上间断状态求解局部一维 Euler 方程ï¼这对应于 Riemann(激波管)问题。界面两侧的值通常称为左状态(left state)与右状态(right state)。在两个控制体之间的界面处求解 Riemann 问题的思想最早由 Godunov[77]于1959年提出。为了减少精确求解 Riemann 问题所需的数值工作量ï¼人们发展了近似 Riemann 求解器ï¼例如 Osher 等[78]与 Roe[79]的求解器。Roe 求解器至今仍经常使用ï¼因为它对边界层的分辨率极佳ï¼且对激波的表示十分清晰。它可以容易地在结构网格与非结构网格上实现[80]。en
The second group - flux-difference splitting schemes - is based on the solution of the locally one-dimensional Euler equations for discontinuous states at an interface. This corresponds to the Riemann (shock tube) problem. The values on either side of the interface are generally termed as the left and right state. The idea to solve the Riemann problem at the interface between two control volumes was first introduced by Godunov [77] back in 1959. In order to reduce the numerical effort required for an exact solution of the Riemann problem, approximate Riemann solvers were developed, e.g., by Osher et al. [78] and Roe [79]. Roe's solver is often used today because of its excellent resolution of boundary layers and a crisp representation of shocks. It can be easily implemented on structured as well as on unstructured grids [80].
TVD Schemes TVD 格式
TVD 格式的思想由 Harten[81]于1983年首先提出。TVD 格式基于一种旨在防止流动解中产生新极值的概念。TVD 格式的基本条件是:极大值必须不增ï¼极小值必须不减ï¼且不得产生新的局部极值。这样的格式称为保持单调性(monotonicity preserving)。因此ï¼具有 TVD 性质的离散方法学能够在没有任何虚假振荡的情况下分辨激波。TVD 格式一般实现为对流通量的平均再加上一个附加耗散项。该耗散项可以依赖也可以不依赖特征速度的符号。前一种情形称为上风 TVD 格式[82]ï¼后一种情形称为对称 TVD 格式[83]。经验表明应当优先选用上风 TVD 格式ï¼因为它对激波和边界层的分辨率优于对称 TVD 格式。TVD 格式的缺点是难以推广到高于二阶的空间精度。利用 ENO(Essentially Non-Oscillatoryï¼基本无振荡)离散格式[84]-[89]可以克服这一局限。en
The idea of TVD schemes was first introduced by Harten [81] in 1983. The TVD schemes are based on a concept aimed at preventing the generation of new extrema in the flow solution. The principal conditions for a TVD scheme are that maxima must be non-increasing, minima non-decreasing, and no new local extrema may be created. Such a scheme is called monotonicity preserving. Thus, a discretisation methodology with TVD properties allows it to resolve a shock wave without any spurious oscillations of the solution. The TVD schemes are in general implemented as an average of the convective fluxes combined with an additional dissipation term. The dissipation term can either depend on the sign of the characteristic speeds or not. In the first case, we speak of an upwind TVD scheme [82], in the second case of a symmetric TVD scheme [83]. The experience shows that the upwind TVD scheme should be preferred since it offers a better shock and boundary layer resolution than the symmetric TVD scheme. The disadvantage of the TVD schemes is that they cannot be easily extended to higher than second-order spatial accuracy. This limitation can be overcome using the ENO (Essentially Non-Oscillatory) discretisation schemes [84]-[89].
Fluctuation-Splitting Schemes 脉动分裂格式
最后一类——脉动分裂格式(fluctuation-splitting schemes)——提供了真正的多维上风。其目标是把那些与网格方向不一致的流动特征也精确分辨出来。与上面所有仅按网格单元方向对方程进行分裂的上风格式相比ï¼这是一个显著的优势。在脉动分裂方法学中ï¼流动变量与网格节点相关联;中间残差作为网格单元(二维为三角形ï¼三维为四面体)上的通量平衡来计算;然后把这些基于单元的残差以偏上风的方式分配到节点上;之后利用节点值更新解。对于方程组(Euler 或 Navier-Stokes 方程)ï¼基于单元的残差还须分解为标量波。由于这种分解在二维和三维都不唯一ï¼过去发展了若干种途径:从 Roe 的波模型[90]、[91]ï¼经 Sidilkover 的代数格式[92]ï¼直到最先进的特征分解方法[93]-[96]。尽管相对按维分裂的 Riemann、TVD 等求解器具有上述优势ï¼脉动分裂途径迄今仍只用于研究性代码ï¼其原因可归结为复杂性高、数值工作量大ï¼以及收敛问题。en
The last group - the fluctuation-splitting schemes - provides for true multidimensional upwinding. The aim is to resolve accurately also those flow features which are not aligned with the grid. This is a significant advantage over all above upwind schemes, which split the equations according only to the orientation of the grid cells. Within the fluctuation-splitting methodology, the flow variables are associated with the grid nodes. Intermediate residuals are computed as flux balances over the grid cells, which consists of triangles in 2-D and of tetrahedra in 3-D. The cell-based residuals are then distributed in an upwind-biased manner to the nodes. After that, the solution is updated using the nodal values. In the case of systems of equations (Euler or Navier-Stokes), the cell-based residuals have to be decomposed into scalar waves. Since the decomposition is not unique in 2-D and in 3-D, several approaches were developed in the past. The variety reaches from the wave model of Roe [90], [91] over the algebraic scheme of Sidilkover [92] to the most advanced characteristic decomposition method [93]-[96]. Despite the above mentioned advantage over the dimensionally split Riemann, TVD, etc. solvers, the fluctuation-splitting approaches are so far used only in research codes. This can be attributed to the complexity and the high numerical effort, as well as to convergence problems.
Central versus Upwind Schemes 中心格式与上风格式的比较
你也许会问:各种空间离散方法的收益与代价各是什么?一般而言ï¼与上风格式相比ï¼中心格式所需的数值工作量更低ï¼每次计算的 CPU 时间也更少。另一方面ï¼上风格式捕捉间断的精度远高于中心格式。此外ï¼由于其数值扩散较低ï¼上风格式可以用更少的网格点分辨边界层。特别是 Roe 的通量差分分裂格式与 CUSP 通量向量分裂格式能够非常精确地计算边界层。上风格式的负面效应在二阶或更高阶空间精度时显现:问题在于必须采用所谓的限制器函数(limiter functionsï¼或简称限制器 limiters)ï¼以防止在强间断附近产生虚假振荡。众所周知ï¼限制器会在光滑流动区域意外切换ï¼从而使迭代格式的收敛停滞。Venkatakrishnan[97]-[99]提出了一种补救措施ï¼对大多数实际问题效果令人满意ï¼但必须考虑到解中会出现微小波纹。限制器函数的另一个缺点是计算工作量大ï¼在非结构网格上尤其如此。en
You may ask now, what are the benefits and the drawbacks of the individual spatial discretisation methods. Generally speaking, central schemes require lower numerical effort, and hence less CPU time per evaluation, as compared to upwind schemes. On the other hand, upwind schemes are able to capture discontinuities much more accurately than central schemes. Furthermore, because of their lower numerical diffusion, the upwind schemes can resolve boundary layers using less grid points. Particularly, Roe's flux-difference splitting scheme and the CUSP flux-vector splitting scheme allow a very accurate computation of boundary layers. The negative side of the upwind schemes emerges for second- or higher-order spatial accuracy. The problem is that the so-called limiter functions (or simply limiters) have to be employed in order to prevent the generation of spurious oscillations near strong discontinuities. Limiters are known to stall the convergence of an iteration scheme, because of their accidental switching in smooth flow regions. A remedy was suggested by Venkatakrishnan [97]-[99], which works satisfactorily for most practical cases. However, small wiggles in the solution must be taken into account. Another disadvantage of the limiter functions is that they require high computational effort, particularly on unstructured grids.
Upwind Schemes for Real Gas Flows 真实气体流动的上风格式
针对真实气体模拟ï¼特别是化学反应流动ï¼已有若干对上风离散格式的推广。对于热力学与化学平衡的流体情形,Van Leer 通量向量分裂[69]与 Roe 近似 Riemann 求解器[79]的修改在文献[100]-[102]中给出。对于化学与热力学均处于非平衡的更复杂流动情形ï¼这两种上风方法的表述见[103]-[108]及其所引文献。其中文献[102]、[106]与[107]分别对上风离散格式所采用的方法学给出了很好的概述。最近ï¼文献[109]针对化学反应流动ï¼汇总了控制方程以及上风格式可能需要的雅可比矩阵和变换矩阵。en
With respect to real gas simulations, and in particular to chemically reacting flows, several extensions of the upwind discretisation schemes were presented. For the case of fluids in thermodynamic and chemical equilibrium, modifications of the Van Leer flux-vector splitting [69] and of Roe's approximate Riemann solver [79] were described in Refs. [100]-[102]. Formulations of the both upwind methods for the more complex case of flows with non-equilibrium chemistry and thermodynamics were provided in [103]-[108] and in the references cited therein. In particular, the articles [102], [106] and [107], respectively, give a good overview of the methodologies employed for the upwind discretisation schemes. Recently, a summary of the governing equations together with Jacobian and transformation matrices, which may be required by an upwind scheme, was presented in Ref. [109] for the case of chemically reacting flows.