Calculation method and application of fluid dynamics process parameters based on two-stream neural network

By predicting the finite difference coefficients of the upstream and downstream respectively through a dual-stream neural network and using a multi-view space fusion module, it solves the problem that the influence of the upstream and downstream nodes of the grid center point is not fully considered in the traditional method, and improves the prediction accuracy and accuracy of the fluid dynamics process. Computational efficiency.

CN114429079BActive Publication Date: 2024-09-24OCEAN UNIV OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111660445.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-09-24
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

Existing technology In the process of fluid dynamics, the traditional discretization method has low accuracy on coarse grids, high computational cost and does not fully consider the influence of upstream and downstream nodes of the grid center point, resulting in low accuracy of prediction coefficients and lack of Interpretability and generalization of information representations.

Method used

A method based on dual-stream neural networks is used to model and predict the finite difference coefficients of the upstream and downstream respectively, and the coefficients are fused through the multi-view space fusion module to refine the granularity of the physical process and improve the prediction error and accuracy.

Benefits of technology

It improves the prediction accuracy of differential coefficients, enhances the interpretability of the model and the generalization of information representation, reduces the calculation cost and speed, and achieves more accurate spatial and temporal derivative calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114429079B
    Figure CN114429079B
Patent Text Reader

Abstract

The present invention discloses a method and application for calculating fluid dynamics process parameters based on a dual-stream neural network. The method first inputs the real speed value of the Burgers equation into the dual-stream neural network of the fluid dynamics process parameter calculation model, and predicts the finite difference coefficients of the upwind direction and the downwind direction respectively; then the finite difference coefficients of the upwind direction and the downwind direction are fused by a multi-view spatial fusion module, and the finite difference coefficients at the center point are generated by combining the weight value at each point, and then the spatial derivative and the time derivative are calculated, and the speed value can be predicted by the time derivative value. The accuracy of the differential coefficient is improved by the method of the present invention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of neural network, and in particular relates to a method and application for calculating fluid dynamics process parameters based on a dual-stream neural network. Background Art

[0002] The discretization method of the dynamic equation of physical process is an important method for simulating fluid mechanics and high-energy physical phenomena. Discretization work is to replace the continuous calculation area with a series of grid nodes using discretization methods such as finite difference and finite volume to solve the problem that the partial differential equation cannot obtain an analytical solution. However, the problems faced by these traditional discretization methods are: First, they can only be discretized on fine-grained grids, and the accuracy of approximate solutions on coarse grids is not high. For example, in the finite difference method, the discrete equation can only satisfy the integral conservation in a fine grid. Second, the numerical solution is slow and costly. For example, the finite volume method, although it can satisfy the integral conservation on a coarse grid, the calculation process is extremely complicated and the calculation cost is huge.

[0003] In recent years, researchers have proposed a data-driven discretization method that uses neural networks to solve control equations, mainly for the solution process of spatial derivatives in partial differential equations. The advantage of this method is that it uses neural networks to predict the coefficient part of the finite difference, realizing an end-to-end optimization process, which not only achieves the analytical solution of the differential equation on a coarse grid, but also reduces the computational cost and speeds up the calculation. However, this method has the following problems:

[0004] First, the influence of the upstream nodes (upstream nodes refer to the positive direction of the fluid flow, assuming that the positive direction is from left to right, the node on the left of the center point is the upstream node, and vice versa) and downstream nodes on the center point of the grid is not fully considered. For example, when predicting the differential coefficient, the current method puts all nodes into the neural network for training at the same time, ignoring the influence of upstream and downstream nodes on the center point of the grid, which not only violates the idea of ​​the upwind format, but also makes the final prediction coefficient accidental, reducing the accuracy of the coefficient.

[0005] Second, it ignores the structural features between grid points and lacks interpretability. For example, the current method only uses the points on both sides of the center point for approximation, with a single constraint form, ignoring the correlation between the modeling equation and the actual physical process, which not only leads to inaccurate equation modeling, but also reduces the generalization of information representation.

[0006] 3. Redundant information makes the calculation of spatial derivatives inaccurate. The model learns redundant associations between upstream and downstream nodes, which makes the representation of spatial structural feature information inaccurate. For example, the current method is not very accurate in predicting coefficients, which not only affects the calculation accuracy of subsequent spatial derivatives, but also reduces the accuracy of temporal derivative calculations. Summary of the invention

[0007] In view of the shortcomings of the prior art, the present invention provides a multi-task based two-stream neural network partial differential equation discretization method, which models the upstream and downstream respectively to predict the finite difference coefficients, and uses a multi-perspective spatial fusion module to fuse the predicted coefficients, refine the characterization granularity of the physical process, and make the spatial structure feature information mining more comprehensive and contain richer information, thereby reducing the prediction error, improving the accuracy of the prediction coefficient, and solving the problem of low accuracy of the prediction coefficient in the prior art.

[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0009] First, the present invention provides a method for calculating fluid dynamics process parameters based on a dual-stream neural network, comprising the following steps:

[0010] Step 1: Preprocess the data input into the fluid dynamics process parameter calculation model: create the Burgers equation, select the appropriate discrete format for discretization and calculate the true velocity value;

[0011] Step 2: Input the real velocity value of the Burgers equation into the double-stream neural network of the fluid dynamics process parameter calculation model, and output the differential coefficient, wherein one branch of the double-stream neural network is used to characterize the physical information of the upwind direction to predict the finite difference coefficient of the upwind direction, and the other branch of the double-stream neural network is used to characterize the physical information of the downwind direction to predict the finite difference coefficient of the downwind direction;

[0012] Step 3: Use the multi-view spatial fusion module to fuse the finite difference coefficients of the upwind and downwind directions, and combine the weight value at each point to generate the finite difference coefficient at the center point for subsequent calculation of spatial derivatives and time derivatives;

[0013] Step 4. Combine the center point finite difference coefficients obtained in step 3 with the true value of the velocity to calculate the spatial derivative:

[0014] Step 5: Calculate the flux of a certain surface of the grid cell using the spatial derivative calculated in step 4;

[0015] Step 6: Calculate the time derivative using the flux obtained in step 5;

[0016] Step 7: Use the difference between the time derivative calculated in step 6 and the true time derivative value or the difference between the predicted speed value and the true speed value to perform back propagation to train the two-stream neural network;

[0017] Step 8: Use the time derivative value obtained in step 6 to predict the speed value at the next moment.

[0018] Preferably, in step one, the Burgers equation is first created, and then the Burgers equation is calculated using the fifth-order WENO format to obtain a high-precision true velocity value of the Burgers equation as a baseline. For the fifth-order WENO format, based on a template S with six base points, S is divided into three sub-templates {S1, S2, S3}, each sub-template has four nodes, and the differential formats of the three sub-templates are constructed respectively. The three differential values ​​are weighted averaged to obtain a total differential value, and the final velocity value is obtained by determining the ideal weight.

[0019] Preferably, in step 3, in the process of using the multi-view spatial fusion module to fuse and calculate the finite difference coefficients of the center point, the spatial structure is also used to characterize the influence of the wind direction on the predicted grid nodes to establish accuracy constraints. The specific method is:

[0020] (1) First, determine the point of the grid node to be predicted. Then, with this point as the center, select several points around it as the reference points of the model and divide them into several regions to characterize the influence of wind direction on the predicted point. For the prediction of the coefficient of a specific point, the following strategy is used for calculation. If the wind direction at a certain moment is from point A1 to point A2, then area A1 is taken as the upwind direction at this time, and area A2 is taken as the downwind direction. The same applies to other areas.

[0021] (2) In the upwind area, the two points in A1 are Taylor expanded at the center point, where the standard form of the polynomial is shown in formula (6), and the Taylor expansion form is shown in formula (7) (8). Similarly, for the downwind area, the two points in A2 are Taylor expanded at the center point (the downwind situation is not discussed here);

[0022] v i =α1v i-1 +α2v i-2 (6)

[0023]

[0024]

[0025] Multiply both sides of formula (7) and (8) by α i-1 , α i-2 , where α i-1 , α i-2 are the finite difference coefficients predicted for the two upwind points;

[0026] In order to satisfy formula (6), the following constraints with third-order accuracy can be obtained:

[0027]

[0028] In the formula, α1 is the finite difference coefficient at the first point to the left of the center point, α2 is the finite difference coefficient at the second point to the left of the center point, and v i-2 is the velocity value at the second point to the left of the center point, v i-1 is the velocity value at the first point to the left of the center point, v i is the velocity value of the grid center point to be obtained, v′ i is the first-order derivative of the velocity value at the center of the grid, v″ i is the second-order derivative of the velocity value of the grid center point, h represents the distance between the grid points, O(h 3 ) is the remainder.

[0029] Preferably, in step 3, the finite difference coefficients of the upwind direction and the downwind direction are fused by calculating the weight coefficients, and the finite difference coefficients of the upwind direction and the downwind direction are weighted according to the influence size, so that important information is focused on the coefficients with high importance, and the spatial structure feature information is fully mined, and the method is:

[0030] The similarity or correlation between the up and down wind direction coefficients predicted by the dual-stream neural network and the coefficients calculated using the traditional numerical method is calculated to obtain the weight coefficient of each coefficient, and then the coefficients are weighted and summed to obtain the attention value of the final coefficient.

[0031] Preferably, a weight is assigned to each coefficient, using Source=<α i-1 , α i-2 , α i+1 , α i+2 > and Target=<β i-1 , β i-2 , β i+1 , β i+2 >represent the predicted coefficients and the coefficients calculated by traditional numerical methods, where α i-1 , α i-2 is the finite difference coefficient predicted at two points upwind, α i+1 , α i+2 is the finite difference coefficient predicted at two points downwind, β i-1 , β i-2 is the finite difference coefficient of two upwind points calculated by traditional numerical methods, β i+1 , β i+2 is the finite difference coefficient of the two downwind points calculated by the traditional numerical method; for each weight, if (α i-1 , β i-1 )、(α i-2 , β i-2 )、(α i+1 , β i+1 )、(αi+2 , β i+2 ), β i-2 It is larger than the coefficient β calculated by other traditional numerical methods. i-1 , β i+1 , β i+2 , which means that α i-2 The importance is greater than other coefficients. The weight coefficient represents the importance of information. i-2 The assigned weight is large, indicating that this coefficient contributes greatly to the midpoint coefficient. The final finite difference coefficient calculation of the center point is shown in Formula 9:

[0032]

[0033] Among them, η1, η2, η, η4 refer to the contribution of each grid point coefficient, n and m are the coordinates of the grid points, and l is the order of the derivative.

[0034] Preferably, the method for predicting the speed value in step eight is:

[0035] a. First, the predicted coefficient is combined with the actual value of the velocity to calculate the spatial derivative value through formula (10)

[0036]

[0037] in is the finite difference coefficient of the predicted center point, l is the order of the derivative, n and m are the coordinates of the two grid points, x n represents the coordinate point, ν(x n ) represents the velocity value at that point, v(x n-m ) represents the velocity value between the two coordinate points n and m, x k Represents the accuracy of the difference;

[0038] b. Then, the spatial derivative value is calculated using formula (11) to obtain the flux J, which represents the amount of a surface that passes through per unit time.

[0039]

[0040] c. Finally, the time derivative is obtained through formula (12) (13),

[0041]

[0042]

[0043] This formula is mainly obtained by integrating the Burgers equation on a grid of unit length, then calculating using the Newton-Leibniz formula, and finally integrating the time derivative to obtain the predicted velocity value. Δx represents the displacement between the two grids n and m. and It refers to the flux value of half grid point.

[0044] The present invention also provides an application of the method for calculating fluid dynamics process parameters based on a dual-stream neural network, which is used in aerospace. The method is used to calculate the velocity value and finite difference coefficient in the Burgers equation, determine the fluid shape, and use it to calculate the wing shape.

[0045] The present invention also provides an application of the fluid dynamics process parameter calculation method based on the dual-flow neural network, which is used in the power generation process of a nuclear power plant. By converting the Burgers equation in the method into a linear homogeneous heat conduction equation, finite difference coefficients that affect the operation of the nuclear power plant unit are obtained.

[0046] The present invention also provides an application of the method for calculating fluid dynamics process parameters based on a dual-stream neural network, which is used in marine engineering. The method is used to calculate the differential coefficients of partial differential equations in wave research to calculate wave theoretical values, including wave generation, wave breaking, wave-sea body interaction, and wave-structure interaction.

[0047] Compared with the prior art, the present invention has the advantages of:

[0048] (1) The present invention designs a dual-stream neural network to predict the finite difference coefficients of the upwind direction and the downwind direction respectively, thereby better matching the different effects of the upstream and downstream of the headwind pattern on the coefficients and improving the accuracy of the differential coefficient prediction.

[0049] (2) When calculating the finite difference coefficients at the center point, the multi-perspective spatial fusion module is used to model the spatial influencing factors (construct the spatial correlation between the prediction point and other position grid points), and the accuracy constraints of the polynomials are performed. The anisotropy between points in the physical modeling process is fully considered, so that the prediction information of the center point is global, the accuracy of the coefficients and the speed of calculation are improved, and the accurate characterization of the structural characteristics is achieved.

[0050] (3) When the coefficients of the up and down wind directions are fused, the weight information is integrated, and the important information is focused on the coefficients with high importance, so that the spatial structure feature information is mined more fully and contains richer information, which overcomes the shortcomings of the single neural network in mining target information. The invention makes the features richer and the recognition rate higher, while ensuring the integrity of the physical process. This combination solves the problem of missing information in single neural network mining. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0052] Figure 1 is a flow chart of the method of the present invention;

[0053] Figure 2 This is a diagram of the fluid dynamics equation acceleration architecture of the present invention;

[0054] Figure 3 This is a schematic diagram of the fifth-order WENO format of Example 1;

[0055] Figure 4 This is the spatial structure characterization of Example 1. DETAILED DESCRIPTION

[0056] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0057] Example 1

[0058] Combination Figure 1-Figure 3 , introduces a method for calculating fluid dynamics processes based on a two-stream neural network, including the following steps:

[0059] Step 1: Preprocess the data input into the fluid dynamics process parameter calculation model: Create the Burgers equation, select the appropriate discrete format for discretization and calculate the true velocity value. Specifically:

[0060] First, create the Burgers equation, and then use the fifth-order WENO format to calculate the Burgers equation to obtain the high-precision true velocity value of the Burgers equation as a baseline. For the WENO format, the following is a detailed explanation:

[0061] The fifth-order WENO format diagram is as follows Figure 3 As shown in Figure 1, the fifth-order WENO format is based on a six-point template S, which is divided into three sub-templates {S1, S2, S3}, each with four nodes. The steps are as follows: ① Determine the grid base points: 6 base points {e-3, e-2, e-1, e, e+1, e+2}, and construct the target differential format on the base points, as shown in Formula 1.

[0062] v′ e =a1v e-3 +a2v e-2 +a3v e-1 +a4ve +a5v e+1 +a6v e+2 (1)

[0063] Where v represents the velocity value of the point, v e represents the velocity value at point e, v e-1 represents the velocity value at point e-1, v e-2 represents the velocity value at point e-2, v e+1 represents the velocity value at point e+1, v e+2 represents the velocity value at point e+2, a represents the weight during differential approximation, where a1 represents the weight value at point e-3, a2 represents the weight value at point e-2, a3 represents the weight value at point e-1, a4 represents the weight value at point e, a5 represents the weight value at point e+1, and a6 represents the weight value at point e+2.

[0064] Then, the coefficient can be uniquely determined using Taylor expansion (as shown in Formula 2)

[0065] v′ e =(-2v e-3 +15v e-2 -60v e-1 +20v e +30v e+1 -3v e+2 ) / (60Δζ) (2)

[0066] Δζ represents the position offset between points, v e is the first-order derivative of velocity at point e;

[0067] ② Divide these 6 scaffolding points into 3 groups (called templates), and calculate v′ independently for each group e Using the three template base points, we can construct an approximation v′ e The third-order accuracy difference format is shown in Formula 3.

[0068]

[0069]

[0070]

[0071] The coefficients are then obtained using Taylor expansion, as shown in Equation 4.

[0072]

[0073]

[0074]

[0075] ③ Take a weighted average of the three difference values ​​to get the total difference value, and get the final speed value by determining the ideal weight, as shown in Formula 5:

[0076]

[0077] Where v represents the velocity value of the point, ω represents the ideal weight of the differential value, ω1 is the ideal weight of the first scaffolding point, ω2 is the ideal weight of the second scaffolding point, and ω3 is the ideal weight of the third scaffolding point. is the first-order derivative of the velocity at the first pedestal point, is the first-order derivative of the velocity at the second base point, is the value of the first derivative of the velocity at the third pedestal point.

