Flow field calculation acceleration convergence method and device based on machine learning

Through the flow field calculation method based on machine learning, the use of deconvolution generation network and multi-grid interpolation technology solves the problem of low efficiency of traditional flow field calculation and achieves rapid convergence and efficiency improvement of flow field calculation, especially in specific Significantly speeds up calculation steps in grid settings.

CN118709518APending Publication Date: 2024-09-27NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410613839.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Traditional flow field calculations take a long time, occupy a large amount of computing resources, and lack a method to quickly provide a reasonable initial flow field, resulting in limited improvement in flow field calculation efficiency.

Method used

A flow field calculation based on machine learning is used to accelerate the convergence method. By obtaining the characteristic parameters of the three-dimensional combustion flow field, a deconvolution generation network is used to construct a three-dimensional flow field reconstruction model, and the coarse grid flow field is predicted and reconstructed through multi-grid interpolation technology. The fine-grid flow field is used as the initial condition of the CFD simulation environment until it converges to obtain a lossless flow field.

Benefits of technology

It effectively accelerates the convergence process of flow field calculations, improves calculation efficiency, reduces initial errors, and can be combined with other methods to promote rapid convergence. Under specific settings, the calculation step acceleration ratio can be achieved by more than 2 times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709518A
    Figure CN118709518A
Patent Text Reader

Abstract

The invention relates to a flow field calculation acceleration convergence method and device based on machine learning, and the method comprises the steps: S1, obtaining the feature parameters of a to-be-predicted three-dimensional combustion flow field, and importing the feature parameters into a three-dimensional flow field reconstruction model; s2, the three-dimensional flow field reconstruction model predicts a corresponding coarse mesh three-dimensional flow field based on the characteristic parameters; s3, on the basis of a multi-grid interpolation technology, performing interpolation on the coarse grid three-dimensional flow field to reconstruct a fine grid three-dimensional flow field corresponding to the characteristic parameters; and S4, submitting the fine grid three-dimensional flow field as a continuous calculation to a CFD simulation environment for calculation until a lossless three-dimensional combustion flow field is obtained through convergence. According to the method, a high-approximation initial flow field is provided for flow field calculation in a machine learning mode, calculation convergence can be effectively accelerated, and the efficiency of flow field calculation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fluid mechanics, and in particular to a method and device for accelerating the convergence of flow field calculation based on machine learning. Background Art

[0002] With the development of computer technology and computational fluid dynamics (CFD), flow field calculation plays an increasingly important role in basic research and engineering development, and can provide a lot of information that is difficult to obtain in experiments. However, its role in various application scenarios is limited by the problems of traditional flow field calculation being time-consuming and occupying a large amount of computing resources. Therefore, targeted solutions to the above problems can greatly play the role of flow field calculation in target research and greatly accelerate the completion of target research.

[0003] At present, the time correlation method is widely used for flow field calculation, that is, an estimated flow field is given as the initial condition of the flow field calculation control equation group, and the time advancement method is used to obtain the convergent solution of the control equation group.

[0004] There are generally two methods to accelerate the convergence of flow field calculations: one is to improve the numerical algorithm in the time advancement process to eliminate errors as quickly as possible; the other method is to give a reasonable initial flow field as the initial condition for numerical calculations. The first method of accelerating convergence is currently widely used, that is, an improved numerical algorithm that aims to eliminate the initial error as quickly as possible, such as implicit algorithms, local time step methods, and multiple grid methods. Since such methods are mainly aimed at eliminating initial errors, their acceleration effects are limited by the size of the initial errors, and the emergence of various improved numerical algorithms has been able to achieve better error elimination in flow field calculations, while methods that can quickly provide a reasonable initial flow field have not yet been proposed, which has led to a bottleneck in the improvement of the efficiency of traditional flow field calculations. Therefore, how to quickly give a reasonable initial flow field has become the key to further improving the efficiency of flow field calculations. Summary of the invention

[0005] The object of the present invention is to provide a method and device for accelerating the convergence of flow field calculation based on machine learning.

[0006] To achieve the above-mentioned object of the invention, the present invention provides a method for accelerating the convergence of flow field calculation based on machine learning, comprising the following steps:

[0007] S1. Obtaining characteristic parameters of the three-dimensional combustion flow field to be predicted, and importing the characteristic parameters into the three-dimensional flow field reconstruction model;

[0008] S2. The three-dimensional flow field reconstruction model predicts the corresponding coarse grid three-dimensional flow field based on the characteristic parameters;

[0009] S3. Based on the multi-grid interpolation technology, the coarse grid three-dimensional flow field is interpolated to reconstruct a fine grid three-dimensional flow field corresponding to the characteristic parameters;

[0010] S4. Submitting the fine grid three-dimensional flow field as a continued calculation to the CFD simulation environment for calculation until convergence to obtain a lossless three-dimensional combustion flow field.

