A method for constructing a class of high-order WENO formats

By simplifying the construction and coefficient expression of smooth factors, the problem of low computational efficiency and complexity of the existing high-order WENO format is solved, discontinuous stability and calculation accuracy are improved, and more efficient numerical simulation effects are achieved.

CN111859819BActive Publication Date: 2024-09-06AERODYNAMICS NAT KEY LAB +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010548359.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-16
Publication Date
2024-09-06
Estimated Expiration
2040-06-16

AI Technical Summary

Technical Problem

The existing high-order WENO scheme has problems of complexity and low computational efficiency in the calculation of smoothness factors, especially the decrease near the critical point, which significantly affects the numerical calculation results.

Method used

A new (2r-1) point WENO format construction method is used to construct the smooth factor through discrete function values, and the formula of the smooth factor is simplified to maintain O(h2r-4) near the first-order critical point of the smooth region. The change is small, and it is O(1) in the discontinuous area and O(h2r-4) in the continuous area, and simple coefficients and linear weight coefficients are obtained through Taylor expansion.

Benefits of technology

It improves the stability and calculation efficiency of the WENO format in the discontinuous area, reduces the amount of floating point operations, makes the format simpler and easier to program, and makes the gap between the smooth area and the discontinuous area larger, enhancing the discontinuity capture capability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111859819B
    Figure CN111859819B
Patent Text Reader

Abstract

The present invention discloses a construction method of a class of high-order WENO formats, wherein the class of high-order WENO formats is a (2r-1)-point WENO format, r is an integer greater than 3, and the (2r-1)-point WENO format is used to perform numerical simulation on a problem containing discontinuities in computational fluid dynamics, and the construction method comprises the following steps: step 1, constructing a smooth factor by discrete function values ​​on a sub-template of the (2r-1)-point WENO format; step 2, constructing the (2r-1)-point WENO format based on the smooth factor constructed in step 1. The smooth factor constructed by the present invention is conducive to obtaining a better calculation result of the corresponding (2r-1)-point WENO format; and is conducive to capturing discontinuities and enhancing the discontinuity stability of the corresponding (2r-1)-point WENO format; and at the same time, the corresponding (2r-1)-point WENO format is more concise in form, has a smaller amount of calculation, and is easy to program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of numerical simulation of partial differential equations, in particular to a construction method of a class of high-order WENO formats. Background Art

[0002] In the numerical simulation of problems involving discontinuities (such as image processing, two-phase flow interface tracking, aeroacoustic problems involving shock waves, etc.), discontinuities and other continuous small-scale structures may coexist. The high-order precision WENO (Weighted essentially non-oscillatory) format can capture discontinuities and achieve high-order accuracy in smooth areas, and is often used to simulate such problems.

[0003] In the (2r-1)-point WENO format, the entire template contains (2r-1) grid points, which are divided into r sub-templates, each of which contains r points, and a reconstruction value can be obtained on each sub-template, and then these reconstruction values ​​are weighted to obtain the final reconstruction value. The weighting coefficient is determined by the linear weight coefficient and the smoothness of the function on the template, and the smoothness factor is a measure of the smoothness of the template function.

[0004] The current (2r-1)-point WENO format is constructed as follows:

[0005] For a (2r-1)-point WENO format template:

[0006] S={x j-r+1 ,x j-r+2 ,…,x j+r-1};

[0007] Its sub-template is S k ={x j-r+1+k ,x j-r+2+k ,…,x j+k}, k = 0, 1, ..., r-1; then the numerical flux of the (2r-1) point WENO format is:

[0008]

[0009] Among them, the sub-template S k The numerical flux is:

[0010] k=0,1,…,r-1;

[0011] Each sub-template S k The nonlinear weight coefficient on is:

[0012]

[0013] Among them, ε is a small number, usually 10-100 , linear weight coefficient and parameters It can be obtained by Taylor expansion;

[0014] is the smoothing factor on each sub-template:

[0015]

[0016] The specific formula is as follows when r=2:

[0017]

[0018]

[0019] When r = 3, it is:

[0020]

[0021]

[0022]

[0023] The smoothing factor corresponding to a higher r value is more complicated. For the specific formula, please refer to the relevant literature.

[0024] Smooth Factor It is given according to the precision constraint, while if the Z-type WENO format is used, there is no need to require the precision constraint of the smoothing factor. However, the smoothing factor drops significantly near the critical point (the point where the first-order derivative is 0, including the extreme point), which may have an adverse effect on the numerical calculation results. In addition, the form of the smoothing factor in the current WENO format is relatively complicated, which makes it difficult to write programs and relatively low calculation efficiency. Summary of the invention

