Airfoil rapid inverse design method, device and equipment based on denoising diffusion model

The denoising diffusion model is used to quickly generate an airfoil shape that meets aerodynamic performance requirements, solving the time-consuming and labor-intensive problem of existing airfoil reverse design and achieving an efficient airfoil design process.

CN118410743BActive Publication Date: 2024-08-23CALCULATION AERODYNAMICS INST CHINA AERODYNAMICS RES & DEV CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410865656.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-08-23
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

The existing airfoil inverse design method is time-consuming and labor-intensive, requires extensive professional knowledge and experience, and is difficult to quickly obtain an airfoil shape that meets aerodynamic performance requirements, especially when there are no surface flow field constraints.

Method used

A fast inverse design method based on the denoising diffusion model is used to train the unconditional denoising diffusion model by obtaining the historical airfoil shape and coordinate points from the initial airfoil database, generate the target airfoil shape, and use aerodynamic performance parameters to train conditional denoising diffusion model to directly generate an airfoil shape that meets aerodynamic performance requirements.

Benefits of technology

It improves the efficiency and speed of airfoil design, reduces dependence on professional knowledge, and can quickly obtain an airfoil shape that meets aerodynamic performance requirements without the need for a complex iterative mapping process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410743B
    Figure CN118410743B
Patent Text Reader

Abstract

The present application discloses a method, device and equipment for rapid inverse design of airfoils based on a denoising diffusion model, and relates to the field of intelligent fluid mechanics, including: training an unconditional denoising diffusion model based on the acquired historical aircraft airfoil shapes and the corresponding historical airfoil coordinate points, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establishing a target airfoil database based on the target airfoil shapes; using the target airfoil shapes and corresponding aerodynamic performance parameters of the target airfoil database to train the conditional denoising diffusion model, and obtaining a target conditional denoising diffusion model; when there is an airfoil generation request, the aerodynamic performance index in the airfoil generation request is input into the target conditional denoising diffusion model, so that the target conditional denoising diffusion model generates the corresponding airfoil shape based on the aerodynamic performance index. The aerodynamic performance can be directly input into the trained target conditional denoising diffusion model to quickly obtain an airfoil result that meets the aerodynamic performance requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent fluid mechanics, and in particular to a method, a device and equipment for rapid inverse design of an airfoil based on a denoising diffusion model. Background Art

[0002] Airfoil design can be divided into two methods: forward design and reverse design. Forward design is mainly based on the improvement of existing airfoils. By determining the design goal, manually modifying and optimizing the airfoil data, and then performing aerodynamic performance analysis, this process is repeated iteratively until the requirements are met. Reverse design is to first give an aerodynamic goal, use the goal as a constraint, and use the optimization method to fit and calculate the airfoil that meets the aerodynamic goal.

[0003] The forward airfoil design method repeatedly gives the airfoil shape and flow conditions, and repeatedly conducts wind tunnel tests or CFD (Computational Fluid Dynamics) calculations to obtain the corresponding aerodynamic performance of the airfoil until the pre-set design indicators are met. This process is undoubtedly very time-consuming and labor-intensive, and requires rich professional knowledge and experience. At present, the inverse design of airfoils usually uses the airfoil surface flow field as a priori conditions (such as surface pressure), and obtains the airfoil shape under this condition through complex iterative mapping. However, the surface flow field of the airfoil is not easy to obtain before the airfoil is obtained. Therefore, the surface flow field of the current airfoil inverse design is difficult to obtain, and the airfoil design requires continuous iterative optimization. This process is very time-consuming and labor-intensive, and requires rich professional knowledge and experience. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method, device and equipment for rapid inverse design of airfoil based on a denoising diffusion model, which can quickly obtain the airfoil design results under the control of specified aerodynamic performance. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a method for rapid inverse design of an airfoil based on a denoising diffusion model, comprising:

[0006] Training an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establishing a target airfoil database based on the target airfoil shapes;

[0007] Using the target airfoil shape and corresponding aerodynamic performance parameters of the target airfoil database to perform model training on a conditional denoising diffusion model to obtain a target conditional denoising diffusion model;

[0008] When there is an airfoil generation request, an aerodynamic performance index in the airfoil generation request is input into the target condition denoising diffusion model, so that the target condition denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance index.

[0009] Optionally, before training the unconditional denoising diffusion model based on the historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from the initial airfoil database, the method further includes:

[0010] A correspondence between historical aircraft airfoil shapes and historical airfoil coordinate points representing the historical aircraft airfoil shapes is constructed, and an initial airfoil database is constructed based on the historical aircraft airfoil shapes, the historical airfoil coordinate points, and the correspondence.

[0011] Optionally, the training of the unconditional denoising diffusion model based on the historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from the initial airfoil database includes:

[0012] An unconditional denoising diffusion model is constructed, which includes a forward diffusion equation for converting the airfoil shape into Gaussian noise and an inverse denoising equation for recovering the airfoil shape by inverse denoising.