[0011] According to one aspect of the present invention, the three-dimensional flow field reconstruction model is constructed by using a deconvolution generative network or a generative adversarial network based on a deconvolution generative network.

[0012] According to one aspect of the present invention, the deconvolution generation network includes: an input layer, a deconvolution layer, a convolution layer, a fully connected layer and an output layer;

[0013] The deconvolution layer includes: a first deconvolution layer, a second deconvolution layer, a third deconvolution layer, a fourth deconvolution layer, a fifth deconvolution layer and a sixth deconvolution layer connected in sequence;

[0014] The convolutional layer includes: a first convolutional layer, a second convolutional layer and a third convolutional layer connected in sequence;

[0015] The input layer is connected to the first deconvolution layer;

[0016] The sixth deconvolution layer is connected to the first convolution layer;

[0017] The third convolutional layer is connected to the fully connected layer;

[0018] The fully connected layer is connected to the output layer.

[0019] According to one aspect of the present invention, the deconvolution generation network is trained using the following steps, which include:

[0020] Determine a background grid for interpolation reconstruction of the fine grid three-dimensional flow field; wherein the background grid is a coarse grid, and the background grid surrounds the fine grid three-dimensional flow field;

[0021] Obtaining fine-grid three-dimensional flow field samples under each characteristic parameter, and using a multi-grid interpolation technique to interpolate the fine-grid three-dimensional flow field samples under each characteristic parameter onto the same set of background grids, so as to generate coarse-grid three-dimensional flow field samples corresponding to the fine-grid three-dimensional flow field samples;

[0022] The coarse grid three-dimensional flow field samples obtained after interpolation and the corresponding characteristic parameters are used as the initial data set for training the deconvolution generation network, and the initial data set is grouped into a training set and a test set;

[0023] Establishing the deconvolution generation network, and training the deconvolution generation network with the training set;

[0024] The trained deconvolution generation network is tested based on the test set, and if the test result meets the preset conditions, the training of the deconvolution generation network is completed.

[0025] According to one aspect of the present invention, the step of using a multi-grid interpolation technique to interpolate the fine grid three-dimensional flow field samples under each characteristic parameter onto the same set of background grids to generate coarse grid three-dimensional flow field samples corresponding to the fine grid three-dimensional flow field samples includes:

[0026] Solving the corresponding inclusion relationship between the body center of the original grid boundary unit in the fine grid three-dimensional flow field sample and the background grid unit of the background grid by a vector method, and determining the corresponding relationship between the body center of the original grid boundary unit and the background grid unit;

[0027] Based on the corresponding relationship, the relevant information on the original grid of the fine grid three-dimensional flow field sample is interpolated to the background grid unit through the inverse distance weighted method, wherein the relevant information includes: flow field pressure, flow field temperature, fluid velocity, fluid density, and fluid composition.

[0028] According to one aspect of the present invention, the step of solving the corresponding inclusion relationship between the body center of the original grid boundary unit in the fine grid three-dimensional flow field sample and the background grid unit of the background grid by a vector method, and determining the corresponding relationship between the body center of the original grid boundary unit and the background grid unit includes:

[0029] Assume that the coordinates (x p ,y p ,z p );

[0030] Assume that the midpoint N of each face in the background grid unit i The coordinates (x i ,y i ,z i ), and the normal unit vectors of each face in the background grid unit

[0031] A judgment formula for judging the corresponding relationship is obtained based on the center of the original grid boundary unit, the midpoint of each face in the background grid unit, and the normal unit vector, wherein the judgment formula is expressed as:

[0032]

[0033] The corresponding relationship between the center of the original grid boundary unit and the background grid unit is determined based on the judgment formula, wherein if the judgment formula values ​​of each face in the background grid unit are greater than 0, it is determined that the center of the original grid boundary unit is in the background grid unit.

[0034] According to one aspect of the present invention, in the step of interpolating the relevant information on the original grid of the fine grid three-dimensional flow field sample to the background grid unit based on the corresponding relationship and by using the inverse distance weighted method, the interpolation formula for interpolating the relevant information on the original grid to the background grid unit is:

[0035]

[0036] Among them, H O is the value of the background grid cell after interpolation, h n is the value of the relevant information on the original grid, is the weight, whose value is the inverse of the distance.

[0037] To achieve the above-mentioned object of the invention, the present invention provides a device for the aforementioned flow field calculation accelerated convergence method, comprising: a CFD simulation module, a first flow field reconstruction module and a second flow field reconstruction module;

[0038] The CFD simulation module is connected to the first flow field reconstruction module and the second flow field reconstruction module respectively;

[0039] The first flow field reconstruction module is connected to the second flow field reconstruction module;