[0025] The technical problem to be solved by the present invention is: in view of the above-mentioned problems, a construction method of a class of high-order WENO formats is provided.

[0026] The technical solution adopted by the present invention is as follows:

[0027] A method for constructing a type of high-order WENO format, wherein the type of high-order WENO format is a (2r-1)-point WENO format, where r is an integer greater than 3, and the (2r-1)-point WENO format is used to perform numerical simulation on a problem containing discontinuities in computational fluid dynamics. The method comprises the following steps:

[0028] Step 1, construct a smoothing factor from discrete function values ​​on the (2r-1)-point WENO format sub-template;

[0029] Step 2: construct a (2r-1)-point WENO format based on the smoothing factor constructed in step 1.

[0030] Furthermore, the method of step 1 is:

[0031] (1)(2r-1) The sub-template of the WENO format is:

[0032] S k ={x j-r+1+k ,x j-r+2+k ,…,x j+k}, k = 0, 1, ..., r-1

[0033] (2) The smoothing factor is constructed from the discrete function value on the (2r-1) point WENO format sub-template, expressed as:

[0034]

[0035] Among them, x c,k =x j-r+1+k +(r-1)h / 2; σ,δ are operators defined as follows:

[0036]

[0037]

[0038] (3) Note:

[0039]

[0040] Then the smoothing factor is written as in, Can be written as follows:

[0041]

[0042] Among them, z is or c r,l for The coefficient of .

[0043] Furthermore, when r = 4, 5, 6, 7, the coefficient c r,l The values ​​are as follows:

[0044]

[0045] Among them, a represents The coefficient c in r,l ; b means The coefficient c in r,l ; c represents The coefficient c in r,l .

[0046] Furthermore, step 2 includes the following sub-steps:

[0047] (1) According to the formula of the smoothing factor, the parameter τ is given (s) The calculation formula is as follows:

[0048]

[0049] in, for The coefficient c in r,l , for The coefficient c in r,l , for The coefficient c in r,l ;

[0050] (2) Construct the nonlinear weight coefficients of each sub-template in the (2r-1) point WENO format:

[0051]

[0052] Where ε is a small quantity, and the linear weight coefficient d k It is obtained by Taylor expansion;

[0053] (3) The numerical flux of the (2r-1) point WENO format is constructed as:

[0054]

[0055] The numerical flux on the sub-template is:

[0056] k=0,1,…,r-1;

[0057] parameter Obtained by Taylor expansion.

[0058] Furthermore, the linear weight coefficient d k The values ​​are as follows:

[0059] r k=0 k=1 k=2 k=3 k=4 k=5 k=6 4 -3 / 12 13 / 12 -23 / 12 25 / 12 5 12 / 60 -63 / 60 137 / 60 -163 / 60 137 / 60 6 1 / 462 5 / 77 25 / 77 100 / 231 25 / 154 1 / 77 7 1 / 1716 7 / 286 105 / 572 175 / 429 175 / 572 21 / 186 7 / 1716

[0060] Furthermore, the parameter The values ​​are as follows:

[0061]

[0062]

[0063] As a preference, ε=10 -100 .

[0064] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0065] 1. From the Taylor expansion, it can be seen that the smoothness factor constructed by the present invention is The smooth region maintains O(h 2r-4 ), the change is small, so that the corresponding WENO format obtains better calculation results;

[0066] 2. From the Taylor expansion, it can be seen that the smoothness factor constructed by the present invention is In the discontinuous region, it is O(1), and in the continuous region, it is O(h 2r-4 ); the original smoothing factors in the two regions are O(1) and O(h 2 ), then the smoothness factor constructed by the present invention is The larger gap between the two types of regions is conducive to capturing discontinuities and enhancing the discontinuity stability of the corresponding WENO format;

[0067] 3. Smoothness factor of the structure of the present invention The coefficients in are very simple and require fewer floating-point operations. This makes the corresponding WENO format more concise, less computationally intensive, and easier to program. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0069] Figure 1 The flowchart is a method for constructing a type of high-order WENO format of the present invention.

[0070] Figure 2a This is the calculation result diagram of WENO(2r-1)-M format in Example 3.

[0071] Figure 2b This is the calculation result diagram of WENO(2r-1)-S format in Example 3.

[0072] Figure 3a This is the calculation result diagram of WENO(2r-1)-M format in Example 4.

[0073] Figure 3b This is the calculation result diagram of WENO(2r-1)-S format in Example 4.

