Shock wave detection method, device, equipment and medium for shock wave turbulence interference problem
By calculating the total enthalpy gradient change and grid size in the flow field, the shock detection factor is obtained, which solves the problem of misjudgment in shock detection in the existing technology and achieves accurate capture of the shock structure and calculation of the flow field. stability.
Patent Information
- Application Number
- CN202410748766.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing shock wave detectors are difficult to accurately capture the shock wave structure in numerical simulations of super/hypersonic flow. Small disturbances in turbulence are often misjudged as shock waves, resulting in a lack of accuracy in the flow field.
Obtain flow field data through the preset turbulence numerical simulation method, calculate the total enthalpy and its gradient changes, and obtain the first and second shock wave detection factors. Based on these factors, determine whether there is a shock wave structure, and select an appropriate numerical format for calculation. , to avoid misjudgment.
It achieves precise capture and accurate judgment of the shock wave structure in the flow field, selects an appropriate format, improves the accuracy and stability of the flow field calculation, and avoids misjudgment of turbulent disturbances.
Smart Images

Figure CN118332968B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of numerical simulation technology, and in particular to a shock wave detection method, device, equipment and medium for shock wave turbulence interference problems. Background Art
[0002] In the numerical simulation of super / hypersonic flow, shock waves seriously affect the stability of calculations and even cause the divergence of calculations. Therefore, it is necessary to accurately and efficiently capture shock waves, including the location, intensity and changes of shock waves. Especially when shock waves are strongly coupled with turbulent pulsations, conventional shock wave detectors mistakenly judge turbulent small perturbation structures as shock waves. Shock wave detectors can determine the location of shock waves in the entire flow field, determine in which areas the shock wave capture format should be used, and are the format switching switch for the entire hybrid format. Existing shock wave detector schemes are mainly divided into two categories. One category detects shock wave structures by calculating the gradient of flow variables in the flow field. When a large gradient appears in the flow field variable, it is considered to be a shock wave structure. For example, some current technical literature (such as Shu, Chi Wang. "Essentially non-oscillatory and weighted essentially non-oscillatory schemes for hyperbolic conservation laws." Institute for Computer Applications in Science and Engineering. Advanced Numerical Approximation of Nonlinear Hyperbolic Equations , vol. 1697. 1998, pp 325-432.) proposed a flow field flux gradient (i.e., sub-template smoothing factor) as a shock wave detector. When the flow field flux gradient changes significantly, it is considered that a shock wave has occurred. When there are some small disturbances in the flow field, the flow field gradient will also shake, so misjudgment often occurs. Other technical literature (such as Ducros, F. , et al. "Large-Eddy Simulation of the Shock / Turbulence Interaction." Journal of Computational Physics , vol. 152.2. 1999, pp 517-549.) proposed a shock wave structure detection method based on the ratio of vorticity and divergence. The main basis is that there will be a very strong compression process near the shock wave, and the divergence will increase significantly. When the divergence is significantly greater than the vorticity of the vortex, it is considered that there is a shock wave. This method can effectively avoid judging small disturbances in the flow field as shock wave structures. However, there is a lot of uncertainty about how much greater the divergence than the vorticity can be considered a shock wave, which makes it difficult to apply.
[0003] In summary, how to accurately capture the shock wave structure in the flow field, avoid misjudging small disturbances in the flow field as shock waves and causing loss of flow field accuracy, accurately judge the shock wave structure that may be generated at various positions in the flow field, and select a suitable shock wave capture format are technical problems that need to be solved. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a shock wave detection method, device, equipment and medium for shock wave turbulence interference problems, which can accurately capture the shock wave structure in the flow field, avoid misjudging small disturbances in the flow field as shock waves and causing loss of flow field accuracy, accurately judge the shock wave structure that may be generated at various positions in the flow field, and select a suitable shock wave capture format. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a shock wave detection method, comprising:
[0006] The grid size and corresponding flow field data of each different flow field position of the current flow field under the fixed grid are obtained by a preset turbulence numerical simulation method; the total enthalpy of the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy are calculated by using the flow field data to determine the total enthalpy gradient change of the shock wave detector;
[0007] Obtaining a first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; traversing different flow field positions of the current flow field to obtain the extreme value of the sum of the absolute values of the total enthalpy component gradients of the current flow field, and obtaining a second shock wave detection factor of the shock wave detector based on the extreme value of the sum of the absolute values of the total enthalpy component gradients;
[0008] When the first shock wave detection factor and the second shock wave detection factor meet the preset numerical conditions, it is determined that the shock wave detector recognizes the existence of a shock wave structure in the current flow field, and executes the step of using the corresponding preset numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists and other areas.
[0009] Optionally, the method of obtaining the grid size and corresponding flow field data of each different flow field position of the current flow field under a fixed grid by a preset turbulence numerical simulation method; using the flow field data to calculate the total enthalpy of the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy to determine the total enthalpy gradient change of the shock wave detector includes:
[0010] The grid size, density, streamwise velocity, normal velocity, spanwise velocity, pressure, specific heat ratio and sound speed of each different flow field position of the current flow field under a fixed grid are obtained by a preset turbulence numerical simulation method;
[0011] Calculating a first component of total enthalpy according to the specific heat ratio, the density, and the pressure, and calculating a second component of total enthalpy according to the stream velocity, the normal velocity, and the span velocity;
[0012] determining a total enthalpy, a first component gradient corresponding to the first component, and a second component gradient corresponding to the second component based on the first component and the second component;
[0013] The absolute values of the first component gradient and the second component gradient are obtained and summed to obtain the absolute value sum of the total enthalpy component gradient, and the total enthalpy gradient change of the shock detector is obtained by dividing the absolute value sum of the total enthalpy component gradient by the total enthalpy.
[0014] Optionally, determining the total enthalpy, a first component gradient corresponding to the first component, and a second component gradient corresponding to the second component based on the first component and the second component includes:
[0015] The first component and the second component are summed to obtain a total enthalpy;
[0016] The gradients of the first component and the second component in the x, y, and z directions are calculated respectively to obtain a first component gradient corresponding to the first component and a second component gradient corresponding to the second component.
[0017] Optionally, the shock wave detection method for shock wave turbulence interference problem further includes:
[0018] When any one of the first shock wave detection factor and the second shock wave detection factor does not meet the preset numerical condition, it is determined that there is no shock wave structure, and the step of calculating the current flow field using a low dissipation high resolution format is performed.
[0019] Optionally, obtaining a first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size includes:
[0020] The total enthalpy gradient change is multiplied by the grid size to obtain a first shock wave detection factor for reducing the influence of the grid size on shock wave detection.
[0021] Optionally, the obtaining the second shock wave detection factor of the shock wave detector based on the extreme value of the sum of the absolute values of the total enthalpy component gradients comprises:
[0022] The maximum value of the total enthalpy component gradient absolute value sum and the minimum value of the total enthalpy component gradient absolute value sum are divided to obtain the second shock wave detection factor of the shock wave detector.
[0023] Optionally, when the first shock wave detection factor and the second shock wave detection factor meet preset numerical conditions, it is determined that the shock wave detector recognizes that there is a shock wave structure in the current flow field, and the step of using a corresponding preset numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists and other areas includes:
[0024] When the first shock wave detection factor is greater than 0.025 and the second shock wave detection factor is greater than 30, it is determined that the shock wave detector recognizes the presence of a shock wave structure in the current flow field, and uses a robust numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists; and uses a low dissipation high-resolution format to calculate the current flow field corresponding to other areas except the area where the shock wave structure exists.
[0025] In a second aspect, the present application discloses a shock wave detection device for shock wave turbulence interference problem, comprising:
[0026] The first data acquisition module is used to obtain the grid size and corresponding flow field data of each different flow field position of the current flow field under the fixed grid by a preset turbulence numerical simulation method; the total enthalpy of the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy are calculated by using the flow field data to determine the total enthalpy gradient change of the shock wave detector;
[0027] A second data acquisition module is used to obtain a first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; traverse each different flow field position of the current flow field to obtain the extreme value of the total enthalpy component gradient absolute value sum of the current flow field, and obtain the second shock wave detection factor of the shock wave detector based on the extreme value of the total enthalpy component gradient absolute value sum;
[0028] A shock wave structure identification module is used to determine that the shock wave detector recognizes the existence of a shock wave structure in the current flow field when the first shock wave detection factor and the second shock wave detection factor meet preset numerical conditions, and execute the steps of calculating the current flow field corresponding to the area where the shock wave structure exists and other areas using the corresponding preset numerical format.
[0029] In a third aspect, the present application discloses an electronic device, comprising:
[0030] Memory, used to store computer programs;
[0031] The processor is used to execute the computer program to implement the steps of the shock wave detection method disclosed above for the shock wave turbulence interference problem.
[0032] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the shock wave detection method disclosed above for the shock wave turbulence interference problem are implemented.
[0033] It can be seen that the present application discloses a shock wave detection method for shock wave turbulence interference problems, including: obtaining the grid size and corresponding flow field data of each different flow field position of the current flow field under a fixed grid by a preset turbulence numerical simulation method; using the flow field data to calculate the total enthalpy of the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy to determine the total enthalpy gradient change of the shock wave detector; obtaining the first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; traversing each different flow field position of the current flow field to obtain the extreme value of the absolute value sum of the total enthalpy component gradient of the current flow field, and obtaining the second shock wave detection factor of the shock wave detector based on the extreme value of the absolute value sum of the total enthalpy component gradient; when the first shock wave detection factor and the second shock wave detection factor meet the preset numerical conditions, it is determined that the shock wave detector recognizes the existence of a shock wave structure in the current flow field, and executes the steps of using the corresponding preset numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists and other areas. It can be seen that the present invention obtains the first shock wave detection factor and the second shock wave detection factor by changing the total enthalpy gradient before and after the shock wave of the current flow field. The two detection factors can accurately capture the shock wave structure of the current flow field, while being independent of a specific numerical format and having a small threshold dependence, so that a suitable numerical format can be selected for flow field calculations. Furthermore, when the shock wave is strongly coupled with the turbulent pulsation, the conventional shock wave detector will not misjudge the small turbulent disturbance structure as a shock wave. The invention can be applied to the detection and calculation of shock wave structures in the problem of mutual interference between strong shock waves and turbulence. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0035] Figure 1 A flow chart of a shock wave detection method for shock wave turbulence interference problem disclosed in the present application;
[0036] Figure 2 A flow chart of a shock wave detection factor and an application method based on a total enthalpy gradient change disclosed in the present application;
[0037] Figure 3A flow chart of a method for obtaining a shock wave detection factor disclosed in the present application;
[0038] Figure 4 A flow chart of a method for applying a shock wave detector to a high-precision hybrid format HybWENO7 disclosed in this application;
[0039] FIG5( a ) is a local density contour map in a WENO7 format disclosed in the present application;
[0040] FIG5( b ) is a local density contour map in a HybWENO7 format disclosed in the present application;
[0041] Figure 6 This is a shock wave detection result diagram of double Mach reflection using HybWENO7 disclosed in this application;
[0042] Figure 7 A schematic diagram of the structure of a shock wave detection device for shock wave turbulence interference problem disclosed in the present application;
[0043] Figure 8 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. 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 making creative work are within the scope of protection of the present invention.
[0045] In the numerical simulation of super / hypersonic flow, shock waves seriously affect the stability of calculations and even cause divergence of calculations. Therefore, it is necessary to accurately and efficiently capture shock waves, including the location, intensity and changes of shock waves. Especially when shock waves are strongly coupled with turbulent pulsations, conventional shock wave detectors mistakenly judge small turbulent disturbance structures as shock waves. Shock wave detectors can determine the location of shock waves in the entire flow field, determine in which areas the shock wave capture format should be used, and are the format switching switch for the entire hybrid format. Existing shock wave detector schemes are mainly divided into two categories. One category detects shock wave structures by calculating the gradient of flow variables in the flow field. When a large gradient appears in the flow field variable, it is considered to be a shock wave structure. The other category is that when the divergence is significantly greater than the vorticity of the vortex, it is considered that there is a shock wave. This method can well avoid judging small disturbances in the flow field as shock wave structures. However, there is a lot of uncertainty about how much larger the divergence must be than the vorticity to be considered a shock wave, which causes difficulties in application.
[0046] To this end, the present invention provides a shock wave detection scheme for the problem of shock wave turbulence interference, which can accurately capture the shock wave structure in the flow field, avoid the misjudgment of small disturbances in the flow field as shock waves and cause loss of flow field accuracy, accurately judge the shock wave structures that may be generated at various positions in the flow field, and select a suitable shock wave capture format.
[0047] Reference Figure 1 As shown, an embodiment of the present invention discloses a shock wave detection method for shock wave turbulence interference problem, comprising:
[0048] Step S11: Obtain the grid size and corresponding flow field data of each different flow field position of the current flow field under a fixed grid through a preset turbulence numerical simulation method; use the flow field data to calculate the total enthalpy of the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy to determine the total enthalpy gradient change of the shock wave detector.
[0049] In this embodiment, when the airflow passes through the shock wave, the value of the total enthalpy will change significantly before and after the shock wave. Specifically: by monitoring the change in the total enthalpy gradient, the position of the shock wave can be determined. Near the shock wave, the total enthalpy gradient usually increases or decreases sharply, which can be used as a sign of the existence of the shock wave. The intensity of the shock wave can be evaluated by the amplitude of the change in the total enthalpy gradient. Stronger shock waves usually cause larger changes in the total enthalpy gradient, while weaker shock waves cause smaller changes.
[0050] In this embodiment, the grid size, density, stream velocity, normal velocity, span velocity, pressure, specific heat ratio and sound speed of each different flow field position of the current flow field under the fixed grid are obtained by a preset turbulence numerical simulation method. It can be understood that the steady / unsteady flow field data under the fixed grid is obtained by a compressible flow solver, wherein the compressible flow solver may include but is not limited to: large eddy simulation, direct numerical simulation and hybrid simulation methods and other preset turbulence numerical simulation methods. Then the fixed grid is the current flow field divided into grid units of fixed shape and size during the data simulation process, wherein the fixed grid type can be a structural grid unit. In this way, after the current flow field is selected in the fixed grid type, the current flow field can be grid divided by grid division to obtain the division result of the current flow field under the fixed grid, and then the grid size and flow field data of each different flow field position of the current flow field under the fixed grid are obtained by selecting the numerical simulation method, and the flow field data may specifically include: density, stream velocity, normal velocity, span velocity, pressure, specific heat ratio and sound speed.
[0051] In this embodiment, the first component of the total enthalpy is calculated according to the specific heat ratio, the density, and the pressure, and the second component of the total enthalpy is calculated according to the stream velocity, the normal velocity, and the span velocity. Calculate the first component of the total enthalpyH 1, among which, γ represents the specific heat ratio, ρ represents density, p Indicates pressure. Calculate the second component of the total enthalpy H 2, where u represents the stream velocity, v represents the normal velocity, and w represents the span velocity. It can be seen that after obtaining the corresponding flow field data according to the selected numerical simulation method of the current flow field after gridding, the first component and the second component of the total enthalpy in the current flow field can be obtained by performing simple calculations directly based on the obtained flow field data. The calculation procedure and calculation steps are simple, saving calculation time and calculation cost.
[0052] In this embodiment, the total enthalpy, the first component gradient corresponding to the first component, and the second component gradient corresponding to the second component are determined based on the first component and the second component; the absolute values of the first component gradient and the second component gradient are obtained and summed to obtain the total enthalpy component gradient absolute value sum, and the total enthalpy component gradient absolute value sum is divided by the total enthalpy to obtain the total enthalpy gradient change of the shock wave detector. It can be understood that the first component and the second component are summed to obtain the total enthalpy; that is, ,in, H 0 represents the total enthalpy, which is obtained by adding the first component and the second component. At the same time, the gradient changes of the first component and the second component are calculated to obtain the first gradient of the first component and the second gradient of the second component. Specifically, the gradients of the first component and the second component in the x, y, and z directions are calculated respectively to obtain the first component gradient corresponding to the first component and the second component gradient corresponding to the second component. It can be understood that through Calculate the first component H The first component gradient of 1 ,pass Calculate the second component H The second component gradient of 2 ,in, i , j , k Represent the positive unit vectors in the x, y, and z directions respectively. Then, take and The absolute value of and the second scalar , and add the two scalars to obtain the absolute value of the total enthalpy component gradient, that is, ,in, s represents the absolute value sum of the total enthalpy component gradient. Finally, the total enthalpy gradient change of the shock wave detector is obtained by dividing the absolute value sum of the total enthalpy component gradient by the total enthalpy, that is, ,in,h In this way, based on the total enthalpy gradient change before and after the shock wave, a new shock wave detector is proposed, which can accurately capture the shock wave structure in the flow field, does not rely on the specific numerical format, and has low threshold dependence.
[0053] Step S12: obtaining a first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; traversing each different flow field position of the current flow field to obtain the extreme value of the sum of the absolute values of the total enthalpy component gradients of the current flow field, and obtaining the second shock wave detection factor of the shock wave detector based on the extreme value of the sum of the absolute values of the total enthalpy component gradients.
[0054] In this embodiment, since the total enthalpy gradient change obtained in the previous step is determined based on the flow field data that does not contain grid size information, in order to reduce the problem that the total enthalpy gradient change is sensitive to the grid size, that is, to reduce the influence of the grid size on the shock wave detection, the total enthalpy gradient change is multiplied by the grid size to obtain a first shock wave detection factor for reducing the influence of the grid size on the shock wave detection. Specifically, the total enthalpy gradient change is multiplied by the grid size to obtain the first shock wave detection factor of the shock wave detector, that is, by Get the first shock wave detection factor ,in, Indicates the grid size.
[0055] In this embodiment, the maximum value of the total enthalpy component gradient absolute value sum and the minimum value of the total enthalpy component gradient absolute value sum are divided to obtain the second shock wave detection factor of the shock wave detector. It can be understood that the entire current flow field is traversed and the total enthalpy component gradient absolute value sum of all flow field positions in the current flow field is divided. s The maximum and minimum values of the total enthalpy component gradient are obtained by The minimum value of the absolute value of the total enthalpy component gradient , and then by Determining the Second Shock Detection Factor of the Shock Detector At this point, the design of the shock wave detector based on the total enthalpy gradient change of the present invention is completed. It can be seen that since the total enthalpy gradient change can provide key information about the shock wave position and intensity of the flow field, the description of the shock wave is more direct and accurate compared to other factors.
[0056] Step S13: When the first shock wave detection factor and the second shock wave detection factor meet the preset numerical conditions, it is determined that the shock wave detector recognizes the existence of a shock wave structure in the current flow field, and executes the step of using the corresponding preset numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists and other areas.
[0057] In this embodiment, when the first shock wave detection factor is greater than 0.025 and the second shock wave detection factor is greater than 30, it is determined that the shock wave detector recognizes the presence of a shock wave structure in the current flow field, and uses a robust numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists; and uses a low dissipation high-resolution format to calculate the current flow field corresponding to other areas except the area where the shock wave structure exists. It can be understood that since the first shock wave detection factor and the second shock wave detection factor are both obtained by actual measurement based on the flow field data of the current flow field, therefore, changing different flow fields and different numerical formats has a small dependence on the threshold value for judging whether the current flow field has a shock wave structure. Therefore, the preset numerical conditions proposed by the present invention are: the first shock wave detection factor is greater than 0.025, and the second shock wave detection factor is greater than 30. In this way, as long as the first shock wave detection factor generated by the total enthalpy gradient change of the current flow field is greater than 0.025, and the second shock wave detection factor is greater than 30, it can be determined that the current flow field has a shock wave structure, rather than misjudging the turbulent small disturbance structure as a shock wave, using the WENO5 format (i.e., the fifth-order WENO format, a new compact format; WENO, i.e., Weighted Essentially Non-oscillatory, i.e., weighted essentially non-oscillatory) format, Roe format (Riemann Orthogonal Expansion, Riemann orthogonal expansion), NND (Non-oscillatory and Non-free-parameter Dissipation difference The current flow field corresponding to the area where the shock wave structure exists is calculated using robust formats such as the WENO3 format (i.e., the third-order WENO format) and the dissipative difference format without fluctuations and free parameters.
[0058] In this embodiment, when any one of the first shock wave detection factor and the second shock wave detection factor does not meet the preset numerical condition, it is determined that there is no shock wave structure, and the step of calculating the current flow field using the low dissipation high resolution format is performed. It can be understood that when the first shock wave detection factor is less than or equal to 0.025 and the second shock wave detection factor is less than or equal to 30, it is considered that the two do not meet the preset numerical condition and there is no shock wave structure; when the first shock wave detection factor is less than or equal to 0.025 and the second shock wave detection factor is greater than 30, it is considered that the two do not meet the preset numerical condition and there is no shock wave structure; when the first shock wave detection factor is greater than 0.025 and the second shock wave detection factor is less than or equal to 30, it is considered that the two do not meet the preset numerical condition and there is no shock wave structure; when any of the above situations occurs, the current flow field corresponding to the area without shock wave structure is directly calculated using the low dissipation high precision format, wherein the low dissipation high precision format can be specifically a 7th order upwind format, etc.
[0059] It can be seen that if the preset numerical conditions, that is, the shock wave conditions are met, the WENO5 strong robust format is used, otherwise the high-resolution upwind format is used. It should be noted that the WENO5 strong robust format can be replaced with other formats, and the upwind format can also be replaced with other high-resolution formats. The core of the present invention is to accurately identify and judge whether there is a shock wave structure in the current flow field under the scenario of turbulent interference, and after judging whether there is a shock wave structure, the corresponding link between the two types of format flow field data calculations is realized, so that in the environment of turbulent interference, the appropriate embedded flow field calculation numerical format can be freely and accurately selected according to the actual situation in the current flow field, without directly setting a fixed single numerical format to calculate the flow field before the flow field calculation, which greatly improves the accuracy of the flow field calculation.
[0060] Reference Figure 2 As shown, the grid data used to divide the current flow field is obtained and used as a fixed grid, and then the grid size and corresponding flow field data of each different flow field position of the current flow field under the fixed grid are further obtained, and the first component of the total enthalpy is calculated by using the flow field data and combining the above-mentioned total enthalpy component determination method. H 1 and the second component H 2, then according to the first component H 1 and the second component H 2 Get their respective first component gradients and the second component gradient , and obtain the total enthalpy obtained by adding the first and second components H 0, through the first component gradient and the second component gradient and total enthalpy H 0 Further obtain the absolute value of the total enthalpy component gradient and s and the total enthalpy gradient change h . Further through the total enthalpy gradient change h The first shock wave detection factor is obtained by multiplying the grid sizes, traversing the current flow field, obtaining the maximum and minimum values of the absolute value of the total enthalpy component gradient, and obtaining the second shock wave detection factor based on the maximum and minimum values of the absolute value of the total enthalpy component gradient. Finally, the first shock wave detection factor and the second shock wave detection factor are embedded in a high-precision hybrid format for shock wave structure detection.
[0061] Reference Figure 3As shown, the determination process of the first shock wave detection factor and the second shock wave detection factor is as follows: based on the flow field data including flow field density, velocity, pressure, etc. generated by the aforementioned compressible flow solver, the first component gradient of the first component of the total enthalpy and the second component gradient of the second component are determined respectively, and then the obtained first component gradient and second component gradient are processed by taking the absolute value to obtain a scalar, and the two scalars are summed to obtain the absolute value sum of the total enthalpy component gradient, and finally the absolute value sum of the total enthalpy component gradient is divided by the total enthalpy and then multiplied by the grid size to obtain the first shock wave detection factor At the same time, according to the maximum and minimum values of the absolute value of the total enthalpy component gradient obtained by traversing the entire current flow field, the ratio of the two is calculated to obtain the second shock wave detection factor So far, through the determination process of the first shock wave detection factor and the second shock wave detection factor, the shock wave detection factor of the shock wave detector is obtained. The shock wave detection factor is embedded in the high-precision hybrid format HybWENO7 for application. The high-precision hybrid format HybWENO7 is a seventh-order linear upwind format. The linear upwind format is based on mass flow rate, and the function distribution between grid nodes and surface nodes is linear. It is used to perform accurate flow field numerical simulation calculations on the subsequent current flow field corresponding to the area of the shock wave structure after the shock wave is identified.
[0062] Reference Figure 4 As shown, the shock wave detection factor The specific process of embedding the high-precision hybrid format HybWENO7 application is as follows: First, obtain the first shock wave detection factor and the second shock detection factor Afterwards, by determining the first shock wave detection factor Is it greater than 0.025, and the second shock factor Whether it is greater than 30, the corresponding judgment result is obtained. If the judgment result is that both shock wave detection factors are greater than the preset value, the WENO5 format is selected to apply. If the judgment result is that at least one of the two shock wave detection factors is not greater than the preset value, the low dissipation seventh-order linear upwind format is selected to apply.
[0063] The density contour map, shock wave detection results and calculation time comparison of the dual Mach reflection problem with Mach number Ma=10 in two different formats are given below. In this test example, the WENO5 format is used for shock wave calculation, and the seventh-order linear upwind format is used to calculate the smooth area flow field, namely HybWENO7. Figure 5 (a) and Figure 5 (b) are both local density contour maps of dual Mach reflection, where the calculation area of this example is [2, 2.8]×[0, 0.56]. The horizontal axis x and the vertical axis y generally represent the length, width or height of the flow field, which are used to determine the position of each point in the contour map. By drawing density contour lines, the density distribution at different positions in the flow field can be clearly displayed, which helps to analyze and understand the characteristics of the flow field. Figures 5 (a) and 5 (b) show the flow field calculation results of the high-precision hybrid HybWENO7 format using the shock wave detector structure of the present invention. It can be seen that the density distribution of different positions of the flow field in Figure 5 (b) is more detailed, and the flow field resolution is obviously better than the classic WENO7 format in Figure 5 (a), which can show more flow details. In addition, the thick black lines in Figures 5 (a) and 5 (b) are caused by the dense distribution of multiple contour lines, and the thin black lines are single contour lines. Figure 6 As shown, Figure 6 The shock wave detection results of the double Mach reflection using HybWENO7 are shown in Figure 1. The calculation area of this example is [0, 3.5] × [0, 1]. The horizontal coordinate x and the vertical coordinate y generally represent the length, width or height of the flow field, which are used to determine the position of each point in the contour map. By drawing density contour lines, the density distribution at different positions in the flow field can be clearly displayed, which helps to analyze and understand the characteristics of the flow field. Therefore, the shock wave detector of the present invention can capture the shock wave of the flow field keenly and accurately. The calculation time comparison of the four formats of the double Mach reflection problem is shown in Table 1 below:
[0064] Table 1 Comparison of the calculation time of four formats for the dual-Mach reflection problem
[0065]
[0066] It can be seen that the calculation time of the high-precision hybrid format using the shock wave detector of the present invention is significantly less than that of the classic WENO7 format, and the calculation time is also greatly reduced compared to the improved WENO7Z format and WENO7PM format, saving 41.6%, 47.8% and 31.3% of the calculation time respectively. Through the analysis of the calculation results of multiple examples, it is found that the more complex the flow and the larger the grid volume, the more significant the time saving effect, which fully demonstrates the superiority of the present invention.
[0067] It can be seen that the present application discloses a shock wave detection method for shock wave turbulence interference problems, including: obtaining the grid size and corresponding flow field data of each different flow field position of the current flow field under a fixed grid by a preset turbulence numerical simulation method; using the flow field data to calculate the total enthalpy of the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy to determine the total enthalpy gradient change of the shock wave detector; obtaining the first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; traversing each different flow field position of the current flow field to obtain the extreme value of the absolute value sum of the total enthalpy component gradient of the current flow field, and obtaining the second shock wave detection factor of the shock wave detector based on the extreme value of the absolute value sum of the total enthalpy component gradient; when the first shock wave detection factor and the second shock wave detection factor meet the preset numerical conditions, it is determined that the shock wave detector recognizes the existence of a shock wave structure in the current flow field, and executes the steps of using the corresponding preset numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists and other areas. It can be seen that the present invention obtains the first shock wave detection factor and the second shock wave detection factor by changing the total enthalpy gradient before and after the shock wave of the current flow field. The two detection factors can accurately capture the shock wave structure of the current flow field, while being independent of a specific numerical format and having a small threshold dependence, so that a suitable numerical format can be selected for flow field calculations. Furthermore, when the shock wave is strongly coupled with the turbulent pulsation, the conventional shock wave detector will not misjudge the small turbulent disturbance structure as a shock wave. The invention can be applied to the detection and calculation of shock wave structures in the problem of mutual interference between strong shock waves and turbulence.
[0068] Reference Figure 7 As shown, the present invention also discloses a shock wave detection device for shock wave turbulence interference problem, comprising:
[0069] The first data acquisition module 11 is used to obtain the grid size and corresponding flow field data of each different flow field position of the current flow field under the fixed grid by a preset turbulence numerical simulation method; the total enthalpy of the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy are calculated by using the flow field data to determine the total enthalpy gradient change of the shock wave detector;
[0070] The second data acquisition module 12 is used to obtain the first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; traverse the different flow field positions of the current flow field to obtain the extreme value of the total enthalpy component gradient absolute value sum of the current flow field, and obtain the second shock wave detection factor of the shock wave detector based on the extreme value of the total enthalpy component gradient absolute value sum;
[0071] The shock wave structure identification module 13 is used to determine that the shock wave detector recognizes the existence of a shock wave structure in the current flow field when the first shock wave detection factor and the second shock wave detection factor meet the preset numerical conditions, and execute the steps of calculating the current flow field corresponding to the area where the shock wave structure exists and other areas using the corresponding preset numerical format.
[0072] It can be seen that the present application discloses obtaining the grid size and corresponding flow field data of each different flow field position of the current flow field under a fixed grid by a preset turbulence numerical simulation method; using the flow field data to calculate the total enthalpy of the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy to determine the total enthalpy gradient change of the shock wave detector; obtaining the first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; traversing each different flow field position of the current flow field to obtain the extreme value of the absolute value sum of the total enthalpy component gradient of the current flow field, and obtaining the second shock wave detection factor of the shock wave detector based on the extreme value of the absolute value sum of the total enthalpy component gradient; when the first shock wave detection factor and the second shock wave detection factor meet the preset numerical conditions, it is determined that the shock wave detector recognizes the existence of a shock wave structure in the current flow field, and executes the steps of using the corresponding preset numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists and other areas. It can be seen that the present invention obtains the first shock wave detection factor and the second shock wave detection factor by changing the total enthalpy gradient before and after the shock wave of the current flow field. The two detection factors can accurately capture the shock wave structure of the current flow field, while being independent of a specific numerical format and having a small threshold dependence, so that a suitable numerical format can be selected for flow field calculations. Furthermore, when the shock wave is strongly coupled with the turbulent pulsation, the conventional shock wave detector will not misjudge the small turbulent disturbance structure as a shock wave. The invention can be applied to the detection and calculation of shock wave structures in the problem of mutual interference between strong shock waves and turbulence.
[0073] Furthermore, the present application also discloses an electronic device. Figure 8 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0074] Figure 8 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the shock wave detection method for the shock wave turbulence interference problem disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0075] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0076] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0077] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0078] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the shock wave detection method for shock wave turbulence interference problem performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0079] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the shock wave detection method for shock wave turbulence interference problem disclosed above is implemented. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.
[0080] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0081] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly with hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory RAM (Random Access Memory), memory, read-only memory ROM (Read Only Memory), electrically programmable EPROM (Electrically Programmable Read Only Memory), electrically erasable programmable EEPROM (ElectricErasable Programmable Read Only Memory), register, hard disk, removable disk, CD-ROM (CompactDisc-Read Only Memory), or any other form of storage medium known in the technical field.
[0082] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0083] The scheme provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A shock wave detection method for shock wave turbulence interference problem, characterized in that: include: The grid size and corresponding flow field data of each different flow field position of the current flow field under a fixed grid are obtained by a preset turbulence numerical simulation method; Using the flow field data, calculate the total enthalpy at the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy to determine the total enthalpy gradient change of the shock wave detector; Obtaining a first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; Traversing various flow field positions of the current flow field to obtain an extreme value of the sum of the absolute values of the gradients of the total enthalpy components of the current flow field, and obtaining a second shock wave detection factor of the shock wave detector based on the extreme value of the sum of the absolute values of the gradients of the total enthalpy components; When the first shock wave detection factor and the second shock wave detection factor meet the preset numerical conditions, it is determined that the shock wave detector recognizes the existence of a shock wave structure in the current flow field, and the steps of calculating the current flow field corresponding to the area where the shock wave structure exists and other areas using the corresponding preset numerical format are performed; Wherein, obtaining the first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size comprises: multiplying the total enthalpy gradient change and the grid size to obtain the first shock wave detection factor for reducing the influence of the grid size on shock wave detection; The step of obtaining the second shock wave detection factor of the shock wave detector based on the extreme value of the total enthalpy component gradient absolute value sum comprises: dividing the maximum value of the total enthalpy component gradient absolute value sum by the minimum value of the total enthalpy component gradient absolute value sum to obtain the second shock wave detection factor of the shock wave detector; When the first shock wave detection factor and the second shock wave detection factor meet the preset numerical conditions, it is determined that the shock wave detector recognizes that there is a shock wave structure in the current flow field, and the steps of calculating the current flow field corresponding to the area where the shock wave structure exists and other areas using the corresponding preset numerical format are performed, including: When the first shock wave detection factor is greater than 0.025 and the second shock wave detection factor is greater than 30, it is determined that the shock wave detector recognizes the existence of a shock wave structure in the current flow field, and uses a robust numerical format to calculate the current flow field corresponding to the area where the shock wave structure exists; and uses a low dissipation high resolution format to calculate the current flow field corresponding to other areas except the area where the shock wave structure exists; When the first shock wave detection factor is less than or equal to 0.025 and the second shock wave detection factor is less than or equal to 30, or when the first shock wave detection factor is less than or equal to 0.025 and the second shock wave detection factor is greater than 30, or when the first shock wave detection factor is greater than 0.025 and the second shock wave detection factor is less than or equal to 30, there is no shock wave structure; the current flow field corresponding to the area without shock wave structure is directly calculated using the low dissipation and high precision format.
2. The shock wave detection method for shock wave turbulence interference problem according to claim 1 is characterized in that: The grid size and corresponding flow field data of each different flow field position of the current flow field under the fixed grid are obtained by using a preset turbulence numerical simulation method; The total enthalpy and the first component gradient and the second component gradient of the total enthalpy at the corresponding flow field position are calculated using the flow field data to determine the total enthalpy gradient change of the shock wave detector, including: The grid size, density, streamwise velocity, normal velocity, spanwise velocity, pressure, specific heat ratio and sound speed of each different flow field position of the current flow field under a fixed grid are obtained by a preset turbulence numerical simulation method; Calculating a first component of total enthalpy according to the specific heat ratio, the density, and the pressure, and calculating a second component of total enthalpy according to the stream velocity, the normal velocity, and the span velocity; determining a total enthalpy, a first component gradient corresponding to the first component, and a second component gradient corresponding to the second component based on the first component and the second component; The absolute values of the first component gradient and the second component gradient are obtained and summed to obtain the absolute value sum of the total enthalpy component gradient, and the total enthalpy gradient change of the shock detector is obtained by dividing the absolute value sum of the total enthalpy component gradient by the total enthalpy.
3. The shock wave detection method for shock wave turbulence interference problem according to claim 2 is characterized in that: The determining, based on the first component and the second component, a total enthalpy, a first component gradient corresponding to the first component, and a second component gradient corresponding to the second component, comprises: The first component and the second component are summed to obtain a total enthalpy; The gradients of the first component and the second component in the x, y, and z directions are calculated respectively to obtain a first component gradient corresponding to the first component and a second component gradient corresponding to the second component.
4. A shock wave detection device for shock wave turbulence interference problem, characterized in that: include: A first data acquisition module is used to obtain the grid size and corresponding flow field data of each different flow field position of the current flow field under a fixed grid by using a preset turbulence numerical simulation method; Using the flow field data, calculate the total enthalpy at the corresponding flow field position and the first component gradient of the total enthalpy and the second component gradient of the total enthalpy to determine the total enthalpy gradient change of the shock wave detector; A second data acquisition module, used for obtaining a first shock wave detection factor of the shock wave detector according to the total enthalpy gradient change and the grid size; Traversing various flow field positions of the current flow field to obtain an extreme value of the sum of the absolute values of the gradients of the total enthalpy components of the current flow field, and obtaining a second shock wave detection factor of the shock wave detector based on the extreme value of the sum of the absolute values of the gradients of the total enthalpy components; A shock wave structure identification module, used for determining that the shock wave detector identifies the existence of a shock wave structure in the current flow field when the first shock wave detection factor and the second shock wave detection factor meet a preset numerical condition, and executing the step of calculating the current flow field corresponding to the area where the shock wave structure exists and other areas using a corresponding preset numerical format; The second data acquisition module is specifically used to perform multiplication processing on the total enthalpy gradient change and the grid size to obtain a first shock wave detection factor for reducing the influence of the grid size on shock wave detection; Dividing the maximum value of the sum of the absolute values of the total enthalpy component gradients by the minimum value of the sum of the absolute values of the total enthalpy component gradients to obtain a second shock wave detection factor of the shock wave detector; The shock wave structure identification module is specifically used to determine that the shock wave detector identifies the existence of a shock wave structure in the current flow field when the first shock wave detection factor is greater than 0.025 and the second shock wave detection factor is greater than 30, and calculate the current flow field corresponding to the area where the shock wave structure exists using a robust numerical format; The current flow field corresponding to other areas except the area with shock wave structure is calculated using low dissipation and high resolution format; when the first shock wave detection factor is less than or equal to 0.025 and the second shock wave detection factor is less than or equal to 30, or when the first shock wave detection factor is less than or equal to 0.025 and the second shock wave detection factor is greater than 30, or when the first shock wave detection factor is greater than 0.025 and the second shock wave detection factor is less than or equal to 30, there is no shock wave structure; the current flow field corresponding to the area without shock wave structure is directly calculated using low dissipation and high precision format.
5. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the shock wave detection method for shock wave turbulence interference problem as described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the shock wave detection method for shock wave turbulence interference problem as described in any one of claims 1 to 3 are implemented.