[0013] The historical aircraft airfoil shape and the corresponding historical airfoil coordinate points are obtained from the initial airfoil database as first training data, and the historical airfoil coordinate point training data in the first training data is input into the unconditional denoising diffusion model so that the unconditional denoising diffusion model diffuses the historical airfoil coordinate point training data into Gaussian noise data, and then the conditional probability distribution of the stepwise denoising process of the Gaussian noise data is fitted through the neural network of the unconditional denoising diffusion model, and the network parameters of the neural network are optimized to obtain the trained target unconditional denoising diffusion model.

[0014] Optionally, acquiring the historical aircraft airfoil shape and the corresponding historical airfoil coordinate points from the initial airfoil database as first training data, and inputting the historical airfoil coordinate point training data in the first training data into the unconditional denoising diffusion model so that the unconditional denoising diffusion model diffuses the historical airfoil coordinate point training data into Gaussian noise data, including:

[0015] The historical airfoil coordinate point training data, the diffusion steps, and the noise variance are input into the diffusion equation in the unconditional denoising diffusion model to obtain the Gaussian noise data through the diffusion equation.

[0016] Optionally, the trained target unconditional denoising diffusion model generates a plurality of target airfoil shapes, and a target airfoil database is established based on the target airfoil shapes, including:

[0017] A plurality of target airfoil shapes are generated through the target unconditional denoising diffusion model and the historical aircraft airfoil shapes carrying noise signals, and the plurality of target airfoil shapes and their corresponding target airfoil coordinate points are expanded to the initial airfoil database to obtain a target airfoil database.

[0018] Optionally, before the conditional denoising diffusion model is trained using the target airfoil shape and the corresponding aerodynamic performance parameters in the target airfoil database to obtain the target conditional denoising diffusion model, the method further includes:

[0019] Calculate the aerodynamic performance parameters corresponding to each target airfoil shape in the target airfoil database;

[0020] A conditional denoising diffusion model is constructed, which includes a forward diffusion equation for converting the airfoil shape into Gaussian noise and an inverse denoising equation for performing inverse denoising to restore the airfoil shape according to the aerodynamic performance parameters.

[0021] Optionally, the using the target airfoil shape and the corresponding aerodynamic performance parameters of the target airfoil database to perform model training on the conditional denoising diffusion model to obtain the target conditional denoising diffusion model includes:

[0022] The target airfoil shape and the corresponding aerodynamic performance parameters are obtained from the target airfoil database as second training data, and the target airfoil coordinate point training data in the second training data is input into the conditional denoising diffusion model so that the conditional denoising diffusion model diffuses the target airfoil coordinate point training data into Gaussian noise data, and then the neural network of the conditional denoising diffusion model is used to fit the conditional probability distribution of the process of stepwise denoising of the Gaussian noise data according to the target conditions of Gaussian noise data, time step, and aerodynamic performance data, and the network parameters of the neural network of the conditional denoising diffusion model are optimized to obtain the trained target conditional denoising diffusion model.

[0023] Optionally, the aerodynamic performance parameters include: lift coefficient and drag coefficient.

[0024] In a second aspect, the present application discloses a rapid inverse design device for an airfoil based on a denoising diffusion model, comprising:

[0025] A library establishment module, used to train an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establish a target airfoil database based on the target airfoil shapes;

[0026] A model training module, used for performing model training on a conditional denoising diffusion model using the target airfoil shape and corresponding aerodynamic performance parameters in the target airfoil database to obtain a target conditional denoising diffusion model;

[0027] The airfoil generation module is used for inputting the aerodynamic performance index in the airfoil generation request into the target condition denoising diffusion model when there is an airfoil generation request, so that the target condition denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance index.

[0028] In a third aspect, the present application discloses an electronic device, comprising:

[0029] Memory, used to store computer programs;

[0030] A processor is used to execute the computer program to implement the steps of the aforementioned airfoil rapid inverse design method based on a denoising diffusion model.

[0031] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed method for rapid inverse design of an airfoil based on a denoising diffusion model are implemented.

[0032] It can be seen that the present application discloses a method for rapid inverse design of airfoils based on a denoising diffusion model, comprising: training an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establishing a target airfoil database based on the target airfoil shapes; training a conditional denoising diffusion model using the target airfoil shapes and corresponding aerodynamic performance parameters of the target airfoil database to obtain a target conditional denoising diffusion model; when there is an airfoil generation request, inputting the aerodynamic performance indicators in the airfoil generation request into the target conditional denoising diffusion model, so that the target conditional denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance indicators. It can be seen that the present application does not need to obtain the surface flow field of the airfoil as a constraint condition for the airfoil inverse design process, and obtain the airfoil shape under this constraint condition through complex iterative mapping. Instead, it is based on the powerful data feature learning and sample generation capabilities of the denoising diffusion model, with the airfoil coordinate points and the aerodynamic performance parameters corresponding to the airfoil as training data, to establish an airfoil inverse design model. After the airfoil inverse design model training is completed, the aerodynamic performance can be directly input to quickly obtain the airfoil result that meets the aerodynamic performance requirements, and the airfoil shape can be obtained more efficiently and faster. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] 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 or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0034] Figure 1 A flow chart of a fast inverse design method of an airfoil based on a denoising diffusion model disclosed in the present application;

