Advances in Applied Mathematics
Vol. 08  No. 05 ( 2019 ), Article ID: 30565 , 8 pages
10.12677/AAM.2019.85113

An Approach of High Order Numerical Flux

Yanjing Wen1, Yuyue Yang1*, Yanxia Wei2

1Xiangtan University, Xiangtan Hunan

2Zhongke Soft Technology Co., LTD., Beijing

Received: May 9th, 2019; accepted: May 24th, 2019; published: May 31st, 2019

ABSTRACT

Referring to the construction idea of the MUSCL scheme, we present a construction method for high-order numerical fluxes. The higher order numerical flux is applied to the finite volume (difference) ENO, WENO and DG schemes to obtain single step higher order Semi-Lagrangian scheme. For the one-dimensional Euler equations, this paper presents a new feature line processing scheme in the feature space, which solves the difficulty that the Semi-Lagrangian method is difficult to generalize to multidimensional. Numerical experiments show that the new format is smaller than the original format, the efficiency is higher, and the simulation effect on the shock wave is also greatly improved.

Keywords:MUSCL, Semi-Lagrangian, High-Order Numerical Flux, One-Step High Order Semi-Lagrangian Scheme, Euler Equations, Sod Shock Tube Problem

一种高阶数值通量的探讨

温燕静1,杨玉月1*,魏雁霞2

1湘潭大学数学系,湖南 湘潭

2中科软科技股份有限公司,北京

收稿日期:2019年5月9日;录用日期:2019年5月24日;发布日期:2019年5月31日

摘 要

参考MUSCL格式的构造思想,我们给出了一种高阶数值通量的构造方法。将高阶数值通量应用于有限体积(差分)ENO,WENO和DG等格式得到单步高阶Semi-Lagrangian格式。针对一维Euler方程组,本文在特征空间给出了一种新的特征线的处理方案,解决了Semi-Lagrangian方法难以推广到多维的难点。数值实验表明,新格式比原格式误差更小,效率更高,对激波的模拟效果也有较大提升。

关键词 :MUSCL,Semi-Lagrangian,高阶数值通量,单步高阶Semi-Lagrangian格式,Euler方程组, Sod激波管问题

Copyright © 2019 by authors and Hans Publishers Inc.

This work is licensed under the Creative Commons Attribution International License (CC BY).

http://creativecommons.org/licenses/by/4.0/

1. 引言

1959年,Godunov首次提出以Riemann问题解为基础来构造网格物理量均值的Godunov格式,它有效地解决了所有内部状态变量的局部黎曼问题 [1] [2]。随后,Van Leer首次讨论了二阶Godunov格式的构造得到了MUSCL (Monotone Upwind Scheme for Conservation Laws)格式,这个格式包括了保单调性的插值和利用Riemann解得到的迎风通量,提高了数值精度和分辨率 [2]。MUSCL格式已经被许多人研究 [3] [4] [5],并被广泛用于科学和工程问题的模拟 [5]。

1959年,Wiin-Nielsen提出了一种修正轨迹方法 [6],随后Sawyer将其发展为Semi-Lagrangian方法 [7]。该方法具有固定的(欧拉)数值网格,根据Riemann不变量沿特征线不变的性质,从而推进每个时间步,使得时间步长不受CFL条件的限制,减少计算工作量和数值扩散 [8]。Semi-Lagrangian方法成功地推广到了有限差分,有限元和谱方法,并广泛应用于天气预报,海洋学模型的数值模拟和线性对流的建模 [9] [10]。1982年,Robert将半隐式(SI)和半拉格朗日(SL)这两种方法相结合,在NWP模型中实现了显著的效率增益,为许多环境应用产生了许多有效的SISL模型 [11]。1999年,Strain将水平集方法和半拉格朗日方法相结合,能有效、自适应和模块化求解几何运动界面问题 [10] [12]。2006年,Bonaventura和Restelli等人将DG方法与半拉格朗日方法相结合为SLDG,能有效地融合了两种方法优点,又避免了缺点 [13],对于shallow water方程模拟,SLDG具有较高的精度和有效性,并可自动选择局部逼近程度 [11]。2010年,Qiu等人将Strang时间分裂与空间高阶WENO重构相结合,应用于Semi-Lagrangian方法来求解Vlasov方程,比使用显式时间步长的Vlasov-Poisson系统的欧拉公式计算更高效,更灵活 [14]。