[0074] Figure 4 This is a comparison chart of the calculation results of Example 5. DETAILED DESCRIPTION

[0075] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the embodiments described are only part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0076] Note: For the difference method solution of hyperbolic conservation law equations, the usual numerical solution steps are as follows:

[0077] Step 1: Mesh division: generate mesh according to calculation requirements and calculation conditions;

[0078] Step 2, assign initial values, and give the initial values ​​on the nodes at the grid points according to the initial value conditions;

[0079] Step 3, set the time step, which is obtained according to the problem and the method used in combination with the CFL condition;

[0080] Step 4, start looping the following time advancement process until the end time required by the problem:

[0081] (1) For interior points, the spatial format is used for numerical calculation;

[0082] (2) Using appropriate numerical boundary treatment according to boundary conditions;

[0083] (3) After the spatial discretization of the numerical calculation of the interior points and boundaries is completed, it is advanced using a suitable time format.

[0084] The present invention mainly designs the spatial format in the sub-step (1) of step 4. The main process is described below for the one-dimensional hyperbolic conservation law equation.

[0085] Given a one-dimensional hyperbolic conservation law equation:

[0086]

[0087] For an equidistant grid with a spacing of h, the semi-discrete conservative difference format is:

[0088]

[0089] in and is the numerical flux, and different conservation-type difference formats correspond to different numerical fluxes. The time format can use the Runge-Kutta method. In this invention, it is assumed that the characteristic velocity For the case where the characteristic velocity is positive, the corresponding result can be obtained by symmetry. If the positive and negative cannot be determined, a flux splitting method such as Lax-Friedrichs splitting needs to be used. structure.

[0090] A method for constructing a high-order WENO format of the present invention comprises the following steps:

[0091] Step 1, construct a smoothing factor from discrete function values ​​on the (2r-1)-point WENO format sub-template;

[0092] Step 2: construct a (2r-1)-point WENO format based on the smoothing factor constructed in step 1.

[0093] That is, the high-order WENO format is a (2r-1)-point WENO format, where r is an integer. The (2r-1)-point WENO format can be used to perform numerical simulations on discontinuity problems in computational fluid dynamics.

[0094] The features and performance of the present invention are further described in detail below in conjunction with the embodiments.

[0095] like Figure 1 As shown, a method for constructing a type of high-order WENO format includes the following steps:

[0096] Step 1: Construct a smoothing factor from the discrete function value on the (2r-1)-point WENO format sub-template

[0097] For a (2r-1)-point WENO format template, it is expressed as:

[0098] S={x j-r+1 ,x j-r+2 ,…,x j+r-1};

[0099] For the (2r-1)-point WENO format sub-template, it is expressed as:

[0100] S k ={x j-r+1+k ,x j-r+2+k ,…,x j+k}, k = 0, 1, ..., r-1;

[0101] The existing smoothing factor decreases significantly near the extreme point, which may have an adverse effect on the numerical calculation result. Therefore, the present invention requires that the smoothing factor is a constant for the sine function. According to this condition, the method of the steps is:

[0102] (1)(2r-1) The sub-template of the WENO format is:

[0103] S k ={x j-r+1+k ,x j-r+2+k ,…,x j+k}, k = 0, 1, ..., r-1

[0104] (2) The smoothing factor is constructed from the discrete function value on the (2r-1) point WENO format sub-template, expressed as:

[0105]

[0106] Among them, x c,k =x j-r+1+k +(r-1)h / 2; σ,δ are operators defined as follows:

[0107]

[0108]

[0109] (3) Note:

[0110]

[0111] Then the smoothing factor is written as in, Can be written as follows:

[0112] jj=j-r+1+k;

[0113] Among them, z is or c r,l for When r=4,5,6,7, the coefficient c r,l The values ​​are shown in Table 1.

[0114] Table 1:

[0115]

[0116] Among them, a represents The coefficient c in r,l ; b means The coefficient c in r,l ; c represents The coefficient c in r,l.

[0117] For the sine wave f(x)=asin(kx+b)+c, it can be known through calculation that the smoothing factor constructed by the present invention is When r>3, it is a constant independent of the position x.

[0118] Step 2: construct a (2r-1) point WENO format based on the smooth factor constructed in step 1

[0119] (1) According to the formula of the smoothing factor, the parameter τ is given (s) The calculation formula is as follows:

[0120]

[0121] in, for The coefficient c in r,l (i.e. a in Table 1), for The coefficient c in r,l (i.e. b in Table 1), for The coefficient c in r,l (i.e., c in Table 1);