[0035] Figure 2 A network diagram of a target unconditional denoising diffusion model disclosed in this application;

[0036] Figure 3 A target condition denoising diffusion model training flow chart disclosed in this application;

[0037] Figure 4 A schematic diagram of a conditional denoising diffusion model network disclosed in this application;

[0038] Figure 5 This is a sample diagram of a label airfoil and a design airfoil disclosed in this application; wherein, Figure 5 (a) represents the label airfoil, Figure 5 (b) to Figure 5 (i) The CL coefficient and CD coefficient of the eight airfoil profiles generated at attack angles of 2°, 1°, 0°, -1°, and -2°, respectively;

[0039] Figure 6 A design airfoil sample disclosed in this application and a MRE error diagram of the aerodynamic performance of the labeled airfoil;

[0040] Figure 7 A schematic diagram of the structure of an airfoil rapid inverse design device based on a denoising diffusion model disclosed in the present application;

[0041] Figure 8 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0043] In the field of aerodynamics, airfoil design is a basic and important task. Fast and efficient aircraft airfoil design is an important way to improve the efficiency and innovation of aircraft design. Airfoil design is based on the Bernoulli principle and the principle of lift, and generates lift by changing the flow velocity difference between its upper and lower surfaces. An excellent airfoil design can increase lift, reduce drag, and ensure the stability and flight efficiency of the aircraft under various flight conditions.

[0044] Airfoil design can be divided into two methods: forward design and reverse design. Forward design is mainly based on the improvement of existing airfoils. By determining the design goal, manually modifying and optimizing the airfoil data, and then performing aerodynamic performance analysis, this process is repeated iteratively until the requirements are met. Reverse design is to first give an aerodynamic goal, use the goal as a constraint, and use the optimization method to fit and calculate the airfoil that meets the aerodynamic goal.

[0045] The forward airfoil design method repeatedly performs wind tunnel tests or CFD calculations to obtain the corresponding aerodynamic performance of the airfoil by giving the airfoil shape and flow conditions many times until the pre-set design indicators are met. This process is undoubtedly very time-consuming and labor-intensive, and requires rich professional knowledge and experience. At present, the inverse design of airfoils usually uses the airfoil surface flow field as a priori conditions (such as surface pressure), and obtains the airfoil shape under this condition through complex iterative mapping. However, the surface flow field of the airfoil is not easy to obtain before we get the airfoil, and the purpose of inverse design is often to obtain an airfoil shape that meets aerodynamic performance (such as lift-to-drag ratio), so it is a practical task to directly inversely design a reasonable airfoil based on aerodynamic performance.

[0046] The denoising diffusion model is a generative model whose core idea is to destroy the data distribution by gradually adding noise, and then learn an inverse process to recover the original data distribution from the noise. The denoising diffusion model has advantages in generation quality, diversity, ease of training, representation learning ability, and theoretical basis. It has become an important branch in the current field of deep generative models and has shown broad prospects in multiple application fields.

[0047] To this end, the present invention proposes a rapid inverse design scheme for airfoils based on a denoising diffusion model. The model training data are the original coordinate points of the airfoil and the aerodynamic performance corresponding to the airfoil. After the model training is completed, the aerodynamic performance can be directly input to quickly obtain an airfoil result that meets the requirements.

[0048] Reference Figure 1 As shown, an embodiment of the present invention discloses a method for rapid inverse design of an airfoil based on a denoising diffusion model, comprising:

[0049] Step S11: training an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establishing a target airfoil database based on the target airfoil shapes.

[0050] In this embodiment, the unconditional denoising diffusion model is trained using the historical aircraft airfoil shapes and the corresponding historical airfoil coordinate points in the initial airfoil database. It can be understood that the unconditional denoising diffusion model can be trained using the historical aircraft airfoil shapes and the historical airfoil coordinate points to solve the problem of difficulty in obtaining the airfoil shape under the constraints of the prior conditions by using the airfoil surface flow field as a priori conditions through complex iterative mapping in the traditional technology. Moreover, the method of characterizing the historical aircraft airfoil shape by the historical airfoil coordinate points does not perform parameterized dimensionality reduction on the airfoil shape, which reduces the loss of information and makes the trained target unconditional denoising diffusion model more accurate in generating the target airfoil shape.

[0051] In this embodiment, after the target unconditional denoising diffusion model training is completed, a large number of target airfoil shapes can be generated through the target unconditional denoising diffusion model for constructing a target airfoil database, which facilitates the subsequent model training of the conditional denoising diffusion model.

[0052] In this embodiment, before the unconditional denoising diffusion model is trained based on the historical aircraft airfoil shape and the corresponding historical airfoil coordinate points obtained from the initial airfoil database, it also includes: constructing the corresponding relationship between the historical aircraft airfoil shape and the historical airfoil coordinate points that characterize the historical aircraft airfoil shape, and constructing the initial airfoil database based on the historical aircraft airfoil shape, the historical airfoil coordinate points, and the corresponding relationship. It can be understood that based on the existing airfoil data, wherein the existing airfoil data is: the historical aircraft airfoil shape and the corresponding historical airfoil coordinate points. Establish a basic airfoil database, and the basic airfoil data is the initial airfoil database. And divide the data of the initial airfoil database into data sets, specifically divided into: training set, verification set and test set. For example: take the UIUC airfoil library as the initial airfoil database, and establish a basic airfoil data set based on the data in the initial airfoil database: the airfoil database contains 1620 airfoils. In order to facilitate model training, the linear interpolation method is used to unify the number of all airfoil coordinate points to 192.

[0053] In this embodiment, the construction and training process of the unconditional denoising diffusion model includes: constructing an unconditional denoising diffusion model including a forward diffusion equation for converting the airfoil shape into Gaussian noise and an inverse denoising equation for recovering the airfoil shape by inverse denoising; obtaining the historical aircraft airfoil shape and the corresponding historical airfoil coordinate points from the initial airfoil database as the first training data, and inputting the historical airfoil coordinate point training data in the first training data into the unconditional denoising diffusion model, so that the unconditional denoising diffusion model diffuses the historical airfoil coordinate point training data into Gaussian noise data, and then fitting the conditional probability distribution of the stepwise denoising process of the Gaussian noise data through the neural network of the unconditional denoising diffusion model, and optimizing the network parameters of the neural network to obtain the trained target unconditional denoising diffusion model. It can be understood that the unconditional denoising diffusion model is constructed and trained based on the basic airfoil database established in the previous step as training data. Specifically, the construction process of the unconditional denoising diffusion model includes a forward diffusion process and a reverse denoising process, wherein the forward diffusion process is as follows: the historical airfoil coordinate point training data, the diffusion step number, and the noise variance are input into the diffusion equation in the unconditional denoising diffusion model to obtain the Gaussian noise data through the diffusion equation. The historical airfoil coordinate point training data in the first training data is set to , accordingly, is the training data distribution, and the noise variance is given as ,satisfy conditions, is the number of diffusion steps. In this embodiment, the number of diffusion steps is set to 500, and the diffusion process is defined as follows:

[0054] ;Formula (1)

[0055] in, is the diffusion data generated under the t-th diffusion step, is the diffusion data generated under the t-1th diffusion step, Indicates from N The sampled Gaussian noise, N represents a normal distribution high-order matrix, I Represents the identity matrix.

[0056] Since each moment in the forward process is only related to the previous moment, it can be regarded as a Markov process and written as a probability distribution form:

[0057] ;Formula (2)

[0058] set up ,Right now , and then derive it into formula (1), we can get arrive The expression is:

[0059] ;Formula (3)

[0060] in, express , It also means from N Substituting formula (3) into formula (2) yields:

[0061] ;Formula (4)

[0062] Then according to the above formula, we can get any Gaussian noise data at time .

[0063] Then perform the reverse denoising process: Since the forward diffusion process is , then the reverse process is to find , that is, from Gaussian noise data Composed of Step by step denoising to the original data . Because we don’t know the conditional probability distribution , so we need to build a neural network to fit it. , which can be expressed as:

[0064] ;Formula (5)

[0065] in, are the parameters of the neural network, and are the mean and variance respectively.

[0066] The denoising diffusion model is implemented by optimizing the variational next term of the negative log-likelihood during the training process, and the parameters of the neural network are continuously adjusted during the optimization process. , so that the model is Get the most realistic possible , its loss function is:

[0067] ;Formula (6)

[0068] in, yes The noise sampled at each moment, It is an unconditional denoising diffusion model The noise of the moment prediction.

[0069] The unconditional diffusion model network is as follows Figure 2 As shown, the noise estimation neural network selects 1D U-Net (1D convolutional neural network). In the reverse denoising process, Gaussian noise data is input and time step ,get Noisy data of step Repeat this process to get the initial data of step 0 .

[0070] Among them, the experimental environment of the above training model is: deep learning framework Pytorch; the main configuration of the computer is: CPU (Central Processing Unit): i9-10940x, GPU (Graphics Processing Unit): RTX3090, RAM (Random Access Memory): 64G, operating system: Windows Server 2019; the main parameters of the neural network: Adam optimization algorithm is used to accelerate gradient descent, the initial learning rate is 0.0005, the loss function is MSE (Mean Squared Error), and the number of training rounds is 20000.

[0071] In this embodiment, after the unconditional denoising diffusion model training is completed, a target unconditional denoising diffusion model is obtained, so as to generate a number of target airfoil shapes through the target unconditional denoising diffusion model and the historical aircraft airfoil shapes carrying noise signals, and the target airfoil shapes and their corresponding target airfoil coordinate points are expanded to the initial airfoil database to obtain a target airfoil database. It can be understood that the target unconditional denoising diffusion model generates 10W groups of new airfoils, and the new airfoils and the basic airfoil data sets have the same mid-airfoil data structure, both of which are 192 coordinate points. The new airfoil and the basic airfoil data sets are combined into an expanded data set to obtain a target airfoil database to increase the diversity of the data.