[0040] The CFD simulation module is used to obtain characteristic parameters of the three-dimensional combustion flow field to be predicted, and import the characteristic parameters into the first flow field reconstruction module;

[0041] The first flow field reconstruction module predicts a coarse grid three-dimensional flow field corresponding to the characteristic parameters based on a preset three-dimensional flow field reconstruction model and the characteristic parameters;

[0042] The second flow field reconstruction module interpolates the coarse grid three-dimensional flow field based on the multi-grid interpolation technology to reconstruct a fine grid three-dimensional flow field corresponding to the characteristic parameters, and the second flow field reconstruction module imports the fine grid three-dimensional flow field into the CFD simulation module, and the CFD simulation module continues to calculate based on the fine grid three-dimensional flow field until convergence to obtain a lossless three-dimensional combustion flow field.

[0043] According to a solution of the present invention, this solution aims at the problem of large-scale flow field calculation. With existing or calculated similar or close flow fields as data sets, a three-dimensional flow field reconstruction model is constructed and trained. Based on the three-dimensional flow field reconstruction model, the characteristic parameters of the three-dimensional combustion flow field to be predicted are imported to obtain the corresponding coarse-grid three-dimensional flow field and reconstructed through multiple grid interpolation to obtain the corresponding fine-grid three-dimensional flow field (i.e., approximate flow field). The approximate flow field is then submitted to the CFD calculation platform for further calculation to obtain a converged lossless flow field under the characteristic parameters.

[0044] According to a solution of the present invention, the present invention uses a machine learning method to provide a high-approximation initial flow field for flow field calculation, which can effectively accelerate the calculation convergence and improve the efficiency of flow field calculation.

[0045] According to a scheme of the present invention, the present invention can effectively reduce the initial error of flow field calculation by reconstructing the first fine grid three-dimensional flow field prediction to a coarse grid three-dimensional flow field, and then interpolating the coarse grid three-dimensional flow field reconstruction to a second fine grid three-dimensional flow field. This can not only effectively promote the rapid convergence of flow field calculation, but also can be combined with other methods to promote the rapid convergence of calculated flow fields.

[0046] According to a solution of the present invention, the present invention can achieve the prediction and generation of three-dimensional flow fields of different coarse grids by flexibly setting different background grids, which can effectively improve the overall calculation efficiency of the present invention.

[0047] According to one solution of the present invention, when the background grid is set as a cylindrical grid with a constant cross-section, the setting form of the background grid is simple and the grid scale is small, which can achieve a convergence calculation step acceleration ratio of more than 2 times and has an excellent accelerated convergence effect.

[0048] According to a solution of the present invention, the present invention can set the background grid to a cylindrical grid that partially increases radially. This type of background grid can generate a density distribution that is closer to the actual flow field during the calculation process, which is more beneficial to improving the calculation accuracy of the calculation process. At the same time, it can achieve a convergence calculation step acceleration ratio of more than 3 times, and has a better accelerated convergence effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a flowchart schematically showing a method for accelerating convergence of flow field calculation according to an embodiment of the present invention;

[0050] Figure 2 is a structural diagram schematically showing a deconvolution generation network according to an embodiment of the present invention;

[0051] Figure 3 is a structural diagram schematically showing a background grid according to an embodiment of the present invention;

[0052] Figure 4 is a structural diagram schematically showing a background grid according to another embodiment of the present invention;

[0053] Figure 5 It is a schematic representation Figure 4 The structural diagram of a single curved mesh of the background mesh;

[0054] Figure 6 is a schematic diagram showing the background grid density distribution of Example 1;

[0055] Figure 7 is a schematic diagram showing the background grid pressure distribution of Example 1;

[0056] Figure 8 is a schematic diagram showing the temperature distribution of the background grid of Example 1;

[0057] Fig. 9 is a diagram schematically showing the density distribution of the second fine grid three-dimensional flow field of Example 1;

[0058] Fig.10 is a diagram schematically showing the pressure distribution of the second fine grid three-dimensional flow field of Example 1;

[0059] Fig.11 is a diagram schematically showing the temperature distribution of the second fine grid three-dimensional flow field of Example 1;

[0060] Fig.12 is a schematic representation of the outlet mass flow error curve of the continued calculation based on the second fine grid three-dimensional flow field and the normal calculation based on the first fine grid three-dimensional flow field in Example 1;

[0061] Fig.13 is a schematic representation of the outlet mass flow field residual curve of the continued calculation based on the second fine grid three-dimensional flow field and the normal calculation based on the first fine grid three-dimensional flow field in Example 1;

[0062] Fig.14 Schematically represents the outlet mass flow rate curve of the continued calculation based on the second fine grid three-dimensional flow field and the normal calculation based on the first fine grid three-dimensional flow field in Example 1;

[0063] Fig.15 is a schematic diagram showing a density distribution diagram after normal calculation based on the first fine grid three-dimensional flow field in Example 1;