[0122] (2) Construct the nonlinear weight coefficients of each sub-template in the (2r-1) point WENO format:

[0123]

[0124] Where ε is a small number, usually ε=10 -100 ; Linear weight coefficient d k Obtained by Taylor expansion, the general values ​​are shown in Table 2.

[0125] Table 2:

[0126] r k=0 k=1 k=2 k=3 k=4 k=5 k=6 4 -3 / 12 13 / 12 -23 / 12 25 / 12 5 12 / 60 -63 / 60 137 / 60 -163 / 60 137 / 60 6 1 / 462 5 / 77 25 / 77 100 / 231 25 / 154 1 / 77 7 1 / 1716 7 / 286 105 / 572 175 / 429 175 / 572 21 / 186 7 / 1716

[0127] (3) The numerical flux of the (2r-1) point WENO format is constructed as:

[0128]

[0129] The numerical flux on the sub-template is:

[0130] k=0,1,…,r-1;

[0131] parameter Obtained by Taylor expansion, the general values ​​are shown in Table 3.

[0132] Table 3:

[0133]

[0134] It should be understood that Tables 1, 2 and 3 only give data when r=4, 5, 6 and 7. In fact, r in the present invention is an integer greater than 3, and the corresponding parameter values ​​can be inferred. The present invention should not be limited to Tables 1, 2 and 3.

[0135] The smoothing factor and WENO format constructed by the present invention have the following advantages:

[0136] A. From the Taylor expansion, it can be seen that the smoothness factor constructed by the present invention is The smooth region maintains O(h 2r-4 ), the change is small, so that the corresponding WENO format obtains better calculation results;

[0137] B. From the Taylor expansion, it can be seen that the smoothness factor constructed by the present invention is In the discontinuous region, it is O(1), and in the continuous region, it is O(h 2r-4 ); the original smoothing factors in the two regions are O(1) and O(h 2 ), then the smoothness factor constructed by the present invention is The larger gap between the two types of regions is conducive to capturing discontinuities and enhancing the discontinuity stability of the corresponding WENO format;

[0138] C. Smoothness factor of the present invention The coefficients in are very simple and require fewer floating-point operations. This makes the corresponding WENO format more concise, less computationally intensive, and easier to program.

[0139] The numerical accuracy test of the (2r-1) point WENO format constructed by the present invention is carried out through a specific example below to further describe the characteristics and performance of the present invention in detail. The time format in the calculation adopts the lssprk (2r, 2r-1) Runge-Kutta method. In addition, for the convenience of explanation, the (2r-1) point WENO format constructed by the present invention is recorded as WENO (2r-1)-S.

[0140] Example 1: Numerical accuracy test

[0141] Consider the following initial value problem for the linear convection equation:

[0142]

[0143] The calculation end time is T = 2. The initial value conditions used are The boundary conditions are periodic boundaries. When the spatial format is WENO(2r-1)-S, the time format uses the lssprk(2r,2r-1) Runge-Kutta method with the same (2r-1) order accuracy. The L1 error of the calculation result, L ∞ The errors and the corresponding convergence accuracy are listed in Table 4.

[0144] Table 4, accuracy test table of WENO (2r-1)-S format:

[0145]

[0146] From Table 4, it can be seen that the WENO(2r-1)-S format obviously achieves (2r-1)-order accuracy.

[0147] Example 2: Computational efficiency test

[0148] The control equation and solution area are the same as those in the accuracy test, the boundary condition is also a periodic boundary, and the initial value condition is u0(x) = sin(πx). The number of grid points in the calculation is N = 10000, and the termination time is T = 2. The calculation time of the two types of WENO formats is shown in Table 5.

[0149] Table 5. Comparison of calculation time of two types of WENO formats, unit: seconds

[0150] Schemes r=5 r=6 r=7 r=8 r=9 WENO(2r-1)-JS 33.290 49.858 71.136 95.322 141.04 WENO(2r-1)-S 25.209 36.855 49.280 48.938 70.091

[0151] It can be seen from Table 5 that the new WENO format WENO(2r-1)-S only requires 50% to 75% of the computation time of the original WENO format of the same order (WENO(2r-1)-JS).

[0152] Example 3: Propagation Problem of Four Waveforms

[0153] The control equations and solution domain are the same as those in the accuracy test, the boundary conditions are also periodic boundaries, and the initial value conditions are:

[0154] u0(x)

[0155]

[0156]