[0072] Step S12: using the target airfoil shape and corresponding aerodynamic performance parameters in the target airfoil database to perform model training on the conditional denoising diffusion model to obtain a target conditional denoising diffusion model.

[0073] In this embodiment, after the target airfoil database is expanded, the conditional denoising diffusion model is trained by calculating each target airfoil shape and the corresponding aerodynamic performance parameters in the target airfoil database. Specifically, the aerodynamic performance parameters are used as the constraint conditions of the airfoil inverse design, and the conditional denoising diffusion model of the airfoil is generated by reverse training together with the target airfoil data. Compared with the traditional airfoil inverse design method, the surface flow field of the ungenerated airfoil shape is difficult to obtain, and the purpose of the reverse design is often to obtain an airfoil shape that meets aerodynamic performance (such as lift-to-drag ratio), so it is a practical task to directly reverse design a reasonable airfoil through aerodynamic performance. Therefore, the present invention obtains a target conditional denoising diffusion model by training the conditional denoising diffusion model using the target airfoil shape and the corresponding aerodynamic performance parameters. In this way, based on the powerful data feature learning and sample generation capabilities of the denoising diffusion model, the original coordinate points of the airfoil and the aerodynamic performance corresponding to the airfoil are used as training data to establish an airfoil inverse design model, and quickly obtain an airfoil shape that meets aerodynamic performance.

[0074] Step S13: when there is an airfoil generation request, the aerodynamic performance index in the airfoil generation request is input into the target condition denoising diffusion model, so that the target condition denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance index.

[0075] In this embodiment, after the model training is completed, the airfoil generation request is obtained, the aerodynamic performance index in the airfoil generation request is directly extracted, and then the aerodynamic performance parameters in this airfoil generation request are determined based on the extracted aerodynamic performance index, and finally the target condition denoising diffusion model directly generates the corresponding airfoil shape according to the input aerodynamic performance parameters. Among them, the aerodynamic performance index can specifically include: angle of attack, Reynolds number, Mach number, etc. The aerodynamic performance parameters include: lift coefficient, drag coefficient, etc.

[0076] It can be seen that the present application discloses a method for rapid inverse design of airfoils based on a denoising diffusion model, comprising: training an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establishing a target airfoil database based on the target airfoil shapes; training a conditional denoising diffusion model using the target airfoil shapes and corresponding aerodynamic performance parameters of the target airfoil database to obtain a target conditional denoising diffusion model; when there is an airfoil generation request, inputting the aerodynamic performance indicators in the airfoil generation request into the target conditional denoising diffusion model, so that the target conditional denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance indicators. It can be seen that the present application does not need to obtain the surface flow field of the airfoil as a constraint condition for the airfoil inverse design process, and obtain the airfoil shape under this constraint condition through complex iterative mapping. Instead, it is based on the powerful data feature learning and sample generation capabilities of the denoising diffusion model, with the airfoil coordinate points and the aerodynamic performance parameters corresponding to the airfoil as training data, to establish an airfoil inverse design model. After the airfoil inverse design model training is completed, the aerodynamic performance can be directly input to quickly obtain the airfoil result that meets the aerodynamic performance requirements, and the airfoil shape can be obtained more efficiently and faster.

[0077] Reference Figure 3 As shown, the embodiment of the present invention specifically discloses step S12: using the target airfoil shape and the corresponding aerodynamic performance parameters of the target airfoil database to perform model training on the conditional denoising diffusion model to obtain the target conditional denoising diffusion model. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically:

[0078] Step S1211: Calculate the aerodynamic performance parameters corresponding to each target airfoil shape in the target airfoil database; construct a conditional denoising diffusion model including a forward diffusion equation for converting the airfoil shape into Gaussian noise and a reverse denoising equation for performing reverse denoising to restore the airfoil shape according to the aerodynamic performance parameters.

[0079] In this embodiment, Xfoil software (a simulation software commonly used in airfoil design) is used to calculate the aerodynamic performance parameters corresponding to the target airfoil shapes. Xfoil software is a widely used airfoil aerodynamic analysis software. Based on potential flow theory and vortex surface element method, it can provide calculation results of aerodynamic performance parameters such as lift coefficient (CL) and drag coefficient (CD). For example: the aerodynamic working condition takes the Reynolds number (Re) as 1×106, the Mach number (Mach) as 0.15, and the angle of attack (alpha) as [2°, 1°, 0°, -1°, -2°]. Xfoil software is used to calculate the CL and CD aerodynamic coefficients of all target airfoil shapes in the extended data set.

[0080] In this embodiment, a conditional denoising diffusion model is constructed and trained and tuned. The forward process of the conditional denoising diffusion model is the same as that of the unconditional denoising diffusion model. The difference lies in the aerodynamic performance parameters of the conditional denoising diffusion model in the reverse denoising process. Therefore, a conditional denoising diffusion model is constructed, and the target airfoil shape in the expanded target airfoil database is used as the second training data to train the conditional denoising diffusion model. Specifically, the construction process of the conditional denoising diffusion model also includes a forward diffusion process and a reverse denoising process.