[0078] Step 2: Input the real velocity value of the Burgers equation into the two-stream neural network of the fluid dynamics process parameter calculation model, and output the differential coefficient, wherein one branch of the two-stream neural network is used to characterize the physical information of the upwind direction to predict the finite difference coefficient of the upwind direction (the finite difference coefficient of the upwind direction prediction can be expressed by α i-2 , α i-1 The other branch of the two-stream neural network is used to represent the physical information of the downwind direction to predict the finite difference coefficient of the downwind direction (the finite difference coefficient of the downwind direction prediction can be expressed by α i+1 , α i+2 express).

[0079] It should be noted here that, combined with Figure 2 As shown in the fluid dynamics equation acceleration architecture diagram, the fluid dynamics process parameter calculation model used in the present invention mainly includes three parts, namely, a dual-stream neural network part, a spatial fusion part, and a parameter calculation part. The dual-stream neural network part is used to calculate the upwind and downwind finite difference coefficients as mentioned above; the spatial fusion part includes a spatial fusion module for fusing the upwind and downwind finite difference coefficients; the parameter calculation part is used to calculate the spatial derivative, time derivative, velocity value, etc. (detailed introduction later).

[0080] Step 3: Use the multi-view spatial fusion module to fuse the finite difference coefficients of the upwind and downwind directions, and generate the finite difference coefficients at the center point by combining the weight values ​​at each point. Used for the subsequent calculation of spatial derivatives and time derivatives, where n and m are the coordinates of the grid nodes, the center point is a point between the two points, and l is the order of the derivative.

[0081] In this step three, in the process of using the multi-view spatial fusion module to fuse and calculate the finite difference coefficients of the center point, the spatial structure is also used to characterize the influence of wind direction on the predicted grid nodes, establish accuracy constraints, and combine Figure 4 The specific spatial structure representation shown is as follows:

[0082] (1) Determine the point of the grid node to be predicted, and then take this point as the center and select several points around it as the reference points of the model. In this embodiment, 8 points are selected and divided into 8 regions to characterize the influence of wind direction on the predicted point. For the prediction of the coefficient of a specific point, the following strategy is used for calculation. If the wind direction at a certain moment is from 1 to 2, then region 1 is taken as the upwind direction at this time, and region 2 is taken as the downwind direction, and the same applies to other regions.

[0083] (2) In the upwind area, the two points in 1 are Taylor expanded at the center point, where the general standard form of the polynomial is shown in formula (6), and the Taylor expansion form is shown in formula (7) (8). Similarly, for the downwind area, the two points in area 2 are Taylor expanded at the center point (the downwind situation is not discussed here);

[0084] v i =α1v i-1 +α2v i-2 (6)

[0085]

[0086]

[0087] Multiply both sides of formula (7) and (8) by α i-1 , α i-2 , where α i-1 , α i-2 are the finite difference coefficients predicted for the two upwind points;

[0088] In order to satisfy formula (6), the following constraints with third-order accuracy can be obtained:

[0089]

[0090] In the formula, α represents the finite difference coefficient, α1 is the finite difference coefficient at the first point to the left of the center point, α2 is the finite difference coefficient at the second point to the left of the center point, and v i-2 is the velocity value at the second point to the left of the center point, v i-1 is the velocity value at the first point to the left of the center point, v i is the velocity value of the grid center point to be obtained, v′ i is the first-order derivative of the velocity value at the center of the grid, v″ iis the second-order derivative of the velocity value of the grid center point, h represents the distance between the grid points, O(h 3 ) is the remainder.

[0091] In addition, it should be noted that in step 3, the finite difference coefficients of the upwind and downwind directions are fused through the calculation of weight coefficients, and the finite difference coefficients of the upwind and downwind directions are weighted according to the influence size, so that important information is focused on the coefficients with high importance, and the spatial structure feature information is fully mined. The method is:

[0092] The similarity or correlation between the up and down wind direction coefficients predicted by the dual-stream neural network and the coefficients calculated using the traditional numerical method is calculated to obtain the weight coefficient of each coefficient, and then the coefficients are weighted and summed to obtain the attention value of the final coefficient.

[0093] A weight is assigned to each coefficient, using Source=<α i-1 , α i-2 , α i+1 , α i+2 > and Target=<β i-1 , β i-2 , β i+1 , β i+2 >represent the predicted coefficients and the coefficients calculated by traditional numerical methods, where α i-1 , α i-2 is the finite difference coefficient predicted at two points upwind, α i+1 , α i+2 is the finite difference coefficient predicted at two points downwind, β i-1 , β i-2 is the finite difference coefficient of two upwind points calculated by traditional numerical methods, β i+1 , β i+2 is the finite difference coefficient of the two points downwind calculated by the traditional numerical method. For example, for each weight, the following situation may occur: (α i-1 , 0.3), (α i-2 , 0.5), (α i+1 , 0.1), (α i+2 , 0.1), which means that α i-2 The importance is greater than other coefficients. The weight coefficient represents the importance of information. i-2 The assigned weight is large, indicating that this coefficient contributes greatly to the midpoint coefficient. The final center point coefficient calculation is shown in Formula 9:

[0094]

[0095] Among them, η1, η2, η3, η refer to the contribution of each grid point coefficient, n and m are the coordinates of the grid points, and l is the order of the derivative.

[0096] Step 4: Substitute the finite difference coefficients obtained in step 3 Combined with the true value of the velocity to calculate the spatial derivative.

[0097] Step 5: Use the spatial derivative calculated in step 4 to calculate the flux of a certain surface of the grid unit (that is, the grid boundary flux).

[0098] Step 6: Use the flux obtained in step 5 to calculate the time derivative in order to calculate the velocity value.

[0099] Step 7: Use the difference between the time derivative calculated in step 6 and the true time derivative value or the difference between the predicted speed value and the true speed value to perform back propagation to train the two-stream neural network;

[0100] Step 8: Use the time derivative value obtained in step 6 to predict the speed value at the next moment.

[0101] The specific method is:

[0102] a. First, the predicted coefficient is combined with the actual value of the velocity to calculate the spatial derivative value through formula (10)

[0103]

[0104] in, is the finite difference coefficient of the predicted center point, n and m are the coordinates of the two grid points, l is the order of the derivative, and x n represents the coordinate point, v(x n ) represents the velocity value at that point, v(x n-m ) represents the speed value between two coordinate points, x j It represents the accuracy of the difference. The m in the summation formula represents that the initial point of the summation is m, and the speed v in the formula is the actual speed value.

[0105] b. Then, the spatial derivative value is calculated using formula (11) to obtain the flux J, which represents the amount of a surface that passes through per unit time.

[0106]

[0107] c. Finally, the time derivative is obtained through formula (12) (13),

[0108]

[0109]

[0110] This formula is mainly obtained by integrating the Burgers equation on a grid of unit length, then calculating using the Newton-Leibniz formula, and finally integrating the time derivative to obtain the predicted velocity value. Δx represents the displacement between the two grids n and m. and It refers to the flux value of half grid point.

[0111] In summary, the present invention:

[0112] First, the differential coefficients are predicted by fully considering the influence of the upstream and downstream nodes on the grid center point. When predicting the differential coefficients, the differential coefficients are obtained by taking the upstream node and downstream node values ​​as the input of the neural network, which improves the accuracy of the differential coefficients.

[0113] Second, by using the idea of ​​multi-perspective spatial fusion to globally model the grid points, the spatial position correlation relationship between points is fully considered, the conditional constraints on the polynomials are enhanced, the problem of single perspective is solved, and the model has better interpretability.

[0114] Third, the intrinsic relationship between speed nodes and key coefficients is fully characterized, and the redundant relationship in the training process of the neural network model is removed. The representation information of the physical process is further refined by modeling the upstream and downstream separately. The spatial fusion module used in the coefficient fusion process can improve the generalization of the model and enhance the rationality of coefficient fusion.

[0115] Example 2

[0116] This embodiment 2 provides an application of a fluid dynamics process calculation method based on a dual-stream neural network, which is implemented based on the fluid dynamics process calculation model of the present invention and the method described in embodiment 1. By inputting dynamic parameters into the fluid dynamics process calculation model, the fluid dynamic field is simulated and the transient changes of a certain spatial point can also be obtained.

[0117] Example 3

[0118] This embodiment provides a specific application of a fluid dynamics process calculation method based on a dual-stream neural network, which is used in aerospace. The method is used to calculate the velocity value and finite difference coefficients in the Burgers equation, determine the fluid shape, and use it for the research and development and design of wing shapes. At present, the application of fluid mechanics in the field of aerospace has become increasingly important, and the most obvious is the manufacture of wing shapes. There are many different shapes of aircraft wings, including a flat wing profile, which is equivalent to the profile of a kite and generates lift by the angle of attack; a bird wing profile is mostly used in early aircraft; a wing profile with an upper arch and a slightly flat lower part has particularly good aerodynamics and lift is mostly used in subsonic aircraft, etc. The shape of the wing needs to be considered based on the shape of the fluid. In general, the shape of the fluid depends on the modeling equation. We use a neural network model to calculate the modeling Burgers equation, where for the velocity value and finite difference coefficients in the Burgers equation The influence on the fluid shape is relatively large. By applying this method, not only the calculation speed is accelerated, but also the accuracy is improved, which is very important for the aerospace safety industry. Therefore, the application of the present invention to the aerospace industry is of great significance. In addition, the specific design steps of the wing shape are not the design points of the present invention, and are not repeated here. The method of the present invention can also be directly applied to the existing technology.

[0119] Example 4

[0120] This embodiment 4 provides an application of a fluid dynamics process calculation method based on a dual-flow neural network, which is used in the power generation process of a nuclear power plant. By converting the Burgers equation in this method into a linear homogeneous heat conduction equation, finite difference coefficients that affect the operation of the nuclear power plant units are obtained.

[0121] At present, the power generation process of nuclear power plants has become increasingly important. Its main power generation process is the same as that of thermal power plants, both of which are energy conversion processes from thermal energy to mechanical energy and then to electrical energy. The main difference is their heat source. Nuclear power plants mainly generate heat through nuclear fuel chain fission reactions. Usually, this process is mainly about solving partial differential equations, that is, converting the Burgers equation into a linear homogeneous heat conduction equation while obtaining the finite difference coefficients that affect the operation of nuclear power plant units. Applying the method of the present invention to the field of nuclear power not only ensures the accuracy of the model, but also greatly reduces the workload of simulation calculations, and realizes the acceleration of numerical solutions, which is of great significance for guiding the safe and reliable operation of nuclear power plant units.

[0122] Example 5

[0123] This embodiment 5 provides an application of a fluid dynamics process calculation method based on a dual-stream neural network, which is used in marine engineering. This method is used to calculate the differential coefficients of the partial differential equations in wave research, which are used to calculate wave theoretical values, including wave generation, wave breaking, wave-sea body interaction, and wave-structure interaction. The specific design process is not a design point of the present invention and will not be repeated here.

[0124] At present, ocean phenomena are complex and changeable, and difficult to predict. In recent years, the main numerical research method for the research of wave generation, wave breaking, wave-sea interaction, and wave-structure interaction in marine engineering is to establish a partial differential equation solution process based on wave theory. Since the temporal and spatial changes in the ocean field are difficult to predict, the differential coefficients of the partial differential equation are calculated through a double-stream neural network to improve the speed and accuracy of the calculation. Therefore, in terms of ocean research, this work can carry out wave research through numerical calculation, and it is also an important means to carry out the dynamic performance of ships and marine engineering structures.

[0125] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Any changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should fall within the protection scope of the present invention.

Claims

1. A method for calculating fluid dynamics process parameters based on a dual-stream neural network, characterized in that: The following steps are involved: Step 1: Preprocess the data input into the fluid dynamics process parameter calculation model: create the Burgers equation, select the appropriate discrete format for discretization and calculate the true velocity value; Step 2: Input the real velocity value of the Burgers equation into the double-stream neural network of the fluid dynamics process parameter calculation model, and output the differential coefficient, wherein one branch of the double-stream neural network is used to characterize the physical information of the upwind direction to predict the finite difference coefficient of the upwind direction, and the other branch of the double-stream neural network is used to characterize the physical information of the downwind direction to predict the finite difference coefficient of the downwind direction; Step 3: Use the multi-view spatial fusion module to fuse the finite difference coefficients of the upwind and downwind directions, and combine the weight value at each point to generate the finite difference coefficient at the center point for subsequent calculation of spatial derivatives and time derivatives; Step 4. Combine the center point finite difference coefficients obtained in step 3 with the true value of the velocity to calculate the spatial derivative: Step 5: Calculate the flux of a certain surface of the grid cell using the spatial derivative calculated in step 4; Step 6: Calculate the time derivative using the flux obtained in step 5; Step 7: Use the difference between the time derivative calculated in step 6 and the true time derivative value or the difference between the predicted speed value and the true speed value to perform back propagation to train the two-stream neural network; Step 8: Use the time derivative value obtained in step 6 to predict the speed value at the next moment.

2. The method for calculating fluid dynamics process parameters based on a dual-stream neural network according to claim 1, characterized in that: In step 1, the Burgers equation is first created, and then the fifth-order WENO format is used to calculate the Burgers equation to obtain the high-precision true velocity value of the Burgers equation as a baseline. For the fifth-order WENO format, based on a template S with six base points, S is divided into three sub-templates {S1, S2, S3}, each sub-template has four nodes, and the difference formats of the three sub-templates are constructed respectively. The weighted average of these three difference values ​​is obtained to obtain the total difference value, and the final velocity value is obtained by determining the ideal weight.

3. The method for calculating fluid dynamics process parameters based on a dual-stream neural network according to claim 1, characterized in that: In step 3, in the process of using the multi-view spatial fusion module to fuse and calculate the finite difference coefficients of the center point, the spatial structure is also used to characterize the influence of wind direction on the predicted grid nodes and establish accuracy constraints. The specific method is: (1) First, determine the point of the grid node to be predicted. Then, with this point as the center, select several points around it as the reference points of the model and divide them into several regions to characterize the influence of wind direction on the predicted point. For the prediction of the coefficient of a specific point, the following strategy is used for calculation. If the wind direction at a certain moment is from point A1 to point A2, then area A1 is taken as the upwind direction at this time, and area A2 is taken as the downwind direction. The same applies to other areas. (2) In the upwind area, the two points in A1 are Taylor expanded at the center point, where the standard form of the polynomial is shown in formula (6) and the Taylor expansion form is shown in formula (7) (8). Similarly, for the downwind area, the two points in A2 are Taylor expanded at the center point; v i =α1v i-1 +α2v i-2 (6) Multiply both sides of formula (7) and (8) by α i-1 , α i-2 , where α i-1 , α i-2 are the finite difference coefficients predicted for the two upwind points; In order to satisfy formula (6), the following constraints with third-order accuracy can be obtained: In the formula, α1 is the finite difference coefficient at the first point to the left of the center point, α2 is the finite difference coefficient at the second point to the left of the center point, and v i-2 is the velocity value at the second point to the left of the center point, v i-1 is the velocity value at the first point to the left of the center point, v i is the velocity value of the grid center point to be obtained, v' i is the first derivative of the velocity value at the center of the grid, v” i is the second-order derivative of the velocity value of the grid center point, h represents the distance between the grid points, O(h 3 ) is the remainder.

4. The method for calculating fluid dynamics process parameters based on a dual-stream neural network according to claim 1, characterized in that: In step 3, the finite difference coefficients of upwind and downwind are fused by calculating the weight coefficients. The finite difference coefficients of upwind and downwind are weighted according to the influence size, and the important information is focused on the coefficients with high importance, so as to fully explore the spatial structure feature information. The method is: The similarity or correlation between the up and down wind direction coefficients predicted by the dual-stream neural network and the coefficients calculated using the traditional numerical method is calculated to obtain the weight coefficient of each coefficient, and then the coefficients are weighted and summed to obtain the attention value of the final coefficient.

5. The method for calculating fluid dynamics process parameters based on a dual-stream neural network according to claim 4 is characterized in that: A weight is assigned to each coefficient, using Source=<α i-1 ,α i-2 ,α i+1 ,α i+2 > and Target=<β i-1 ,β i-2 ,β i+1 ,β i+2 >represent the predicted coefficients and the coefficients calculated by traditional numerical methods, where α i-1 , α i-2 is the finite difference coefficient predicted at two points upwind, α i+1 , α i+2 is the finite difference coefficient predicted at two points downwind, β i-1 , β i-2 is the finite difference coefficient of two upwind points calculated by traditional numerical methods, β i+1 , β i+2 is the finite difference coefficient of the two downwind points calculated by the traditional numerical method; for each weight, if (α i-1 , β i-1 )、(α i-2 , β i-2 )、(α i+1 , β i+1 )、(α i+2 , β i+2 ), β i-2 It is larger than the coefficient β calculated by other traditional numerical methods. i-1 , β i+1 , β i+2 , which means that α i-2 The importance is greater than other coefficients. The weight coefficient represents the importance of information. The weight assigned to αi-2 is large, indicating that this coefficient contributes greatly to the midpoint coefficient. The final finite difference coefficient calculation of the center point is shown in Formula 9: Among them, η1, η2, η, η4 refer to the contribution of each grid point coefficient, n and m are the coordinates of the grid points, and l is the order of the derivative.

6. The method for calculating fluid dynamics process parameters based on a dual-stream neural network according to any one of claims 1 to 5, characterized in that: The method for predicting the speed value in step eight is: a. First, the predicted coefficient is combined with the actual value of the velocity to calculate the spatial derivative value through formula (10) in is the finite difference coefficient of the predicted center point, l is the order of the derivative, n and m are the coordinates of the two grid points, x n represents the coordinate point, v(x n ) represents the velocity value at that point, v(x n-m ) represents the velocity value between the two coordinate points n and m, x k It represents the accuracy of the difference; b. Then, the spatial derivative value is calculated using formula (11) to obtain the flux J, which represents the amount of a surface that passes through per unit time. c. Finally, the time derivative is obtained through formula (12) (13), This formula is mainly obtained by integrating the Burgers equation on a grid of unit length, then calculating using the Newton-Leibniz formula, and finally integrating the time derivative to obtain the predicted velocity value. Δx represents the displacement between the two grids n and m. and It refers to the flux value at half grid point.

7. The application of the method for calculating fluid dynamics process parameters based on a dual-stream neural network as claimed in claim 6, characterized in that: Used in aerospace, the method is used to calculate the velocity value and finite difference coefficients in the Burgers equation, determine the fluid shape, and use it to calculate the wing shape.

8. The application of the method for calculating fluid dynamics process parameters based on a dual-stream neural network as claimed in claim 6, characterized in that: Used in the power generation process of nuclear power plants, the finite difference coefficients that affect the operation of nuclear power plant units are obtained by converting the Burgers equation in this method into a linear homogeneous heat conduction equation.

9. The application of the method for calculating fluid dynamics process parameters based on a dual-stream neural network as claimed in claim 6, characterized in that: Used in marine engineering, this method is used to calculate the differential coefficients of partial differential equations in wave research and to calculate wave theory values, including wave generation, wave breaking, wave-sea interaction, and wave-structure interaction.

Citation Information

Patent Citations

  • Physical prediction method for wind power station power based on computational fluid mechanics model

    CN102663251A

  • Motion parameter prediction method and device of fluid mechanics and storage medium

    CN112784496A

  • Method for the numerical simulation of a physical phenomenon with a preferential direction

    US20040167757A1