A new TVD format construction method based on Fromm format
By adopting a new TVD format based on the Fromm format in the convection-dominated problem, combined with the total variation decreasing TVD criterion and the polynomial ratio format, the problem of difficulty in balancing accuracy, convergence and stability of the existing TVD format is solved, and an efficient Numerical simulation effects.
Patent Information
- Application Number
- CN202410623526.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-05-20
AI Technical Summary
It is difficult for the existing TVD format to ensure accuracy, convergence and stability at the same time in the numerical simulation of convection-dominated problems, especially when dealing with discontinuous or steep gradients, which is prone to oscillation and convergence difficulties.
Using a new TVD format construction method based on the Fromm format, by combining the total variation decreasing TVD criterion and the polynomial ratio format, a flux limiter that meets second-order accuracy is designed, and symmetry and smoothness are used to improve the convergence speed and robustness of the format. sex.
It achieves a balance between accuracy, convergence and stability in numerical simulation of convection-dominated problems, improves the effect of numerical simulation, reduces numerical fluctuations, and improves the robustness and convergence speed of the format while maintaining high accuracy.
Smart Images

Figure CN118446133B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of fluid mechanics engineering, and in particular relates to a new TVD format construction method based on the Fromm format. Background Art
[0002] Convection-dominated flow phenomena have always been one of the most important contents in computational fluid dynamics (CFD). The numerical format is closely related to the accuracy, stability and convergence of the results. Therefore, it is still very important to develop a convection format with good robustness. As we all know, although high-order linear formats such as central difference CDS (Central Difference), second-order upwind SOU (Second-order Upwind), Fromm, QUICK (Quadratics Upstream Interpolation for Convective Kinematics) and CUI (Cubic Upwind Interpolation) reduce numerical diffusion, their unboundedness will inevitably lead to non-physical oscillations.
[0003] In order to overcome this defect, various high-resolution HR (High Resolution) formats have been proposed, such as the flux corrected transport (FCT) format, the total variation decreasing (TVD) format, the normalized variable diagram (NVD) format, the essentially non-oscillatory (ENO) format and the weighted essentially non-oscillatory (WENO) format.
[0004] Although the computational accuracy of the ENO and WENO formats can reach above the second order, it is difficult to extend to arbitrary two-dimensional or three-dimensional unstructured grids. In contrast, the TVD format is favored due to its strict monotonicity, high computational efficiency, and easy extension to unstructured grids. Studies have shown that a well-designed TVD format is not inferior to the ENO format in terms of accuracy and has better convergence. In the past few decades, many TVD formats have been proposed, such as Minmod, vanLeer, OSPRE, vanAlbada, koren, MUSCL, CUBISTA, SMART, SuperBee, TOPUS, and ADBQUICKEST.
[0005] However, high-resolution formats in TVD (such as SMART), although they have good accuracy in smooth solutions, produce high levels of oscillations and are accompanied by convergence difficulties, especially when the solutions of the transport variables contain discontinuities or steep gradients. In addition, most of the existing TVD formats are developed based on the QUICK format, which ignores the stability and convergence speed of the format while pursuing high accuracy. As a result, although various TVD formats have been developed, only those that are robust and easy to converge can be widely used in practice.
[0006] Therefore, it is necessary to construct a high-resolution TVD format that can achieve a balance between accuracy, convergence and stability in the numerical simulation of convection-dominated problems, so as to solve the technical problem that the accuracy, convergence and stability cannot be guaranteed simultaneously in the numerical simulation of convection-dominated problems based on the TVD format in the existing technology. Summary of the invention
[0007] In view of this, the present invention provides a new TVD format construction method based on the Fromm format, which can achieve a balance among accuracy, convergence and stability in the numerical simulation process of convection-dominated problems, thereby improving the effect of numerical simulation.
[0008] The present invention discloses a new TVD format construction method based on Fromm format, comprising the following steps: step s1, determining a TVD criterion satisfying second-order accuracy; step s2, based on the determined TVD criterion satisfying second-order accuracy, constructing a piecewise function of a flux limiter between partitions in a manner combining Fromm format and PR format, wherein the flux limiter is expressed as And the flux limiter function in each interval satisfies the symmetry condition Step s3, combining the piecewise functions of each interval to obtain a flux limiter format that meets the second-order accuracy TVD criterion.
[0009] The TVD format is the abbreviation of the Total Variational Diminishing (TVD) format, and the PR format is the abbreviation of the Polynomial Ratios (PR) format.
[0010] In the present invention, the new format is based on the Total Variational Diminishing (TVD) criterion and the Fromm format of second-order accuracy is used as the design basis; the design method of maximizing the linear format is adopted to ensure accuracy; the linear format is combined with the polynomial ratio format, and symmetry and smoothness are used to improve the convergence speed and robustness of the format. Compared with the classic TVD format, the new format of the present invention has better convergence speed and robustness while maintaining high accuracy, small numerical fluctuations, and can achieve a balance between compressibility and diffusivity, thereby achieving a balance between accuracy, convergence and stability in the numerical simulation process of convection-dominated problems.
[0011] In the method for constructing a new TVD format based on the Fromm format disclosed in the first aspect of the present invention, step s2 comprises:
[0012] Step s201, based on the determined TVD criterion satisfying the second-order accuracy, determining interval values U and V, wherein U<V, and the interval values U and V are reciprocals of each other, so that the flux limiter piecewise function in each interval satisfies the symmetry condition;
[0013] Step s202, in In the region, the Fromm format function form is used as the basis, and the principle of maximizing the linear format is used to make the flux limiter use the Fromm format function with second-order accuracy to satisfy the following formula (1):
[0014] in
[0015] Step s203, in In the region of , the flux limiter adopts a PR type function to satisfy the following formula (2):
[0016] in
[0017] Step s204, to satisfy the symmetry condition, Use PR function to Construct as follows (3):
[0018]
[0019] By rearranging formula (3), we can get formula (4):
[0020] In the new TVD format construction method based on Fromm format disclosed in the first aspect of the present invention, the interval value U is 0.4, and the interval value V is 2.5. In the present invention, the meaning of the interval here refers to the interval of r = [U, V], in order to ensure the principle of maximizing the linear format as much as possible, the function of the new format and the Fromm format are overlapping intervals. The r factor is the ratio between the gradients of the headwind and the tailwind.
[0021] In the present invention, the principle of maximizing the linear format of the format function is adopted, and 0.4 and 2.5 are selected to achieve the overlap of most regions of the function with the Fromm format to ensure the accuracy level. On the other hand, since 0.4 and 2.5 are reciprocals of each other, it is easy to meet the symmetry requirement.
[0022] In the new TVD format construction method based on the Fromm format disclosed in the first aspect of the present invention, the TVD criterion satisfying the second-order accuracy is obtained by writing the TVD format of the second-order accuracy as a weighted average form of the central difference and the second-order upwind format. Under the determined TVD criterion satisfying the second-order accuracy, the restriction formula (5) for the flux limit function is:
[0023]
[0024] That is, in the present invention, the above formula (5) refers to the determined TVD criterion range that satisfies the second-order accuracy. The so-called TVD is Total Variation Diminishing (TVD), which means that if the total variation of the numerical solution does not increase over time, the numerical format is considered to have TVD characteristics. The principle is that the total variation is a measure of the oscillation characteristics of the solution, and the TVD format effectively eliminates non-physical oscillations by ensuring that the total variation does not increase.
[0025] In the new TVD format construction method based on Fromm format disclosed in the first aspect of the present invention, based on the restriction formula (5), within the determined second-order accuracy TVD criterion range, there is Therefore, the maximum M value in the range can be selected as 2, and equation (2) can be rewritten as:
[0026]
[0027] The parameters a, b, c, and d are all unknown coefficients and are scalar quantities to be determined.
[0028] Step s203 also includes the step of determining the values of parameters a, b, c, and d in the PR function, including:
[0029] exist At , the value of the PR format function is equal to the value of the Fromm format function, then Arrangement can be obtained formula (i):
[0030] The derivative of the PR format function is expressed as the following formula (7):
[0031]
[0032] Based on formula (7), In the range, the slope of the Fromm format function is 0.5, which makes the PR format function At the same time, let equation (7) Then we have (4×2.5+a)-(2×2.5+c)(2×2.5 2 +2.5a+b)=0.5, and the formula (ii) is: 11.5a+5b+12.5c+2.5ac+bc=-53;
[0033] and, based on Existence The relationship between , can be rearranged to obtain formula (iii): 2.5c+d=-5.25;
[0034] and, in infinitely approaches 2, then we have formula (iv): a = 2c;
[0035] Solving the system of equations obtained from equations (i), (ii), (iii) and (iv) yields:
[0036]
[0037] From this we can get In the interval, the function form of PR format is as follows:
[0038]
[0039] In the new TVD format construction method based on the Fromm format disclosed in the first aspect of the present invention, in step s3, the formula of the flux limiter format satisfying the second-order accuracy TVD criterion is as follows:
[0040]
[0041] The second aspect of the present invention also discloses a method for numerically simulating a convection-dominated problem, comprising the following steps:
[0042] Step d1, mesh division, generating a mesh according to calculation requirements and calculation conditions;
[0043] Step d2, assigning initial values, giving initial values on nodes at grid points according to initial value conditions; the initial values include initial values of density, pressure, velocity, etc.;
[0044] Step d3, setting the time step, which is obtained according to the convection-dominated problem and the method used in combination with the CFL condition;
[0045] Step d4, starting the time advancement process of looping the following steps until the termination time required by the convection-dominated problem: the step of spatially discretizing the spatial convection term; and the step of advancing in a time discretization format after the spatial discretization is completed;
[0046] Wherein, in the step of spatially discretizing the spatial convection term, the interface flux value is obtained by using the following formula (10):
[0047]
[0048] Where φ represents the interface flux, i is the coordinate number, Δx i represents the unit length, is the flux limiter;
[0049] The flux limiter in equation (10) A flux limiter format satisfying the second-order accuracy TVD criterion is obtained by the new TVD format construction method based on the Fromm format disclosed in the first aspect of the present invention.
[0050] The third aspect of the present invention discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that when the processor executes the computer program, it can implement the new TVD format construction method based on the Fromm format disclosed in the first aspect of the present invention.
[0051] Beneficial effects: In the present invention, the new format is based on the total variation decreasing TVD (Total Variational Diminishing) criterion, and is designed based on the Fromm format of second-order accuracy; the design method of maximizing the linear format is adopted to ensure accuracy; the linear format is combined with the polynomial ratio format, and symmetry and smoothness are used to improve the convergence speed and robustness of the format. Compared with the classic TVD format, the new format of the present invention has better convergence speed and robustness while maintaining high accuracy, small numerical fluctuations, and can achieve a balance between compressibility and diffusivity, thereby achieving a balance between accuracy, convergence and stability in the numerical simulation process of convection-dominated problems.
[0052] The new TVD format construction method based on the Fromm format of the present invention is disclosed in detail below in conjunction with the embodiments shown in the accompanying drawings and the figure numerals. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1The TVD criterion range (shading) and the functional representation in linear format are shown.
[0054] Figure 2 The region of the TVD format that satisfies second-order accuracy is shown (shaded).
[0055] Figure 3 A flow chart of the steps of the present invention is shown.
[0056] Figure 4 A schematic diagram of the calculation template of three adjacent grid points is shown.
[0057] Figure 5 The computational domain of convective transport for a uniform velocity field in a given direction is shown.
[0058] Figure 6a A comparison of the accuracy of SSFL and SMART formats for the Step profile pure convection problem is shown.
[0059] Figure 6b A comparison of the convergence speed of SSFL and SMART schemes in the Step profile pure convection problem is shown.
[0060] Figure 7a The comparison of the accuracy of SSFL format and SMART format in the Sine-Square profile pure convection problem is shown.
[0061] Figure 7b The comparison of the convergence speed between SSFL and SMART schemes in the pure convection problem with Sine-Square profile is shown.
[0062] Figure 8 Contour contours of different TVD formats are shown. DETAILED DESCRIPTION
[0063] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.
[0065] Numerical simulation of convection-dominated problems is one of the important tasks in aerodynamics, and designing a robust discrete format for convection terms is even more important. Most of the existing high-resolution formats are developed based on the QUICK format and the NVD criterion. Although they can achieve third-order accuracy in smooth regions, they still produce oscillations and lead to convergence difficulties when dealing with discontinuous or steep gradients. Although the mainstream WENO format can achieve high orders, it also has problems with convergence and stability. The purpose of this paper is to propose a symmetric high-resolution TVD format based on the constraint criterion of the total variation decreasing TVD and the principle that symmetry and smoothness can improve the convergence of the format, so as to achieve a balance between accuracy, convergence and stability for solving convection-dominated problems.
[0066] Moreover, although existing high-resolution formats (such as MUSCL, SMART, and SuperBee) can obtain accurate results in smooth regions, they still suffer from slow calculation speed, difficult convergence, and non-physical oscillations when solving problems such as shock waves or incompressible viscoelastic flows. Therefore, there is an urgent need for a robust format that takes both accuracy and convergence into account to achieve reliable and efficient simulation of fluid flow processes.
[0067] The simplest flux limiter format is a linear format such as Figure 1 If the function satisfies This means that it satisfies the symmetry and the format has excellent convergence properties. The function form of the Fromm format is Among the linear formats, only it satisfies symmetry. Any TVD format with second-order accuracy can be written as a weighted average of the central-diffenrence (CDS) and second-order upwind formats, thereby obtaining the TVD criterion range that satisfies second-order accuracy, such as Figure 2 Shown in the shaded area. Figure 2 The shaded area in reflects the inherent characteristics of the flux limiter, that is, the closer the format is to the upper part of the shaded area, the more compressible it is, which is inversely proportional to the stability and convergence of the numerical calculation and proportional to the resolution. Therefore, the constructed format should not be too close to the upper and lower boundaries of the shaded area to achieve a balance between accuracy, convergence and stability.
[0068] In view of this, the present invention provides a method for constructing a new TVD format based on the Fromm format. Figure 1 The specific steps are shown in the flowchart. Figure 1As shown, it includes the following steps: step s1, determining the TVD criterion that satisfies the second-order accuracy; step s2, based on the determined TVD criterion that satisfies the second-order accuracy, constructing a piecewise function of the flux limiter between partitions in a manner combining the Fromm format and the PR format, wherein the flux limiter is expressed as And the flux limiter function in each interval satisfies the symmetry condition Step s3, combining the piecewise functions of each interval to obtain a flux limiter format that meets the second-order accuracy TVD criterion.
[0069] Specifically, in step s1, the TVD format of the second-order accuracy is written as a weighted average of the central difference and the second-order upwind format, and the TVD criterion that satisfies the second-order accuracy is obtained, such as Figure 2 The shaded area in the figure is shown.
[0070] In step s201, the interval values U and V are set. In a preferred embodiment, the interval value U is 0.4 and the interval value V is 2.5. Then the intervals are set to three, that is, The interval of The interval of Among them, 0.4 and 2.5 are reciprocals of each other, the purpose is to make the subsequent and In two intervals Satisfy the symmetry condition
[0071] In step s202, the Fromm format (which has symmetry as mentioned above) is selected as the design basis. Compared with the QUICK format, the Fromm format is farther away from the top of the second-order accuracy TVD format region, and has better stability while maintaining high accuracy. Using the design principle of maximizing the linear format, The Fromm format with second-order accuracy is used in all regions, that is, it satisfies the following formula (1):
[0072] in
[0073] The smooth polynomial ratio (PR) format performs better in terms of convergence. Therefore, in step s203, A continuous and smooth PR-type function is used in the region to satisfy the following equation (2):
[0074] in
[0075] In step s204, to satisfy the symmetry condition, that is, to satisfy exist Use PR function to The structure is constructed to satisfy the following formula (3):
[0076]
[0077] By rearranging formula (3), we can get formula (4):
[0078] That is, in step s204, the functions within the range of r<0.4 are filled in using symmetry.
[0079] In addition, under the TVD criterion that satisfies the second-order accuracy, the restriction formula (5) for the flux limitation function is:
[0080]
[0081] In the present invention, the TVD criterion satisfying the second-order accuracy is obtained by writing the TVD format of the second-order accuracy as the weighted average form of the central difference and the second-order upwind format. The above formula (5) refers to the determined TVD criterion range satisfying the second-order accuracy, such as Figure 2 The range shown is shaded.
[0082] Specifically, TVD stands for Total Variation Diminishing (TVD), which means that if the total variation of the numerical solution does not increase over time, the numerical format is considered to have TVD characteristics. The principle is that the total variation is a measure of the oscillatory characteristics of the solution, and the TVD format effectively eliminates non-physical oscillations by ensuring that the total variation does not increase.
[0083] Based on the above formula (5), in step s203, the larger the M value in formula (2), the higher the resolution of the PR format. Within the TVD format criterion of second-order accuracy, we have Therefore, we select the largest M in the range (M = 2), that is,
[0084]
[0085] Step s203 also includes the step of determining the values of parameters a, b, c, and d in the PR function, including:
[0086] exist At , the value of the PR format function is equal to the value of the Fromm format function, then Arrangement can be obtained formula (i):
[0087] The derivative of the PR format function is expressed as the following formula (7):
[0088]
[0089] Based on formula (7), In the range, the slope of the Fromm format function is 0.5, which makes the PR format function At the same time, let equation (7) Then we have (4×2.5+a)-(2×2.5+c)(2×2.5 2 +2.5a+b)=0.5, and the formula (ii) is: 11.5a+5b+12.5c+2.5ac+bc=-53;
[0090] and, based on Existence The relationship between , can be rearranged to obtain formula (iii): 2.5c+d=-5.25;
[0091] and, in infinitely approaches 2, then we have formula (iv): a = 2c;
[0092] From equations (i), (ii), (iii) and (iv), we can get the following equations:
[0093]
[0094] Solving the system of equations yields:
[0095]
[0096] From the above values of a, b, c, and d, we can get In the interval, the function form of PR format is as follows:
[0097]
[0098] Based on the above, in step s3, the formula of the flux limiter format that meets the second-order accuracy TVD criterion is as follows:
[0099]
[0100] That is, in the present invention, a smooth and symmetrical flux limiter format SSFL (Smooth Symmetry Fromm Limiter) is obtained which satisfies the second-order accuracy TVD criterion.
[0101] A second aspect of the present invention also provides a method for numerically simulating a convection-dominated problem, comprising the following steps:
[0102] Step d1, mesh division, generating a mesh according to calculation requirements and calculation conditions;
[0103] Step d2, assigning initial values, giving initial values on nodes at grid points according to initial value conditions; the initial values include initial values of density, pressure, velocity, etc.;
[0104] Step d3, setting the time step, which is obtained according to the convection-dominated problem and the method used in combination with the CFL condition;
[0105] Step d4, starting the time advancement process of looping the following steps until the termination time required by the convection-dominated problem: the step of spatially discretizing the spatial convection term; and, after the spatial discretization, the step of advancing in a time discretization format;
[0106] Wherein, in the step of spatially discretizing the spatial convection term, the interface flux value is obtained by using the following formula (10):
[0107]
[0108] Where φ represents the interface flux, i is the coordinate number, Δx i represents the unit length, is the flux limiter;
[0109] The flux limiter in equation (10) is A flux limiter format satisfying the second-order accuracy TVD criterion is obtained by the new TVD format construction method based on the Fromm format disclosed in the first aspect of the present invention.
[0110] The construction steps of the above formula (10) (i.e., the interface flux calculation formula) include:
[0111] Step a1, constructing a one-dimensional convection equation;
[0112] Step a2, discretizing the space into grid units of uniform length, and rewriting the one-dimensional convection equation into a semi-discrete form;
[0113] Step a3, expressing the surface flux in a structured network using a κ-format;
[0114] Step a4, further extending the formula obtained in step a3 to the unstructured grid;
[0115] Step a5, generalize the formula obtained in step a4 to a nonlinear flux-limited convection format to obtain the interface flux calculation formula at two adjacent interfaces, and in step a5, the flux calculation formula has a flux limiter format that meets the second-order accuracy TVD criterion, which is obtained according to the aforementioned new TVD format construction method based on the Fromm format.
[0116] The specific construction process of formula (10) is as follows:
[0117] Three adjacent grid points are used as calculation templates, assuming that the transport velocity a is positive (a>0), and U, C, and D are the far upwind point, the upwind point, and the downwind point, respectively. Figure 4 shown.
[0118] In order to facilitate the description of the process, a one-dimensional convection equation is used to represent the numerical discretization of the transport equation. Specifically, in step a1, a one-dimensional convection equation is constructed, that is, equation (11):
[0119] φ t +(aφ) x =0 (11).
[0120] In step a2, the space is discretized into grid cells of uniform length I i =[x i-1 / 2 ,x i+1 / 2 ], i is the coordinate number, unit length
[0121] Then, the semi-discrete form of equation (11) can be written as:
[0122]
[0123] in, is the flux at two adjacent interfaces.
[0124] In step a3, the surface flux can be expressed in the structured grid using the “κ-format” as:
[0125]
[0126] where κ is a variable representing different linear formats.
[0127] In step a4, equation (13) can be further extended to unstructured grids:
[0128]
[0129]
[0130] In step a5, the above formula is generalized to a nonlinear flux-limited advection format:
[0131]
[0132]
[0133] Where B(p,q) is a nonlinear average function. Since B(p,q) is homogeneous, equation (16) can be expressed as:
[0134]
[0135]
[0136]
[0137] The flux limiter in equation (10) is is the influence factor of the nonlinear distribution of variables near the interface on the flux at the center of the surface. In the numerical simulation method of the second aspect of the present invention, the flux limiter in the above formula The flux limiter format disclosed in the first aspect of the present invention and having the function of satisfying the second-order accuracy TVD criterion is obtained according to the aforementioned new TVD format construction method based on the Fromm format.
[0138] The flux limiter format obtained by the new TVD format construction method based on Fromm format and satisfying the second-order accuracy TVD criterion is introduced into the flux calculation formula (10) of the numerical simulation method, so that the flux at the surface f can be obtained:
[0139] The new format uses the Fromm format with second-order accuracy in most areas, which improves stability while maintaining high accuracy. At the same time, it eliminates the poor convergence problem of the piecewise linear (PL) format due to discontinuous switching through symmetry and smoothness, and effectively avoids the poor accuracy problem of the PR format due to the limitation of the function form.
[0140] The third aspect of the present invention discloses an electronic device, comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, characterized in that when the processor executes the computer program, it can implement the new TVD format construction method based on the Fromm format disclosed above.
[0141] Numerical verification
[0142] 1. Pure convection problem
[0143] The Step profile represents the most demanding gradient change and is intended to test the ability of different formats to solve abrupt variable fronts. The Sine-Square profile has a steeper distribution and is used to evaluate the ability of different formats to handle steep gradient solutions. The governing conservation equations for pure convection problems are as follows:
[0144]
[0145] Where u and v are the velocity components in the x and y directions respectively. The velocity is in the direction of a 45° tilt from the x-axis, and the velocity components u = 1 and v = 1. Figure 5As shown in the figure, the computational domain is a two-dimensional square domain with a 60×60 structured grid. The local time step (LTS) method is used, the maximum CFL number is 0.3, the time discretization is the local Euler method, and the residual required for convergence is set to 1×10 -7 .
[0146] The Step profile boundary conditions are defined as follows:
[0147] φ(x,0)=0 0≤x≤1
[0148] φ(0,y)=1 0≤y≤1 (21);
[0149] The Sine-Square contour boundary conditions are defined as follows:
[0150] φ(x,0)=0 0≤x≤1
[0151]
[0152] In the test, the new format SSFL was compared with the high-precision format SMART. The comparison between the simulation results and the analytical solution is shown in Figure 6(a) and Figure 7(a). Whether in the pure convection problem of the Step profile or the Sine-Square profile, the numerical results of the new format are obviously closer to the analytical solution than the SMART format. As shown in Figures 6(b) and 7(b), compared with SMART, the new format SSFL requires the least time steps to reach convergence and has a faster convergence speed. In the pure convection problem of the Step profile, the time step required for SSFL to reach convergence is reduced by about 52% compared with the SMART format; in the pure convection problem of the Sine-Square profile, it is reduced by about 54%.
[0153] 2. Two-dimensional Riemann problem
[0154] The two-dimensional gas dynamics Riemann problem is a typical example of CFD numerical simulation. Its governing equation is the following two-dimensional Euler equation:
[0155]
[0156] Where ρ is density, u is velocity, p is pressure, E is total energy per unit volume, and specific heat ratio γ = 1. The example uses a 1000×1000×1 structured grid, a maximum CFL number of 0.2, a first-order Euler method (Euler), and a rhoCentralFoam solver.
[0157] The computational domain is a square with a side length of 1, and zero-order extrapolation boundary conditions are assumed. The initial conditions are arranged counterclockwise from the upper right quadrant as follows:
[0158]
[0159] Figure 8 The contour contours of different TVD formats in the two-dimensional Riemann problem are shown. It can be seen that the shock wave is well decomposed in the results of the SSFL format, the vortex structure shape is more clearly identified, and the solution remains symmetrical without obvious oscillations. This shows that compared with the Minmod, vanLeer and SMART formats, SSFL can capture reflected shock waves and contact discontinuities more accurately and stably. In addition, from the comparison of CPU running time in Table 1 below, it can be seen that in this example, the convergence speed of the new format is close to that of the well-performing Minmod and vanLeer formats, and is significantly better than the SMART format, reducing the time consumption by about 47%.
[0160] Table 1 Comparison of CPU running time of different TVD formats
[0161]
[0162] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.
[0163] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0164] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0165] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. A new TVD format construction method based on Fromm format, characterized in that: The following steps are involved: Step s1, determining a TVD criterion that satisfies second-order accuracy; Step s2, based on the determined TVD criterion that satisfies the second-order accuracy, a piecewise function of the flux limiter is constructed between partitions in a manner combining the Fromm format and the PR format, where the flux limiter is expressed as And the flux limiter function in each interval satisfies the symmetry condition Step s3, combining the piecewise functions of each interval to obtain a flux limiter format that meets the second-order accuracy TVD criterion; The step s2 comprises: Step s201, based on the determined TVD criterion satisfying the second-order accuracy, determining interval values U and V, wherein U<V, and the interval values U and V are reciprocals of each other, so that the flux limiter piecewise function in each interval satisfies the symmetry condition; Step s202, in In the region, the Fromm format function form is used as the basis, and the principle of maximizing the linear format is used to make the flux limiter use the Fromm format function with second-order accuracy to satisfy the following formula (1): in Step s203, in In the region of , the flux limiter adopts a PR type function to satisfy the following formula (2): in Step s204, to satisfy the symmetry condition, Use PR function to Construct as follows (3): By rearranging formula (3), we can get formula (4): The interval value U is 0.4, and the interval value V is 2.5; In step s3, the formula of the flux limiter format that meets the second-order accuracy TVD criterion is as follows:
2. The method for constructing a new TVD format based on Fromm format according to claim 1, characterized in that: Under the TVD criterion that satisfies the second-order accuracy, the restriction formula (5) for the flux limitation function is:
3. The method for constructing a new TVD format based on Fromm format according to claim 2, characterized in that: Based on the constraint (5), within the TVD criterion of the determined second-order accuracy, we have Therefore, the maximum M value in the range can be selected as 2, and equation (2) can be rewritten as: Step s203 also includes the step of determining the values of parameters a, b, c, and d in the PR function, including: exist At , the value of the PR format function is equal to the value of the Fromm format function, then Arrangement can be obtained formula (i): The derivative of the PR format function is expressed as the following formula (7): Based on formula (7), In the range, the slope of the Fromm format function is 0.5, which makes the PR format function At the same time, let equation (7) Then we have (4×2.5+a)-(2×2.5+c)(2×2.5 2 +2.5a+b)=0.5, and the formula (ii) is: 11.5a+5b+12.5c+2.5ac+bc=-53; and, based on Existence The relationship between , can be rearranged to obtain formula (iii): 2.5c+d=-5.25; and, in infinitely approaches 2, then we have formula (iv): a = 2c; Solving the system of equations obtained from equations (i), (ii), (iii) and (iv) yields: From this we can get In the interval, the function form of PR format is as follows:
4. The method for constructing a new TVD format based on Fromm format according to any one of claims 1 to 3, characterized in that: The TVD criterion satisfying the second-order accuracy is obtained by writing the TVD format of the second-order accuracy as a weighted average form of the central difference and the second-order upwind format.
5. A method for numerical simulation of convection-dominated problems, characterized in that: The following steps are involved: Step d1, mesh division, generating a mesh according to calculation requirements and calculation conditions; Step d2, assigning initial values, giving initial values on nodes at grid points according to initial value conditions; the initial values include initial values of density, pressure, velocity, etc.; Step d3, setting the time step, which is obtained according to the convection-dominated problem and the method used in combination with the CFL condition; Step d4, start the time advancement process of looping the following steps until the termination time required by the convection-dominated problem: the step of spatially discretizing the spatial convection term; and, after the spatial discretization is completed, the step of advancing in a time discretization format; Wherein, in the step of spatially discretizing the spatial convection term, the interface flux value is obtained by using the following formula (10): Where φ represents the interface flux, i is the coordinate number, Δx i represents the unit length, is the flux limiter; The flux limiter in equation (10) is A flux limiter format satisfying the second-order accuracy TVD criterion obtained by the new TVD format construction method based on the Fromm format according to any one of claims 1 to 4.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the computer program, it can implement the method for constructing a new TVD format based on the Fromm format according to any one of claims 1 to 4.