[0064] Fig.16 is a schematic diagram showing the convergence density distribution diagram after the continued calculation based on the second fine grid three-dimensional flow field in Example 1;

[0065] Fig.17is a schematic diagram showing the pressure distribution after normal calculation based on the first fine grid three-dimensional flow field in Example 1;

[0066] Fig.18 is a schematic diagram showing the converged pressure distribution diagram after the subsequent calculation based on the second fine grid three-dimensional flow field in Example 1;

[0067] Fig.19 is a diagram schematically showing the temperature distribution after normal calculation based on the first fine grid three-dimensional flow field in Example 1;

[0068] Fig. 20 It is a schematic diagram showing the convergence temperature distribution diagram after the continued calculation based on the second fine grid three-dimensional flow field in Example 1. DETAILED DESCRIPTION

[0069] 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 are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0070] When describing the embodiments of the present invention, the orientation or positional relationship expressed by the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or positional relationship shown in the relevant drawings and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the above terms should not be understood as limiting the present invention.

[0071] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. The embodiments cannot be described one by one here, but the embodiments of the present invention are not therefore limited to the following embodiments.

[0072] like Figure 1 As shown, according to one embodiment of the present invention, a method for accelerating convergence of flow field calculation based on machine learning of the present invention comprises the following steps:

[0073] S1. Obtain characteristic parameters of the three-dimensional combustion flow field to be predicted, and import the characteristic parameters into the three-dimensional flow field reconstruction model;

[0074] S2. The three-dimensional flow field reconstruction model predicts the corresponding coarse grid three-dimensional flow field based on the characteristic parameters;

[0075] S3. Based on the multi-grid interpolation technology, the coarse grid three-dimensional flow field is interpolated to reconstruct the fine grid three-dimensional flow field corresponding to the characteristic parameters;

[0076] S4. Submit the fine grid three-dimensional flow field as a continued calculation to the CFD simulation environment for calculation until convergence to obtain a lossless three-dimensional combustion flow field.

[0077] like Figure 1 As shown, according to one embodiment of the present invention, in step S1, the characteristic parameters of the three-dimensional combustion flow field to be predicted are obtained, and the characteristic parameters are imported into the three-dimensional flow field reconstruction model. The characteristic parameters of the three-dimensional combustion flow field to be predicted can be calculated based on the CFD simulation software SimuHAP. Further, based on the obtained characteristic parameters, they can be imported into the three-dimensional flow field reconstruction model to predict the coarse grid three-dimensional flow field through the three-dimensional flow field reconstruction model. In this embodiment, the characteristic parameters refer to the design parameters of the engine configuration, such as the length L of the upstream section of the cavity, the difference P between the leading edge radius of the cavity and the inlet radius, the depth D of the cavity, and the distance S between the fuel jet and the cavity.

[0078] like Figure 2As shown, according to one embodiment of the present invention, the three-dimensional flow field reconstruction model is constructed using a deconvolution generative network or a generative adversarial network based on the deconvolution generative network. In this embodiment, the deconvolution generative network includes: an input layer, a deconvolution layer, a convolution layer, a fully connected layer, and an output layer; wherein the input layer, the deconvolution layer, the convolution layer, the fully connected layer, and the output layer are sequentially connected, wherein the input layer receives the first fine grid three-dimensional flow field imported, and then the three-dimensional flow field reconstruction model performs a series of processing on the first grid three-dimensional flow field to obtain the required coarse grid three-dimensional flow field. In this embodiment, the deconvolution layer is provided with six layers, including: the first deconvolution layer, the second deconvolution layer, the third deconvolution layer, the fourth deconvolution layer, the fifth deconvolution layer and the sixth deconvolution layer connected in sequence; wherein the six deconvolution layers perform data expansion on the input feature quantity, each layer includes an upsampling and deconvolution operation, and the upsampling operation of each layer gradually expands 2×2 to 4×4, 8×8, 16×16, 32×32, 64×64 and finally 128×128, and the deconvolution fills the expanded image content. Further, the convolution layer is provided with three layers, including: the first convolution layer, the second convolution layer and the third convolution layer connected in sequence; wherein, in order to improve the expression ability and generalization of the network structure, three convolution layers are connected after the six deconvolution layers, and these three convolution layers only extract data features without changing the size of the data volume. Furthermore, the input layer is connected to the first deconvolution layer; the sixth deconvolution layer is connected to the first convolution layer. In the present embodiment, a fully connected layer is connected after the convolution layer, that is, the third convolution layer is connected to the fully connected layer; this is because the final output parameter of the deconvolution generation network depends on the number of coarse grid units, and the division of the coarse grid is different according to the actual situation, and thus the final grid scale is uncertain, so it is impossible to adapt the amount of data output by the convolution layer, so a fully connected layer is used to connect to the last convolution layer. In addition, the fully connected layer provided also helps to improve the expressiveness and generalization of the grid structure. In the present embodiment, the deconvolution layer, the convolution layer and the fully connected layer use LeakyReLU as the activation function, which can keep the network structure responsive to negative values. In the present embodiment, the fully connected layer is connected to the output layer.

