An aircraft design optimization method based on pre-training and weighted pseudo-inverse fine-tuning
By constructing a full-state space neural network and performing weighted pseudo-inverse fine-tuning, the problem of rapid and accurate evaluation of airfoil aerodynamic performance in aircraft design is solved, enabling rapid prediction and inverse design of airfoil flow fields and supporting the optimization of aircraft aerodynamic layout.
Patent Information
- Application Number
- CN202611367764.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to quickly and accurately assess and optimize airfoil aerodynamic performance during the overall aircraft design phase. Traditional data-driven machine learning methods suffer from poor generalization and lack physical constraints, failing to meet the needs of aircraft design optimization.
A full-state space neural network is constructed using a pre-training and weighted pseudo-inverse fine-tuning method. By incorporating physical knowledge into the neural network learning framework, the problem of fine-tuning the output layer weights of the neural network is transformed into a least-squares solution through linearizing the fluid dynamics control equations, thereby enabling rapid prediction and inverse design of the airfoil flow field.
It significantly reduces the time spent fine-tuning the output layer weights for specific airfoil solving tasks, enabling rapid solving of the airfoil spatial flow field and rapid prediction of aerodynamic characteristics, and supporting rapid optimization of aircraft aerodynamic layout design.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This invention relates to the fields of aerodynamic simulation, aerodynamic shape design, and machine learning, specifically to an aircraft design optimization method based on pre-training and weighted pseudo-inverse fine-tuning. Background Technology
[0002] Aircraft airfoils are generally the cross-sectional shape of aircraft airfoils or other lifting components. Airfoils are one of the core factors affecting the aerodynamic characteristics of aircraft. During the overall aircraft design phase, it is necessary to evaluate the aerodynamic performance of various airfoils to select the appropriate one. Airfoil aerodynamic performance data can be obtained from manuals / databases, but aerodynamic data for new airfoils is not readily available. To explore the aerodynamic performance of potential airfoils, numerical calculations are typically used to evaluate their aerodynamic performance during the overall design phase. Airfoil aerodynamic simulation methods combining potential flow theory and boundary layers offer fast calculation speeds but low accuracy and are limited to incompressible flows, failing to meet the simulation requirements of the overall design phase. Computational fluid dynamics-based airfoil aerodynamic simulation methods can consider subsonic aerodynamic performance and provide detailed flow field simulations; however, these methods are computationally time-consuming and difficult to explore the aerodynamic performance of a large number of airfoils with limited design resources.
[0003] In recent years, the development of machine learning has provided a new solution to the problem of high time consumption in airfoil simulation. It provides a large amount of airfoil aerodynamic data support for the overall design stage of aircraft, selects a suitable airfoil as the wing section of the aircraft, and optimizes the airfoil shape to improve the aerodynamic performance of the aircraft. However, traditional data-driven machine learning methods have poor generalization and lack physical constraints, making them difficult to apply to aircraft design optimization. Summary of the Invention
[0004] In view of this, the present invention provides an aircraft design optimization method based on pre-training and weighted pseudo-inverse fine-tuning. Based on a physical knowledge-embedded neural network learning framework, a full-state space neural network is trained, including airfoil flow field coordinates, incoming flow angle of attack and Mach number, and airfoil shape parameters. For different airfoil solution tasks, by linearizing the fluid dynamics control equations, the problem of fine-tuning the weights of the neural network output layer is transformed into a least-squares solution, realizing rapid prediction of the flow field of different airfoils (less than 1 second) and rapid solution of airfoil inverse design problems (less than 10 seconds), providing rapid prediction support for the aerodynamic characteristics of airfoils for subsequent aircraft aerodynamic layout design.
[0005] The aircraft design optimization method based on pre-training and weighted pseudo-inverse fine-tuning of the present invention includes: S1, using the flow field spatial coordinates and the incoming flow angle of attack With Mach number Airfoil shape parameters Using the flow field state parameters as the output, a full-state space neural network for the airfoil is constructed. S2, determine the upper and lower bounds of the flow field spatial coordinates, the incoming flow angle of attack and Mach number, and the airfoil shape parameters to obtain the sample size sampling space; S3, extract random airfoils, construct a training dataset based on the sample size sampling space, train the constructed full-state space neural network, and embed the control equation into the loss function of the neural network; S3 is repeated multiple times, random airfoils are re-extracted and trained, and finally a pre-trained full-state space neural network is obtained. S4, weights of the output layer of the pre-trained full-state-space neural network. Make fine adjustments, specifically: Linearly replace part of the output value of the current neural network, and change the output layer weights. The optimization problem is transformed into a least squares problem that minimizes the loss function, and the optimal output layer weights are obtained by solving it. Repeat the above steps until... Convergence is achieved, resulting in a finely tuned full-state space neural network. S5, Construct the airfoil inverse design problem, namely: find a set of optimal parameters. , , This results in the current airfoil's pressure coefficient distribution. Pressure coefficient distribution of airfoil target The difference between them is minimal; The current parameters are obtained by using a fine-tuned full-state space neural network. , , The flow field state parameters are then used to obtain the pressure coefficient distribution on the current airfoil surface. ; The optimal parameters , , This refers to the designed flight conditions and the aircraft's external parameters.
[0006] Preferably, the neural network is a multilayer perceptron, a graph neural network, or a convolutional neural network.
[0007] Preferably, the flow field state parameters include density velocity components and and pressure .
[0008] Preferably, in S3, the loss function of the neural network for:
[0009] in, and As weight,
[0010]
[0011] in, Let be the number of control point samples for the governing equation; The number of control point samples for the far-field boundary conditions; This represents the number of control point samples for the boundary conditions on the aircraft surface. The number of control point samples for periodic boundary conditions;
[0012]
[0013]
[0014]
[0015] in, and The normal vector of the airfoil surface shape and Directional components; For pressure far-field boundary conditions; for The boundary.
[0016] Preferably, in step S3, L-BFGS, Adam, and SGD are used to update the neural network parameters.
[0017] Preferably, in step S4, the coefficient lag method is used to linearly replace part of the output value of the neural network, resulting in the following pseudo-inverse fine-tuning solution equation:
[0018] Right now:
[0019] This will affect the output layer weights. The optimization problem is transformed into the following least squares problem: .
[0020] Preferably, in S5, the airfoil inverse design problem is:
[0021] Where || ||1 represents the L1 norm.
[0022] Beneficial effects: This invention utilizes a physics-based embedded neural network learning framework to achieve full-state space pre-training of the airfoil's spatial flow field, incoming flow conditions, and shape parameters. By linearizing the control equations, the problem of optimizing the output layer weights of the neural network is transformed into a least-squares solution, significantly reducing the time spent on fine-tuning the output layer weights for specific airfoil solutions. This enables rapid solutions to the airfoil's spatial flow field and rapid prediction of its aerodynamic characteristics. Furthermore, by combining automatic differentiation techniques, it achieves rapid solutions to the airfoil inverse design problem, obtaining an airfoil shape that satisfies the target pressure coefficient distribution. Attached Figure Description
[0023] Figure 1 This is a flowchart of an aircraft design optimization method based on pre-training and weighted pseudo-inverse fine-tuning.
[0024] Figure 2 It is a spatial coordinate transformation method for calculating airfoil flow fields.
[0025] Figure 3 These are the predictive results for different airfoils and different incoming flow conditions.
[0026] Figure 4 It is the change of the objective function of the airfoil inverse design process with the number of iterations.
[0027] Figure 5 It is the variation of geometric shape error in the airfoil reverse design process with the number of iterations.
[0028] Figure 6 This is a comparison of the pressure coefficients before and after the airfoil inversion design.
[0029] Figure 7 This is a comparison of the shape before and after the airfoil reverse design. Detailed Implementation
[0030] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0031] This invention provides an aircraft design optimization method based on pre-training and weighted pseudo-inverse fine-tuning, such as... Figure 1 As shown, the specific steps include the following: Step 1: Based on the physical knowledge embedded neural network learning framework, in the flow field spatial coordinates, incoming flow angle of attack... With Mach number Airfoil shape parameters Random samples are randomly sampled from the constructed joint space as training samples. The loss function is calculated based on the Euler equation, and the gradient of the loss function with respect to the neural network parameters is calculated through automatic differentiation. The neural network parameters are updated according to the gradient, and multiple training rounds are performed to achieve pre-training of the full state space model. The neural network can be a multilayer perceptron, graph neural network, convolutional neural network, etc. This embodiment uses a multilayer perceptron neural network as an example for detailed explanation.
[0032] Step 1.1: Based on the multilayer perceptron neural network framework, determine the neural network structure and construct the full-state space neural network for the airfoil. The calculation formula for a single perceptron is: (1) In the formula, For the output vector, For activation function, This is the weight matrix. For the output vector, The bias vector is used. Input layer neurons contain the flow field spatial coordinates, incoming flow angle of attack and Mach number, and airfoil shape parameters. The hidden layer is a multilayer perceptron. Output layer neurons contain flow field state parameters, including density. velocity components and ,pressure Remove the bias vector from the output layer. This system achieves a full-state spatial description of the airfoil's spatial flow field, incoming flow conditions, and shape parameters. The neural network structure consists of an input layer with 14 neurons; 10 hidden layers, with the first nine layers containing 128 neurons each and the last layer containing 256 neurons; and an output layer with 4 neurons. SiLU is used as the activation function.
[0033] Step 1.2: Determine the upper and lower bounds of the full state space.
[0034] Based on the incoming gas parameters, a suitable computational flow field spatial range is selected as the upper and lower bounds for the flow field spatial coordinate sampling. Using coordinate transformation methods in CFD, the physical planes around the airfoil are transformed to the computational plane, such as... Figure 2 As shown, the upper and lower bounds of the flow field spatial coordinate sampling are... ; Select the incoming flow condition (angle of attack of incoming flow) based on the required calculations. With Mach number The upper and lower bounds of the sampling are the angle of attack. ,Mach number ; A specific airfoil parameterization method is selected to parameterize all airfoils in the UIUC airfoil database, obtaining the corresponding airfoil shape parameters to form a database. The upper and lower bounds for airfoil shape parameter sampling are determined based on the maximum and minimum values in the database. This embodiment uses the 4th-order CST method to parameterize the airfoil, resulting in 10 airfoil shape parameters. The two-dimensional CST method expression for the airfoil is: (2) In the formula, is the dimensionless length along the coordinate axis direction; This is a normalized category function; The shape function is represented by a Bezier curve. The upper and lower bounds of the airfoil shape parameters are selected after taking various values. .
[0035] Step 1.3: Construct a full-state space neural network training dataset. Randomly select the shape parameters of multiple airfoils from the constructed airfoil shape parameter database as the airfoils for the current training round. In the flow field space coordinates, the incoming flow angle of attack... With Mach number Airfoil shape parameters The joint space is constructed, and a certain number of boundary and spatial control points are sampled according to the sampling boundary to serve as the dataset for training the full-state space neural network.
[0036] Step 1.4: Construct a full-state space neural network. In this embodiment, a multilayer perceptron is used as the neural network structure. The neural network structure consists of 10 linear perceptron layers, with 128 neurons in each of the first 9 layers and 256 neurons in the last layer. Tanh is used as the activation function.
[0037] A neural network is trained using a physics-based embedded learning framework. The output and partial derivatives of the full-state neural network are calculated, and the network loss function is calculated by combining the governing equations and boundary conditions. Boundaries and spatial control points serve as inputs to the multilayer perceptron neural network, and the output, including density, is obtained after processing through multiple linear layers. velocity components and ,pressure By utilizing the automatic differentiation function of deep learning frameworks, we can obtain... , , , Gas state variables and Partial derivatives of the components.
[0038] Step 1.5: Calculate the current loss function of the full-state space neural network. Consider the Euler equations for an inviscid compressible fluid; the governing equations are as follows: (3) In the formula, The specific heat ratio of air is given, and the remaining parameters are the neural network output and partial derivatives. The loss residuals of each equation are calculated. , , , The loss residual at the far-field boundary, calculated based on the pressure far-field boundary conditions, is: (4) Based on the boundary condition that the airfoil surface cannot be velocified, the airfoil surface loss residual is calculated as follows: (5) In the formula, and The normal vector of the airfoil surface shape and The directional components are calculated using the airfoil shape. Furthermore, based on the spatial transformation, the residuals on the spatial periodic boundary also need to be considered. (6) The loss function is calculated based on the residuals: (7) (8) (9) In the formula, and Weighting coefficients to balance the various losses; This represents the number of control point samples for the control equations. The number of control point samples for the far-field boundary conditions; The number of control point samples for the boundary conditions on the aircraft surface; The number of control point samples for periodic boundary conditions.
[0039] Step 1.5: Calculate the network weight gradient based on automatic differentiation. Utilize the automatic differentiation technique of the deep learning framework to obtain the loss function. Weight matrices of each layer of the neural network and bias vector The gradient.
[0040] Step 1.6: Based on the loss function Parameters of each layer of the neural network and The gradient is used to update the neural network parameters using the L-BFGS optimizer, with 1000 iterations per training round.
[0041] Step 1.7: Return to step 1.3, re-extract the airfoil, construct the training set data, and repeat the training for 1250 rounds to obtain the pre-trained full-state space neural network.
[0042] Step 2: Based on a pre-trained full-state space neural network, a weighted pseudo-inverse fine-tuning method is proposed to fine-tune the output layer weights of the pre-trained model. Solve the spatial flow field for a specific airfoil. This is done by linearizing the governing equations and adjusting the weights. The parameter optimization problem is transformed into a least squares problem. The nonlinear terms are then iteratively processed using the coefficient lag method to achieve weighting. Rapid fine-tuning ultimately yields the flow field for a specific airfoil.
[0043] Step 2.1: Linearize the control equations, using the coefficient lag method to handle nonlinear terms. Only a portion of the output is selected during the linearization of the control equations. , , , Replace with , , , The remaining variables are retained as the current neural network output values. The output layer weights are... The parameter optimization problem is transformed into a least squares problem. Without bias terms, the expression for the output layer of a multilayer perceptron neural network is: (10) In the formula, For the output of each hidden layer, the hidden layer parameters are: , These are the output layer weights. When the loss function consists of multiple parts and weights: (11) Based on the output layer expression of a multilayer perceptron neural network, the control equations of the neural network loss function embedded with physical knowledge are linearized into... Let the label data be Linearization of some state variables in the control equations is selected as follows: The pseudo-inverse fine-tuning solution equation is obtained as follows: (12) (13) (14) (15) The loss function can be written in the following form: (16) make Output layer weights The optimization problem is transformed into the following least squares problem: (17) Step 2.2: Solve for the output layer weights The least squares problem yields a loss function. Minimum optimal output layer weights .make , To obtain the optimal output layer weights The expression is:
[0044] (18) In the formula: (19) Step 2.3: Repeat steps 2.1 and 2.2 to solve. Next, until the output layer weights Convergence. The optimal output layer weights obtained from the solution are used. Obtain the output of the neural network to get the state variables of a specific airfoil. , , , Then, the aerodynamic characteristics of the airfoil can be calculated.
[0045] Different airfoils and different incoming flow conditions were selected to solve the surface pressure coefficient distribution. The solution error and solution time are shown in Table 1. The pressure coefficient error and shape error were calculated using the relative value of the L1 norm.
[0046] Table 1. Solution results for different airfoils and incoming flow conditions
[0047] Step 3: Construct the airfoil inverse design problem based on the target pressure coefficient. The target pressure coefficient distribution is as follows: The current airfoil pressure coefficient distribution is as follows: The objective function is constructed based on the differences in pressure coefficient distributions. The gradient of the objective function with respect to the airfoil shape parameters is obtained by automatic differentiation. The current airfoil shape parameters are then optimized to obtain the shape parameters of the target airfoil.
[0048] Step 3.1: Construct the airfoil inverse design problem. The target pressure coefficient distribution of the airfoil is as follows: The RAE2822 airfoil was selected. , The pressure coefficient distribution at that time is taken as the target pressure coefficient. The pressure coefficient distribution of the current airfoil is as follows: The current airfoil is NACA0012. The current incoming flow angle of attack, Mach number, and airfoil shape parameters are as follows: , , Find a set of parameters , , This minimizes the differences between the pressure coefficient distributions, i.e.: (20) Step 3.2: Solve the current airfoil flow field using Step 2, and fine-tune the output layer weights of the full-state space neural network. .
[0049] Step 3.3: Solve for the angle of attack of the incoming flow. ,Mach number Airfoil shape parameters The objective function of the inverse design problem. Current , , As input to the neural network, obtain the output of the full-state space neural network on the airfoil surface. , , , The pressure coefficient distribution on the current airfoil surface is calculated based on the incoming flow conditions. Based on the target pressure coefficient distribution Calculate the objective function value: (twenty one) Step 3.4: Obtain the gradient of the objective function of the current airfoil with respect to the shape parameters through automatic differentiation. Based on a deep learning framework, the objective function can be obtained using automatic differentiation technology. Angle of attack of the current incoming flow ,Mach number Airfoil shape parameters The gradient.
[0050] Step 3.5: Using the gradient information of the objective function, update the current angle of attack of the incoming flow using the gradient optimizer L-BFGS. ,Mach number Airfoil shape parameters .
[0051] Step 3.6: Determine if the objective function is less than a certain tolerance. If not, return to Step 3.2 to iteratively update the angle of attack. ,Mach number Airfoil shape parameters The process continues until a certain condition is met for convergence; if the condition is met, the current angle of attack is output. ,Mach number Airfoil shape parameters This is the result of solving the inverse design problem. The maximum number of iterations is 50, and the convergence tolerance is... The inverse design results of the airfoil performance characteristics are shown in Table 2. The objective function changes with the number of iterations as follows: Figure 4 As shown, the geometric shape error changes with the number of iterations as follows: Figure 4 As shown in Table 3, the results of the reverse design of the external parameters are presented. The pressure coefficients before and after the reverse design are compared below. Figure 6 As shown, the before and after redesign shape comparison is as follows: Figure 7 As shown.
[0052] Table 2 Optimization results of airfoil inverse design performance characteristics
[0053] Table 3 Results of Airfoil Inverse Design Shape Parameter Optimization
[0054] The above-mentioned airfoil flow field solution and airfoil inverse design results show that the present invention can obtain the spatial flow field and aerodynamic performance of various airfoils with relatively low computational cost, and on this basis, realize the rapid inverse design of airfoil shape, achieve the expected invention purpose, and verify the rationality, effectiveness and engineering applicability of the present invention.
[0055] In summary, the above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. An aircraft design optimization method based on pre-training and weighted pseudo-inverse fine-tuning, characterized in that, include: S1, using the flow field spatial coordinates and the incoming flow angle of attack With Mach number Airfoil shape parameters Using the flow field state parameters as the output, a full-state space neural network for the airfoil is constructed. S2, determine the upper and lower bounds of the flow field spatial coordinates, the incoming flow angle of attack and Mach number, and the airfoil shape parameters to obtain the sample size sampling space; S3, extract random airfoils, construct a training dataset based on the sample size sampling space, train the constructed full-state space neural network, and embed the control equation into the loss function of the neural network; S3 is repeated multiple times, random airfoils are re-extracted and trained, and finally a pre-trained full-state space neural network is obtained. S4, weights of the output layer of the pre-trained full-state-space neural network. Make fine adjustments, specifically: Linearly replace part of the output value of the current neural network, and change the output layer weights. The optimization problem is transformed into a least squares problem that minimizes the loss function, and the optimal output layer weights are obtained by solving it. Repeat the above steps until... Convergence yields the finely tuned full-state space neural network. S5, Construct the airfoil inverse design problem, namely: find a set of optimal parameters. , , This results in the current airfoil's pressure coefficient distribution. Pressure coefficient distribution of airfoil target The difference between them is minimal; The current parameters are obtained by using a fine-tuned full-state space neural network. , , The flow field state parameters are then used to obtain the pressure coefficient distribution on the current airfoil surface. ; The optimal parameters , , This refers to the designed flight conditions and the aircraft's external parameters.
2. The method as described in claim 1, characterized in that, The neural network is a multilayer perceptron, a graph neural network, or a convolutional neural network.
3. The method as described in claim 1, characterized in that, The flow field state parameters include density velocity components and and pressure .
4. The method as described in claim 3, characterized in that, In S3, the loss function of the neural network for: in, and As weight, in, Let be the number of control point samples for the governing equation; The number of control point samples for the far-field boundary conditions; This represents the number of control point samples for the boundary conditions on the aircraft surface. The number of control point samples for periodic boundary conditions; in, and The normal vector of the airfoil surface shape and Directional components; For pressure far-field boundary conditions; for The boundary.
5. The method as described in claim 1 or 4, characterized in that, In step S3, L-BFGS, Adam, and SGD are used to update the neural network parameters.
6. The method as described in claim 1, characterized in that, In step S4, the coefficient lag method is used to linearly replace part of the output value of the neural network, resulting in the pseudo-inverse fine-tuning solution equation as follows: Right now: This will affect the output layer weights. The optimization problem is transformed into the following least squares problem: 。 7. The method as described in claim 1, characterized in that, In S5, the airfoil inverse design problem is: Where || ||1 represents the L1 norm.
