Gradient evolution method for convection-diffusion equation based on machine learning

Through the symbolic regression method based on machine learning, the gradient evolution solution of the convection-diffusion equation is optimized, which solves the problems of high computational cost and low convergence efficiency of the traditional method, achieves efficient solution of the convection-diffusion equation, and significantly improves the calculation efficiency.

CN118446139BActive Publication Date: 2024-09-17CHINA AERODYNAMICS RES AND DEV CENT ULTRA-HIGH SPEED AERODYNAMICS RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410907673.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-17
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Traditional numerical solution methods have high computational cost and low convergence efficiency when analyzing the convection-diffusion equation, making them difficult to effectively apply in practical engineering problems.

Method used

The symbolic regression method based on machine learning is used to construct a training data set and train a symbolic regression neural network by introducing correction functions and random function expressions to optimize the gradient evolution solution of the convection-diffusion equation, reduce the computational burden, and improve the solution efficiency.

Benefits of technology

Discover characteristic patterns in a small amount of data, quickly find the optimal correction function, and improve solution efficiency. Compared with traditional methods, the efficiency can be increased by four to five times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118446139B
    Figure CN118446139B
Patent Text Reader

Abstract

The present invention discloses a convection-diffusion equation gradient evolution method based on machine learning, which relates to the field of computational fluid dynamics, including: S1, introducing a correction function #imgabs0# into a one-dimensional convection-diffusion equation to obtain a convection equation group with an additional source term, S2, randomly introducing different function expressions and substituting them into the convection equation group of S1, and using the calculated results as a training data set; S3, using the training data set to train a symbolic regression neural network, and using the correction function #imgabs1# as an optimization independent variable, and using the corresponding number of convergence steps as an optimization objective function to obtain a correction equation #imgabs2#; S4, substituting #imgabs3# into the convection equation group to complete the gradient evolution solution. The present invention provides a convection-diffusion equation gradient evolution method based on machine learning, which applies the machine learning method of symbolic regression to the gradient evolution solution of the convection-diffusion equation, and can improve the solution efficiency by four to five times.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computational fluid dynamics, and more specifically, to a gradient evolution method for convection-diffusion equations based on machine learning. Background Art

[0002] The convection-diffusion equation is widely used in many scientific and technological fields, such as aerodynamics, environmental pollution, marine engineering and other application fields. It can describe various physical phenomena such as mass and heat transfer processes, and reflect the expansion process of pollution. It is one of the most basic mathematical physics equations.

[0003] During aircraft wind tunnel tests, the airflow on the aircraft surface has different flow characteristics under different incoming flow velocities, temperatures, and pressures. The convection-diffusion equation can be used to describe the transmission and diffusion process of the airflow on the aircraft surface, helping researchers understand the flow characteristics of the airflow on the aircraft surface and helping to evaluate the stress state of the aircraft surface. However, in most cases related to practical engineering problems, it is difficult to obtain an analytical solution to the convection-diffusion equation, and traditional numerical solutions usually face problems such as high computational costs and low convergence efficiency. 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 gradient evolution of convection-diffusion equation based on machine learning is provided, comprising:

[0006] S1. Introducing a correction function into the one-dimensional convection-diffusion equation , to obtain the convection equations with additional source terms:

[0007]

[0008] In the above formula, u For space t The density or concentration of the substance at a given moment, t is the time variable, x is a spatial variable, b is the diffusion coefficient, a is the convective diffusion coefficient, T is the spatial gradient;

[0009] S2, randomly introduce different function expressions into the convection equations of S1, and use the calculated results as training data sets;

[0010] S3, use the training data set to train the symbolic regression neural network, and correct the function As the optimization independent variable, the corresponding number of convergence steps is used as the optimization objective function to obtain the modified equation ;

[0011] S4. Substitute into the convection equations to complete the gradient evolution solution.

[0012] Preferably, in S1, the process of obtaining the convection equations includes:

[0013] S10. Considering spatial gradients in one-dimensional convection-diffusion equations , and the transformed one-dimensional convection-diffusion equation is obtained:

[0014]

[0015] S11, spatial gradient T Introducing new functions , to obtain the following gradient evolution equation:

[0016]

[0017] S12. The convection equations are constructed by combining the transformed one-dimensional convection-diffusion equation and the gradient evolution equation.

[0018] The present invention has at least the following beneficial effects: the machine learning method based on symbolic regression can find the law of characteristic data in the case of a small amount of data, and finally find an optimal mathematical expression. The machine learning method based on symbolic regression is applied to the gradient evolution solution of the convection-diffusion equation, which can quickly find the most effective correction function. ,Compared with the traditional finite difference numerical solution, the gradient evolution solution method can improve the solution efficiency by four to five times.

[0019] 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

[0020] Picture 1 It is a flow chart of the gradient evolution method of the convection-diffusion equation based on machine learning of the present invention. DETAILED DESCRIPTION

[0021] 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.

[0022] The idea of ​​gradient evolution of the convection-diffusion equation is to reduce the second-order partial derivative diffusion term of the original equation to the first-order partial derivative by artificially adding a correction function to the spatial gradient term, thereby reducing the computational burden and improving computational efficiency. However, the unknown correction function itself adds uncertainty to the solution process of the equation.

