Source term reconstruction method for high-order constitutive equations based on deep learning technology
Through the reconstruction method of the source terms of high-order constitutive equations based on deep learning, the problems of low calculation efficiency and limited accuracy of the source terms of high-order constitutive equations are solved, and a more efficient and accurate solution of the fluid dynamics model is achieved.
Patent Information
- Application Number
- CN202410822519.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The existing technology has problems of low computational efficiency and limited accuracy when determining and correcting the source terms of high-order constitutive equations, especially in the study of complex fluid dynamics behaviors.
Using the source term reconstruction method of high-order constitutive equations based on deep learning technology, the free parameters of high-order constitutive equations are modified through the reconstruction of the original control equations and deep learning methods, replacing the traditional iterative method for solving, improving calculation efficiency and Accuracy.
It improves the calculation efficiency and accuracy of high-order constitutive equations, reduces the difficulty of solving iterative methods, makes the source term reconstruction process more automated, and reduces the dependence on professional knowledge.
Smart Images

Figure CN118377991B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fluid dynamics. More specifically, the present invention relates to a method for reconstructing source terms of a high-order constitutive equation based on deep learning technology. Background Art
[0002] In the current field of fluid dynamics research, high-order constitutive equations play a vital role in describing the behavior of complex fluids, especially under extreme conditions, such as high-speed flow or complex flow phenomena. Although high-order constitutive equations can improve the accuracy of traditional NS equations, their computational efficiency is low and their accuracy is limited. High-order constitutive equations involve nonlinear terms, and traditional solutions usually use iterative methods, such as fixed point iteration method, Newton iteration method, conjugate gradient method, etc. However, these algorithms have the problem of high time complexity, resulting in low computational efficiency.
[0003] In summary, the existing technology has some limitations in determining and correcting the source terms of high-order constitutive equations, and a more accurate and reliable method is needed to improve the description accuracy and reliability of the model, especially in the study of complex fluid dynamics behavior. 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 reconstructing source terms of a high-order constitutive equation based on deep learning technology is provided, comprising:
[0006] S1. Reconstruct the original control equation so that the reconstructed control equation contains the number of unknown terms. X 1 With coefficient X 2 ;
[0007] S2, modifying the free parameters of the source terms of the high-order constitutive equations based on deep learning;
[0008] S3. The free parameters obtained in S2 are embedded back into the source terms of the control equation, and the control equation is solved with the modified high-order constitutive equation.
[0009] Preferably, in S1, the original control equation is reconstructed as follows:
[0010] S10. Expand the general form of the NS equation according to the laws of conservation of mass, momentum, and energy into:
[0011]
[0012] In the above formula, ρ is the density, EFor energy, p is the pressure, Π is the viscous stress, Δ is the additional volume stress, Q is the heat flow term, U is the speed term, is the Laplace operator, I is the identity matrix, t is the time item;
[0013] S11. Based on the nonlinear coupling constitutive relationship model NCCR equation, the constitutive model of the NS equation is adjusted as follows:
[0014]
[0015] In the above formula, S 1 , S 2 , S 3 represents the nonlinear part of the constitutive model, which contains the number and coefficients of the unknown source terms, and:
[0016]
[0017] In the above formula, X 1 and X 2 represents the number of unknown terms and coefficients, λ is the thermal conductivity coefficient, T is the temperature, η is the viscosity coefficient, η b is the volume viscosity coefficient, is a second-order traceless symmetric tensor;
[0018] S12. Substitute the equation obtained in S11 into S10 to obtain the reconstructed control equation:
[0019]
[0020] in, Represents the reconstructed source item;
[0021]
[0022] Among them, S represents the source term group, which contains the specific source term S 1 , S 2 , S 3 .
[0023] Preferably, in S2, the method of correcting the free parameters of the source term of the high-order constitutive equation based on the deep learning method is: S20, collecting and cleaning the experimental data to obtain a data set;
[0024] S21. Based on the study of data correlation in the dataset, the data level and source item form are mutually verified;
[0025] S22. Analyze the impact of different input forms on model performance to design the model structure according to the data characteristics in the dataset;
[0026] S23. Based on the theoretical model of computational fluid dynamics and the experimental data error L, the free parameters of the source terms of the high-order constitutive equations corrected by the neural network are constructed through deep learning on the learning machine.
[0027] The present invention has at least the following beneficial effects: This patent proposes a method for reconstructing source terms of high-order constitutive equations based on deep learning, which aims to redefine the solution method of high-order constitutive equations and correct the source terms through deep learning, thereby improving the calculation efficiency and accuracy. This method not only helps to overcome the shortcomings of traditional methods, but also has broad significance in practical applications.
[0028] The high-order constitutive equation itself can improve the accuracy of the traditional NS equation. The correction part of the high-order constitutive equation is incorporated into the source term of the NS equation, so that the high-order constitutive equation that originally needs to be solved by iterative method can be replaced by deep learning method. Based on the error of CFD and experimental data, a neural network is constructed to correct the free parameters of the source term of the high-order constitutive equation, thereby improving the accuracy of the source term.
[0029] This method replaces the iterative method commonly used in traditional solutions. To improve efficiency, this method introduces the idea of deep learning, integrates the nonlinear terms in the high-order constitutive equations into the source terms, and uses a deep learning model for training to reduce the difficulty of solving the iterative method, thereby improving computational efficiency.
[0030] At the same time, compared with traditional methods, this deep learning-based method also reduces dependence on professional knowledge and makes the reconstruction process of source items more automated.
[0031] 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
[0032] Figure 1 It is a schematic diagram of the source term correction process of the present invention;
[0033] Figure 2 It is a flow chart of the network training method of the present invention;
[0034] Figure 3 This is a schematic diagram of the technical solution flow for model verification of the present invention;
[0035] Figure 4Schematic diagram of the internal structure of the normal shock wave according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The present invention will be 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.
[0037] 1. Construction of control equations. Based on in-depth physical principles and specific problem situations, consider error sources such as truncation error, identify and solve factors that may affect the accuracy of source terms during the correction process, and consider how to adjust the mathematical model of the source terms to ensure the physical rationality of the corrected model.
[0038] The general form of the NS (Navier-Stokes) equation is:
[0039]
[0040] in, U is the speed term; t is the time item; is the Laplace operator, which represents the gradient of each vector; F c is the convection flux; F v is the viscosity term flux;
[0041] According to the law of conservation of mass, momentum and energy, we have:
[0042]
[0043] In the above formula, ρ is the density, E For energy, p is the pressure, Π is the viscous stress, Δ is the additional volume stress, Q is the heat flow term, U is the speed term, is the Laplace operator, I is the identity matrix, t is the time item;
[0044] The constitutive model of the NS equations is listed as follows:
[0045]
[0046] in, λ is the thermal conductivity coefficient, T is the temperature, η is the viscosity coefficient, η b is the volume viscosity coefficient, mathematical symbol It is defined as a second-order traceless symmetric tensor, and its expression is as follows:
[0047]
[0048] In the above formula, I is the identity matrix, Tr[A] is the trace of matrix A, A t is the transpose of matrix A;
[0049] Considering the error sources such as truncation error, the constitutive equation is adjusted according to the nonlinear coupled constitutive relationship model (NCCR equation) as follows: S 1 , S 2 , S 3 Contains the number and coefficients of unknown source terms.
[0050]
[0051] in, S 1 , S 2 , S 3 represents the nonlinear part of the constitutive model, which contains the number and coefficients of the unknown source terms, and:
[0052]
[0053] X 1 and X 2 represents the number of unknown terms and coefficients, λ is the thermal conductivity coefficient, T is the temperature, η is the viscosity coefficient, η b is the volume viscosity coefficient, is a second-order traceless symmetric tensor.
[0054] Substituting the above formula back into the control equation, it can be summarized into the following form:
[0055]
[0056] in, Represents the reconstructed source item;
[0057]
[0058] Among them, S represents the source term group, which contains the specific source term S 1 , S 2 , S 3 , and the specific source term S 1 , S2 , S 3 It contains unknown terms and coefficients X 1 , X 2 .
[0059] 2. Application of artificial intelligence. Combining the source term form derived from physics, with the help of big data and artificial intelligence technology, the number and coefficients of source terms are determined to improve the description accuracy of the model.
[0060] The high-order constitutive equation reconstruction method in this paper can be divided into two parts: learning machine and agent machine, such as Figure 1 As shown, Figure 1 In q n Represents the input feature set, which further outputs the number of source items and coefficients through the network model X i , and i=1,2, the network model is detailed in Figure 2 .
[0061] (1) Data preparation and cleaning
[0062] Collect experimental data related to the system under study, and ensure the quality and consistency of the data by performing pre-processing operations such as data classification, quality assessment, calibration, and completion. Through this series of data cleaning steps, high-quality and reliable data are obtained, laying a solid foundation for subsequent research and analysis.
[0063] The main contents of data preparation and cleaning include: first, clarify the goals and requirements of data collection, including the scale and level of detail of the required data; based on the goals, design a data collection plan, including determining the data source (such as experiments, existing databases, etc.), data type (feature requirements), etc.; according to the plan, the design includes selecting control variables and independent variables, designing the experimental process, and presetting the number of repetitions and random seeds of the experiment to ensure the repeatability and reliability of the data; second, the collected raw data needs to be cleaned to remove inaccurate, missing or irrelevant data, which can be done through manual inspection or automated scripts; finally, the cleaned data is organized into a suitable format and saved.
[0064] (2) Data correlation research
[0065] Conduct feature research on the obtained high-quality data set, study the correlation between different data through the extracted data features, and verify the source item form from the data level to ensure the rationality of the source item form.
[0066] The content of data correlation research includes: first, clarify the hypotheses to be verified or explored from the data, which are based on previous research, theoretical predictions, or in-depth understanding and intuition of the problem domain; use statistical methods and machine learning techniques to analyze the data set to identify possible correlations and patterns, including the use of correlation analysis, SHAP analysis and other techniques to discover potential connections in the data; based on the research hypothesis, establish a mathematical model or theoretical model to describe the relationship between the variables in the hypothesis; finally, use the collected data to verify the established model, which involves comparing the results predicted by the model with the actual observed data to test whether the model can accurately reflect the data correlation. In this process, repeated verification may be required.
[0067] (3) Data characteristics research
[0068] Select different features or fuse them to explore the impact of different input forms on model performance, and design a more reasonable model structure based on the data characteristics in the dataset to increase the interpretability and generalization ability of the model. Specific methods include correlation analysis, scatter plots, feature fusion, etc.
[0069] The content of data feature research includes: first, in-depth understanding of the characteristics of the data, including the type, structure, distribution characteristics of the data, and potential problems in the data; based on the understanding of data characteristics, choose appropriate data preprocessing methods; then choose the model type that best suits the data characteristics, further design the structure of the model, and determine the depth, width and connection method of the model based on the complexity of the task and the scale of the data. At the same time, consider introducing regularization, dropout and other technologies to prevent overfitting; based on the performance of the model on the validation set, continuously adjust the model structure and parameters until satisfactory performance is achieved.
[0070] (4) Determine the number and coefficients of source terms
[0071] Based on computational fluid dynamics (CFD) and experimental data error L, the theoretical model and actual data are integrated, and a neural network is constructed to correct the free parameters of the source terms of the high-order constitutive equation through big data and artificial intelligence. The number and coefficients of the source terms are determined and finely optimized. The training method of the learning machine network is as follows Figure 2 Integrating this corrected source term yields a complete model.
[0072] Step 1 (learning machine): Take Mach number Ma, Reynolds number Re, Knudsen number kn, error L, etc. as network input, adjust the appropriate network structure and hyperparameters, and output X 1 and X 2 .
[0073] Step 2 (Proxy): Network input given flow conditions, network output X 1 and X 2 It is embedded back into the source term of the control equation and the CFD solution is performed using the modified high-order constitutive equation.
[0074] 3. Model verification and evaluation
[0075] like Figure 3 As shown in the figure, the technical solutions for model verification and evaluation mainly include:
[0076] (1) Model verification. The modified high-order constitutive equation is embedded into the NS equation, and an appropriate numerical method is selected to perform experimental simulation. The degree of agreement between the simulation results and the actual data is compared to verify and evaluate the effectiveness and accuracy of the modified method.
[0077] (2) Generalization evaluation. Consider the size and quality of the training data set, explore the scope of application of the model, and determine an appropriate training data set size through experiments and cross-validation to ensure that the model's predictive ability on unknown data is optimized, thereby obtaining a model with high generalization ability.
[0078] Example: One-dimensional normal shock wave is a physical flow phenomenon with strong compression characteristics, such as Figure 4 When the airflow passes through the inside of a real shock wave at supersonic speed, the flow variables smoothly transition from the wave front to the wave rear. The wave front and the wave rear are in thermal equilibrium. 1 , its post-wave macroscopic physical quantity Ma 2 The shock wave is in a non-equilibrium state, and the thickness of the shock wave is δ There are only a few mean free paths.
[0079] 1. Control equations
[0080] In the one-dimensional case, the governing equation is as follows:
[0081]
[0082] The source term S is as follows:
[0083]
[0084]
[0085] The nonlinear part is set as X 1 and X 2 , use neural network training to output the nonlinear part to replace the traditional iterative method to solve the nonlinear part.
[0086] 2. Network training (learning machine)
[0087] like Figure 2 As shown, using a control equation with a certain physical form, taking Mach number, Reynolds number, Knudsen number, etc. as network input, adjusting the appropriate network structure and hyperparameters, the output X 1 and X 2 .
[0088] 3. CFD solver (agent)
[0089] Given the incoming flow conditions, the network inputs the incoming flow conditions and outputs the network X 1 and X 2 Embed it back into the source term of the control equation to obtain the modified equation that replaces the unknown variables with the neural network. Define appropriate dimensionless parameters, select appropriate boundary conditions, and perform CFD solution.
[0090] Solve for calculation Figure 4 This method replaces the iterative method commonly used in traditional solutions, so that the high-order constitutive equations that originally need to be solved by iterative methods are replaced by deep learning methods. This deep learning-based method also reduces the dependence on professional knowledge and makes the reconstruction process of source terms more automated.
[0091] 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.
[0092] 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 method for reconstructing source terms of high-order constitutive equations based on deep learning technology, characterized in that: include: S1. By reconstructing the original control equation, specifically adjusting the NS equation according to the NCCR equation, so that the reconstructed control equation contains the number of unknown terms. X 1 and coefficient X 2; S2, modifying the free parameters of the source terms of the high-order constitutive equations based on deep learning; S3, embed the free parameters obtained in S2 back into the source terms of the control equation, and solve the control equation with the modified high-order constitutive equation; In S2, the method of correcting the free parameters of the source term of the high-order constitutive equation based on deep learning is: S20, obtaining a data set by collecting and cleaning experimental data; S21. Based on the study of data correlation in the dataset, the data level and source item form are mutually verified; S22. Analyze the impact of different input forms on model performance to design the model structure according to the data characteristics in the dataset; S23. Based on the theoretical model of computational fluid dynamics and the experimental data error L, a neural network is constructed on the learning machine through deep learning to correct the free parameters of the source term of the high-order constitutive equation. X 1 and X 2.
2. The high-order constitutive equation source term reconstruction method based on deep learning technology according to claim 1, characterized in that: In S1, the original control equation is reconstructed as follows: S10. Expand the general form of the NS equation according to the laws of conservation of mass, momentum, and energy into: In the above formula, ρ is the density, E For energy, p is the pressure, Π is the viscous stress, Δ is the additional volume stress, Q is the heat flow term, U is the speed term, is the Laplace operator, I is the identity matrix, t is the time item; S11. Based on the nonlinear coupling constitutive relationship model NCCR equation, the constitutive model of the NS equation is adjusted as follows: In the above formula, S 1. S 2. S 3 represents the nonlinear part of the constitutive model, which contains the number and coefficients of unknown source terms, and: In the above formula, X 1 and X 2 represents the number of unknown terms and coefficients, λ is the thermal conductivity coefficient, T is the temperature, η is the viscosity coefficient, η b is the volume viscosity coefficient, is a second-order traceless symmetric tensor; S12. Substitute the equation obtained in S11 into S10 to obtain the reconstructed control equation: in, Represents the reconstructed source item; Among them, S represents the source term group, which includes specific source terms S1, S2, and S3.