[0079] In this embodiment, the mean square error (MSE) between the output value and the target value in the deconvolution generation network is used as the network loss function, and finally the Adam optimizer is used to self-adjust the parameters of the deconvolution layer to minimize the loss.

[0080] In this embodiment, the input and output parameters of the input layer, the deconvolution layer, the convolution layer, the fully connected layer, and the output layer are summarized in Table 1 for representation.

[0081] Table 1

[0082]

[0083]

[0084] According to another embodiment of the present invention, the three-dimensional flow field reconstruction model is constructed using a generative adversarial network based on a deconvolution generative network, wherein the specific structure of the deconvolution generative network is consistent with the above. In this embodiment, the three-dimensional flow field reconstruction model also includes: a discriminant network; wherein the discriminant network is implemented using an existing network structure, which will not be described in detail here.

[0085] According to one embodiment of the present invention, the deconvolution generation network is trained using the following steps, which include:

[0086] Determine a background grid for interpolation reconstruction of the fine grid three-dimensional flow field; wherein the background grid is a coarse grid, and the background grid surrounds the fine grid three-dimensional flow field; see Figure 3 In this embodiment, the background grid is a cylindrical grid; the original configuration of the engine is taken as an example with the design parameters of the upstream section length of the cavity L = 298.72 mm, the difference between the leading edge radius of the cavity and the inlet radius P = 4.44 mm, the cavity depth D = 10.46 mm, and the distance between the fuel jet and the cavity S = 24.11 mm, see Figure 3 The area in the middle is the original configuration of the engine, and its grid size is 31,200; the cylindrical area (i.e., cylindrical grid) surrounding the middle area (original configuration of the engine) is the background grid, and its grid size is 64,000, among which the grid distribution in the flow direction is uniform.

[0087] See also Figure 4 and Figure 5 In another embodiment, the background grid is a cylindrical grid that is partially enlarged in the radial direction; wherein the original engine configuration is taken as an example with the design parameters of the upstream section length of the cavity L = 286.76mm, the difference between the leading edge radius of the cavity and the inlet radius P = 0.23mm, the cavity depth D = 8.89mm, and the distance between the fuel jet and the cavity S = 31.95mm, and the design domain of the original engine configuration is a circumferentially symmetrical structure including 16 nozzle holes. See Figure 5 , the area in the middle is the original configuration of the engine, and the arc surface grid (the original configuration of the engine) surrounding the middle area is an equal part of the background grid. Specifically, the equally divided arc surface grids are first constructed based on the nozzle position of the original configuration of the engine, and then the circular array is performed based on the equally divided arc surface grids to complete the construction of the entire background grid; wherein, the arc surface grids are constructed in a manner that each arc surface grid corresponds to a nozzle, that is, each arc surface grid is one sixteenth of the entire background grid, wherein the number of arc surface grids is 67060, and the grid scale of the complete background grid is 1072960. See Figure 4, the area in the middle position is the original configuration of the engine mentioned above; and the cylindrical area (i.e., cylindrical grid) surrounding the middle area (original configuration of the engine) and enlarged in the radial direction is the background grid. In this embodiment, the background grid is partially enlarged in the radial direction so that it can become a flow channel-like shape, and has a cavity-like structure in the flow direction, which includes all the design spaces of the cavity and the nozzle. In this embodiment, the grid distribution in the flow direction is uniform. It should be noted that the size of each arc surface grid can be adjusted according to the number of corresponding nozzles. For example, each arc surface grid corresponds to two nozzles, and each arc surface grid is one eighth of the entire background grid.

[0088] Obtain fine grid three-dimensional flow field samples under each characteristic parameter, and use multi-grid interpolation technology to interpolate the fine grid three-dimensional flow field samples under each characteristic parameter onto the same set of background grids to generate coarse grid three-dimensional flow field samples corresponding to the fine grid three-dimensional flow field samples; in this embodiment, the fine grid three-dimensional flow field samples under each characteristic parameter are calculated using CFD simulation software SimuHAP. In this embodiment, in the multi-grid interpolation technology, two sets of grids, background grids and original grids, are included, and the grids are interconnected through programs, including finding point-to-unit relationships and interpolation. Among them, the background grid has been obtained based on the above steps, and the original grid is the fine grid three-dimensional flow field sample under each characteristic parameter. In this embodiment, the multi-grid interpolation technology is used to interpolate the fine grid three-dimensional flow field samples under each characteristic parameter onto the same set of background grids to generate coarse grid three-dimensional flow field samples corresponding to the fine grid three-dimensional flow field samples, including:

[0089] The corresponding inclusion relationship between the center of the original grid boundary unit and the background grid unit in the fine grid three-dimensional flow field sample is solved by the vector method, and the corresponding relationship between the center of the original grid boundary unit and the background grid unit is determined.

[0090] Based on the corresponding relationship and through the inverse distance weighted method, the relevant information on the original grid of the fine grid three-dimensional flow field sample is interpolated to the background grid unit, wherein the relevant information includes: flow field pressure, flow field temperature, fluid velocity, fluid density, and fluid composition.

[0091] The coarse grid three-dimensional flow field samples obtained after interpolation and the corresponding characteristic parameters are used as the initial data set for training the deconvolution generation network, and the initial data set is grouped into a training set and a test set. In this embodiment, the grouping ratio of the training set and the test set is divided according to a preset ratio, for example, the training set accounts for 70% and the test set accounts for 30%.

[0092] A deconvolutional generative network is established and trained using the training set.

[0093] The trained deconvolutional network is tested based on the test set. If the test result meets the preset conditions, the training of the deconvolutional network is completed.

[0094] According to an embodiment of the present invention, the step of solving the corresponding inclusion relationship between the body center of the original grid boundary unit and the background grid unit of the background grid in the fine grid three-dimensional flow field sample by a vector method, and determining the corresponding relationship between the body center of the original grid boundary unit and the background grid unit includes:

[0095] Assume that the coordinates of the center P of the original mesh boundary element (x p ,y p ,z p );

[0096] Assume that the midpoints N of each face in the background grid cell are i The coordinates (x i ,y i ,z i ), and the normal unit vectors of each face in the background grid cell

[0097] The judgment formula for judging the corresponding relationship is obtained based on the center of the original grid boundary unit, the midpoint of each face in the background grid unit, and the normal unit vector, where the judgment formula is expressed as:

[0098]

[0099] The corresponding relationship between the original grid boundary unit center and the background grid unit is determined based on the judgment formula, wherein if the judgment formula values ​​of each face in the background grid unit are greater than 0, it is determined that the original grid boundary unit center is in the background grid unit.

[0100] According to an embodiment of the present invention, in the step of interpolating the relevant information on the original grid of the fine grid three-dimensional flow field sample to the background grid unit based on the corresponding relationship and by the inverse distance weighted method, the interpolation formula for interpolating the relevant information on the original grid to the background grid unit is:

[0101]

[0102] Among them, H O is the value of the background grid cell after interpolation, h n is the value of the relevant information on the original grid, is the weight, whose value is the inverse of the distance.

[0103] According to one embodiment of the present invention, in step S2, in the step in which the three-dimensional flow field reconstruction model predicts the corresponding coarse-grid three-dimensional flow field based on the characteristic parameters, the three-dimensional flow field reconstruction model obtained based on the aforementioned steps can predict the corresponding coarse-grid three-dimensional flow field reconstructed by interpolation on the background grid based on the characteristic parameters of the three-dimensional combustion flow field to be predicted.

[0104] According to one embodiment of the present invention, in step S3, based on the multi-grid interpolation technology, the coarse grid three-dimensional flow field is interpolated and reconstructed into a fine grid three-dimensional flow field corresponding to the characteristic parameters; in this embodiment, the process of interpolating the coarse grid three-dimensional flow field to the fine grid three-dimensional flow field is the inverse process of interpolating the fine grid three-dimensional flow field to the coarse grid three-dimensional flow field; specifically, the process of interpolating the fine grid three-dimensional flow field to the background grid to form the coarse grid three-dimensional flow field is to find the fine grid units in the fine grid three-dimensional flow field and the corresponding coarse grid units in the background grid, and interpolate the found fine grid units to the corresponding coarse grid units, and the process of interpolating the coarse grid three-dimensional flow field to the fine grid three-dimensional flow field is to find the coarse grid units and other adjacent coarse grid units (taking a hexahedron as an example, a total of seven units) in the background grid that contain the original fine grid units, and then interpolate the found coarse grid units to the original fine grid three-dimensional flow field to obtain the required three-dimensional combustion flow field to be predicted, that is, the fine grid three-dimensional flow field corresponding to the characteristic parameters of the three-dimensional combustion flow field to be predicted.

[0105] According to an embodiment of the present invention, in step S4, the fine grid three-dimensional flow field is submitted to the CFD simulation environment as a continued calculation for calculation until convergence to obtain a lossless three-dimensional combustion flow field.