然而,对于一维或高维Euler方程组,求解特征线方程仍然是Semi-Lagrangian方法的难点。2011年,Lentine等人基于文 [15] 提出的分裂方法,用保守Semi-Lagrangian对流代替Meno对流格式求解方程组的对流项,但局部产生虚假振荡 [16]。目前尚未在现有文献中发现更好的处理方案。2015年,吴浪根据文 [17] 提出的方法,针对守恒律方程给出了几种高阶Semi-Lagrangian格式,通过数值模拟验证了该方法的高阶精度和无振荡性质 [18]。处理过程用到了一维Euler方程组的Riemann不变量,并反解出原物理量。这个过程增加了计算量,针对不同维数Euler方程组需要给出不同的Riemann不变量,不方便推广到多维问题,即便是通过交替方向法也不行。

本文给出了一种高阶数值通量的构造方法,将其应用于有限体积(差分) ENO,WENO和DG,即相应的Semi-Lagrangian方法。针对于一维Euler方程组,在特征空间上给出了一种新的处理特征线的方法。数值实验表明:高阶数值通量能应用于有限体积(差分) ENO,WENO和DG等格式,针对Euler方程组的特征线处理方法能保持空间离散格式本身的本质无震荡性,能获得更高的分辨率且具备更高的计算效率。

2. 二阶数值通量的推导

为了推导双曲型方程数值计算格式中的二阶数值通量,我们考察如下方程

u t + f ( u ) x = 0 , ( x , t ) [ a , b ] × [ 0 , T ] , (1)

u ( x , 0 ) = u 0 ( x ) . (2)

已知 u ( x , t n ) 在第j个单元( I j : = [ x j 1 / 2 , x j + 1 / 2 ] )端点的单侧极限分别为 u j + 1 / 2 ( t n ) u j 1 / 2 + ( t n ) ,容易给出它在 I j 内的插值多项式

p j ( x ) = u ( x , t n ) = u j + 1 / 2 ( t n ) + u j + 1 / 2 ( t n ) u j 1 / 2 + ( t n ) h j ( x x j + 1 / 2 ) , (3)

其中 h j = x j + 1 / 2 x j 1 / 2

过点 ( x j + 1 / 2 , t n + 1 ) 的特征线与直线 t = t n 相交于一点X

d d s X ( x , t ; t + s ) = u f ( u ( X ( x , t ; t + s ) , t + s ) ) = h ( X ( x , t ; t + s ) , t + s ) , (4)

其中 X ( x , t ; t ) = x 。利用一阶Runge-Kutta方法,可得

X = x j + 1 / 2 Δ s h ( X ( x j + 1 / 2 , t n ; t n + s ) , t n + s ) , (5)

将X代入 u ( x , t n ) ,得

u ( X , t n ) = u j + 1 / 2 ( t n ) + u j + 1 / 2 ( t n ) u j 1 / 2 + ( t n ) h j Δ s h ( X ( x j + 1 / 2 , t n ; t n + s ) , t n + s ) . (6)

其中 u ( X , t n ) 是近似代替 u ( x j + 1 / 2 , t n + 1 )

最后,利用梯形公式可计算出 [ t n , t n + 1 ] x j + 1 / 2 处的二阶数值通量

f ^ j + 1 / 2 = f ( u ( X , t n ) ) + f ( u ( x j + 1 / 2 , t n ) ) 2 . (7)

3. 二阶数值通量在DG格式的应用

为了将二阶数值通量应用于DG格式,我们将方程(1)两边同时乘 φ ( x ) ,并在时空单元 Ω j 上求积分,

Ω j ( t u h + x f ( u h ) ) φ ( x ) d x d t = 0 , (8)

其中 φ ( x ) 为区间 I j 上的光滑函数。由格林公式,可得

x j 1 / 2 x j + 1 / 2 ( u h ( x , t n + 1 ) u h ( x , t n ) ) φ ( x ) d x + t n t n + 1 f ( u h ( x j + 1 / 2 , t ) ) φ ( x j + 1 / 2 ) d t t n t n + 1 f ( u h ( x j 1 / 2 , t ) ) φ ( x j 1 / 2 ) d t Ω j f ( u h ) x φ ( x ) d x d t = 0 , (9)

我们再将方程(2)两边同乘 φ ( x ) 并在单元 I j 上积分得

