6.1.4 Determination of the Maximum Time Step 最大时间步长的确定[cfd-6-1-4]

每一种显式时间推进格式都只在时间步长\(\Delta t\)不超过某个值时才保持稳定。为使格式稳定,时间推进格式必须满足所谓的Courant-Friedrichs-Lewy(CFL)条件[19]。该条件指出:数值方法的依赖域必须包含偏微分方程的依赖域。对基本显式格式(6.4)而言,CFL条件意味着时间步长应等于或小于信息越过空间离散化格式模板(stencil)所需的时间。因此,对一维线性对流方程,时间步长条件为en

Every explicit time-stepping scheme remains stable only up to a certain value of the time step \(\Delta t\). To be stable, a time-stepping scheme has to fulfil the so-called Courant-Friedrichs-Lewy (CFL) condition [19]. It states that the domain of dependence of the numerical method has to include the domain of dependence of the partial differential equation. The CFL condition means for the basic explicit scheme (6.4) that the time step should be equal to or smaller than the time required to transport information across the stencil of the spatial discretisation scheme. Hence, in 1D the condition for the time step would read for the linear convection equation

\[\Delta t = \sigma\frac{\Delta x}{\left|\Lambda_c\right|}, \tag{6.13}\]

其中\(\Delta x/|\Lambda_c|\)表示以速度\(\Lambda_c\)把信息传播过一个单元尺寸\(\Delta x\)所需的时间。速度\(\Lambda_c\)对应于对流通量雅可比的最大特征值。正常数\(\sigma\)表示CFL数(CFL number)。CFL数的大小取决于时间推进格式的类型和参数,也取决于空间离散化格式的形式。我们将在10.3节中针对两个模型问题研究\(\sigma\)的依赖关系。表6.1和表6.2列出了各种多步格式和离散化的CFL数。en

where \(\Delta x/|\Lambda_c|\) represents the time necessary to propagate information over the cell size \(\Delta x\) with the velocity \(\Lambda_c\). The velocity \(\Lambda_c\) corresponds to the maximum eigenvalue of the convective flux Jacobian. The positive coefficient \(\sigma\) denotes the CFL number. The magnitude of the CFL number depends on the type and the parameters of the time-stepping scheme, as well as on the form of the spatial discretisation scheme. We shall investigate the dependency of \(\sigma\) in Section 10.3 for two model problems. Tables 6.1 and 6.2 list the CFL numbers for various multistage schemes and discretisations.

对于线性模型方程,可以借助Von Neumann稳定性分析(10.3节)确定最大时间步长。然而,在多维情形和非线性控制方程下,最大时间步长只能近似计算。下面我们将给出在结构网格和非结构网格上、对无黏和黏性流动估计时间步长的关系式。en

The maximum time step can be determined for linear model equations with the aid of Von Neumann stability analysis (Section 10.3). However, the maximum time step can be calculated only approximately in multiple dimensions and for non-linear governing equations. In the following, we will present relations for the estimation of the time step on structured and unstructured grids, and for inviscid as well as for viscous flows.

Time Step on Structured Grids 结构网格上的时间步长

Euler Equations 欧拉方程

在结构网格上,对控制体\(\Omega_I\),时间步长\(\Delta t\)可以由近似关系[20]-[22]确定en

On a structured grid, the time step \(\Delta t\) can be determined for a control volume \(\Omega_I\) from the approximate relation [20]-[22]

\[\Delta t_I = \sigma\frac{\Omega_I}{\left(\hat{\Lambda}_c^{I} + \hat{\Lambda}_c^{J} + \hat{\Lambda}_c^{K}\right)_I}. \tag{6.14}\]

CFL数\(\sigma\)对多步格式在表6.1中给出,对混合格式在表6.2中给出。对流通量雅可比(A.9)的谱半径对三个网格方向分别为en

The CFL number \(\sigma\) is given for multistage schemes in Table 6.1 and for hybrid schemes in Table 6.2. The spectral radii of the convective flux Jacobians (A.9) read for the three grid directions

\[\begin{aligned}\hat{\Lambda}_c^{I} &= \left(\left|\vec{v}\cdot\vec{n}^{I}\right| + c\right)\Delta S^{I} \\\hat{\Lambda}_c^{J} &= \left(\left|\vec{v}\cdot\vec{n}^{J}\right| + c\right)\Delta S^{J} \\\hat{\Lambda}_c^{K} &= \left(\left|\vec{v}\cdot\vec{n}^{K}\right| + c\right)\Delta S^{K}.\end{aligned} \tag{6.15}\]

方程(6.15)中的法向量和面面积,由相应方向上控制体两个相对侧面处的对应值平均得到。例如,若对偶控制体(4.2.3小节)的取向如图4.1b所示,则在\(I\)方向上应取en

The normal vectors and face areas in Eq. (6.15) are obtained by averaging the corresponding values from the two opposite sides of the control volume in the respective direction. For example, if a dual control volume (Subsection 4.2.3) would be oriented as sketched in Fig. 4.1b, we would use in the \(I\)-direction

\[\vec{n}_{i,j,k}^{I} = \frac{1}{2}\left(\vec{n}_1 - \vec{n}_2\right), \quad \Delta S_{i,j,k}^{I} = \frac{1}{2}\left(\Delta S_1 + \Delta S_2\right). \tag{6.16}\]

\(J\)方向和\(K\)方向也有类似的表达式。用方程(6.14)得到的是局部(local)时间步,它只对一个控制体有效。如果我们要求定常解,可以用局部时间步来加速收敛(参见9.1节)。但如果时间精度重要,就必须对所有控制体采用同一个全局(global)时间步,即en

Similar expressions hold for the \(J\)- and \(K\)-direction. With Eq. (6.14), we obtain a local time step, which is valid for one control volume only. If we are interested in a steady state solution, we may use the local time step to accelerate the convergence (cf. Section 9.1). However, if time accuracy is important, we have to employ one global time step for all volumes, i.e.,

\[\Delta t = \min_I\left(\Delta t_I\right), \tag{6.17}\]

即对所有控制体取最小值。en

where the minimum over all control volumes is taken.

Navier-Stokes Equations Navier-Stokes方程

对黏性流动,计算\(\Delta t\)时还必须计入黏性通量雅可比(A.10)的谱半径。在边界层内,它们可能严重限制最大时间步长。时间步长可由下式计算[5]、[21]、[22]en

For viscous flows, the spectral radii of the viscous flux Jacobians (A.10) have to be included in the computation of \(\Delta t\). They can severely limit the maximum time step in boundary layers. The time step can be evaluated from [5], [21], [22]

\[\Delta t_I = \sigma\frac{\Omega_I}{\left(\hat{\Lambda}_c^{I} + \hat{\Lambda}_c^{J} + \hat{\Lambda}_c^{K}\right)_I + C\left(\hat{\Lambda}_v^{I} + \hat{\Lambda}_v^{J} + \hat{\Lambda}_v^{K}\right)_I}. \tag{6.18}\]

乘在黏性谱半径上的常数,对中心空间离散化通常取\(C = 4\),一阶上风离散化取\(C = 2\),二阶上风离散化取\(C = 1\)。若假定采用涡黏性湍流模型,则黏性谱半径由下式给出[21]、[22]en

The constant which multiplies the viscous spectral radii is usually set as \(C = 4\) for central spatial discretisations, \(C = 2\) for first-order upwind and \(C = 1\) for second-order upwind discretisations. If we assume that an eddy-viscosity turbulence model is employed, the viscous spectral radii are given by [21], [22]

\[\Lambda_v^{I} = \max\left(\frac{4}{3\rho},\frac{\gamma}{\rho}\right)\left(\frac{\mu_L}{Pr_L} + \frac{\mu_T}{Pr_T}\right)\frac{\left(\Delta S^{I}\right)^2}{\Omega} \tag{6.19}\]

其他方向与此类似。方程(6.19)中,\(\mu_L\)和\(\mu_T\)分别表示层流和湍流的动力黏度系数;\(Pr_L\)和\(Pr_T\)为层流和湍流Prandtl数。表6.1和表6.2中的CFL数也适用于黏性流动。对黏性流动特别有效的是方程(6.7)的(5,3)混合格式。en

and similarly for the other directions. In Equation (6.19), \(\mu_L\) denotes the laminar and \(\mu_T\) the turbulent dynamic viscosity coefficient, respectively. Furthermore, \(Pr_L\) and \(Pr_T\) are the laminar and the turbulent Prandtl numbers. The CFL numbers in Tables 6.1 and 6.2 apply also for viscous flows. Particularly efficient for viscous flows is the (5,3) hybrid scheme from Eq. (6.7).

Time Step on Unstructured Grids 非结构网格上的时间步长

已经提出了若干种在非结构网格上估计最大时间步长的方法。下面介绍两种不同的方法。en

Several approaches were suggested for the estimation of the maximum time step on unstructured grids. We shall present two different approaches below.

Method 1 方法1

一种经过验证、与结构网格上的实现非常接近的方法为[6]en

One proven method, which closely follows the implementation on structured grids, reads [6]

\[\Delta t_I = \sigma\frac{\Omega_I}{\left(\hat{\Lambda}_c + C\hat{\Lambda}_v\right)_I}, \tag{6.20}\]

其中\(\hat{\Lambda}_c\)和\(\hat{\Lambda}_v\)表示控制体所有面上对流谱半径和黏性谱半径之和。与结构网格上一样,通常取\(1 \le C \le 4\)。对单元中心格式,谱半径定义为[6]en

where \(\hat{\Lambda}_c\) and \(\hat{\Lambda}_v\) represent a sum of the convective and viscous spectral radii over all faces of the control volume. As on structured grids, \(1 \le C \le 4\) is usually used. In the case of the cell-centred scheme, the spectral radii are defined as [6]

\[\begin{aligned}\left(\hat{\Lambda}_c\right)_I &= \sum_{J=1}^{N_F}\left(\left|\vec{v}_{IJ}\cdot\vec{n}_{IJ}\right| + c_{IJ}\right)\Delta S_{IJ} \\\left(\hat{\Lambda}_v\right)_I &= \frac{1}{\Omega_I}\sum_{J=1}^{N_F}\left[\max\left(\frac{4}{3\rho_{IJ}},\frac{\gamma_{IJ}}{\rho_{IJ}}\right)\left(\frac{\mu_L}{Pr_L} + \frac{\mu_T}{Pr_T}\right)_{IJ}\left(\Delta S_{IJ}\right)^2\right].\end{aligned} \tag{6.21}\]

控制体各面上的流动变量之值由算术平均得到。en

The values of the flow variables at the faces of the control volume are obtained by arithmetic averaging.

Method 2 方法2

方程(6.21)预测的谱半径偏大,在混合单元网格上尤其如此。这导致时间步长小于稳定所需的值。文献[23]中的实现提供了对时间步长更准确的估计,即en

The spectral radii predicted by Eq. (6.21) are too large, particularly on mixed element grids. This leads to a smaller time step than required for the stability. The implementation in Ref. [23] offers a more accurate estimation of the time step, namely

\[\Delta t_I = \sigma\frac{\Omega_I}{\left(\hat{\Lambda}_c^{x} + \hat{\Lambda}_c^{y} + \hat{\Lambda}_c^{z}\right)_I + C\left(\hat{\Lambda}_v^{x} + \hat{\Lambda}_v^{y} + \hat{\Lambda}_v^{z}\right)_I} \tag{6.22}\]

其中对流谱半径为en

with the convective spectral radii

\[\begin{aligned}\hat{\Lambda}_c^{x} &= \left(|u| + c\right)\Delta\hat{S}^{x} \\\hat{\Lambda}_c^{y} &= \left(|v| + c\right)\Delta\hat{S}^{y} \\\hat{\Lambda}_c^{z} &= \left(|w| + c\right)\Delta\hat{S}^{z}\end{aligned} \tag{6.23}\]

黏性谱半径为(假定采用涡黏性湍流模型)en

and with the viscous spectral radii (eddy-viscosity turbulence model assumed)

\[\Lambda_v^{x} = \max\left(\frac{4}{3\rho},\frac{\gamma}{\rho}\right)\left(\frac{\mu_L}{Pr_L} + \frac{\mu_T}{Pr_T}\right)\frac{\left(\Delta S^{x}\right)^2}{\Omega}, \; \text{etc.} \tag{6.24}\]

变量\(\Delta\hat{S}^x\)、\(\Delta\hat{S}^y\)和\(\Delta\hat{S}^z\)分别表示控制体在\(y\)-\(z\)、\(x\)-\(z\)和\(x\)-\(y\)平面上的投影。它们由下列公式给出en

The variables \(\Delta\hat{S}^x\), \(\Delta\hat{S}^y\) and \(\Delta\hat{S}^z\), respectively, represent projections of the control volume on the \(y\)-\(z\)-, \(x\)-\(z\)- and the \(x\)-\(y\)-plane. They are given by the formulae

\[\begin{aligned}\Delta\hat{S}^{x} &= \frac{1}{2}\sum_{J=1}^{N_F}\left|S_x\right|_J \\\Delta\hat{S}^{y} &= \frac{1}{2}\sum_{J=1}^{N_F}\left|S_y\right|_J \\\Delta\hat{S}^{z} &= \frac{1}{2}\sum_{J=1}^{N_F}\left|S_z\right|_J,\end{aligned} \tag{6.25}\]

其中\(S_x\)、\(S_y\)和\(S_z\)表示面向量\(\vec{S} = \vec{n}\cdot\Delta S\)的\(x\)、\(y\)和\(z\)分量。CFL数一般与结构网格上的相同,因此表6.1和表6.2中收集的数值仍然适用。此外,向定态的收敛同样可以用局部时间推进来加速,做法与结构网格上一样。模拟非定常流动所需的全局时间步,与前面一样由方程(6.17)得到。en

where \(S_x\), \(S_y\) and \(S_z\) denote the \(x\)-, \(y\)- and the \(z\)-component of the face vector \(\vec{S} = \vec{n}\cdot\Delta S\). The CFL numbers stay in general the same as on structured grids. Thus, the values collected in Tables 6.1 and 6.2 still apply. Furthermore, the convergence to steady state can also be accelerated by local time stepping, in the same way as on the structured grids. A global time step, necessary for simulating unsteady flows, can be obtained from Eq. (6.17) as before.