[0106] According to one embodiment of the present invention, the present invention provides a device using the aforementioned flow field calculation accelerated convergence method, including: a CFD simulation module, a first flow field reconstruction module and a second flow field reconstruction module; in this embodiment, the CFD simulation module is connected to the first flow field reconstruction module and the second flow field reconstruction module respectively; the first flow field reconstruction module is connected to the second flow field reconstruction module. In this embodiment, the CFD simulation module is used to obtain the characteristic parameters of the three-dimensional combustion flow field to be predicted, and import the characteristic parameters into the first flow field reconstruction module; the first flow field reconstruction module predicts the coarse grid three-dimensional flow field corresponding to the characteristic parameters based on the preset three-dimensional flow field reconstruction model and characteristic parameters; the second flow field reconstruction module interpolates the coarse grid three-dimensional flow field based on the multi-grid interpolation technology to reconstruct the fine grid three-dimensional flow field corresponding to the characteristic parameters, and the second flow field reconstruction module imports the fine grid three-dimensional flow field into the CFD simulation module, and the CFD simulation module continues to calculate based on the fine grid three-dimensional flow field until convergence to obtain a lossless three-dimensional combustion flow field.

[0107] In order to further illustrate the effect of this scheme, an example is given to illustrate this scheme.

[0108] Example 1

[0109] In this embodiment, the original configuration of the engine is calculated based on the CFD simulation software SimuHAP, wherein the original configuration of the engine is taken as an example with the design parameters of the upstream section length of the cavity L=201.44mm, the difference between the leading edge radius of the cavity and the inlet radius P=1.41mm, the cavity depth D=9.16mm, and the distance between the fuel jet and the cavity S=44.03mm, wherein the design domain of the original configuration of the engine is a circumferentially symmetrical structure including 16 nozzles. In this embodiment, the background grid uses a cylindrical grid that is partially enlarged in the radial direction, and the background grid includes 16 equally divided arc surface grids.

[0110] In this embodiment, the geometric parameters of the original configuration of the engine are imported into the trained three-dimensional flow field reconstruction model, thereby obtaining the following Figure 6 , Figure 7 , Figure 8 The predicted coarse-grid three-dimensional flow field (taking density, pressure and temperature fields as examples) is shown in FIG. 1 , and then the coarse-grid three-dimensional flow field predicted by the three-dimensional flow field reconstruction model is interpolated to the following figure by multi-grid interpolation technology. Fig. 9 , Fig.10 , Fig.11 The fine-grid three-dimensional flow field. It can be seen from the above flow field that the flow field predicted by the three-dimensional flow field reconstruction model has the phenomenon of local flow field dispersion, which is caused by the combined effect of grid quality, interpolation error and neural grid error. The fine-grid three-dimensional flow field predicted above is submitted as a continuation file for further calculation. The outlet mass flow error curve, outlet mass flow residual curve and mass flow field curve of the continuation and normal calculation are shown as follows: Fig.12 , Fig.13 and Fig.14 As shown, the flow fields after the calculation convergence are as follows Fig.15 , Fig.16 , Fig.17 , Fig.18 , Fig.19 and Fig. 20 As shown. Comparing the results of the continued calculation and the normal calculation, it can be seen that the flow field after the continued calculation and the normal calculation converge is basically the same, and the outlet mass flow rate converges to the same value. In addition, the calculation time of the traditional method is 25627.7s, and the calculation time of the intelligent reconstruction is 7368.8s, and the intelligent acceleration ratio is 3.48 times.

[0111] The above contents are merely examples of specific solutions of the present invention. For devices and structures not described in detail therein, it should be understood that they can be implemented by adopting general devices and general methods available in the art.

[0112] The above is only one solution of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for accelerating convergence of flow field calculation based on machine learning, characterized in that: The following steps are involved: S1. Obtaining characteristic parameters of the three-dimensional combustion flow field to be predicted, and importing the characteristic parameters into the three-dimensional flow field reconstruction model; S2. The three-dimensional flow field reconstruction model predicts the corresponding coarse grid three-dimensional flow field based on the characteristic parameters; S3. Based on the multi-grid interpolation technology, the coarse grid three-dimensional flow field is interpolated to reconstruct a fine grid three-dimensional flow field corresponding to the characteristic parameters; S4. Submitting the fine grid three-dimensional flow field as a continued calculation to the CFD simulation environment for calculation until convergence to obtain a lossless three-dimensional combustion flow field.

2. The method for accelerating convergence of flow field calculation according to claim 1, characterized in that: The three-dimensional flow field reconstruction model is constructed by adopting a deconvolution generation network or a generation adversarial network based on the deconvolution generation network.

3. The method for accelerating convergence of flow field calculation according to claim 2, characterized in that: The deconvolution generation network includes: an input layer, a deconvolution layer, a convolution layer, a fully connected layer and an output layer; The deconvolution layer includes: a first deconvolution layer, a second deconvolution layer, a third deconvolution layer, a fourth deconvolution layer, a fifth deconvolution layer and a sixth deconvolution layer connected in sequence; The convolutional layer includes: a first convolutional layer, a second convolutional layer and a third convolutional layer connected in sequence; The input layer is connected to the first deconvolution layer; The sixth deconvolution layer is connected to the first convolution layer; The third convolutional layer is connected to the fully connected layer; The fully connected layer is connected to the output layer.

4. The method for accelerating convergence of flow field calculation according to claim 3, characterized in that: The deconvolution generation network is trained using the following steps, which include: Determine a background grid for interpolation reconstruction of the fine grid three-dimensional flow field; wherein the background grid is a coarse grid, and the background grid surrounds the fine grid three-dimensional flow field; Obtaining fine-grid three-dimensional flow field samples under each characteristic parameter, and using a multi-grid interpolation technique to interpolate the fine-grid three-dimensional flow field samples under each characteristic parameter onto the same set of background grids, so as to generate coarse-grid three-dimensional flow field samples corresponding to the fine-grid three-dimensional flow field samples; The coarse grid three-dimensional flow field samples obtained after interpolation and the corresponding characteristic parameters are used as the initial data set for training the deconvolution generation network, and the initial data set is grouped into a training set and a test set; Establishing the deconvolution generation network, and training the deconvolution generation network with the training set; The trained deconvolution generation network is tested based on the test set, and if the test result meets the preset conditions, the training of the deconvolution generation network is completed.

5. The method for accelerating convergence of flow field calculation according to claim 4, characterized in that: The step of using a multi-grid interpolation technique to interpolate the fine grid three-dimensional flow field samples under each characteristic parameter onto the same set of background grids to generate coarse grid three-dimensional flow field samples corresponding to the fine grid three-dimensional flow field samples comprises: Solving the corresponding inclusion relationship between the body center of the original grid boundary unit in the fine grid three-dimensional flow field sample and the background grid unit of the background grid by a vector method, and determining the corresponding relationship between the body center of the original grid boundary unit and the background grid unit; Based on the corresponding relationship, the relevant information on the original grid of the fine grid three-dimensional flow field sample is interpolated to the background grid unit through the inverse distance weighted method, wherein the relevant information includes: flow field pressure, flow field temperature, fluid velocity, fluid density, and fluid composition.

6. The method for accelerating convergence of flow field calculation according to claim 5, characterized in that: The step of solving the corresponding inclusion relationship between the body center of the original grid boundary unit in the fine grid three-dimensional flow field sample and the background grid unit of the background grid by a vector method, and determining the corresponding relationship between the body center of the original grid boundary unit and the background grid unit, comprises: Assume that the coordinates (x p ,y p ,z p ); Assume that the midpoint N of each face in the background grid unit i The coordinates (x i ,y i ,z i ), and the normal unit vectors of each face in the background grid unit A judgment formula for judging the corresponding relationship is obtained based on the center of the original grid boundary unit, the midpoint of each face in the background grid unit, and the normal unit vector, wherein the judgment formula is expressed as: The corresponding relationship between the center of the original grid boundary unit and the background grid unit is determined based on the judgment formula, wherein if the judgment formula values ​​of each face in the background grid unit are greater than 0, it is determined that the center of the original grid boundary unit is in the background grid unit.

7. The method for accelerating convergence of flow field calculation according to claim 6, characterized in that: In the step of interpolating the relevant information on the original grid of the fine grid three-dimensional flow field sample to the background grid unit based on the corresponding relationship and by using the inverse distance weighted method, the interpolation formula for interpolating the relevant information on the original grid to the background grid unit is: Among them, H O is the value of the background grid cell after interpolation, h n is the value of the relevant information on the original grid, is the weight, whose value is the inverse of the distance.

8. A device using the flow field calculation accelerated convergence method according to any one of claims 1 to 7, characterized in that: include: CFD simulation module, a first flow field reconstruction module and a second flow field reconstruction module; The CFD simulation module is connected to the first flow field reconstruction module and the second flow field reconstruction module respectively; The first flow field reconstruction module is connected to the second flow field reconstruction module; The CFD simulation module is used to obtain characteristic parameters of the three-dimensional combustion flow field to be predicted, and import the characteristic parameters into the first flow field reconstruction module; The first flow field reconstruction module predicts a coarse grid three-dimensional flow field corresponding to the characteristic parameters based on a preset three-dimensional flow field reconstruction model and the characteristic parameters; The second flow field reconstruction module interpolates the coarse grid three-dimensional flow field based on the multi-grid interpolation technology to reconstruct a fine grid three-dimensional flow field corresponding to the characteristic parameters, and the second flow field reconstruction module imports the fine grid three-dimensional flow field into the CFD simulation module, and the CFD simulation module continues to calculate based on the fine grid three-dimensional flow field until convergence to obtain a lossless three-dimensional combustion flow field.