I j u h ( x , 0 ) φ ( x ) d x = I j u 0 ( x ) φ ( x ) d x . (10)

这样就得到了方程(1-2)的弱形式(9-10)。

参照经典二阶DG格式,取Legendre多项式 P l ( x ) 为局部基函数,并设 u h ( x , t ) = l = 0 k u j l ( t ) φ l ( x ) ,其中 φ l ( x ) = P l ( ξ ) = P l ( x x j Δ x / 2 ) 。将方程(9)中的 φ ( x ) 替换成 φ l ( x ) ,则有

当l = 0时,(9)式简写为

u j 0 ( t n + 1 ) = u j 0 ( t n ) Δ t Δ x ( f ^ j + 1 / 2 f ^ j 1 / 2 ) , (11)

当l = 1时,(9)式简写为

u j 1 ( t n + 1 ) = u j 1 ( t n ) 3 Δ t Δ x ( f ^ j + 1 / 2 + f ^ j 1 / 2 ) + 3 Δ x Ω j f ( u h ) x φ 1 ( x ) d x d t . (12)

将(12)式中的二重积分项简记为K,利用如下梯形公式计算

K = Δ t Δ x ( I j f ( u h ( x , t n + 1 ) ) d x + I j f ( u h ( x , t n ) ) d x ) , (13)

其中 I j f ( u h ( x , t n ) ) d x 继续利用梯形公式(或其他积分公式), u h ( x , t n + 1 ) 由方程(7,11)得到的单元均值 u j 0 ( t n + 1 ) 来近似代替,得

K = Δ t [ f ( u j 0 ( t n + 1 ) ) + 1 2 ( f ( u h ( x j + 1 / 2 , t n ) ) + f ( u h ( x j 1 / 2 , t n ) ) ) ] . (14)

再利用上一节所介绍的二阶数值通量的推导方法,可求解(12)式中的 f ^ j + 1 / 2 这样,我们得到相应的单步二阶DG格式(10)~(12)。

4. 一维Euler方程组上的二阶数值通量的推导

一维Euler方程组可以表示为

u t + [ F ( u ) ] x = 0 , (15)

u = ( ρ , ρ u , ρ E ) T , F ( u ) = ( ρ u , ρ u 2 + p , ( ρ E + p ) u ) T

其中压力 p = ( γ 1 ) ( ρ E + 1 2 ρ u 2 ) ,比热比 γ = 1.4 。Jacobian矩阵 A = F ( u ) u ,A的特征值为

λ 1 = u c , λ 2 = u , λ 3 = u + c ,

方程组(15)化成特征空间形式

u t + ( R Λ R 1 u ) x = 0 ,

其中R为右特征矩阵, R 1 为左特征矩阵, Λ = d i a g ( u c , u , u + c )

已知 u ( x , t n ) 在第j个单元( I j = [ x j 1 / 2 , x j + 1 / 2 ] )端点的单侧极限分别为 u j + 1 / 2 ( t n ) u j 1 / 2 + ( t n ) 可以给出它在 I j 内的插值多项式

p j ( x , t n ) = u ( x , t n ) = u j + 1 / 2 ( t n ) + u j + 1 / 2 ( t n ) u j 1 / 2 + ( t n ) h j ( x x j + 1 / 2 ) ,

特征线方程 d X d t = λ 与直线 t n 相交,有

d d s X k ( x , t ; t + s ) = λ k ( X k ( x , t ; t + s ) , t + s ) , k = 1 , 2 , 3 (16)

利用二阶Runge-Kutta法求解常微分方程(16),再将 X k 代入 u ( x , t n ) 得到 u k ( X k , t n ) 。令

W k ( X k , t n ) = R 1 u k ( X k , t n ) = ( W k 1 , W k 2 , W k 3 ) T ,则 W ( x j + 1 / 2 , t n + 1 ) = ( W 11 , W 22 , W 33 ) T

最后,利用梯形公式可计算出 [ t n , t n + 1 ] x j + 1 / 2 处的二阶数值通量

F ^ j + 1 / 2 = F ( u ( x j + 1 / 2 , t n ) ) + F ( u ( x j + 1 / 2 , t n + 1 ) ) 2 = R Λ ( W ( x j + 1 / 2 , t n ) + W ( x j + 1 / 2 , t n + 1 ) ) 2 . (17)

5. 数值算例

求解方程(1)的守恒型有限体积(差分)格式通常可以写成

