A compressible flow prediction method based on deep operator learning fused with radial basis function
By integrating the radial basis deep operator learning method, the problem that traditional methods are difficult to capture complex nonlinear effects in compressible flow is solved, more efficient flow field prediction is achieved, and the efficiency and accuracy of flow field solution are improved.
Patent Information
- Application Number
- CN202410942428.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-15
AI Technical Summary
Under compressible flow conditions, traditional deep learning methods are difficult to effectively capture complex nonlinear effects, such as shock waves and expansion waves, resulting in low flow field prediction accuracy and efficiency.
A deep operator learning method that integrates radial basis is used to build a deep operator neural network model including branch network and backbone network by generating and normalizing sample data sets, and uses radial basis function and shared weight MLP to perform feature analysis. Encoding and splicing improve the nonlinear fitting ability of neural networks.
It significantly improves the nonlinear fitting ability and accuracy of flow field prediction. Compared with the traditional CFD method, it greatly improves the flow field solution efficiency while maintaining a certain accuracy.
Smart Images

Figure CN118468455B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wind tunnel testing, and more specifically, to a compressible flow field prediction method using deep operator learning fused with radial basis. Background Art
[0002] Flow field prediction is a very important and time-consuming part in the field of aircraft design. How to efficiently and accurately obtain the flow field information of an aircraft is an important research topic. With the rapid development of artificial intelligence technology, intelligent methods represented by deep learning are playing an increasingly important role in the field of flow field prediction.
[0003] There are many complex physical and numerical problems involved in compressible flow conditions, and there are many unstable modes, such as shock waves, boundary layer interactions, thermochemical effects, and other complex nonlinear effects. The neural network constructed by traditional deep learning solves the problem by approximating functions, which may exceed the fitting ability of traditional neural networks when facing complex nonlinear effects. The idea of operator learning is to take the function as input, fit different functions through neural networks, and finally obtain the target functional. The difference between the two is that the traditional neural network approximation function may still have certain errors or overfitting, while the operator learning method can improve the generalization performance and nonlinear fitting ability of the neural network. Learning the operator is equivalent to a higher level of function, or the network has learned deeper information. Summary of the invention
[0004] An object of the present invention is to solve at least the above problems and / or disadvantages and to provide at least the advantages which will be described hereinafter.
[0005] In order to achieve these purposes and other advantages of the present invention, a method for predicting a compressible flow field by deep operator learning fused with radial basis is provided, comprising:
[0006] S1. Generate the sample data set required to build the neural network and normalize the sample data;
[0007] S2. Build a deep operator neural network model based on the normalized sample data set;
[0008] S3. Using deep operator neural network for flow field prediction under compressible flow;
[0009] In S2, the deep operator neural network model is constructed by fusion radial basis function, and the network structure of the deep operator neural network model includes: separate processing of the branch network and the trunk network, and feature splicing of the output of the processed trunk network and the output of the branch network.
[0010] Preferably, in S1, the sample data set is generated in the following manner:
[0011] RhoSimpleFOAM is used to solve the velocity field ⅠU of the aircraft at different incoming Mach numbers Ma and the velocity field ⅡV, pressure field P and density field D at different attack angles A in compressible flow to obtain the sample data set required for neural network training.
[0012] Preferably, in S1, the normalization processing of the sample data is to normalize the Mach number Ma, the point cloud data, the pressure field P, the label velocity field ⅠU, the label velocity field ⅡV, and the label density field D to the range of 0 to 1.
[0013] Preferably, in S2, the branch network is processed as follows:
[0014] S210, selecting a Gaussian function as a radial basis function in the branch network;
[0015] S211, using Ma and A as inputs of the branch network to obtain a set of discrete values (u1, u2...un) of a function u(Ma,A) about Ma and A through encoding processing of radial basis functions;
[0016] S212, the output of the first layer of the branch network is represented by the following formula: (1) :
[0017]
[0018] In the above formula, w 1 is the weight from the hidden layer to the output layer in the first layer of the branch network, σ is the diameter base width, Euclidean norm, c i is the center of the Gaussian function, x p Representing the network p input samples, b 1 is the bias of the first layer of the branch network;
[0019] The discrete values (u1, u2…un) obtained by S211 are used as the input of the subsequent hidden layers of the branch network, and the output of the last layer of the branch network is O T It is expressed by the following formula:
[0020]
[0021] In the above formula, a is the activation function, L is the number of neural network layers, bL For the branch network L The bias of the layer, b L-1 For the branch network L -1 layer bias, b L-2 For the branch network L -2 layer bias, w L-1 For the branch network L -1 layer weights from hidden layer to output layer, w L-2 For the branch network L -The weights from the hidden layer to the output layer in layer 2;
[0022] S213. Define c and σ as trainable parameters of the neural network to dynamically adjust and optimize the model performance through back-propagation.
[0023] Preferably, in S2, the backbone network is processed in the following manner: point cloud data in the flow field calculation domain is used as input of the backbone network, and encoded through a weight-shared MLP to extract flow field spatial features as output of the backbone network.
[0024] Preferably, in S3, the flow field prediction method is:
[0025] S30, performing a dot product between the output of the trunk network and the output of the branch network to obtain a solution operator for Ma and A and point cloud data;
[0026] S31, feature concatenating the solution operator obtained after the dot product with the output of the trunk network and the branch network to obtain an N×3n vector, where N represents the number of samples and n represents the number of point clouds;
[0027] S32, inputting the representation result obtained in S31 into the MLP to obtain the corresponding flow field solution.
[0028] The present invention has at least the following beneficial effects: the deep operator learning compressible flow field prediction method fused with radial basis proposed in the present invention has stronger nonlinear fitting ability than the prior art, and has stronger ability to capture complex nonlinear effects such as shock waves and expansion waves that appear under compressible flow, so it has higher prediction accuracy. At the same time, compared with the traditional CFD method, the method proposed in the present invention can greatly improve the efficiency of solving the flow field while maintaining a certain accuracy.
[0029] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a diagram of the deep operator learning network structure of the present invention integrating radial basis functions;
[0031] Figure 2 This is an example diagram of the pressure field in the present invention. DETAILED DESCRIPTION
[0032] The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description.
[0033] A compressible flow field prediction method based on deep operator learning of radial basis includes the following steps:
[0034] Step 1: Generate the sample data set required to build the neural network. Select the appropriate computational domain size and boundary conditions to ensure the accuracy of the simulation results, and perform unstructured meshing. Determine the flow conditions of the aircraft at different Mach numbers and angles of attack, and use RhoSimpleFOAM to solve the velocity field ⅠU, velocity field ⅡV, pressure field P, and density field ⅠD of the aircraft at different Mach numbers and angles of attack under compressible flow, such as Figure 2 As shown, we can get the sample data set required for neural network training. Figure 2 In the figure, the horizontal coordinate x and the vertical coordinate y are used to represent the coordinate distribution of the two-dimensional points inside the calculation domain. The English word Static Pressure on the color bar on the right represents the static pressure value, and its unit is Pascal (Pa).
[0035] Step 2: Data preprocessing. Check and process the abnormal values or missing values in the calculation results. Then normalize the incoming flow Mach number, point cloud data, label pressure field P, label velocity field IU, label velocity field IIV, and label density field IID to the range of 0~1. It should be noted that the label here refers to the U, V, P, and D mentioned above as the label data in the neural network training process.
[0036] Step 3: Build a neural network model based on the sample data set. The deep operator learning neural network fused with radial basis function is divided into two parts: branch network and trunk network. The network structure is as follows Figure 1 shown.
[0037] The branch network inputs the Mach number Ma and the angle of attack A. The G in the branch network indicates that the Gaussian function is used as the radial basis function. First, the input Mach number and angle of attack are encoded by the radial basis function to obtain a set of discrete values (u1, u2...un) of the function u(Ma,A) about Ma and A. (1) represents the output of the first layer of the network, so:
[0038]
[0039] Then (u1, u2…un) is input into the subsequent hidden layer. Therefore, the output of the branch network is:
[0040]
[0041] in, is the Euclidean norm, σ is the radial basis width. σ It controls the speed at which the function decreases and determines the influence of the distance between the sample and the center on the activation function value.
[0042] x p Representing the network p An input sample, which is a vector containing input features. During training and testing, the network receives different input samples. x p to be processed. c i Represents the node centers of the hidden layer of the network. The radial basis function is based on these centers and according to the input samples x p and c i The output value is calculated based on the distance between them. w is the weight from the hidden layer to the output layer, h is the number of neurons in the hidden layer, b is the bias, a is the activation function.
[0043] For the center c and radial width of the basis function σ , which is defined as a trainable parameter of the neural network and dynamically adjusted through back-propagation to optimize the model performance.
[0044] The backbone network inputs point cloud data in the flow field calculation domain. Figure 1 In the backbone network, x and y represent the two-dimensional point coordinates (x, y) inside the computational domain, and shared represents the MLP with shared weights. The shared weight MLP is used for encoding to extract the spatial features of the flow field and ensure that the network is insensitive to the order of the input points.
[0045] Take the dot product of the output of the trunk network and the output of the branch network (in Figure 1 The solution operator obtained after the dot product is concatenated with the output of the backbone network and the branch network to form a richer feature representation. N represents the number of samples and n represents the number of point clouds. The above results are input into the MLP to output the final flow field solution P, D, U, V.
[0046] Step 4: Model evaluation and optimization. Use a variety of evaluation indicators (such as mean square error, mean absolute error, R2 coefficient, etc.) to comprehensively evaluate the model performance. Optimize the model based on the evaluation results, including adjusting the model architecture, optimizing the algorithm and hyperparameter settings to improve the prediction accuracy and stability of the model.
[0047] Step 5: Use the constructed deep operator neural network to predict the flow field under compressible flow.
[0048] Example:
[0049] Through flow field simulation, engineers can test and optimize various design solutions before actual manufacturing or construction. This is crucial to reducing costs, improving efficiency and ensuring the feasibility of designs. In aerodynamic design, flow field simulation can help designers grasp the flow trend of gas and optimize the shape of the aircraft, which can discover design problems at an early stage and reduce the number of physical experiments and wind tunnel tests, thereby saving costs and time.
[0050] Now consider a two-dimensional projectile flow field prediction problem under compressible flow. The given Mach number range is 3~10 Mach, and the angle of attack range is -10~10°. Within the above range, the Mach number is sampled every 0.5, and the angle of attack is sampled every 5°. All the above sampling combinations are used to calculate the CFD flow field results, including pressure field, velocity field and density field. 80% of all the data are selected as the training set of the neural network model, and the remaining 20% are used as the test set.
[0051] The Mach number and angle of attack are input into the branch network, and a set of discrete function values about the Mach number and angle of attack are generated through the radial basis function, and then the output of the branch network is obtained through the subsequent fully connected layer. The two-dimensional point cloud data is input into the trunk network, and the output of the trunk network is obtained through the MLP of the contribution weight. The result of the dot product of the output of the two parts of the network is spliced with the output of the two parts of the network into an N×3n vector, and the final pressure field, velocity field and density field are output through the subsequent fully connected layer.
[0052] Traditional CFD methods usually require solving complex partial differential equations, which requires very fine grid division of the entire computational domain, which requires a lot of computing resources and time. After training, the deep operator learning compressible flow field prediction method fused with radial basis proposed in the present invention can complete the flow field prediction in a very short time (usually a few seconds or even milliseconds) by only forward propagation. This fast prediction capability is mainly due to the data features and patterns learned by the neural network during the training phase, which enables it to quickly infer the behavior of the flow field from new input data.
[0053] In addition, the model proposed by the present invention can learn the flow field characteristics under different flow states and conditions through large-scale data training, and has strong adaptability and versatility. Traditional CFD methods require specific solutions and adjustments for each situation.
[0054] The above solution is only an illustration of a preferred embodiment, but is not limited thereto. When implementing the present invention, appropriate replacement and / or modification can be performed according to user needs.
[0055] Although the embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and the embodiments. It can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily realized. Therefore, without departing from the general concept defined by the claims and equivalent scope, the present invention is not limited to the specific details and the illustrations shown and described here.
Claims
1. A compressible flow field prediction method based on deep operator learning of radial basis, characterized in that: include: S1. Generate the sample data set required to build the neural network and normalize the sample data; S2. Build a deep operator neural network model based on the normalized sample data set; S3. Using deep operator neural network for flow field prediction under compressible flow; In S2, the deep operator neural network model is constructed by fusion radial basis function, and the network structure of the deep operator neural network model includes: processing the branch network and the trunk network separately, and performing feature splicing on the output of the processed trunk network and the output of the branch network; In S2, the branch network is processed as follows: S210, selecting a Gaussian function as a radial basis function in the branch network; S211, using Ma and A as inputs of the branch network to obtain a set of discrete values (u1, u2...un) of a function u(Ma,A) about Ma and A through encoding processing of radial basis functions; S212, the output of the first layer of the branch network is expressed by the following formula O (l) : In the above formula, w 1 is the weight from the hidden layer to the output layer in the lth layer of the branch network, σ is the diameter base width, is the Euclidean norm, c i is the center of the Gaussian function, x p Representing the network p input samples, b 1 is the bias of the lth layer of the branch network; The discrete values (u1, u2…un) obtained by S211 are used as the input of the subsequent hidden layers of the branch network, and the output of the last layer of the branch network is O t It is expressed by the following formula: In the above formula, a is the activation function, l is the number of neural network layers, b l For the branch network l The bias of the layer, b l-1 For the branch network l -1 layer bias, b l-2 For the branch network l -2 layer bias, w l-1 For the branch network l -1 layer weights from hidden layer to output layer, w l-2 For the branch network l -The weights from the hidden layer to the output layer in layer 2; S213, c and σ Defined as trainable parameters of a neural network to dynamically adjust and optimize model performance through back-propagation.
2. The method for predicting compressible flow field by deep operator learning with radial basis as claimed in claim 1, characterized in that: In S1, the sample data set is generated as follows: RhoSimpleFOAM is used to solve the velocity field ⅠU of the aircraft at different incoming Mach numbers Ma and the velocity field ⅡV, pressure field P and density field D at different attack angles A in compressible flow to obtain the sample data set required for neural network training.
3. The method for predicting compressible flow field by deep operator learning with radial basis as claimed in claim 1, characterized in that: In S1, the normalization processing of sample data is to normalize the Mach number Ma, point cloud data, pressure field P, label velocity field ⅠU, label velocity field ⅡV, and label density field D to the range of 0~1.
4. The method for predicting compressible flow field by deep operator learning with radial basis as claimed in claim 1, characterized in that: In S2, the backbone network is processed as follows: the point cloud data in the flow field calculation domain is used as the input of the backbone network, and is encoded through the MLP with shared weights to extract the flow field spatial features as the output of the backbone network.
5. The method for predicting compressible flow field by deep operator learning with radial basis as claimed in claim 1, characterized in that: In S3, the flow field prediction method is: S30, performing a dot product between the output of the trunk network and the output of the branch network to obtain a solution operator for Ma and A and point cloud data; S31, feature concatenating the solution operator obtained after the dot product with the output of the trunk network and the branch network to obtain an N×3n vector, where N represents the number of samples and n represents the number of point clouds; S32, inputting the representation result obtained in S31 into the MLP to obtain the corresponding flow field solution.
