CN117540489A - Airfoil pneumatic data calculation method and system based on multitask learning - Google Patents

Airfoil pneumatic data calculation method and system based on multitask learning Download PDF

Info

Publication number
CN117540489A
CN117540489A CN202311506032.4A CN202311506032A CN117540489A CN 117540489 A CN117540489 A CN 117540489A CN 202311506032 A CN202311506032 A CN 202311506032A CN 117540489 A CN117540489 A CN 117540489A
Authority
CN
China
Prior art keywords
airfoil
network
pressure coefficient
vector
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311506032.4A
Other languages
Chinese (zh)
Other versions
CN117540489B (en
Inventor
孟菲
陈超
黄宏宇
谢志江
杨川
杨朝旭
王成良
谢磊
孟德虹
杨海咏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University
Original Assignee
Chongqing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing University filed Critical Chongqing University
Priority to CN202311506032.4A priority Critical patent/CN117540489B/en
Publication of CN117540489A publication Critical patent/CN117540489A/en
Application granted granted Critical
Publication of CN117540489B publication Critical patent/CN117540489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/28Design optimisation, verification or simulation using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/08Fluids
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Pure & Applied Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Algebra (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Fluid Mechanics (AREA)
  • Computational Mathematics (AREA)
  • Medical Informatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to an airfoil pneumatic data calculation method and system based on multi-task learning, and belongs to the technical field of aerodynamics and deep learning. The scheme adopts a multitask learning method, an airfoil reconstruction network is constructed to extract airfoil geometric features, an airfoil flow field prediction network is designed to extract a coarse-granularity pressure coefficient curve of an airfoil in a global environment, an airfoil pressure coefficient generation network is designed to extract a fine-granularity pressure coefficient curve of the airfoil in a local environment, the airfoil flow field prediction network and the fine-granularity pressure coefficient curve are combined linearly through a cross-stitch network, and aerodynamic coefficients such as lift force, resistance and moment of the airfoil are calculated. The invention effectively combines the deep learning model AE, GAN, U-NET and the multi-task learning model with the fluid mechanics and the aerodynamics, digs the hidden characteristics of the deep learning model AE, GAN, U-NET and the multi-task learning model, accurately predicts the aerodynamic coefficient of the wing section, can well improve the comprehensiveness and the effectiveness of the training of the prediction model, can improve the accuracy of the calculation of the aerodynamic data, and has wide application prospect.

Description

Airfoil pneumatic data calculation method and system based on multitask learning
Technical Field
The invention belongs to the technical field of aerodynamics and deep learning, and relates to an airfoil pneumatic data calculation method and system based on multi-task learning.
Background
The airfoil optimization design is a key step in the aircraft design, determines the performance index of the aircraft in actual flight, and accurately calculates aerodynamic data such as lift force, resistance and the like of the airfoil, which has extremely important influence on the design optimization of the airfoil and the performance, maneuverability and stability of the aircraft, but the airfoil aerodynamic analysis often has the defects of long period, high computing resource expenditure and the like, and is not suitable for complex and changeable aircraft flight environments.
The traditional airfoil pneumatic analysis method is generally CFD simulation, and has the advantages that the operational safety risk does not exist, meanwhile, an approximate control equation is calculated, the data precision is relatively high, and the cost is relatively low; the method has the defects that the calculation accuracy is easily affected by the grid density, and is a very time-consuming calculation process when large iterative flow solutions are needed for airfoil optimization, fluid-solid coupling and the like, and a part of complex control equations have no numerical solutions. The current popular solutions are ROM degradation models, deep learning methods, etc. The ROM degradation model reduces the order of the control equation, simplifies the control equation, improves the solving efficiency, but the high nonlinearity among the data makes the calculation of the pneumatic data more difficult, so that the method is difficult to be suitable for multi-scale, transient and discontinuous processes, and the deep learning method can exactly make up the defects of the traditional method, so that the method adopts the deep learning method to calculate the pneumatic data of the aircraft.
In recent decades, with the advent of the information age, data has been explosively increased, so that many excellent data analysis methods have been promoted, and deep learning is the most blazed new star. Deep learning, namely DNN, is realized by designing a multi-layer neural network, so that neurons of each layer are deepened and widened continuously, and the neurons can be mapped to any function theoretically, so that the problem of complexity is solved, and the method is very outstanding in the fields of image recognition, face recognition and the like. In the hydrodynamic and aerodynamic fields such as aeroplane aerodynamic performance analysis and flow field prediction, the deep learning method also has the remarkable potential, the solving speed of aerodynamic data is greatly improved, the problems of high nonlinearity and high dimensionality among the data are solved, and the deep learning is used for feature extraction, feature fusion and the like, which are commonly used in hydrodynamic analysis.
Disclosure of Invention
In view of the above, the present invention aims to provide a method and a system for calculating aerodynamic data of an airfoil based on multi-task learning, which adopts a multi-task learning method to construct an airfoil reconstruction network to extract geometrical characteristics of the airfoil, designs a coarse-granularity pressure coefficient curve of the airfoil flow field prediction network to extract the airfoil in a global environment, designs a fine-granularity pressure coefficient curve of the airfoil pressure coefficient generation network to extract the airfoil in a local environment, and combines the two in a linear manner through a cross-stitch network to calculate aerodynamic coefficients such as lift force, resistance, moment, etc. of the airfoil. Training data is reduced through a multitask learning method, meanwhile, the addition of PINN enables the model to have physical interpretability, the preprocessing of the geometric characteristics of the wing profile also enables the result accuracy of the multitask learning model to be higher, the training speed to be faster, the model to be converged more quickly, and the prediction model to be more comprehensive.
In order to achieve the above purpose, the present invention provides the following technical solutions:
an airfoil pneumatic data calculation method based on multitask learning, which comprises the following steps:
s1, data preprocessing: the method comprises the steps of extracting geometrical characteristics of an airfoil by using a convolutional neural network CNN, inputting calculated coordinates, curvature and airfoil pictures of the airfoil, reconstructing the airfoil and self-attitudes through an AE network, and extracting a tensile vector of the airfoil;
s2, task one: predicting the flow field of the wing profile by using a U-NET model, fusing the wing profile vector in the step S1 by the model, and fusing the partial guide of the PINN medium-pressure field and the speed field by the loss function;
s3, task two: reconstructing a fine-granularity airfoil pressure coefficient curve by using GAN, and carrying out feature fusion on airfoil environmental features and airfoil tension vector;
s4, extracting the characteristic of a rough-granularity airfoil pressure coefficient curve of the predicted flow field in the task I through a convolutional neural network, combining the rough-granularity airfoil pressure coefficient curve with the fine-granularity airfoil pressure coefficient curve obtained in the task II through a cross-stitch network, and outputting the aerodynamic coefficient of the airfoil.
Further, in step S1, specifically including:
S11、curve extraction airfoil curvature characteristics: use->The curve represents the two-dimensional coordinates of the airfoil as a plurality of polynomials, and the bending degree, namely the curvature of the curve is calculated from the tangent space of each polynomial;
s12, extracting airfoil geometric features by a convolutional neural network CNN: converting the two-dimensional coordinates of the wing profile, the wing profile picture and the curvature obtained in S11 into a matrix data form to be used as the input of CNN;
s13, extracting a tensile vector of an airfoil by an AE network: by the architecture of the encoder-decoder, convolution layers and deconvolution layers are constructed, and the tension vector of the airfoil geometric features is extracted in a mode of reconstructing the airfoil.
Further, in step S2, specifically including:
s21, generating flow field data and aerodynamic data of the airfoil by Openfoam software: under the real condition, the Mach number is 0.1-0.6, the airfoil attack angle is between plus or minus 10 degrees, the Reynolds number is between 6 times and 7 times, and parameters such as lift force, resistance, moment and the like of different airfoil flow fields and airfoil aerodynamic forces under each condition are calculated;
s22, predicting a flow field of the airfoil by a network structure of the U-NET: inputting the wing profile picture and the environmental characteristic picture, such as attack angle, flow speed and the like, into a model, outputting a corresponding pressure field and speed fields in x and y directions of the wing profile under the condition, wherein the LOSS function is L1 LOSS;
s23, interpretability using the PINN enhancement model: knowing that the loss function in S22 is MSE, the bias of the pressure field and the bias of the velocity field are added to the loss function to make it have a certain physical interpretability.
Further, in step S3, specifically including:
s31, connecting an airfoil vector with an environment characteristic by a full connecting layer: the solution vector obtained in the step S1-3 is linearly spliced with the environmental characteristics through a fully connected neural network, and the influence of each node on the result is corrected through the step S32;
s32, calculating the mutual influence relation between the tension vector and the environment characteristic by a self-attention mechanism: the self-attention mechanism is fused with a fully connected network, the main purpose of which is to let the network notice the correlation between the different parts of the whole input. Firstly, setting key, query, value according to different input vector matrixes, secondly, calculating the correlation between every two input vectors by using keys and query, namely calculating the value alpha of the attention, performing softmax operation on the matrix A to obtain a new matrix A', and finally obtaining an output B corresponding to the input; the output obtained by the self-attention mechanism module contains the interrelationship among all the inputs, so that the model training effect is better;
s33, fully-connected network fusion airfoil profile: taking the airfoil hidden layer characteristics and the environmental characteristics which are obtained through the self-attention module processing in the step S32 as the input of a fusion network, and compressing the input characteristics to lower dimensionality through the fusion network to be used as the input of a subsequent GAN network;
s34, generating a pressure coefficient curve by a generator of the GAN: obtaining the input of a generator according to a fusion network formed by a self-attention mechanism in the step S33, and simultaneously taking a random variable z as part of the input of the generator according to the property of the GAN, and generating a new pressure coefficient curve as the input of a discriminator of the GAN through a deconvolution network;
s35, a discriminator of GAN discriminates the generated and true pressure coefficient curves: according to the step S34, the generated pressure coefficient curve and the false pressure coefficient curve are obtained, and meanwhile, the true pressure coefficient curve is input into the discriminator together, and the difference between the true pressure coefficient curve and the true pressure coefficient curve is calculated;
s36, calculating LOSS, and updating network parameters: and (3) according to the difference obtained in the step S35, simultaneously updating the whole network parameters by combining the loss function, and training.
Further, in step S4, specifically including:
s41, connecting output of a first task and output of a second task through a cross stitch network: linearly connecting the vector of the task I passing through the full connection layer and the vector of the task II passing through the convolution neural network, and calculating the mutual influence coefficient of the vector and the vector;
s42, outputting the aerodynamic coefficient of the airfoil, calculating LOSS, and updating the network: through the study of the cross stitch network, the aerodynamic coefficients of lift force, resistance, moment and the like of the wing profile are output, and the network is updated by using L1 LOSS.
The invention also provides an airfoil pneumatic data computing system based on the multi-task learning.
The invention has the beneficial effects that:
the invention designs a new model, effectively combines a deep learning model AE, GAN, U-NET and a multi-task learning model with fluid mechanics and aerodynamics, digs hidden characteristics of the model, and accurately predicts aerodynamic coefficients of wing sections. Meanwhile, the geometric shape of the wing profile can be better represented by the model through extracting the geometric information, curvature and other characteristics of the wing profile. And a self-attention mechanism is used for constructing a fusion network, so that the model can better fuse the relations among different features, and the prediction result is more accurate. The use of PINN makes the model more physically interpretable. The use of a deep learning network in the model enables the model to converge faster and enables the predictive model to be trained more comprehensively.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objects and other advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out in the specification.
Drawings
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in the following preferred detail with reference to the accompanying drawings, in which:
FIG. 1 is a logic block diagram of an airfoil pneumatic data calculation method based on multitasking learning of the present invention;
FIG. 2 is a detailed network architecture diagram of pneumatic data computation;
fig. 3 is a diagram of a cross stitch network structure.
Detailed Description
The technical scheme of the invention is described in detail below with reference to the accompanying drawings.
In the present invention, the following concepts are mainly included:
(1) Curvature: the curvature of a curve is defined by differentiation for the rotation rate of the tangential angle to the arc length at a point on the curve, indicating the extent to which the curve deviates from a straight line. Mathematically, a numerical value indicating the degree of curve bending at a certain point.
(2) Airfoil geometry: refers to the chord length, thickness, etc. of the airfoil in Euclidean space.
(3) Pressure coefficient: the pressure coefficient is a dimensionless number that describes the relative pressure throughout the flow field in fluid dynamics. The pressure coefficient is applied to aerodynamics and hydrodynamics, and the pressure coefficient is different at each point in the fluid flow field.
(4) Pneumatic coefficient: the aerodynamic coefficient is a dimensionless number, referred to in this patent as the lift, drag, and moment of the airfoil.
(5) GAN: the false data is generated by the generator, and the false data and the true data are identified by the generator and are mutually game, so that the purpose of model convergence is achieved.
(6) Self-attention mechanism: the self-attention mechanism mainly solves the correlation problem between different parts in the input without considering the latitude and the time, and solves the problem through key, value, query.
(7) CNN: convolutional neural networks are a type of feedforward neural network that includes convolutional computation and has a deep structure, and are one of representative algorithms for deep learning. Convolutional neural networks have a characteristic learning capability and can perform translation-invariant classification on input information according to a hierarchical structure of the convolutional neural networks, so the convolutional neural networks are also called as 'translation-invariant artificial neural networks'.
(8) U-NET: in the network model which is used for image processing such as image segmentation, image generation and the like, compared with CNN, the network model is more focused on classification of image pixel levels, has better image processing effect and is suitable for generating airfoil flow field prediction images. The network architecture employs an encoder-decoder architecture, including downsampling, upsampling, and jumping layers.
The invention provides an airfoil pneumatic data calculation method based on multitask learning, which can accurately predict airfoil pneumatic data, wherein an overall logic block diagram is shown in figure 1, and comprises an airfoil characteristic extraction module, an airfoil flow field prediction module, an airfoil pressure coefficient calculation module and an airfoil pneumatic data calculation module, an overall network structure diagram is shown in figure 2, and an overall network structure diagram of a multitask model is shown.
The embodiment specifically comprises the following steps:
a first part comprising the following three steps:
step S11:the curve provides airfoil curvature characteristics and codes. Use->The curve represents the airfoil two-dimensional coordinates as a plurality of polynomials, and the degree of curvature, i.e., the curvature, of the curve is calculated from the tangential space of each polynomial. Given a two-dimensional airfoil coordinate set d= { P i =(x i ,y i ) I=1, 2, …, M }, M represents the number of coordinate points, P represents a coordinate point, (x) i ,y i ) Representing the abscissa and the ordinate, D consists of 192 two-dimensional coordinates according to the actual coordinate set, by means of which 3 degrees +.>Curve, formula is
r (D; t) representsThe function of the curve, D is the sample space in which the airfoil coordinates are located, t is +.>Parameters of the curve, n is->Order of curve, B i,n (t) it is required to satisfy the following formula
According to 3 degrees of constructionThe curve can be represented as a smooth curve with 4 points, then the entire two-dimensional airfoil coordinate set can be represented as multiple segments of 3 degrees +.>The linear combination of curves characterizes the entire airfoil, which can be taken from +.>The wing profile curve is perceived through the control parameter t in the curve, and the curvature at each t can be conveniently calculated.
The smooth continuity of the airfoil surface is expressed in terms of curvature as follows
y 'is the first derivative of the airfoil ordinate y, y″ is the second derivative of the airfoil ordinate y, y' "is the third derivative of the airfoil ordinate y, and each coordinate point can take a curvature, so each airfoil has 192 curvatures which can be represented.
The fully connected neural network encodes airfoil curvature characteristics. The generated curvature is encoded using a fully connected neural network, the result of which is input to an AE network encoder.
Step S12: CNN encodes airfoil geometry. The two-dimensional coordinate of the wing profile and the wing profile picture are encoded by using a convolutional neural network CNN, geometrical characteristics of the wing profile, namely the chord length, the thickness and the like of the wing profile are extracted, and the result is used as input of a convolutional layer. The two-dimensional coordinates of the wing profile and the wing profile pictures are from a UIUC wing profile database, after data processing, about 1000 wing profiles can be used, and each wing profile two-dimensional coordinate passes throughAfter curve processing, 192 two-dimensional coordinate points are taken to represent the geometric shape of each airfoil, namely the input characteristic size of CNN192×2×1, the airfoil image is similarly preprocessed, and the input feature size is 256×256×3. The CNN encoded airfoil geometry feature consists of a plurality of convolution layers, each followed by a BN layer, a Relu function, and a dropout function, the kernel size of all convolution layers being set to 4*2, the size of the last layer being 512-dimensional data, meaning that the airfoil geometry feature is represented using 512-dimensional data.
Step S13: the AE network extracts the airfoil vector. And constructing a convolution layer and a deconvolution layer through the architecture of the encoder-decoder, inputting the curvature codes obtained in the step S11 and the wing profile geometric features obtained in the step S12 into a model, outputting the model as a wing profile, and extracting the tension vector of the wing profile geometric features in a wing profile reconstruction mode. The structure of the convolution layer is referred to in steps S11 and S12, and the deconvolution layer structure is opposite to the convolution layer structure. The LOSS function uses a classical mean square error function MSE, the formula is as follows:
Y i representing the original airfoil coordinates or airfoil picture,the wing profile coordinates or wing profile pictures generated through the AE model are represented, and n represents the number of wing profiles. In summary, when the model is trained to converge, an encoder capable of arbitrarily generating the airfoil vector can be obtained.
A second part comprising the following three steps:
step S21: the OpenFoam software generates flow field data and aerodynamic data for the airfoil. And writing a Python script file of Openfoam software, and performing flow field analysis and pneumatic calculation on more than 1000 airfoils in the UIUC database. Under the real condition, the Mach number has the value range of Ma epsilon {0.1,0.2,0.3,0.4,0.5,0.6}, the airfoil attack angle has the value range of AOA epsilon [ -10 degrees, 10 degrees ], the Reynolds number has the value range of Re epsilon {1e6,6e6,1e7}, and the parameters of different airfoil flow fields, airfoil aerodynamic forces, such as lift force, resistance force, moment and the like, under each condition are calculated.
Step S22: the network structure of the U-NET predicts the flow field of the airfoil. The input of the model is an airfoil picture, an airfoil attack angle picture and an airfoil Mach number picture respectively, and the pictures are respectively represented by two different solid colors, so that the influence of the pictures on different prediction results is distinguished; the output of the model is three pictures, namely a pressure field picture of the wing profile and a speed field picture in the X and Y directions, so as to represent the change condition of the current wing profile in the current condition. The model is constructed as a U-NET, also an encoder-decoder architecture, and in the encoded section, cross-row convolution is used to progressively reduce the image size by a factor of 2. This allows the network to extract larger and larger scale and abstract information in more and more feature channels. The decoding part of the network reflects this behavior and reduces the number of feature layers by averaging the pooling layers to increase spatial resolution. The skip connection connects all channels of the coding branch to the corresponding branch of the decoding section, effectively doubling the number of channels per decoding block. These skipped connections help the network take low-level input information into account when decoding the layer reconstruction solution. Each part of the network comprises, in addition to the nonlinear activation function, a convolution layer, a normalization layer. In this embodiment 7 convolution blocks are used to convert 1282 by 3 inputs into a single data point with 512 features, typically using a convolution kernel of size 42. As an activation function, a ReLU function with a slope of 0.2 is used at the encoding layer and regular ReLU activation is used at the decoding layer. The decoder section reconstructs the objective function using 7 further symmetrical layers, with the desired dimension being 1282 x 3. The jump connection of the encoder to the decoder ensures that the original information can be used in the decoder to ensure that the information loses excessive accuracy during downsampling, upsampling.
Step S23: loss function of U-NET and interpretability using PINN enhancement model. L1 LOSS is generally used as a LOSS function for U-NET, and the formula is as follows:
the difference between the MSE and the LOSS function is calculated by subtracting the pixel of the generated picture from the pixel of the original picture, and the main defects are that the generated picture is not accurate enough, the curve of the wing profile is not coherent enough, the whole experiment is driven by data and lacks a certain physical meaning, so that the PINN research at the forefront edge is added into the LOSS function to lead the LOSS to have a certain physical meaning, and the LOSS function is as follows:
the latter two terms are the partial derivatives of the velocity field and the pressure field, so as to update the parameters of the neural network.
A third part comprising the following six steps:
step S31: and (3) connecting the airfoil tension vector obtained in the step S13 with the full connecting layer and airfoil environmental characteristics. The airfoil environment features are Mach number, reynolds number and attack angle, the value range is the same as S21, the environment features with dimension 3 are expanded into hidden layer variables with latitude 256 through the full-connection layer, and the hidden layer variables are connected with the airfoil as the input of the feature fusion module.
Step S32: the self-attention mechanism calculates the relationship of the different input features. The self-attention mechanism is fused with the fully-connected network, and the main purpose of the self-attention mechanism is to make the network notice the correlation between different parts in the whole input, so that the network can converge more quickly, the calculated amount is reduced, and the model accuracy is increased. As can be seen from S31, the input of the self-attention module is the airfoil version coding and the environmental features, let each feature be assumed to be a i Each feature is resized to maintain a 512-dimensional data size as input to the self-attention module, as shown in fig. 2. The self-attention mechanism has the following steps:
step one, for each input vector a i Respectively multiplied by three coefficients w q 、w k 、w v The formula is
q i =w q ·a i
k i =w k ·a i
v i =w v ·a i
Q, k and v obtained respectively represent query, key and value;
step two, the correlation between the two input vectors is calculated by using the obtained q and k, namely, the value alpha of the degree is calculated, and the calculation is usually carried out by using a point multiplication mode, wherein the formula is alpha i,j =q i ·k j Written in vector form as a=k T Q, each value in matrix a records the Attention size α of the corresponding two input vectors;
step three, performing softmax operation or relu operation on the matrix A to obtain A';
step four, calculating each input vector a by using the obtained A' and V i Output vector b of corresponding self-layer i The formula isThe corresponding vector form is o=v·a';
through the calculation steps of the autonomous force mechanism, the interrelation between the input features can be known, and each feature a is input i Obtaining an output characteristic b i The dimension of the material is unchanged.
Step S33: the fully connected network merges airfoil features. The airfoil geometry and the environmental characteristics obtained through the self-attention module processing in the step S32 are used as the input of the fusion network, and the input characteristics are compressed to a lower latitude through the fusion network and used as the input of the subsequent GAN network.
Step S34: as can be seen from fig. 2, the pressure coefficient curve is generated by a generator of GAN. The real data of the pressure coefficient curve of the airfoil is set as x and is used as the input of the discriminator. The input z of the generator is obtained according to the fusion network formed by the self-attention mechanism in S32, and the newly generated pressure coefficient curve is obtained through the decoder formed by the deconvolution networkAs input to the discriminator. Setting random noise->Also as input to the discriminator. The encoder is composed of deconvolution layers, and outputs as synthetic and spurious airfoil pressure coefficient curve data.
Step S35: the discriminator D discriminates between the generated and true pressure coefficient curves. And (3) obtaining a generated pressure coefficient curve and a false pressure coefficient curve according to the step (S34), inputting the true pressure coefficient curves into a discriminator together, and respectively calculating the difference of the two pressure coefficient curves. The purpose of the discriminator is to discriminate, as far as possible, that the data generated by the generator is false.
Step S36: and calculating LOSS and updating network parameters. And according to the difference obtained in the step S32, simultaneously updating the whole network parameters by combining with the LOSS function, and training. The AE has poor capability of generating samples, so that a discriminator introducing GAN accelerates model convergence and improves the quality of model generated data. The generator attempts to generate spurious data to fool the discriminator D, which continually sharpens its decision boundary to determine the resultant spurious samples from the true samples, with the max-min game cross entropy loss function as follows:
GAN generates samples purely from random noise, and it is difficult to obtain an explicit mapping from the data domain to the feature domain. Therefore, the input data is subjected to feature extraction through the AE model, and an AE-GAN model is constructed. Note that in AE-GAN, the model generates a reconstructed sampleGiven the real sample x, a dummy sample is generated simultaneously>Directly from random noise->Restructured sample->And false sample->Should be classified as false by discriminator D, only x is considered as true by the discriminator, so the GAN loss function can be modified to the following equation:
which takes into account real, reconstructed and false samples, and, in addition, another loss function L for stabilizing the training process and sharpening the decision boundary of D layer Is introduced, the formula is as follows:
in summary, the GAN network loss function is a weighted combination of the above loss functions, and the formula is as follows:
L=λ 0 L layer1 L GAN
a fourth part comprising the following three steps:
step S41: the output of S2 and the output of S3 are linked by a "cross stitch" network. The structure of a "cross-stitch" network is shown in fig. 3, which attempts to find the best shared representations for multitasking learning, they model these shared representations using linear combinations, and learn the best linear combinations for a given set of tasks. These cross stitch units are integrated into convolutional neural networks and provide an end-to-end learning framework. Consider a case of multitasking learning, where there are two tasks a and B on the same input image. For ease of explanation, consider two networks trained separately for these tasks. The present invention proposes a new unit, the "cross stitch" unit, which combines the two networks into a multi-tasking network so that the task can oversee how much sharing is needed. At each layer of the network, by using tenThe word embroidery unit learns a linear combination of activation graphs to model token sharing. Given two activation maps x for layer 1 of two tasks A ,x B Learning a linear combination of two input activationsAnd feed these combinations as inputs to the filters of the next layer. This linear combination is parameterized with α. Specifically, at the position (i, j) of the activation map, the formula is as follows:
step S42: and outputting the aerodynamic coefficient of the airfoil, calculating LOSS, and updating the network. The output of the first task carries out the characteristic extraction of the fine granularity pressure coefficient curve through the fully connected neural network, the input of the second task carries out the characteristic extraction of the coarse granularity pressure coefficient curve through the convolution neural network, the two tasks directly carry out cross learning through the cross stitch network, the aerodynamic coefficients of the wing profile such as lift force, resistance, moment and the like are output, and finally the L1 LOSS is used for updating network parameters.
Finally, it is noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention may be modified without departing from the spirit and scope of the technical solution, and all such modifications are included in the scope of the claims of the present invention.

Claims (6)

1. A wing section pneumatic data calculation method based on multitask learning is characterized in that: the method comprises the following steps:
s1, data preprocessing: the method comprises the steps of extracting geometrical characteristics of an airfoil by using a convolutional neural network CNN, inputting calculated coordinates, curvature and airfoil pictures of the airfoil, reconstructing the airfoil and self-attitudes through an AE network, and extracting a tensile vector of the airfoil;
s2, task one: predicting the flow field of the wing profile by using a U-NET model, fusing the wing profile vector in the step S1 by the model, and fusing the partial guide of the PINN medium-pressure field and the speed field by the loss function;
s3, task two: reconstructing a fine-granularity airfoil pressure coefficient curve by using GAN, and carrying out feature fusion on airfoil environmental features and airfoil tension vector;
s4, extracting the characteristic of a rough-granularity airfoil pressure coefficient curve of the predicted flow field in the task I through a convolutional neural network, combining the rough-granularity airfoil pressure coefficient curve with the fine-granularity airfoil pressure coefficient curve obtained in the task II through a cross-stitch network, and outputting the aerodynamic coefficient of the airfoil.
2. The airfoil aerodynamic data computing method based on multitasking learning of claim 1, wherein: in step S1, specifically, the method includes:
S11、curve extraction airfoil curvature characteristics: use->The curve represents the two-dimensional coordinates of the airfoil as a plurality of polynomials, and the bending degree, namely the curvature of the curve is calculated from the tangent space of each polynomial;
s12, extracting airfoil geometric features by a convolutional neural network CNN: converting the two-dimensional coordinates of the wing profile, the wing profile picture and the curvature obtained in S11 into a matrix data form to be used as the input of CNN;
s13, extracting a tensile vector of an airfoil by an AE network: by the architecture of the encoder-decoder, convolution layers and deconvolution layers are constructed, and the tension vector of the airfoil geometric features is extracted in a mode of reconstructing the airfoil.
3. The airfoil aerodynamic data computing method based on multitasking learning of claim 2, wherein: in step S2, specifically, the method includes:
s21, generating flow field data and aerodynamic data of the airfoil by Openfoam software: under the real condition, the Mach number is 0.1-0.6, the airfoil attack angle is between plus or minus 10 degrees, the Reynolds number is 10 to the power of 6 to 7, and different airfoil flow fields and airfoil aerodynamic forces under each condition are calculated;
s22, predicting a flow field of the airfoil by a network structure of the U-NET: inputting the wing profile picture and the environment characteristic picture into a model, outputting a corresponding pressure field and speed fields in the x and y directions of the wing profile under the condition, wherein the LOSS function is L1 LOSS;
s23, interpretability using the PINN enhancement model: knowing that the loss function in S22 is MSE, the bias of the pressure field and the bias of the velocity field are added to the loss function to make it have a certain physical interpretability.
4. A method of computing aerodynamic data of an airfoil based on multitasking learning as claimed in claim 3, characterized by: in step S3, specifically, the method includes:
s31, connecting an airfoil vector with an environment characteristic by a full connecting layer: the solution vector obtained in the step S1-3 is linearly spliced with the environmental characteristics through a fully connected neural network, and the influence of each node on the result is corrected through the step S32;
s32, calculating the mutual influence relation between the tension vector and the environment characteristic by a self-attention mechanism: fusing a self-attention mechanism with a fully-connected network, firstly setting key, query, value according to different input vector matrixes, secondly calculating the correlation between every two input vectors by using keys and queries, namely calculating an attention value alpha, performing softmax operation on the matrix A to obtain a new matrix A', and finally obtaining an output B corresponding to the input;
s33, fully-connected network fusion airfoil profile: taking the airfoil hidden layer characteristics and the environmental characteristics which are obtained through the self-attention module processing in the step S32 as the input of a fusion network, and compressing the input characteristics to lower dimensionality through the fusion network to be used as the input of a subsequent GAN network;
s34, generating a pressure coefficient curve by a generator of the GAN: obtaining the input of a generator according to a fusion network formed by a self-attention mechanism in the step S33, and simultaneously taking a random variable z as part of the input of the generator according to the property of the GAN, and generating a new pressure coefficient curve as the input of a discriminator of the GAN through a deconvolution network;
s35, a discriminator of GAN discriminates the generated and true pressure coefficient curves: according to the step S34, the generated pressure coefficient curve and the false pressure coefficient curve are obtained, and meanwhile, the true pressure coefficient curve is input into the discriminator together, and the difference between the true pressure coefficient curve and the true pressure coefficient curve is calculated;
s36, calculating LOSS, and updating network parameters: and (3) according to the difference obtained in the step S35, simultaneously updating the whole network parameters by combining the loss function, and training.
5. The airfoil aerodynamic data computing method based on multitasking learning of claim 4, wherein: in step S4, specifically, the method includes:
s41, connecting output of a first task and output of a second task through a cross stitch network: linearly connecting the vector of the task I passing through the full connection layer and the vector of the task II passing through the convolution neural network, and calculating the mutual influence coefficient of the vector and the vector;
s42, outputting the aerodynamic coefficient of the airfoil, calculating LOSS, and updating the network: through the learning of the cross stitch network, the aerodynamic coefficient of the airfoil is output, and the network is updated using the L1 LOSS.
6. An airfoil pneumatic data computing system based on multitasking learning, characterized in that: the system adopts the airfoil aerodynamic data calculation method based on multitask learning as claimed in any one of claims 1 to 5.
CN202311506032.4A 2023-11-13 2023-11-13 Airfoil pneumatic data calculation method and system based on multitask learning Active CN117540489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311506032.4A CN117540489B (en) 2023-11-13 2023-11-13 Airfoil pneumatic data calculation method and system based on multitask learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311506032.4A CN117540489B (en) 2023-11-13 2023-11-13 Airfoil pneumatic data calculation method and system based on multitask learning

Publications (2)

Publication Number Publication Date
CN117540489A true CN117540489A (en) 2024-02-09
CN117540489B CN117540489B (en) 2024-06-21

Family

ID=89795154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311506032.4A Active CN117540489B (en) 2023-11-13 2023-11-13 Airfoil pneumatic data calculation method and system based on multitask learning

Country Status (1)

Country Link
CN (1) CN117540489B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021022752A1 (en) * 2019-08-07 2021-02-11 深圳先进技术研究院 Multimodal three-dimensional medical image fusion method and system, and electronic device
CN112668696A (en) * 2020-12-25 2021-04-16 杭州中科先进技术研究院有限公司 Unmanned aerial vehicle power grid inspection method and system based on embedded deep learning
CN113160375A (en) * 2021-05-26 2021-07-23 郑健青 Three-dimensional reconstruction and camera pose estimation method based on multi-task learning algorithm
CN114118405A (en) * 2021-10-26 2022-03-01 中国人民解放军军事科学院国防科技创新研究院 Loss function self-adaptive balancing method of neural network embedded with physical knowledge
WO2022120737A1 (en) * 2020-12-10 2022-06-16 深圳先进技术研究院 Multi-task learning type generative adversarial network generation method and system for low-dose pet reconstruction
CN115438584A (en) * 2022-09-16 2022-12-06 西北工业大学 Wing profile aerodynamic force prediction method based on deep learning
WO2023036164A1 (en) * 2021-09-13 2023-03-16 华为技术有限公司 Model training method based on physical informed neural networks and related apparatus
CN115859781A (en) * 2022-11-15 2023-03-28 重庆大学 Flow field prediction method based on attention and convolutional neural network codec
CN116030078A (en) * 2023-03-29 2023-04-28 之江实验室 Attention-combined lung lobe segmentation method and system under multitask learning framework
CN116227364A (en) * 2023-04-25 2023-06-06 重庆大学 Airfoil flow field prediction method based on improved generation of countermeasure network and model compression
CN116522769A (en) * 2023-04-20 2023-08-01 重庆大学 Pressure coefficient prediction method based on VAE-GAN and self-attention mechanism
CN116628854A (en) * 2023-05-26 2023-08-22 上海大学 Wing section aerodynamic characteristic prediction method, system, electronic equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021022752A1 (en) * 2019-08-07 2021-02-11 深圳先进技术研究院 Multimodal three-dimensional medical image fusion method and system, and electronic device
WO2022120737A1 (en) * 2020-12-10 2022-06-16 深圳先进技术研究院 Multi-task learning type generative adversarial network generation method and system for low-dose pet reconstruction
CN112668696A (en) * 2020-12-25 2021-04-16 杭州中科先进技术研究院有限公司 Unmanned aerial vehicle power grid inspection method and system based on embedded deep learning
CN113160375A (en) * 2021-05-26 2021-07-23 郑健青 Three-dimensional reconstruction and camera pose estimation method based on multi-task learning algorithm
WO2023036164A1 (en) * 2021-09-13 2023-03-16 华为技术有限公司 Model training method based on physical informed neural networks and related apparatus
CN114118405A (en) * 2021-10-26 2022-03-01 中国人民解放军军事科学院国防科技创新研究院 Loss function self-adaptive balancing method of neural network embedded with physical knowledge
CN115438584A (en) * 2022-09-16 2022-12-06 西北工业大学 Wing profile aerodynamic force prediction method based on deep learning
CN115859781A (en) * 2022-11-15 2023-03-28 重庆大学 Flow field prediction method based on attention and convolutional neural network codec
CN116030078A (en) * 2023-03-29 2023-04-28 之江实验室 Attention-combined lung lobe segmentation method and system under multitask learning framework
CN116522769A (en) * 2023-04-20 2023-08-01 重庆大学 Pressure coefficient prediction method based on VAE-GAN and self-attention mechanism
CN116227364A (en) * 2023-04-25 2023-06-06 重庆大学 Airfoil flow field prediction method based on improved generation of countermeasure network and model compression
CN116628854A (en) * 2023-05-26 2023-08-22 上海大学 Wing section aerodynamic characteristic prediction method, system, electronic equipment and storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
KUIJUN ZUO 等: "Fast aerodynamics prediction of laminar airfoils based on deep attention network", 《PHYSICS OF FLUIDS》, 31 March 2023 (2023-03-31), pages 1 - 21 *
ZHIPENG WANG 等: "A general deep transfer learning framework for predicting the flow field of airfoils with small data", 《ELSEVIER》, 24 November 2022 (2022-11-24), pages 1 - 24 *
岑仕杰;何元烈;陈小聪;: "结合注意力与无监督深度学习的单目深度估计", 广东工业大学学报, no. 04, 14 July 2020 (2020-07-14), pages 35 - 41 *
张骏 等: "一种气动大差异性数据多任务学习方法", 《空气动力学学报》, 31 December 2022 (2022-12-31), pages 64 - 72 *
汪华登: "基于深度学习的医学图像分割方法研究", 《中国博士学位论文全文数据库 信息科技辑》, 15 February 2023 (2023-02-15), pages 060 - 5 *
陈海;钱炜祺;何磊;: "基于深度学习的翼型气动系数预测", 空气动力学学报, no. 02, 15 April 2018 (2018-04-15), pages 294 - 299 *

Also Published As

Publication number Publication date
CN117540489B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
Mahajan et al. Categorical image classification based on representational deep network (RESNET)
Yang et al. Extracting and composing robust features with broad learning system
CN111127146B (en) Information recommendation method and system based on convolutional neural network and noise reduction self-encoder
Wu et al. Optimized deep learning framework for water distribution data-driven modeling
CN113157919B (en) Sentence text aspect-level emotion classification method and sentence text aspect-level emotion classification system
CN108805157A (en) Classifying Method in Remote Sensing Image based on the random supervision discrete type Hash in part
CN109376763A (en) Sample classification method, system and medium based on multisample reasoning neural network
CN115661550A (en) Graph data class imbalance classification method and device based on generation countermeasure network
Zeng et al. Dual swin-transformer based mutual interactive network for RGB-D salient object detection
Xue et al. Self-distribution binary neural networks
Li et al. Diversified text-to-image generation via deep mutual information estimation
CN118038032A (en) Point cloud semantic segmentation model based on super point embedding and clustering and training method thereof
CN117540489B (en) Airfoil pneumatic data calculation method and system based on multitask learning
Guo et al. Efficient convolutional networks learning through irregular convolutional kernels
CN112487231B (en) Automatic image labeling method based on double-image regularization constraint and dictionary learning
Qian et al. A Novel Sequence Discriminative Feature Extraction Network and Its Application in Offline Industrial Fault Pattern Clustering
CN113342982B (en) Enterprise industry classification method integrating Roberta and external knowledge base
CN113065336B (en) Text automatic generation method and device based on deep learning and content planning
Nandal et al. A Synergistic Framework Leveraging Autoencoders and Generative Adversarial Networks for the Synthesis of Computational Fluid Dynamics Results in Aerofoil Aerodynamics
Li et al. Gat-assisted deep hashing for multi-label image retrieval
Bleker et al. Logic-Informed Graph Neural Networks for Structural Form-Finding
Bu et al. Deep Self-supervised Subspace Clustering with Triple Loss
Li et al. Reducing carbon emissions in the architectural design process via transformer with cross-attention mechanism
Liu Hardware-friendly model compression technique of DNN for edge computing
Yang et al. Instance-level image synthesis method based on multi-scale style transformation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Meng Fei

Inventor after: Chen Chao

Inventor after: Huang Hongyu

Inventor after: Xie Zhijiang

Inventor after: Yang Chuan

Inventor before: Meng Fei

Inventor before: Yang Haiyong

Inventor before: Chen Chao

Inventor before: Huang Hongyu

Inventor before: Xie Zhijiang

Inventor before: Yang Chuan

Inventor before: Yang Chaoxu

Inventor before: Wang Chengliang

Inventor before: Xie Lei

Inventor before: Meng Dehong

CB03 Change of inventor or designer information