u j n + 1 = u j n Δ t Δ x ( f ^ j + 1 / 2 f ^ j 1 / 2 ) , (18)

我们将由公式(7)或(17))计算所得的通量替代(18)式中的 f ^ ,这样就得到单步二阶格式.

算例1:一维Burger方程

考虑方程(1-2),其中 f ( u ) = u 2 / 2 , ( x , t ) [ 0 , 2 π ] × [ 0 , 2 ] , u 0 ( x ) = sin x + 0.5 ,采用周期边界条件。为了考

Table 1. Numerical error table for single-step second-order ENO, DG format and original format at t = 0.5

表1. 单步二阶ENO,DG格式与原格式在t = 0.5时刻的数值误差表

Table 2. Numerical error meter of third order WENO scheme in = 0.5 FVWENO3-HNF

表2. t = 0.5时三阶WENO格式的误差表

察格式的截断误差阶,我们给出 t = 0.5 (尚未产生间断)的误差表,见表1~表2。其中后缀“HNF”表示使用公式(7)的单步二阶格式,另一个表示使用相应的二阶SSP Runge-Kutta时间离散格式。

表1~表2可以看出:1) 本文给出的二阶数值通量能应用于ENO,WENO和DG等格式,得到相应的单步二阶格式。2) 单步二阶格式的计算误差比相应原格式更小(三阶WENO格式当网格充分细密时出现超收敛,误差更小)。3) 单步二阶格式所耗CPU时间更少,当N = 6400时,FV-ENO2-HNF格式比原格式节约了48%,FD-ENO2-HNF格式比原格式节约了56%,DG2-HNF格式比原格式节省了88%。

Figure 1. The local comparison of real and numerical solutions in t = 1.5

图1. t = 1.5真解与数值解的局部对比

当t = 1.5时,该问题已产生激波,见图1。由图可知:单步二阶格式在处理激波间断时具有更高的分辨率,模拟效果更好。

算例2:Sod激波管问题

考虑方程(15),其中 x [ 0 , 1 ] 。采用紧支边界,初始条件:t=0时刻,

( ρ , u , p ) = { ( 1 , 0 , 1 ) , x 0.5 ( 0.125 , 0 , 0.1 ) , x > 0.5

真解N=1600,数值解N=100时,使用二阶数值通量单步ENO格式与标准二阶FD-ENO2格式的对比(见图2~图3)。

Figure 2. The overall comparison between the true solution and the numerical solution in t = 0.15

图2. t = 0.15时真解与数值解的整体对比

图2~图3可以看出:使用二阶数值通量的单步格式比原格式具有更高的分辨率。当N = 1000时,

(a) 密度 (b) 速度 (c) 压力

Figure 3. The local comparison between the true solution and the numerical solution in t = 0.15

图3. t = 0.15时真解与数值解的局部对比

FD-ENO2-HNF格式所消耗的CPU时间为282毫秒(ms),标准FD-ENO2格式所消耗的CPU时间为400毫秒(ms),FD-ENO-HNF格式比标准FD-ENO2格式节约了29.5%左右。

6. 总结

本文以二阶数值通量为例,给出了一种高阶数值通量的构造方法,能应用于有限体积(差分) ENO,WENO和DG格式得到单步高阶Semi-Lagrangian格式。格式天然具备守恒性、紧致性、并行性,且并行效率比时间离散应用SSP Runge-Kutta方法的相应格式更高。本文还给出了一种在特征空间处理特征线的方法,能应用于Euler方程组,比原格式具备更好的模拟效果和更高的效率。同时,这种方法能利用交替方向法推广到多维问题,并无需推导其Riemann不变量,也为Semi-Lagrangian方法在多维Euler方程组中的研究与应用提供了一种有效的途径。

文章引用

温燕静,杨玉月,魏雁霞. 一种高阶数值通量的探讨
An Approach of High Order Numerical Flux[J]. 应用数学进展, 2019, 08(05): 990-997. https://doi.org/10.12677/AAM.2019.85113

参考文献

  1. 1. Bidadi, S. and Rani, S.L. (2014) Quantification of Numerical Diffusivity due to TVD Schemes in the Advection Equation. Journal of Computational Physics, 261, 65-82. https://doi.org/10.1016/j.jcp.2013.12.011

  2. 2. 水鸿寿. 一维流体力学差分方法[M]. 北京: 国防大学出版社, 1998: 15-26.

  3. 3. Hou, J., Liang, Q., Zhang, H. and Hinkelmann, R. (2015) An Efficient Unstructured MUSCL Scheme for Solving the 2D Shallow Water Equations. Environmental Modelling & Software, 66, 131-152. https://doi.org/10.1016/j.envsoft.2014.12.007

  4. 4. Sun, D. (2018) Performance Study of MUSCL Schemes Based on Different Numerical Fluxes. Wireless Personal Communications, 102, 1763-1772. https://doi.org/10.1007/s11277-017-5234-8

  5. 5. Sohn, S.I. (2005) A New TVD-MUSCL Scheme for Hyperbolic Conservation Laws. Computers & Mathematics with Applications, 50, 231-248. https://doi.org/10.1016/j.camwa.2004.10.047

  6. 6. Wiin-Nielsen, A. (1959) On the Application of Trajectory Methods in Numerical Forecasting. Tellus, 11, 180-196. https://doi.org/10.3402/tellusa.v11i2.9300

  7. 7. Sawyer, J.S. (1963) A Semi-Lagrangian Method of Solving the Vorticity Advection Equation. Tellus, 15, 336-342. https://doi.org/10.3402/tellusa.v15i4.8862

  8. 8. Huang, C.-S., Arbogast, T. and Hung, C.-H. (2016) A Semi-Lagrangian Finite Difference WENO Scheme for Scalar Nonlinear Conservation Laws. Journal of Computational Physics, 322, 559-585. https://doi.org/10.1016/j.jcp.2016.06.027

  9. 9. Piao, X., Kim, P. and Kim, D. (2018) One-Step, L(α)-Stable Temporal Integration for the Backward Semi-Lagrangian Scheme and Its Application in Guiding Center Problems. Journal of Computational Physics, 366, 327-340. https://doi.org/10.1016/j.jcp.2018.04.019

  10. 10. Strain, J. (1999) Semi-Lagrangian Methods for Level Set Equations. Journal of Computational Physics, 151, 498-533. https://doi.org/10.1006/jcph.1999.6194

  11. 11. Tumolo, G., Bonaventura, L. and Restelli, M. (2013) A Semi-Implicit, Semi-Lagrangian, p-Adaptive Discontinuous Galerkin Method for the Shallow Water Equations. Journal of Computational Physics, 232, 46-67. https://doi.org/10.1016/j.jcp.2012.06.006

  12. 12. Robert, A. (1982) A Semi-Lagrangian and Semi-Implicit Numerical Integration Scheme for the Primitive Meteorological Equations. Journal of the Meteorological Society of Japan, 60, 319-325. https://doi.org/10.2151/jmsj1965.60.1_319

  13. 13. Restelli, M., Bonaventura, L. and Sacco, R. (2006) A Semi-Lagrangian Discontinuous Galerkin Method for Scalar Advection by Incompressible Flows. Journal of Compu-tational Physics, 216, 195-215. https://doi.org/10.1016/j.jcp.2005.11.030

  14. 14. Qiu, J.-M. and Christlieb, A. (2010) A Conservative High Order Semi-Lagrangian WENO Method for the Vlasov Equation. Journal of Computational Physics, 229, 1130-1149. https://doi.org/10.1016/j.jcp.2009.10.016

  15. 15. Kwatra, N., Su, J., Grétarsson, J.T. and Fedkiw, R. (2009) A Method for Avoiding the Acoustic Time Step Restriction in Compressible Flow. Journal of Computational Physics, 228, 4146-4161. https://doi.org/10.1016/j.jcp.2009.02.027

  16. 16. Lentine, M., Grétarsson, J.T. and Fedkiw, R. (2011) An Uncondi-tionally Stable Fully Conservative Semi-Lagrangian Method. Journal of Computational Physics, 230, 2857-2879. https://doi.org/10.1016/j.jcp.2010.12.036

  17. 17. Li, S. and Xiao, F. (2007) CIP/Multi-Moment Finite Volume Method for Euler Equations: A Semi-Lagrangian Characteristic Formulation. Journal of Computational Physics, 222, 849-871. https://doi.org/10.1016/j.jcp.2006.08.015

  18. 18. 吴浪. 双曲守恒律方程的高阶半拉格朗日方法[D]: [博士学位论文]. 哈尔滨: 哈尔滨工业大学, 2015.

NOTES

*通讯作者

期刊菜单