[0081] Step S1212: Acquire the target airfoil shape and the corresponding aerodynamic performance parameters from the target airfoil database as second training data, and input the target airfoil coordinate point training data in the second training data into the conditional denoising diffusion model, so that the conditional denoising diffusion model diffuses the target airfoil coordinate point training data into Gaussian noise data.

[0082] In this embodiment, the forward diffusion training process is as follows: the target airfoil shape coordinate point training data, diffusion steps, and noise variance are input into the diffusion equation in the conditional denoising diffusion model to obtain Gaussian noise data through the diffusion equation. Then, in the reverse denoising process, different constraints from those in the unconditional denoising diffusion model are added, namely, aerodynamic performance parameters. Therefore, the difference condition in the present invention is the addition of the aerodynamic coefficient corresponding to the airfoil, and the reverse process is expressed as , which can be defined as:

[0083] ;Formula (7)

[0084] Correspondingly, the loss function of the conditional denoising diffusion model is:

[0085] ;Formula (8)

[0086] At this point, the conditional denoising diffusion model is built, and the conditional diffusion model network is as follows: Figure 4 As shown, the input data of the input model is: input Gaussian noise data , time step and aerodynamic performance parameters (condition) , the output data is noisy data .

[0087] Step S1213: Fitting the conditional probability distribution of the stepwise denoising process of the Gaussian noise data according to the target conditions of Gaussian noise data, time step, and aerodynamic performance data through the neural network of the conditional denoising diffusion model, and optimizing the network parameters of the neural network of the conditional denoising diffusion model to obtain the trained target conditional denoising diffusion model.

[0088] In this embodiment, the noise estimation neural network selects 1D U-Net. In the reverse denoising process, the input , time step and aerodynamic performance parameters ,get Noisy data of step Repeat this process to get the initial data of step 0 , that is, the target airfoil shape, and then continuously optimize the network parameters of the neural network of the conditional denoising diffusion model in this process to obtain the trained target conditional denoising diffusion model.

[0089] It should be noted that the experimental environment, computing configuration, and main network parameters of the conditional diffusion model are consistent with those of the unconditional diffusion model.

[0090] Analysis of airfoil design results: Based on the trained target conditional diffusion model, rapid airfoil design under aerodynamic constraints is achieved. The aerodynamic performance index input for result analysis is shown in Table 1, including CL and CD aerodynamic performance coefficients at 2°, 1°, 0°, -1°, and -2° attack angles. Eight airfoils were generated at the same time, taking a total of 9 seconds. Table 1 is as follows:

[0091]

[0092] Design and generate airfoils with labels corresponding to aerodynamic performance indicators such as Figure 5 As shown, Figure 5 (a) represents the label airfoil, through analysis Figure 5 (a) The labeled airfoil can obtain the aerodynamic performance indicators in Table 1 above. Figure 5 (b) to Figure 5 (i) Represents the predicted results of 8 airfoils under the total aerodynamic performance index of CL coefficient and CD coefficient at attack angles of 2°, 1°, 0°, -1°, and -2° respectively.

[0093] from Figure 5 It can be seen that the appearance of the generated airfoil is generally similar to the labeled airfoil, but it also shows diversity. This is because the denoising diffusion model is an efficient data distribution learning and sample generation neural network. Compared with previous neural networks, its reasoning results are diverse and can innovate new airfoils based on existing airfoils, so the generated airfoils can be diverse. The aerodynamic performance of the generated airfoil was calculated using Xfoil software, and the mean relative error (MRE) was calculated with the input aerodynamic indicators. The results are shown in the figure. Figure 6 As shown, among them, Figure 5 (a) is the label airfoil, which is the source of the angle of attack and aerodynamic parameters in Table 1. Figure 5All airfoil results are as similar as possible to the labeled airfoil. The accuracy of this prediction is obtained by calculating the mean relative error (MRE) between each airfoil result and the labeled airfoil. Specifically, design example 1 is Figure 5 The error between the airfoil result of (b) and the MRE of the labeled airfoil is 4.59%. Figure 6 Design Example 2 is Figure 5 The error between the airfoil result of (c) and the MRE of the labeled airfoil is 9.27%. Figure 6 Design Example 3 is Figure 5 The error between the airfoil result of (d) and the MRE of the labeled airfoil is 12.15%. Figure 6 Design example 4 is Figure 5 The error between the airfoil result of (e) and the MRE of the labeled airfoil is 2.45%. Figure 6 Design Example 5 is Figure 5 The error between the airfoil result of (f) and the MRE of the labeled airfoil is 4.15%. Figure 6 Design Example 6 is Figure 5 The error between the airfoil result of (g) and the MRE of the labeled airfoil is 8.14%. Figure 6 Design Example 7 is Figure 5 The error between the airfoil result of (h) and the MRE of the labeled airfoil is 8.41%. Figure 6 Design example 8 is Figure 5 The MRE error between the airfoil result of (i) and the labeled airfoil is 3.17%. It can be seen that the MRE error of the aerodynamic performance between the generated airfoil and the labeled airfoil can be basically controlled within 10%, indicating that the airfoil generation of the diffusion model is successfully constrained in terms of both appearance and aerodynamic performance using aerodynamic performance as the control condition.

[0094] It can be seen that by using the expanded airfoil data set and the corresponding aerodynamic performance as training data, the tuning conditional denoising diffusion model is trained; finally, the aerodynamic performance is input as a condition into the trained target conditional denoising diffusion model to generate an airfoil shape that meets the aerodynamic performance, and the generated results are analyzed. In addition, the aerodynamic performance of the airfoil is selected as the constraint condition for generating the airfoil, which is more in line with the actual situation than selecting the surface pressure distribution as the constraint condition. Moreover, according to experimental results, the invention has a higher efficiency in generating airfoils and can generate a large number of airfoils that meet the requirements in a short time.

[0095] Reference Figure 7 As shown, the present invention also discloses a rapid inverse design device for airfoil based on a denoising diffusion model, comprising:

[0096] A library establishment module 11 is used to train an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establish a target airfoil database based on the target airfoil shapes;

[0097] A model training module 12 is used to perform model training on a conditional denoising diffusion model using the target airfoil shape and corresponding aerodynamic performance parameters in the target airfoil database to obtain a target conditional denoising diffusion model;

[0098] The airfoil generation module 13 is used for inputting the aerodynamic performance index in the airfoil generation request into the target condition denoising diffusion model when there is an airfoil generation request, so that the target condition denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance index.

[0099] It can be seen that the present application discloses training an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establishes a target airfoil database based on the target airfoil shapes; the conditional denoising diffusion model is trained using the target airfoil shapes and corresponding aerodynamic performance parameters of the target airfoil database to obtain a target conditional denoising diffusion model; when there is an airfoil generation request, the aerodynamic performance indicators in the airfoil generation request are input into the target conditional denoising diffusion model, so that the target conditional denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance indicators. It can be seen that the present application does not need to obtain the surface flow field of the airfoil as a constraint condition for the airfoil inverse design process, and obtain the airfoil shape under this constraint condition through complex iterative mapping. Instead, it is based on the powerful data feature learning and sample generation capabilities of the denoising diffusion model, with the airfoil coordinate points and the aerodynamic performance parameters corresponding to the airfoil as training data, to establish an airfoil inverse design model. After the airfoil inverse design model training is completed, the aerodynamic performance can be directly input to quickly obtain the airfoil result that meets the aerodynamic performance requirements, and the airfoil shape can be obtained more efficiently and faster.

[0100] Furthermore, the present application also discloses an electronic device. Figure 8 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0101] Figure 8A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the airfoil rapid inverse design method based on the denoising diffusion model disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0102] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0103] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0104] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0105] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the airfoil rapid inverse design method based on the denoising diffusion model performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.

[0106] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed airfoil rapid inverse design method based on a denoising diffusion model is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0107] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0108] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly with hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory RAM (Random Access Memory), memory, read-only memory ROM (Read Only Memory), electrically programmable EPROM (Electrically Programmable Read Only Memory), electrically erasable programmable EEPROM (ElectricErasable Programmable Read Only Memory), register, hard disk, removable disk, CD-ROM (CompactDisc-Read Only Memory), or any other form of storage medium known in the technical field.

[0109] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0110] The scheme provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A fast inverse design method for airfoil based on a denoising diffusion model, characterized in that: include: Training an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establishing a target airfoil database based on the target airfoil shapes; Using the target airfoil shape and corresponding aerodynamic performance parameters of the target airfoil database to perform model training on a conditional denoising diffusion model to obtain a target conditional denoising diffusion model; When there is an airfoil generation request, inputting the aerodynamic performance index in the airfoil generation request into the target condition denoising diffusion model, so that the target condition denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance index; The unconditional denoising diffusion model is trained based on the historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from the initial airfoil database, including: An unconditional denoising diffusion model is constructed, which includes a forward diffusion equation for converting the airfoil shape into Gaussian noise and an inverse denoising equation for recovering the airfoil shape by inverse denoising. Acquire historical aircraft airfoil shapes and corresponding historical airfoil coordinate points from an initial airfoil database as first training data, and input the historical airfoil coordinate point training data in the first training data into the unconditional denoising diffusion model so that the unconditional denoising diffusion model diffuses the historical airfoil coordinate point training data into Gaussian noise data, and then fits the conditional probability distribution of the stepwise denoising process of the Gaussian noise data through the neural network of the unconditional denoising diffusion model, and optimizes the network parameters of the neural network to obtain the trained target unconditional denoising diffusion model; The step of acquiring a historical aircraft airfoil shape and a corresponding historical airfoil coordinate point from an initial airfoil database as first training data, and inputting the historical airfoil coordinate point training data in the first training data into the unconditional denoising diffusion model so that the unconditional denoising diffusion model diffuses the historical airfoil coordinate point training data into Gaussian noise data, comprises: Inputting historical airfoil coordinate point training data, diffusion steps, and noise variance into a diffusion equation in the unconditional denoising diffusion model to obtain the Gaussian noise data through the diffusion equation; The method of using the target airfoil shape and the corresponding aerodynamic performance parameters of the target airfoil database to perform model training on the conditional denoising diffusion model to obtain the target conditional denoising diffusion model includes: The target airfoil shape and the corresponding aerodynamic performance parameters are obtained from the target airfoil database as second training data, and the target airfoil coordinate point training data in the second training data is input into the conditional denoising diffusion model so that the conditional denoising diffusion model diffuses the target airfoil coordinate point training data into Gaussian noise data, and then the neural network of the conditional denoising diffusion model is used to fit the conditional probability distribution of the stepwise denoising process of the Gaussian noise data according to the target conditions of Gaussian noise data, time step, and aerodynamic performance data, and the network parameters of the neural network of the conditional denoising diffusion model are optimized to obtain the trained target conditional denoising diffusion model.

2. The airfoil rapid inverse design method based on denoising diffusion model according to claim 1 is characterized in that: Before training the unconditional denoising diffusion model based on the historical aircraft airfoil shapes and the corresponding historical airfoil coordinate points obtained from the initial airfoil database, the method further includes: A correspondence between historical aircraft airfoil shapes and historical airfoil coordinate points representing the historical aircraft airfoil shapes is constructed, and an initial airfoil database is constructed based on the historical aircraft airfoil shapes, the historical airfoil coordinate points, and the correspondence.

3. The airfoil rapid inverse design method based on denoising diffusion model according to claim 2 is characterized in that: The trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and a target airfoil database is established based on the target airfoil shapes, including: A plurality of target airfoil shapes are generated through the target unconditional denoising diffusion model and the historical aircraft airfoil shapes carrying noise signals, and the plurality of target airfoil shapes and their corresponding target airfoil coordinate points are expanded to the initial airfoil database to obtain a target airfoil database.

4. The airfoil rapid inverse design method based on denoising diffusion model according to claim 1 is characterized in that: Before the conditional denoising diffusion model is trained using the target airfoil shape and the corresponding aerodynamic performance parameters of the target airfoil database to obtain the target conditional denoising diffusion model, the method further includes: Calculate the aerodynamic performance parameters corresponding to each target airfoil shape in the target airfoil database; A conditional denoising diffusion model is constructed, which includes a forward diffusion equation for converting the airfoil shape into Gaussian noise and an inverse denoising equation for performing inverse denoising to restore the airfoil shape according to the aerodynamic performance parameters.

5. The airfoil rapid inverse design method based on a denoising diffusion model according to any one of claims 1 to 4, characterized in that: The aerodynamic performance parameters include: lift coefficient and drag coefficient.

6. A rapid inverse design device for airfoil based on a denoising diffusion model, characterized in that: include: A library establishment module, used to train an unconditional denoising diffusion model based on historical aircraft airfoil shapes and corresponding historical airfoil coordinate points obtained from an initial airfoil database, so that the trained target unconditional denoising diffusion model generates a number of target airfoil shapes, and establish a target airfoil database based on the target airfoil shapes; A model training module, used for performing model training on a conditional denoising diffusion model using the target airfoil shape and corresponding aerodynamic performance parameters of the target airfoil database to obtain a target conditional denoising diffusion model; an airfoil generation module, configured to input the aerodynamic performance index in the airfoil generation request into the target condition denoising diffusion model when there is an airfoil generation request, so that the target condition denoising diffusion model generates a corresponding airfoil shape based on the aerodynamic performance index; The library establishment module is specifically used to construct an unconditional denoising diffusion model including a forward diffusion equation for converting an airfoil shape into Gaussian noise and an inverse denoising equation for recovering the airfoil shape by inverse denoising; obtaining a historical aircraft airfoil shape and a corresponding historical airfoil coordinate point from an initial airfoil database as first training data, and inputting the historical airfoil coordinate point training data in the first training data into the unconditional denoising diffusion model, so that the unconditional denoising diffusion model diffuses the historical airfoil coordinate point training data into Gaussian noise data, and then fitting the conditional probability distribution of the stepwise denoising process of the Gaussian noise data through the neural network of the unconditional denoising diffusion model, and optimizing the network parameters of the neural network to obtain the trained target unconditional denoising diffusion model; The airfoil rapid inverse design device based on the denoising diffusion model is specifically used to input the historical airfoil coordinate point training data, the diffusion step number, and the noise variance into the diffusion equation in the unconditional denoising diffusion model, so as to obtain the Gaussian noise data through the diffusion equation; The model training module is specifically used to obtain the target airfoil shape and the corresponding aerodynamic performance parameters from the target airfoil database as the second training data, and input the target airfoil coordinate point training data in the second training data into the conditional denoising diffusion model, so that the conditional denoising diffusion model diffuses the target airfoil coordinate point training data into Gaussian noise data, and then fits the conditional probability distribution of the stepwise denoising process of the Gaussian noise data according to the target conditions of Gaussian noise data, time step, and aerodynamic performance data through the neural network of the conditional denoising diffusion model, and optimizes the network parameters of the neural network of the conditional denoising diffusion model to obtain the trained target conditional denoising diffusion model.

7. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the airfoil rapid inverse design method based on a denoising diffusion model as described in any one of claims 1 to 5.