[0023] Machine learning is increasingly used to solve partial differential equations. Symbolic regression is a supervised machine learning method used to discover a hidden mathematical expression or function to best fit a given data set. Unlike traditional regression methods, symbolic regression is not just about finding the parameters of a mathematical model, but about automatically constructing a mathematical expression by searching and combining basic mathematical operators and functions. The most effective correction function is constructed through the symbolic regression method, and ultimately the most efficient path to solve the convection-diffusion equation is found based on the constructed correction function.

[0024] Aiming at the problem of low speed and low efficiency of numerical solution of convection-diffusion equation, the present invention proposes a gradient evolution method of convection-diffusion equation based on machine learning, such as Picture 1 As shown, it mainly includes the following steps:

[0025] S1, analyze and establish the gradient evolution equation. For the one-dimensional convection-diffusion equation , considering its spatial gradient . However, due to the lack of time terms, a new function is introduced , and the gradient evolution equation is obtained: . This transforms the original convection-diffusion equation into a set of convection equations with additional source terms:

[0026]

[0027] In the above formula, u For space t The density or concentration of the substance at a given moment, t is the time variable, x is a spatial variable, b is the diffusion coefficient, a is the convection diffusion coefficient, and [ u,t,x ]∈ R, [ a,b ]∈ R + , R is a real number, R + is a positive real number.

[0028] S2, correction function The specific expression is unknown, so we randomly try to introduce different function expressions into the above convection equations, and numerically solve the convection-diffusion equations under different correction function conditions to obtain different calculation results. That is, each function Corresponding to different convergence efficiencies and convergence steps, they are used as subsequent training data sets;

[0029] Generate correction function samples: Create a series of possible correction function samples, which can be expressions in different forms such as known mathematical functions, polynomials, trigonometric functions, etc.

[0030] Calculate the number of convergence steps: For each correction function sample, substitute it into the iterative process and calculate the number of steps required for its convergence. These steps will be used as the labels of the data set.

[0031] Collect features: Extract relevant features for each correction function sample, which may include the coefficients, type, complexity, etc. of the correction function. These features will serve as the input of the dataset.

[0032] S3, build a symbolic recurrent neural network, import the training set into the symbolic recurrent neural network for training, and correct the function The expression is used as the optimization independent variable, and the corresponding number of convergence steps is used as the optimization objective function to obtain the optimal correction equation .

[0033] S5, finally the obtained correction equation Substitute it into the original set of equations to solve the gradient evolution, and verify the final calculation results and convergence efficiency.

[0034] Example:

[0035] Consider the one-dimensional convection-diffusion model equation, there is a well-defined problem:

[0036]

[0037] In the above formula, u For space t The density or concentration of the substance at a given moment, t is the time variable, x is a spatial variable, b is the diffusion coefficient, a is the convective diffusion coefficient, u l is the left boundary value, u r is the right boundary value, and [ u,t,x,u l , u r ]∈ R, [ a,b ]∈ R + , R is a real number, R + is a positive real number.

[0038] Consider its steady-state solution: ,but According to the theory of ordinary differential equations, the analytical solution can be obtained: . Let the spatial gradient of variable u be T, that is: , we can also obtain Finally, the solution problem becomes:

[0039]

[0040] Introducing new functions Adding the second equation to make the equations in the system consistent, we have:

[0041]

[0042] By introducing the function Establish the gradient evolution equation. Consider introducing the linear function

[0043] , a ∈ R That is

[0044]

[0045] Linear Function Under steady conditions ,Right now

[0046] The mathematical meaning is that the time rate of change of the spatial derivative of variable u changes linearly with the time rate of change of variable u. In fact, the relationship between the time rate of change of the spatial derivative of variable u and the time rate of change of variable u is established under the steady-state convergence condition.

[0047] Perform a first-order Euler discretization on the system of equations:

[0048] make ,

[0049] Where i is a spatial grid point, is the time step, n is the number of time steps, is the spatial step size (RHS means the right side of the expression).

[0050] Right now:

[0051]

[0052] The linear function Bring-in ,have , further substituting , we can get the gradient evolution equation under the linear function:

[0053]

[0054] The gradient evolution equation is equivalent to adding a correction term to the numerical format of the spatial gradient of the variable u, making the numerical format more stable.

[0055] Calculate the number of convergence steps after convergence as training data, and continue to randomly take a large number of functions The optimal correction equation is obtained by using the number of convergence steps obtained for each expression as the data set through the symbolic regression neural network. .

[0056] 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.

[0057] 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 gradient evolution method for convection-diffusion equation based on machine learning, It is characterized in that include: S1. Introducing a correction function into the one-dimensional convection-diffusion equation , to obtain the convection equations with additional source terms: In the above formula, u For space t The density or concentration of the substance at a given moment, t is the time variable, x is a spatial variable, b is the diffusion coefficient, a is the convective diffusion coefficient, T is the spatial gradient; S2, randomly introduce different function expressions into the convection equations of S1, and use the calculated results as training data sets; S3, use the training data set to train the symbolic regression neural network, and correct the function As the optimization independent variable, the corresponding number of convergence steps is used as the optimization objective function to obtain the modified equation ; S4. Substitute into the convection equations to complete the gradient evolution solution; In S1, the process of obtaining the convection equations includes: S10. Considering spatial gradients in one-dimensional convection-diffusion equations , and the transformed one-dimensional convection-diffusion equation is obtained: S11, spatial gradient T Introducing new functions , to obtain the following gradient evolution equation: S12. The convection equations are constructed by combining the transformed one-dimensional convection-diffusion equation and the gradient evolution equation.