[0157] Where z = -0.7, δ = 0.005, a=0.5 and α=10. The calculation end time is T=80, the number of grid points N is 1000, and the CFL number is 0.5. WENO(2r-1)-S and WENO(2r-1)-M formats are used for calculation, where WENO(2r-1)-M is an improved format of WENO(2r-1)-JS. The calculation results are shown in Figure 2a and Figure 2b Obviously, WENO(2r-1)-S achieves a result that is basically closer to the exact solution Exact; WENO(2r-1)-M format shows relatively obvious oscillations near the discontinuity and is not sharp enough to capture the discontinuity.

[0158] Example 4: Propagation of modulated Gaussian waves

[0159] The control equations are the same as those in the previous two examples. The computational domain is changed to [0,1], a periodic boundary is used, and the initial value conditions are:

[0160] u0(x)=exp(-100·(x-0.5) 2 )·sin(34πx)

[0161] The number of grid points N is 120, and the number of CFL is 0.5. The calculation end time is T = 1. The calculation results of the two types of WENO formats are shown in Figure 3a and Figure 3b , the solid line Exact in the figure represents the exact solution. Obviously, the new format WENO(2r-1)-S obtains the best result.

[0162] Example 4: Shock wave and entropy wave interaction problem

[0163] The governing equation of this problem is the one-dimensional Euler equation. A shock wave with a Mach number of 3 interferes with the entropy wave, inducing high-frequency vibrations. Here, the number of grid points is N = 200, and the CFL number is 0.5. For the one-dimensional Euler equation, the local Lax–Friedrichs splitting method and the characteristic projection technique are used here. Figure 4 The comparison chart of the new WENO format calculation results when T = 1.8 is given in . Since there is no analytical solution to this problem, the calculation results of the classic fifth-order WENO format when N = 8000 are used as the reference exact solution. Figure 4 The solid line "Exact" indicates. Figure 4 It can be seen that the high-order WENO format constructed by the present invention obtains better results in the high-frequency oscillation region. In the case of very high orders, the calculation results show overshoot near some discontinuities. In practical applications, when using very high-order formats to process such nonlinear discontinuities, it is usually necessary to perform order reduction processing to obtain better results.

[0164] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for numerical simulation of a problem containing discontinuities in computational fluid dynamics, characterized in that: The steps include: S1, meshing, generating meshes according to calculation requirements and conditions; S2, assign initial values, give the initial values ​​on the nodes at the grid points according to the initial value conditions; S3, setting the time step, which is obtained according to the discontinuity problem and the method used in combination with the CFL condition; the discontinuity problem includes two-phase flow interface tracking in computational fluid dynamics and aeroacoustic problems including shock waves; S4, start to cycle the following time advancement process until the termination time required by the discontinuous problem: (1) For interior points, the spatial format is used for numerical calculation; (2) Using appropriate numerical boundary treatment according to boundary conditions; (3) After the numerical calculation space of the interior points and boundaries is discretized, it is advanced using a suitable time format; The spatial format is a (2r-1)-point WENO format, and its construction method includes: Step 1, construct a smoothing factor from discrete function values ​​on the (2r-1)-point WENO format sub-template, where r is an integer greater than 3; Step 2, constructing a (2r-1)-point WENO format based on the smoothing factor constructed in step 1; The method of step 1 is: (1)(2r-1) The sub-template of the WENO format is: S k ={x j-r+1+k ,x j-r+2+k ,…,x j+k },k=0,1,…,r-1 (2) The smoothing factor is constructed from the discrete function value on the (2r-1) point WENO format sub-template, expressed as: Among them, x c,k =x j-r+1+k +(r-1)h / 2; σ,δ are operators defined as follows: (3) Note: Then the smoothing factor is written as in, Can be written as follows: Among them, z is or c r,l for coefficient; when r=4,5,6,7, coefficient c r,l The values ​​are as follows: Among them, a represents The coefficient c in r,l ; b means The coefficient c in r,l ; c represents The coefficient c in r,l ; Step 2 includes the following sub-steps: Step 2.1, give the parameter τ according to the formula of the smoothing factor (s) The calculation formula is as follows: in, for The coefficient c in r,l , for The coefficient c in r,l , for The coefficient c in r,l ; Step 2.2, construct the nonlinear weight coefficients on each sub-template in the (2r-1)-point WENO format: Where ε = 10 -100 , linear weight coefficient d k It is obtained by Taylor expansion and has the following values: Step 2.3, construct the numerical flux of the (2r-1) point WENO format as: The numerical flux on the sub-template is: parameter It is obtained by Taylor expansion and has the following values: