Airfoil Shape Optimization Using Genetic Algorithm Coupled Deep Neural Networks

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/373468165

Airfoil shape optimization using genetic algorithm coupled deep neural


networks

Article in Physics of Fluids · August 2023


DOI: 10.1063/5.0160954

CITATION READS

1 183

6 authors, including:

Ming-Yu Wu Xin-Yi Yuan


Nanjing University of Science and Technology Nanjing University of Science and Technology
8 PUBLICATIONS 13 CITATIONS 7 PUBLICATIONS 11 CITATIONS

SEE PROFILE SEE PROFILE

Zhihua Chen Wei-Tao Wu


Nanjing University of Science and Technology Nanjing University of Science and Technology
240 PUBLICATIONS 1,917 CITATIONS 150 PUBLICATIONS 1,492 CITATIONS

SEE PROFILE SEE PROFILE

All content following this page was uploaded by Ming-Yu Wu on 01 September 2023.

The user has requested enhancement of the downloaded file.


RESEARCH ARTICLE | AUGUST 28 2023

Airfoil shape optimization using genetic algorithm coupled


deep neural networks 
Ming-Yu Wu (吴明雨) ; Xin-Yi Yuan (袁心怡); Zhi-Hua Chen (陈志华); Wei-Tao Wu (吴威涛) ;
Yue Hua (华越)  ; Nadine Aubry

Physics of Fluids 35, 085140 (2023)


https://doi.org/10.1063/5.0160954

CrossMark

 
View Export
Online Citation

Articles You May Be Interested In

Completing the dark matter solutions in degenerate Kaluza-Klein theory


J. Math. Phys. (April 2019)

Gibbs measures based on 1d (an)harmonic oscillators as mean-field limits


J. Math. Phys. (April 2018)

An upper diameter bound for compact Ricci solitons with application to the Hitchin–Thorpe inequality. II
J. Math. Phys. (April 2018)

28 August 2023 10:55:55


Physics of Fluids ARTICLE pubs.aip.org/aip/pof

Airfoil shape optimization using genetic algorithm


coupled deep neural networks
Cite as: Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954
Submitted: 6 June 2023 . Accepted: 10 August 2023 .
Published Online: 28 August 2023

Ming-Yu Wu (吴明雨),1 Xin-Yi Yuan (袁心怡),2 Zhi-Hua Chen (陈志华),1 Wei-Tao Wu (吴威涛),2 Yue Hua (华越),3,a)
and Nadine Aubry4

AFFILIATIONS
1
Key Laboratory of Transient Physics, Nanjing University of Science and Technology, Nanjing 210094, China
2
School of Mechanical Engineering, Nanjing University of Science and Technology, Nanjing 210094, China
3
Sino-French Engineer School, Nanjing University of Science and Technology, Nanjing 210094, China
4
Department of Mechanical Engineering, Tufts University, Medford, Massachusetts 02155, USA

a)
Author to whom correspondence should be addressed: yhua@njust.edu.cn

ABSTRACT
To alleviate the computational burden associated with the computational fluid dynamics (CFD) simulation stage and improve aerodynamic

28 August 2023 10:55:55


optimization efficiency, this work develops an innovative procedure for airfoil shape optimization, which is implemented through coupling
the genetic algorithm (GA) optimizer with the aerodynamic coefficients prediction network (ACPN) model. The ACPN is established using
a fully connected neural network with the airfoil geometry as the input and aerodynamic coefficients as the output. The results show that the
ACPN’s mean prediction accuracy for the lift and drag coefficient is high up to about 99.02%. Moreover, the prediction time of each
aerodynamic coefficient is within 5 ms, four orders of magnitude faster compared to the CFD solver (3 min). Taking advantage of the fast
and accurate prediction, the proposed ACPN model replaces the expensive CFD simulations and couples with GA to force the airfoil shape
change to maximize the lift–drag ratio under multiple constraints. In terms of time efficiency, optimized airfoils can be fast obtained within
25 s. Even considering an extra 50 h spent on data preparing and 20 s for model training, the overall calculation cost is reduced by a
remarkable 62.1% compared to the GA-CFD optimization method (5.5 days). Furthermore, the GA-ACPN model improves the lift–drag
ratio with and without constraint by 51.4% and 55.4% for NACA0012 airfoil, respectively, while 50.3% and 60.0% improvement achieved by
the GA-CFD optimization method. These results indicate that the GA-ACPN optimization approach significantly enhances the optimization
efficiency and has great potential to address varying constraint optimization problems.
Published under an exclusive license by AIP Publishing. https://doi.org/10.1063/5.0160954

I. INTRODUCTION cavitation conditions with varying different outlet impeller diameters9


Aerodynamic optimization design has a crucial effect on the and the flow analysis of the influence of the guide vanes on the axial
transport efficiency, flight quality, and aerodynamic performance of bump,10 etc. In terms of the aerodynamic shape optimization (ASO), a
the aircraft. As an essential aircraft component, the airfoil can provide great deal of previous research performed the airfoil shape optimiza-
the lift forces for aircraft navigation and various flight maneuvers. tion using the classical approach, which usually consists of two steps:
Therefore, substantial research on airfoil shape optimization has been (1) carrying out the CFD simulations to provide the aerodynamic
carried out in the aerospace and mechanical engineering field.1,2 characteristics of observation airfoils, where a mesh regenerated each
The computational fluid dynamics (CFD) has long been an effec- time the optimizer changes the airfoil shape; (2) using an optimizer to
tive tool for simulations and analysis of complex characteristics.3–5 figure out the airfoil of the best aerodynamic performance, satisfying
Profiting from its great advantage of low cost compared with experi- both geometric constraints and functional requirements. Della
ments, it has been applied in the fields of fluid dynamics,6 aerody- Vecchia et al.11 introduced an innovative optimization procedure, cou-
namic,7,8 and so on. For instance, in the fields of fluid dynamics, pling a parametric section (PARSEC) parameterization for airfoil
AI-Obaidi has utilized CFD techniques to carry out numerous numer- shape with a genetic algorithm (GA) optimization method.
ical or experimental investigations on centrifugal pumps, including Considering the characteristics of viscous transonic flow surrounding
the transient flow field of a centrifugal pump under single-phase and the trailing edge, Shahrokhi and Jahangirian12 presented the improved

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-1


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

parameterization method based on the study of Sobieczky13 and then trained network can generate more realistic airfoil samples. In nature,
applied GA, supplemented by mesh movement strategy, for optimiz- this method was proposed for geometric filtering to improve the opti-
ing the airfoil shape under turbulent flow conditions. He et al.14 pro- mization efficiency. Achour et al.38 adopted a conditional generative
posed the B-splines free-form deformation (FFD) method along with adversarial network (CGAN) to optimize the airfoil shape, where
adaptive parameterization to define the airfoil shape, overcoming CGAN can guide the shape transformation toward particular classes
robustness issues related to shape parameterization, mesh deforma- of labeled samples by labeling each airfoil shape with precalculated
tion, and flow solver convergence. Then, they utilized mesh deforma- aerodynamic characteristics. Li et al.39 employed deep learning techni-
tion techniques to change the CFD surface mesh and finally employed ques to develop a tailored airfoil modal parameterization method for
sparse nonlinear optimizer (SNOPT) to find the optimal airfoil shape. low-Reynolds-number airfoils. By applying this method to solve the
Since no unique correlations exist between functional requirements optimization problems using the sequential least squares programing
and airfoil geometric shape,15 the above processes need to be iterated (SLSQP) algorithm, the novel parameterization method showcased its
continuously to find the optimal solution, which will take a substantial capability to effectively define the design space and enhance the design
amount of time and computing resources. efficiency. To sum up, Li et al.40 provided a comprehensive review of
To alleviate the computational burden associated with the CFD aerodynamic shape optimization (ASO) through the lens of machine
simulation stage and improve optimization efficiency, surrogate mod- learning. They introduced the state-of-the-art techniques and the
els have been widely applied in aerodynamic optimization and remaining challenges in aerodynamic shape optimization (ASO) from
design.16–20 However, when sampling the design space, this method three fundamental perspectives: compact geometric design space, fast
can still exponentially increase the computational cost as the dimen- aerodynamic analysis, and efficient optimization architecture.
sion of the design space grows. To combat this, researchers have According to this, it is known that there are a few studies coupling
devoted to dimensionality reduction (DR) techniques for the original deep learning-based fast aerodynamic analysis and optimization algo-
parametric design space. Raul and Leifsson21 used a Kriging regression rithms. Therefore, to improve the efficiency of the existing optimiza-
surrogate model coupling PARSEC parameterization method to tion methods, this work focuses on implementing an efficient
reduce the computational burden of ASO, mitigating the airfoil’s optimization framework using deep learning and evolutionary
dynamic stall characteristics. Berguin and Mavris22 used principal algorithm.
component analysis (PCA) to re-formulate the optimization problem In addition to the studies on the computational cost reduction of
in a lower dimensional coordinate system, where the adjoint formula- the classic optimization process, scientists also pay increasing attention

28 August 2023 10:55:55


tion can effectively reduce the gradient computing time. However, the to the selection of airfoil parameterization methods due to their signifi-
curse of dimensionality remains unavoidable when exploring different cant influence on the design space of the numerical optimizer and cal-
design alternatives. Hence, Berguin et al.23 proposed latent space gra- culation efficiency during the optimization process.41 A slight
dient transformation based on applying PCA to gradient information, variation in the airfoil curve will transform the aerodynamic perfor-
facilitating gradient-free exploration. Grey and Constantine24 pre- mance of the airfoil. For example, a tiny turn of the trailing edge angle
sented a low-dimensional active space, identifying a direction to per- can severely affect the circulation around the airfoil related to the
turb the design. As it provides insight that represent the dependence Kutta condition.42,43 So far, varieties of methods have been employed
on design variables, the optimization design process can be acceler- for airfoil parameterization in aerodynamic shape design, such as B-
ated. Moreover, rather than capturing dimensions that affect the final splines,44,45 Bezier curve,46–48 PARSEC,21,49 Hicks–Henne,50,51 and
design performance, some other techniques speed up the exploration class/shape function transformation (CST).52–54 Among these parame-
of design space by capturing the major shape variability.25–28 terization methods, the B-splines is the generalization of the Bezier
However, these DR models failed to precisely perceive the realistic curve, where control points around the geometry are introduced to
shape variability. define the airfoil shape. It allows designers to manipulate the airfoil
Fortunately, recent advances in machine learning techniques shape by moving control points. However, the inappropriate control
offer a brand-new promising avenue for aerodynamic shape optimiza- points may lead to impractical shapes, influencing the optimum shape.
tion due to their capability to successfully represent realistic relation- In addition, many design variables are usually required to supply great
ships from complex high-dimensional data. For example, as a branch flexibility for the airfoil design space, which increases the optimization
of the machine learning, deep neural networks (DNNs) have emerged complexity and computational time. The PARSEC method is mainly
as an efficient and powerful tool for data-driven fluid dynamics mod- applied in the aerodynamic optimization research of the supercritical
eling.29–32 They have also been successfully applied in the analysis of airfoil from the Royal Aircraft Establishment (RAE2822), where the
complex fluid flow.33,34 In the field of aerodynamic shape optimiza- parameters that define the trailing edge are not easy to control. The
tion, Liu et al.35 developed an efficient aerodynamic shape optimiza- Hicks–Henne bump functions provide valuable information about
tion framework by coupling the aerodynamic coefficient prediction how changes in design parameters affect the shape of the airfoil by
model with Bayesian optimization, demonstrating great potential in managing the contributions of each base function. Furthermore,
achieving fast and accurate airfoil shape optimization and design. Yan Wang and Gao55 introduced an additional trailing edge perturbation
et al.36 wisely combined machine learning techniques, reinforcement function to eliminate the overlap of the airfoil trailing edges, improv-
learning, and transfer learning to address the aerodynamic shape opti- ing the quality of the airfoil description and expanding the design
mization problem of missile control surfaces, proposing a novel opti- space. The CST method has some superiorities over other parameteri-
mization architecture based on machine learning techniques. Li et al.37 zation methods, such as an infinite leading edge slope, namely, a round
applied a deep convolutional generative adversarial network (GAN) to edge radius, and a finite trailing edge angle. The above airfoil shape
learn the underlying features of the existing airfoils. Therefore, the parameterization techniques were synthetically compared in Ref. 56,

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-2


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

which offered the reference metrics for designer to select the suitable aerodynamic coefficient prediction network with the GA optimization
parameterization based on the specific problem. method (GA-ACPN). Then, the primary methods are followed,
In this work, to develop an alternative to addressing the time- including airfoil geometry parameterization, the establishment of the
consuming CFD simulations during ASO, aerodynamic coefficient ACPN, and the coupling mechanism of bonding ACPN with GA opti-
modeling is conducted using a fully connected neural network (FCN), mization. In Sec. III, we demonstrate and discuss the prediction and
a nonlinear mapping function between the airfoil geometry and the optimization results obtained using the GA-ACPN framework.
aerodynamic coefficient. In particular, the aerodynamic coefficient Section IV concludes the current work.
prediction network (ACPN) takes as input a two-dimensional matrix
represented airfoil profile, which is constructed by varying the design II. METHOD
variables in the improved Hicks–Henne bump functions. To verify the In general, this paper focuses on proposing a novel approach for
ACPN model’s predictive performance for aerodynamic coefficient, aerodynamic shape optimization combining a deep learning-based
several test cases different from the previous airfoil design space are aerodynamic coefficient predictor and an evolutionary algorithm.
carried out. Subsequently, the optimization procedure that couples Specifically, aerodynamic coefficient modeling is first accomplished
ACPN with the classic GA optimization method is implemented in a via a fully connected network, which fast calculates the aerodynamic
numerical code to seek out the optimal airfoil satisfying both geomet- coefficient from the airfoil shape, replacing the computationally expen-
ric constraints and functional requirements. In general, the main sive CFD simulations. Then, GA is coupled with the ACPN model to
objective and contributions of the present work are summarized as find the optimal airfoil under multiple constraints.
follows:
(1) This paper developed a high-precision aerodynamic surrogate A. Overall architecture of GA-ACPN framework
model called the ACPN model using the deep learning tech-
The overall GA-ACPN framework is mainly composed of three
nique, which implements a fast and accurate surrogate model-
ing from airfoil geometry to aerodynamic performance. parts: airfoil geometry parameterization, aerodynamic coefficient
(2) The improved Hicks–Henne bump functions were adopted to modeling, and airfoil shape optimization, as shown in Fig. 1. First, the
parameterize airfoil shapes and generate abundant airfoil coor- improved Hicks–Henne bump functions are adopted to parameterize
dinates library. the airfoil geometry. Particularly, to ensure the uniformity of the airfoil
space, the Latin hypercube sampling (LHS) technique is utilized to

28 August 2023 10:55:55


(3) The proposed optimization framework coupled the ACPN model
with the GA optimizer. This framework was applied to optimize generate numerous groups of design variables, and then, the airfoil
the NACA0012 airfoil under two different objective functions. We space is constructed. Second, a CFD simulation tool, OpenFOAM, is
also performed another optimization procedure but using the applied to obtain the true aerodynamic coefficient. Subsequently, the
CFD solver to provide aerodynamic data, which is regarded the ACPN model is trained with the airfoil coordinates as the input matrix
ground truth for comparison with GA-ACPN optimization. By and the true aerodynamic coefficient as the labeled data. Finally, the
comparison, the proposed GA-ACPN optimization framework procedure of airfoil design optimization is completed by coupling the
can achieve the comparable optimization results within a very GA optimization method and the ACPN model.
short time, proving the reliability and efficiency of the ACPN
model for aerodynamic shape optimization. B. Airfoil geometry parameterization
The remainder of the paper is organized as follows: Sec. II starts For either optimization or prediction of aerodynamic perfor-
by outlining the overall optimization procedure coupling the mance, airfoil shape parameterization is a crucial aspect. In this work,

FIG. 1. Schematic of the overall GA-ACPN framework.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-3


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

FIG. 2. Comparison of the original and improved Hicks–Henne bump functions [the upper surface of NACA0012 with 0 angle of attack (AOA) in red]: (a) original and (b)
improved.

the improved Hicks–Henne bump functions are adopted to describe can be significantly altered without airfoil distortion, where a is the
various airfoil profiles55 slope coefficient and b is the decay coefficient. In this study, a and b
are set as 5 and 10, respectively.
X
k¼n
Theoretically, the more design variables are employed, the more
yup ¼ y0up þ ck fk ðxÞ; (1)
accurate airfoil curves will be obtained by improved Hicks–Henne
k¼1
bump functions, and the more satisfied optimization results are. To
X
k¼n simplify the airfoil parameterization process and reduce complexity
ylow ¼ y0low þ ckþn fk ðxÞ; (2) and time consumption, this study opts to select only five control posi-
k¼1 tions on both the upper and lower surfaces of the airfoil, i.e.,
8

28 August 2023 10:55:55


x ¼ ½0:30; 0:45; 0:60; 0:75; 0:90. Along with the leading and trailing
> 20x
< x ð1  xÞe ; k ¼ 1;
0:25
> edges, the k is set to be 7 and the xk ¼ ½0:00; 0:30; 0:45; 0:60;
fk ðxÞ ¼ sin ðpx Þ;
3 eð k Þ
2  k  n  1; (3) 0:75; 0:90; 1:00. Then, according to Eqs. (1)–(4), there will be 14
>
>
: axð1  xÞebð1xÞ ; k ¼ n; design variables to optimize.
Figure 2 shows the comparison of the original and improved
ln0:5 Hicks–Henne bump functions. The apparent discrepancy is that, in the
eðkÞ ¼ ; 0 < xk < 1; (4) improved Hick–Henne bump functions, one more bump function is
lnxk
introduced to control the variation in the trailing edge. Meanwhile, the
where y0 denotes the surface function of the base airfoil, and y denotes improved Hicks–Henne bump functions also completely retain the
that of the parameterized airfoil, and the subscripts up and low corre- advantages of the original Hicks–Henne bump functions. To intuitively
spond to the upper and lower surfaces of the airfoil. x denotes the hor- visualize the favorable effect on the trailing edge of the improved
izontal coordinate along the chord direction, n is the order of the Hicks–Henne generated airfoils, Fig. 3 illustrates the comparison of ten
Hicks–Henne bump functions, and ck and ckþn represent the design samples from the airfoil space generated by the original and improved
variables that transform the airfoil shape and will be optimized by GA. Hicks–Henne bump functions. It can be clearly seen that the improved
fk ðxÞ is the improved Hicks–Henne bump function, and xk denotes Hicks–Henne bump functions can elaborately distinguish the trailing
the horizontal position of ck and ckþn on the airfoil surface between edge, enhancing the accuracy of the airfoil description.
the leading and trailing edges. The third item in fk ðxÞ, namely, To demonstrate the effect of design variables on the airfoil’s base-
axð1  xÞebð1xÞ , is the improvement to ensure that the trailing edge line geometry, we select c2 , c4 , and c6 as examples and set them to

FIG. 3. Comparison of the airfoil shape generated by the original and improved Hicks–Henne bump functions: (a) original and (b) improved.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-4


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

FIG. 4. Effect of design variables of Hicks–Henne bump functions on the airfoil’s baseline geometry: (a) effects of the individual design variable on the airfoil shape and (b)
design space.

0.007 individually while keeping other design variables zero. As a two-dimensional coordinates depicting the airfoil profile, which are
result, the baseline geometry of NACA0012 airfoil expands outward, generated by the improved Hicks–Henne bump functions. The output
as shown in Fig. 4(a). Combined with Fig. 2, it can be seen that if the is the lift and drag coefficients. In general, the functional mathematical
design variable changes, the shape at the corresponding control point expression of the ACPN model is as follows:
is most altered obviously, along with the slightly weaker change from
the leading to the trailing edge of the airfoil, which is caused by the lin- ðCl ; Cd Þ ¼ f ðx; y; W; bÞ; (5)
ear combination of a set of basis Hicks–Henne bump functions. In where Cl and Cd indicate the lift and drag coefficient, respectively. (x,
addition, when we set c3 as 0.007 individually, it can be observed y) represents the two-dimensional coordinates of the given airfoil
that the baseline shrinks inward. Furthermore, Fig. 4(b) depicts the air- shape, and W and b are the weight and bias parameter matrix of the
foil space used for the dataset preparation, where all the design varia- ACPN model. It should be emphasized that W and b are the parame-
bles are limited in the range of [0.007, 0.007]. ters of the ACPN model to be trained and learned, with which the
ACPN model can be implemented to regress a nonlinear function f

28 August 2023 10:55:55


C. Aerodynamic coefficient prediction network between the airfoil shape and its aerodynamic coefficients.
(ACPN) The network parameters of the ACPN model are presented in
In this section, the network architecture of the ACPN model is Table I in detail, where neuron unit numbers in each fully connected
first introduced, and then, the methods to prepare and process the layer are given.
data for the training and testing are followed, and finally, the training As depicted in Fig. 4, the connectivity pattern between two adja-
and evaluation methods are involved. cent layers in a fully connected neural network is such that each neu-
ron in a given layer is connected to all the neurons of the previous
layer. Thus, the output of the l th fully connected layer is computed
1. Network structure of ACPN
by57
The specific network structure of the ACPN model is illustrated
in Fig. 5, composed of four FCN layers. The input of the ACPN is the z ½l ¼ W ½l a½l1 þ b½l ; (6)

FIG. 5. Schematic structure of the ACPN model.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-5


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

TABLE I. ACPN model parameters of each fully connected layer. the f in Eq. (5) can be derived as follows if regarding L as the index of
the last layer:59
Layer name Executing operation/neuron Shape  
f ¼ W ½L r z ½L1 þ b½L ; (9)
Input  61  2
Flatten  132  1 where W ½L and b½L represent the weight and bias matrices of the last
FC1 Fully connected/1024 1024  1 layer, z ½L1 represents the output of the ðL  1Þ layer, and rðz ½L1 Þ
FC2 Fully connected/512 512  1 refers to the activated output. It can be deduced from Eq. (8) that the
FC3 Fully connected/64 64  1 ReLU function can avoid exponential operations during forward prop-
FC4 Fully connected/2 21 agation, and since its output is unsaturated, the problem of gradient
vanishing can be prevented during the backpropagation. Both advan-
Output Reshape 21
tages speed up the update of network parameters. In addition, the
backpropagation involves the update of network parameters W and b,
  which will be introduced in Sec. II C 3.
a½l ¼ r z ½l ; (7)
½l ½l
where W and b denote the weight and the bias, and z is the accu- ½l 2. Data preparation
mulated output value of the l th layer. Furthermore, to make the net- To ensure the reliability of the data fed into the ACPN model,
work deeper with sufficient nonlinear expression ability, each hidden CFD validation is conducted before preparing the data in batches. The
layer is activated by an active function, performed by rðÞ. a½l and a½l1 typical NACA0012 (National Advisory Committee for Aeronautics)
are the active value of z ½l and z ½l1 , respectively. Specifically, the recti- 2D airfoil structure is adopted. To generate the hybrid mesh with
fied linear unit (ReLU) function is employed as the activation function boundary layers aligned on the airfoil surface, Gmsh is utilized. Gmsh
in this work, which can be mathematically described as follows:58 is an application programing interface (API) in Python that facilitates
 the creation of high-quality meshes for CFD simulations. To allevi-
x; x  0;
rðxÞ ¼ (8) ate the effect of the far-field boundary on the evolution of flow field
0; x < 0:
near the airfoil, the lengths in the perpendicular and chord direction
We input the airfoil coordinates at the first layer, and then, the forward are set to 40c and 100c, respectively, where c is the airfoil chord length.

28 August 2023 10:55:55


propagation of the ACPN model is executed by Eqs. (6)–(8). Thereby, Figure 6 illustrates the sketch of the entire computational domain and

FIG. 6. Schematic diagram of the calculation domain and mesh in the validation case.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-6


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

the local region mesh with boundary layers in the sub-window. The
total number of grids in the computational domain is approximately
4  104.
The simulations are performed in OpenFOAM with the gener-
ated mesh, and the Spalart–Allmaras (SA) turbulence model is chosen
to solve the incompressible (Reynolds-averaged Navier–Stokes) RANS
equations.60 The operating conditions for the simulation are defined
as: the Mach number (Ma) is 0.15, the Reynolds number (Re) is
6  106, and the angle of attack (AOA) is 10 . The boundary condi-
tions on the SA turbulence field variable read61
~ wall ¼ 0; ~ farfield ¼ 4 fluid ; (10)

where ~ wall and ~ farfield represent the modified viscosity of the SA


model for the wall and far-field, and  fluid is the kinematic viscosity of
fluid that is computed by U1 =Re. U1 is the far-field flow speed, and
Re denotes the dimensionless Reynolds number. Note that turbulent
kinematic viscosity values corresponding to these boundary conditions FIG. 7. Pressure distribution coefficient from different data sources.
are
 t; wall ¼ 0;  t;farfield ¼  fluid : (11)
which proves the accuracy of the CFD simulation method with
The initial velocity of the inlet and the outlet is set as the freestream OpenFOAM using the square grid of 100c  40c. In summary, we con-
velocity U1 , and the corresponding initial kinematic pressure is set to clude that this CFD method can be applied to obtain reliable aerody-
the freestream pressure zero. Moreover, to investigate the influence of namic data in subsequent calculations.
the calculation domain on the accuracy of the CFD results, we fol- In this work, the NACA0012 airfoil is selected as the benchmark
lowed the turbulence modeling resource of NASA Langley Research airfoil and the airfoil shape optimization is performed under the con-

28 August 2023 10:55:55


Center and adopted the suggested C grid with the size of calculation ditions: the Mach number is 0.7, the Reynolds number is 7  106, and
domain 500c  500c in OpenFOAM. The benchmark database for the the AOA is 3 . the LHS method is first utilized for the stratified sam-
evaluation was obtained from Computational Fluids Laboratory-3D pling of design variables ck in the range of [0.007, 0.007], thus gener-
(CFL3D)62 and wind tunnel experiments63 for three vital aerodynamic ating 6000 sets of design variables. Then, the airfoil coordinates for
performance parameters, i.e., the lift coefficient Cl , the drag coefficient each set of these design variables are computed using the improved
Cd , and the pressure coefficient Cp . Hicks–Henne bump function, and the corresponding mesh is gener-
Table II presents the comparative results of the lift and drag coef- ated by Gmsh. Subsequently, OpenFOAM conducts CFD simulations
ficients from four different data sources. It should be stated that the on each airfoil to derive aerodynamic coefficients. Finally, the coordi-
relative errors are calculated concerning the experimental data as the nates of each airfoil and its corresponding aerodynamic coefficients
true value. The data suggest that the numerical simulation results are grouped into one data, giving a total of 6000 such data. These are
obtained with OpenFOAM agree well with both the experimental data then partitioned into three datasets: a training set with 3600 data, a
and the CFL3D results. Although, as expected, the relative errors of validation set with 1800 data, and a test set with 600 data.
the square grid are slightly higher than that of the C grid, they are both
within acceptable error ranges. 3. Training and evaluation methods
Furthermore, Fig. 7 shows the pressure distribution coefficient
for four data sources. It can be clearly seen that the results of The ACPN model in this work is trained by supervised learning,
OpenFOAM are in good agreement with the experimental results, which learns the mapping function between the airfoil geometry and
the aerodynamic coefficient. The core idea for training the ACPN is
the use of the Adam optimization algorithm64 to minimize the L2 loss
TABLE II. Comparative results of lift and drag coefficients from various data sour- function, which is defined by the mean square error of the predicted
ces: OpenFOAM-500  500: C grid of 500c  500c; OpenFOAM-40  40: square aerodynamic coefficients and the true aerodynamic coefficients, and
grid of 100c  40c.
L2 regularization to restrain the norm of the network parameters, thus
avoiding overfitting.65 Hence, the loss function can be defined as
Relative error
N h i
Data sources Cl Cd Cl Cd 1X  
^ L  CL 2 þ C^ d  Cd 2 þ kkWk2 ;
J¼ C 2 (12)
N n¼1
Experiment 1.0809 0.0117  
CFL3D 1.0909 0.0123 0.93% 5.13% where k is the regularization coefficient, N denotes the sampling num-
OpenFOAM-500  500 1.0820 0.0123 0.10% 5.13% ber in the training dataset, and kkWk22 represents the L2 regularization
OpenFOAM-100  40 1.1298 0.0129 4.52% 10.3% term. C^ L and C ^ d are the predicted lift and drag coefficients by the
ACPN model. During the backpropagation, the Adam algorithm

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-7


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

utilizes the first and second moments to update the network 1. Objective functions
parameters64
The objective function is a crucial aspect of the optimization pro-
Vdh :¼ b1 Vdh þ ð1  b1 Þdh; (13) cess. In our study, the optimization goal is to maximize the airfoil’s lift
coefficient and simultaneously minimize the drag coefficient. To con-
Sdh :¼ b2 Sdh þ ð1  b2 Þdh2 ; (14)
vert the problem into a single objective, we introduce the ratio of lift
where h represents the network parameters W and b collectively as and drag coefficient, and two objective functions are investigated,
their updating rules are the same, dh and dh2 refer to the first and sec-
Cl
ond gradients of the loss function J with respect to h, b1 and b2 are f1 ðck Þ ¼ ; k ¼ 1; 2; …; 14; (19)
the exponential decay factors of the moment estimation, and Vdh and Cd
Sdh are the first and second moment estimations. Considering that Vdh Cl
f2 ðck Þ ¼ þ d ðCl  Cl r Þ; k ¼ 1; 2; …; 14: (20)
and Sdh will be biased toward zero during the updating process when Cd
they are initialized using zero vectors, to rectify these biases within The first objective function f1 directly equals the lift and drag coeffi-
each training iteration, the following corrections are applied: cient ratio. While the second objective function f2 adds one more pen-
Vdh alty term d ðCl  Cl r Þ to drive the lift coefficient Cl greater than
corrected
Vdh ¼ ; (15) Cl r , the lift coefficient of the original airfoil, whose value is 0.5. d is
1  bt1
the adjustment factor and is set to 500 in our study.
Sdh
Scorrected
dh ¼ ; (16)
1  bt2 2. Optimization procedure of GA-ACPN framework
where the superscript “t” of b denotes the exponential operator, and The optimization procedure of GA-ACPN for airfoil shape opti-
corrected
Vdh and Scorrected
dh denote the corrected first and second moments. mization in the study is summarized in Fig. 8; the details are in the fol-
Finally, the network parameters h are updated iteratively by lowing steps:
corrected
Vdh (a) First, the control points xk are selected, and the correspond-
h :¼ h  a qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
ffi; (17)
Scorrected þ e ing ranges of design variable ck are determined. Then, accord-
dh
ing to binary encoding rules, the population of the first

28 August 2023 10:55:55


where a represents the learning rate, and e is a small value added to generation, that is the initial design variables, is randomly
avoid singularity. The learning technique of mini-batch gradient initialized.
descent is applied to accelerate the training phase and also to reduce (b) Second, the new population is generated after the crossover
the probability that the training gets stuck at a saddle point. and mutation operations under respective probability. Then,
To evaluate the predictive performance of the trained network they are employed to generate the new airfoil shape using the
model, the relative error of the nth aerodynamic coefficient is defined improved Hicks–Henne bump functions, namely, Eqs. (1)–
as (4). Subsequently, the airfoil data are fed into the ACPN
  model for calculating the lift and drag coefficients and the fit-
C^ n  Cn  ness function.
RE ¼  100%; (18) (c) Finally, when an individual solution reaches the desired target
Cn
or the evolutionary generation exceeds the maximum limit,
where C ^ n and Cn denote the aerodynamic coefficients predicted by
the optimization procedure is terminated.
the ACPN model and calculated by CFD, respectively, namely, the lift
coefficient or the drag coefficient.
We couple the trained and tested aerodynamic coefficient predic- 3. Genetic operators
tion model with the classic GA optimization method for the optimiza-
Binary encoding, a commonly used encoding scheme, is selected
tion design of airfoil shape; the entire detailed procedure is presented
as the encoding rule, where each gene or chromosome is defined as a
in Sec. II D.
string of 1 or 0, and each bit in this string denotes the characteristics of
an individual solution.66 Then, the design variables can be described as
D. Aerodynamic optimization via GA-ACPN follows:
framework X
The objective of improving lift and other beneficial aerodynamic 2i
i¼p
characteristics while minimizing or sustaining drag and other unde- ck ¼ ðck upper  ck lower Þ þ ck lower ; (21)
sired features is actually a multi-objective optimization issue. In this 2L  1
study, the multi-objective problem is simplified by converting it into a where ck is the k th design variable, ck upper and ck lower denote the
single-objective formulation and maximize it with GA. In the follow- upper and lower limits of ck , respectively, p represents the position of
ing, we first present the objective functions and the optimization pro- 1 in the chromosome sequence, and L refers to the length of the chro-
cedure of GA-ACPN used in the study, and then four main genetic mosome. Figure 9 depicts an example of the binary encoding scheme.
operators involved are introduced, including binary encoding, cross- Crossover operators are utilized to generate offspring by uniting
over operators, mutation operators, and rank selection. the genetic information from two or more parents. Specifically, we

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-8


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

28 August 2023 10:55:55


FIG. 8. The workflow diagram of the GA optimization method coupled with the ACPN model.

adopt the single-point crossover operator, randomly selecting a cross- (SIM), which randomly specifies a real number to represent the posi-
over point with a certain probability. Then, the genetic information tion to be mutated and then reverses the string at the position in an
of the two parents beyond the point is swapped with each other.67 individual solution.67
Figure 10 illustrates the scheme of the single-point crossover. Selection is a crucial step in GA, which determines whether a
Mutation operators modify the values of some genes in a given string will participate in reproduction or not, and the con-
genome. This work employs the simple inverse mutation operator vergence rate of GA is greatly influenced by the selection pressure.

FIG. 9. Scheme of binary encoding.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-9


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

FIG. 10. Scheme of the single-point


crossover.

The rank selection technique utilizes the ranks given according to their
TABLE III. Hyperparameters setting of GA.
fitness values to endow each individual with a chance to be selected,
reducing the premature convergence probability of the solution to a
Description Value
local minimum.67
Binary encoding length 10 The used hyperparameters of the GA are summarized in Table III.
Population size 60
III. RESULTS AND DISCUSSIONS
Crossover probability 0.9
Mutation probability 0.01 A. Hyperparameters analysis of the ACPN model
Evolutionary generations 400 This subsection focuses on investigating the impact of two crucial
hyperparameters, namely, the learning rate and the mini-batch size,

28 August 2023 10:55:55

FIG. 11. Convergence history under different sets of hyperparameters (smoothened by the exponential weighted moving average and presented in the dark colors): (a) various
learning rates with a batch size of 64, (b) various mini-batch sizes with a learning rate of 0.001, and (c) various training data size.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-10


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

TABLE IV. Comparison of testing accuracy of the ACPN model with different training validation accuracy. The generalization ability of the ACPN model
data sizes. under the three cases will be given in Table IV (Sec. III B).
Number of training data CL Cd Average
B. Prediction performance of the ACPN model
1000 99.02% 98.53% 98.78% Following the methodology given in Sec. II C 2, the network was
3000 98.99% 98.75% 98.87% trained, and the hyperparameters were identified in Sec. III A. This
6000 99.16% 98.88% 99.02% subsection compares the aerodynamic coefficients predicted by the
trained ACPN model and the CFD results (the ground truth), where
the prediction performance of the ACPN model is evaluated by calcu-
on the convergence performance of the proposed ACPN model. lating the relative errors using Eq. (18). Unlike the training process,
We conducted a study considering various combinations of these the network parameters remain fixed and are reloaded during the eval-
hyperparameters values. Figures 11(a) and 11(b) illustrate the results, uation period. At this stage, the ACPN model can be treated as a
where the red lines stand for the reference combination. In the refer- purely nonlinear mapping function. In order to employ the trained
ence combination, the learning rate is set to 0.001, and the mini-batch ACPN model to predict aerodynamic coefficients, referencing the
size is 64. Additionally, two more values of the learning rate, one input and output of the ACPN model, the design variables need to be
before and the other after 0.001 with a batch size of 64 are studied in first sampled, followed by generating airfoil coordinates according to
Fig. 11(a), and similarly, two more results with the learning rate of the Hick–Henne parameterization method. Finally, fed it into the
0.001 are investigated in Fig. 11(b). Moreover, the influence of the size ACPN model, the forward propagation figures out the corresponding
of training data is shown in Fig. 11(c), where “N” denotes the training aerodynamic coefficients. The prediction example of aerodynamic
data size. coefficients is shown in Fig. 12. Following the same approach, the
Figure 11(a) shows both the training and validation accuracy batch predicted aerodynamic coefficients can be obtained, and the pre-
curves with the three learning rates (abbreviated as “lr” in the figure). diction performance of the ACPN model will be evaluated below.
Clearly, all curves of the three learning rates rapidly increase in the first Figures 13(a) and 13(b), respectively, depict the predicted lift and
2000 epochs, and then, the growth becomes slow until the end of train- drag coefficients of the proposed model. In the left column of the fig-
ing. The learning rate of 0.001 results in the highest accuracy. In addi- ure, it can be observed that the majority of samples align closely with
the line of y ¼ x, signifying a strong agreement between the ACPN

28 August 2023 10:55:55


tion, for each learning rate, the validation accuracy climbs following
the training accuracy, and both converge at the same level. model’s predictions and the reference results from the CFD simula-
The convergence curves with the three mini-batch sizes are dis- tions. Additionally, the right column of the figure displays the error
played in Fig. 11(b). Comparing them to the reference value of 64, it is distribution density map, which reveals that the absolute values of rela-
observed that the smaller mini-batch size of 32 exhibits larger gradient tive errors for the majority of samples are below 3.0% and 2.0% for lift
oscillations between adjacent epochs, which hinders the model’s conver- and drag coefficients, respectively. Notably, there is a slight concentra-
gence. On the other hand, a larger mini-batch size of 128 accelerates the tion in the range between 2% and 1% for the drag coefficient,
initial learning process, but it makes learning more easily get caught in a which could be attributed to the uneven distribution of the drag coeffi-
local optimum. As a result, the training process is slowed, and additional cient values in the test data. Nevertheless, as shown in Table IV, the
training epochs are needed to reach higher accuracy. Finally, 0.001 is overall prediction accuracy for both lift and drag coefficients remains
adopted for the learning rate, and 64 is set for the batch size in this remarkably high at 99.16% and 98.88%, respectively. However, the
work. As for the influence of training data size, it can be observed from testing accuracy corresponding to less data is lower than that.
Fig. 11(c) that the ACPN model trained with 6000 samples showcases Therefore, we prepared 6000 samples for constructing the ACPN
the most stable convergence performance and the highest training and model to ensure the correctness of the subsequent optimization, which

FIG. 12. The prediction example of aerodynamic coefficients using the trained and tested ACPN model.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-11


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

28 August 2023 10:55:55


FIG. 13. Comparison of the true (CFD) and predicted lift and drag coefficients on the test dataset: (a) CL and (b) Cd .

needs to explore the huge airfoil space, although the mapping from 50% of the relative errors in lift coefficient prediction fall within the
61  2 airfoil coordinates to 2  1 aerodynamic coefficient is simple. range of 1.48%–0.4%, while approximately 50% of the relative errors
Figure 14 intuitively demonstrates the relative error distribution in drag coefficient prediction are concentrated between 1.15% and
for the lift and drag coefficients. It can be observed that approximately 0.48%. Moreover, the absolute values of relative errors do not exceed

FIG. 14. Relative errors of the predicted


lift and drag coefficients on the test data-
set: (a) CL and (b) Cd .

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-12


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

TABLE V. Comparison of the time cost for the lift and drag coefficient predictions by TABLE VI. Ranges of design variables.
the ACPN model and the CFD simulation.
Design variables Range Design variables Range
Method Data preparation Training cost Prediction cost
c1 [0.007, 0.007] c8 [0.007, 0.007]
CFD   3 min c2 [0.006, 0.006] c9 [0.006, 0.006]
ACPN (GPU) 50 h 20 s 5 ms c3 [0.004, 0.006] c10 [0.006, 0.004]
c4 [0.004, 0.007] c11 [0.007, 0.004]
c5 [0.005, 0.005] c12 [0.005, 0.005]
3.8% for both coefficient predictions. These findings suggest that the c6 [0.005, 0.005] c13 [0.005, 0.005]
predicted aerodynamic coefficients by the ACPN model can replace
c7 [0.006, 0.006] c14 [0.006, 0.006]
the CFD results for subsequent airfoil shape optimization and
design.
In addition to the high accuracy prediction level, the proposed
ACPN model also shows its extreme prediction speed, as seen in C. Optimization results via GA-ACPN framework
Table V. Although 50 h are required for the data preparation, it takes In this subsection, our focus lies on conducting an effectiveness
only 20 s to train the ACPN model, and then, only 5 ms are required test of the proposed GA-ACPN framework. The ranges of design vari-
for each prediction using the graphics processing unit (GPU) RTX ables ck are listed in Table VI. Moreover, to validate the reliability of
3080. The prediction time is four orders of magnitude faster compared the GA-APCN framework, the same optimization framework but with
to the CFD solver, so once the ACPN model replaces the CFD simula- the CFD simulator is performed to provide the referential optimized
tor, the computational time for aerodynamic design and optimization aerodynamic coefficients.
will be significantly saved. Additionally, our previous work35 have The GA-ACPN and GA-CFD optimization procedures are exe-
pointed out that compared with the Kriging model that needs to spend cuted for airfoil shape optimization. Figures 15 and 16 compare their
5179 s for training, deep learning based surrogate models only take a convergence histories throughout the optimization process using
very short time of 54 s, three time orders of magnitude faster than the objective functions 1 and 2 in Sec. II D 1, respectively. As seen from
traditional surrogate model. Furthermore, in comparison to our previ- the left column of the two figures, the fitness scores of different popu-
ous work,35 the FCN-based surrogate model developed in this study lations among each generation vary greatly at first, then climb rapidly,

28 August 2023 10:55:55


offers the advantages of a lightweight network structure, which helps and gradually converge in the last generations. At the same time, as
to further reduce both training and usage costs. illustrated in the right column of the two figures, the lift and drag

FIG. 15. Convergence history and Cl, Cd evolution using the objective function 1 (the average fitness score is in deep red): (a) GA-ACPN and (b) GA-CFD.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-13


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

28 August 2023 10:55:55


FIG. 16. Convergence history and Cl, Cd evolution using the objective function 2 (the average fitness score is in deep red): (a) GA-ACPN and (b) GA-CFD.

coefficients, along with optimization target the lift–drag coefficient first objective function, the final lift coefficients are not, indicating that
ratio, increase with generations. These results signify that the optimal the optimization process may have been stuck in a local optimum.
airfoil shape satisfying both the geometric constraints and functional Figure 17 compares the optimized airfoil shapes with the GA-
requirements can be found by iterating the optimization process. ACPN and GA-CFD methods. It is noted that the optimized airfoils
However, it cannot be ignored that the final lift and drag coeffi- using the two methods for objective function 1 are slightly different
cients of the airfoils optimized by GA-ACPN and GA-CFD methods while very close for objective function 2; the reason may be some
are not exactly the same, as shown in Table VII; the reason may come uncertain randomness when initializing the population and slight
from the unknown randomness brought by the random initialization deviation between ACPN predicted and CFD simulated aerodynamic
of GA process. First of all, we can see that both the GA-ACPN and coefficients. Therefore, the optimized airfoil shapes using GA-ACPN
GA-CFD methods drive the lift–drag ratio to a similar level, 51.4% and GA-CFD methods are inconsistent. Even so, these results still con-
and 50.3% increment, respectively, using the first objective function, firm the effectiveness of the method coupling the proposed ACPN
and 55.4% and 60.0% with the second. It is apparent that the second model with optimization algorithms.
objective function gives a higher lift–drag ratio, where compared with Figure 18 illustrates the pressure distribution on the airfoil sur-
the first objective function, the only difference is that we add a penalty face before and after optimization by GA-ACPN and GA-CFD meth-
term to lead the lift coefficient of the optimized airfoil shape to greater ods. For objective function 1, the two results slightly deviate from each
than that of the original one. Therefore, the optimized lift coefficients other, whereas for objective function 2, they are in good agreement,
using the second function are both higher than 0.5076, while with the which is consistent with the previous results of optimized airfoil

TABLE VII. Comparison of optimization results under two objective functions.

Case Method CL Cd CL =Cd Increment

Original  0.507 600 0.006 770 0 74.900 


Objective 1 GA-ACPN 0.467 642 0.004 123 4 113.410 51.4%
GA-CFD 0.451 523 0.004 012 1 112.539 50.3%
Objective 2 GA-ACPN 0.510 117 0.004 383 6 116.369 55.4%
GA-CFD 0.549 067 0.004 581 4 119.847 60.0%

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-14


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

FIG. 17. Comparison of optimized airfoils: (a) objective function 1 and (b) objective function 2.

shapes. Furthermore, it can be clearly seen that either for objective pressure near these areas is weakened and strengthened, as shown in
function 1 or 2, the upper surface pressure variation between the refer- Fig. 19, resulting in an enlarged pressure difference (see Fig. 18). These
ence airfoil and the optimized airfoil nearly equals the inverse value of changes contribute to an increased lift force and an improved overall
that of the corresponding lower surface, as the airfoil thickness of the aerodynamic performance of the airfoil. Furthermore, the pressure varia-
design points is constrained to be unchanged and thereby the displace- tion at the airfoil’s trailing edge also gains favorable aerodynamic
ments of the upper surface and lower surface are equal. In addition, performance.
the optimized pressure difference has a sudden increase near the air- Turning now to the computational time analysis, it is worth men-
foil’s trailing edge compared to the original one. The underlying rea- tioning that although it takes about 50 h to construct the ACPN
son for these phenomena is that the modification in geometric airfoil model, this timeframe is acceptable for building the high effective
shape at 90% of the chord length, causing changes in the flow: the ACPN predictor as the GA-ACPN method can obtain the optimiza-
high-pressure region on the pressure surface of the optimized airfoil tion results within 25 s while the GA-CFD method has to spend about

28 August 2023 10:55:55


moves forward to the chord length of 90% and the low-pressure region 5.5 days (using parallel computing with six-core CPU), reducing the
on the suction surface moves backward to that position, which can be computational cost by a remarkable 62.1%. Therefore, we can con-
observed from the pressure contours of 2000 and 4000 Pa in Fig. 19(c). clude that replacing the CFD simulation with the ACPN model greatly
Generally, the increment in the pressure difference between the upper reduces the time cost and improves the efficiency of aerodynamic opti-
and lower airfoil surface is favorable for improving the lift force. mization and design (Table VIII).
Therefore, the above results illustrate the effectiveness of the optimiza-
tion procedure. IV. CONCLUSION
In addition, as shown in Figs. 19 and 20, the comparison of the This work develops an innovative optimization process for air-
velocity and pressure contours for the original airfoil, the GA- foils based on the core idea of developing an aerodynamic coefficient
ACPN, and GA-CFD optimized airfoils shows the shock occurrence prediction model using a deep fully connected neural network and
and the weakening on the airfoils. Concretely, it is obviously seen then coupling it with the GA optimization method. The improved
from Fig. 20 that the velocity around the lower surface of the airfoil Hicks–Henne bump functions are adopted to parameterize the airfoil
increases after optimization, and the flow velocity of the low- geometries throughout aerodynamic coefficient modeling and airfoil
pressure region on the upper surface decreases. Consequently, the shape optimization. The results can be drawn as follows:

FIG. 18. Comparison of pressure distributions: (a) objective function 1 and (b) objective function 2.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-15


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

28 August 2023 10:55:55


FIG. 19. Comparison of pressure contours (unit: Pa): (a) original, (b) objective function 1, and (c) objective function 2.

• The trained and tested ACPN model demonstrates a high accu- In summary, the proposed GA-ACPN optimization technique
racy in predicting the lift and drag coefficients, achieving approx- largely improves the efficiency of classic aerodynamic shape optimiza-
imately 99.02%. Furthermore, each coefficient prediction takes tion and at the same time, assures the optimization effect, showing its
only 5 ms, four orders of magnitude faster than using the CFD great advantages and huge potential for fast aerodynamic design and
solver. optimization. Furthermore, these results suggest that it has great
• The proposed GA-APCN optimization framework can improve potential to address the optimization problems with varying con-
the lift–drag ratio by 51.4% in just 25 s, while 50.3% improve- straints for the same flow condition.
ment is achieved by the GA-CFD optimization approach with 5.5 In addition, the optimization method in this paper is applicable
days, 19 000 times slower than the GA-APCN method. Despite it in other similar research since the essence of current work is to con-
takes additional 50 h and 20 s for data preparing and model struct a data-driven surrogate model for fast and accurate perfor-
training, the GA-ACPN framework still leads to an impressive mance estimation of the complex systems. Then, by replacing the
62.1% reduction in the overall calculation cost. CFD solver in a traditional optimization framework with the surro-
• Moreover, when constraints were imposed on the lift coefficient, gate model, we can fast optimize the performance of the system.
the GA-ACPN optimization framework can still fast optimize the Therefore, as long as the optimization framework uses a CFD solver
airfoil shape, achieving a comparable increment in the lift–drag to do the evaluation, the proposed method can improve the optimi-
ratio with the GA-CFD optimization. zation efficiency.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-16


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

28 August 2023 10:55:55


FIG. 20. Comparison of velocity contours (unit: m/s): (a) original, (b) objective function 1, and (c) objective function 2.

However, the surrogate model constructed in this work is based specific flow condition. Suppose we want extent this approach to other
on the data from one specified flow condition. Therefore, using this flow conditions. In that case, the focus should be on developing an
model as the simulation tool, the current optimization framework can ACPN model that can accurately predict the aerodynamic coefficient
only achieve efficient aerodynamic shape optimization under the for diverse flow conditions, which is an aspect of our future work. The
related research includes the dataset design for different flow condi-
TABLE VIII. Comparison of time components consumed by different optimization tions, training the model efficiently with big datasets, etc.
framework.

Model construction ACKNOWLEDGMENTS

Data Training Optimization Time This research was funded by the Natural Science Foundation
Method preparation cost time reduction of Jiangsu Province (No. BK20201302), the Key Laboratory of
Thermal Management and Energy Utilization of Aircraft, Ministry
CFD   5.5 days  of Industry and Information Technology (Grant No.
(6 threads) CEPE2022016), and the State Key Laboratory of Mechanics and
ACPN (GPU) 50 h 20 s 25 s 62.1% Control for Aerospace Structures (Nanjing University of
Aeronautics and Astronautics) (Grant No. MCMS-E-0323Y01).

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-17


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

AUTHOR DECLARATIONS 16
Y. Yu, Z. Lyu, Z. Xu, and J. R. R. A. Martins, “On the influence of optimization
algorithm and initial design on wing aerodynamic shape optimization,”
Conflict of Interest Aerosp. Sci. Technol. 75, 183–199 (2018).
The authors have no conflicts to disclose. 17
Z. Hao, Z. Wang, and J. Liu, “Tail rudder optimization design and dynamics
modeling for the small flexible membrane wing aircraft,” in Proceedings of the
10th International Conference on Modelling, Identification and Control (IEEE,
Author Contributions 2018), pp. 1–6.
Mingyu Wu: Investigation (equal); Software (equal). Xinyi Yuan: 18
A. Sanchez-Carmona and C. Cuerno-Rejado, “Design process and environmen-
Visualization (equal). Zhihua Chen: Supervision (equal). Weitao Wu: tal impact of unconventional tail airliners,” Aerospace 8, 175 (2021).
19
J. S. Gray, C. A. Mader, G. K. W. Kenway, and J. R. R. A. Martins, “Coupled
Resources (equal); Validation (equal). Yue Hua: Writing – review &
aeropropulsive optimization of a three-dimensional boundary-layer ingestion
editing (equal). Nadine Aubry: Writing – review & editing (equal). propulsor considering inlet distortion,” J. Aircr. 57, 1014–1025 (2020).
20
A. S. Batrakov, A. N. Kusyumov, S. A. Mikhailov, and G. N. Barakos,
“Aerodynamic optimization of helicopter rear fuselage,” Aerosp. Sci. Technol.
DATA AVAILABILITY 77, 704–712 (2018).
Data sharing is not applicable to this article as no new data were
21
V. Raul and L. Leifsson, “Surrogate-based aerodynamic shape optimization for
delaying airfoil dynamic stall using Kriging regression and infill criteria,”
created or analyzed in this study.
Aerosp. Sci. Technol. 111, 106555 (2021).
22
S. H. Berguin and D. N. Mavris, “Dimensionality reduction using principal
REFERENCES component analysis with gradient information,” AIAA Paper No. 2014-0112,
1
H. Jiang, M. Xu, and W. Yao, “Aerodynamic shape optimization of co-flow jet 2014, pp. 1–18.
airfoil using a multi-island genetic algorithm,” Phys. Fluids 34, 125120 (2022).
23
S. H. Berguin, D. Rancourt, and D. N. Mavris, “Method to facilitate high-
2
Q. Du, T. Liu, L. Yang, L. Li, D. Zhang, and Y. Xie, “Airfoil design and surro- dimensional design space exploration using computationally expensive analy-
gate modeling for performance prediction based on deep learning method,” ses,” AIAA J. 53, 3752–3765 (2015).
24
Z. J. Grey and P. G. Constantine, “Active subspaces of airfoil shape parameter-
Phys. Fluids 34, 15111 (2022).
izations,” AIAA J. 56, 2003–2017 (2018).
3
A. R. Al-Obaidi, “Numerical investigation on effect of various pump rotational 25
D. Cinquegrana and E. Iuliano, “Investigation of adaptive design variables
speeds on performance of centrifugal pump based on CFD analysis technique,”
bounds in dimensionality reduction for aerodynamic shape optimization,”
Int. J. Model., Simul., Sci. Comput. 12, 2150045 (2021).
Comput. Fluids 174, 89–109 (2018).
4
M. M. Bhatti, M. Marin, A. Zeeshan, and S. I. Abdelsalam, “Recent trends in 26
Q. I. U. Yasong, B. A. I. Junqiang, L. I. U. Nan, and W. Chen, “Global aerody-
computational fluid dynamics,” Front. Phys. 8, 593111 (2020).
namic design optimization based on data dimensionality reduction,” Chin. J.

28 August 2023 10:55:55


5
H. Lee and D.-J. Lee, “Rotor interactional effects on aerodynamic and noise
Aeronaut. 31, 643–659 (2018).
characteristics of a small multirotor unmanned aerial vehicle,” Phys. Fluids 32, 27
H. Tang, Y. Lei, X. Li, K. Gao, and Y. Li, “Aerodynamic shape optimization of
047107 (2020).
a wavy airfoil for ultra-low Reynolds number regime in gliding flight,” Energies
6
A. Ramadhan Al-Obaidi, “Numerical investigation of flow field behaviour and
13, 467 (2020).
pressure fluctuations within an axial flow pump under transient flow pattern 28
M. G. Ukken and M. Sivapragasam, “Aerodynamic shape optimization of air-
based on CFD analysis method,” J. Phys. Conf. Ser. 1279, 12069 (2019).
foils at ultra-low Reynolds numbers,” Sadhana 44, 130 (2019).
7
Q. Zhou, M. M. Alam, S. Cao, H. Liao, and M. Li, “Numerical study of wake 29
J.-Z. Peng, S. Chen, N. Aubry, Z. Chen, and W.-T. Wu, “Unsteady reduced-
and aerodynamic forces on two tandem circular cylinders at Re ¼ 103,” Phys. order model of flow over cylinders based on convolutional and deconvolutional
Fluids 31, 045103 (2019). neural network structure,” Phys. Fluids 32, 123609 (2020).
8
F. Beaumont, S. Murer, F. Bogard, and G. Polidori, “Aerodynamics of a flap- 30
J.-Z. Peng, S. Chen, N. Aubry, Z.-H. Chen, and W.-T. Wu, “Time-variant pre-
ping wing as a function of altitude: New insights into the flight strategy of diction of flow over an airfoil using deep neural network,” Phys. Fluids 32,
migratory birds,” Phys. Fluids 33, 127118 (2021). 123602 (2020).
9
A. R. Al-Obaidi and A. Qubian, “Effect of outlet impeller diameter on perfor- 31
J.-Z. Peng, N. Aubry, S. Zhu, Z. Chen, and W.-T. Wu, “Geometry and boundary
mance prediction of centrifugal pump under single-phase and cavitation flow condition adaptive data-driven model of fluid flow based on deep convolutional
conditions,” Int. J. Nonlinear Sci. Numer. Simul. 23, 1203–1229 (2022). neural networks,” Phys. Fluids 33, 123602 (2021).
10
A. R. Al-Obaidi, “Effect of different guide vane configurations on flow field 32
J.-Z. Peng, N. Aubry, Y. Hua, Z.-H. Chen, W.-T. Wu, and S. Chen, “Prediction
investigation and performances of an axial pump based on CFD analysis and of internal and external flow with sparse convolution neural network: A com-
vibration investigation,” Exp. Tech. (published online). putationally effective reduced-order model,” Phys. Fluids 35, 023605 (2023).
11
P. Della Vecchia, E. Daniele, and E. D’Amato, “An airfoil shape optimization 33
X.-J. He, C.-H. Yu, Q. Zhao, J.-Z. Peng, Z.-H. Chen, and Y. Hua, “Reduced order
technique coupling PARSEC parameterization and evolutionary algorithm,” modelling of natural convection of nanofluids in horizontal annular pipes based
Aerosp. Sci. Technol. 32, 103–110 (2014). on deep learning,” Int. Commun. Heat Mass Transfer 138, 106361 (2022).
12
A. Shahrokhi and A. Jahangirian, “Airfoil shape parameterization for optimum 34
Y. Hua, J.-Z. Peng, Z.-F. Zhou, W.-T. Wu, Y. He, and M. Massoudi, “Thermal
Navier-Stokes design with genetic algorithm,” Aerosp. Sci. Technol. 11, performance in convection flow of nanofluids using a deep convolutional neu-
443–450 (2007). ral network,” Energies 15, 8195 (2022).
13
H. Sobieczky, “Parametric airfoils and wings BT,” in Recent Development of 35
R.-L. Liu, Y. Hua, Z.-F. Zhou, Y. Li, W.-T. Wu, and N. Aubry, “Prediction and
Aerodynamic Design Methodologies: Inverse Design and Optimization, edited by optimization of airfoil aerodynamic performance using deep neural network
K. Fujii and G. S. Dulikravich (ViewegþTeubner Verlag, Wiesbaden, 1999), pp. coupled Bayesian method,” Phys. Fluids 34, 117116 (2022).
71–87. 36
X. Yan, J. Zhu, M. Kuang, and X. Wang, “Aerodynamic shape optimization
14
X. He, J. Li, C. A. Mader, A. Yildirim, and J. R. R. A. Martins, “Robust aerody- using a novel optimizer based on machine learning techniques,” Aerosp. Sci.
namic shape optimization—From a circle to an airfoil,” Aerosp. Sci. Technol Technol. 86, 826–835 (2019).
87, 48–61 (2019). 37
J. Li, M. Zhang, J. R. R. A. Martins, and C. Shu, “Efficient aerodynamic shape
15
E. Andres-Perez, D. Gonzalez-Juarez, M. J. Martin-Burgos, and L. Carro-Calvo, optimization with deep-learning-based geometric filtering,” AIAA J. 58,
“Constrained single-point aerodynamic shape optimization of the DPW-W1 4243–4259 (2020).
wing through evolutionary programming and support vector machines,” 38
G. Achour, W. J. Sung, O. J. Pinon, and D. N. Mavris, “Development of a con-
Advances in Evolutionary and Deterministic Methods for Design, Optimization ditional generative adversarial network for airfoil shape optimization,” AIAA
and Control in Engineering and Sciences (Springer, 2019), pp. 35–48. Paper No. 2020-2261, 2020.

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-18


Published under an exclusive license by AIP Publishing
Physics of Fluids ARTICLE pubs.aip.org/aip/pof

39
J. Li, M. Zhang, C. M. J. Tay, N. Liu, Y. Cui, S. C. Chew, and B. C. Khoo, “Low- 53
J. Achleitner, K. Rohde-Brandenburger, and M. Hornung, “Airfoil optimization
Reynolds-number airfoil design optimization using deep-learning-based tai- with CST-parameterization for (un-)conventional demands,” in 34th OSTIV
lored airfoil modes,” Aerosp. Sci. Technol. 121, 107309 (2022). Congress Conference Proceedings (2018), pp. 117–120.
40
J. Li, X. Du, and J. R. R. A. Martins, “Machine learning in aerodynamic shape 54
J. Kou, L. Botero-Bolıvar, R. Ballano, O. Marino, L. de Santana, E. Valero, and
optimization,” Prog. Aerosp. Sci. 134, 100849 (2022). E. Ferrer, “Aeroacoustic airfoil shape optimization enhanced by autoencoders,”
41
T. T. Zhang, Z. G. Wang, W. Huang, and L. Yan, “A review of parametric Expert Syst. Appl. 217, 119513 (2023).
approaches specific to aerodynamic design process,” Acta Astronaut. 145, 55
J. Wang and Z. Gao, “Analysis and improvement of HicksHenne airfoil param-
319–331 (2018). eterization method,” Aeronaut. Comput. Technol. 40, 47–49 (2010).
42
W. Zhu, M. H. McCrink, J. P. Bons, and J. W. Gregory, “The unsteady Kutta 56
D. A. Masters, N. J. Taylor, T. C. S. Rendall, C. B. Allen, and D. J. Poole,
condition on an airfoil in a surging flow,” J. Fluid Mech. 893, R2 (2020). “Geometric comparison of aerofoil shape parameterization methods,” AIAA J.
43
F. Mohebbi, B. Evans, and M. Sellier, “On the Kutta condition in compressible 55, 1575–1589 (2017).
flow over isolated airfoils,” Fluids 4, 102 (2019). 57
H. Taud and J. F. Mas, “Multilayer perceptron (MLP),” Geomatic Approaches
44
M. Gomez, R. Haimes, and M. C. Galbraith, “On analysis driven shape design for Modeling Land Change Scenarios (Springer, 2018), pp. 451–455.
using B-splines,” AIAA Paper No. 2022-1736, 2022, p. 1736. 58
K. Eckle and J. Schmidt-Hieber, “A comparison of deep networks with ReLU
45
D. Rajnarayan, A. Ning, and J. Mehr, “Universal airfoil parametrization using activation function and linear spline-type methods,” Neural Networks 110,
B-splines,” AIAA Paper No. 2018-3949, 2018. 232–242 (2019).
46
J. Wang, C. Wang, B. Zhou, L. Zeng, and K. Yang, “Airfoil shape and angle of 59
J. Wang, C. He, R. Li, H. Chen, C. Zhai, and M. Zhang, “Flow field prediction
attack optimization based on Bezier curve and multi-island genetic algorithm,” of supercritical airfoils via variational autoencoder based deep learning frame-
J. Fluids Eng. 144, 51203 (2022). work,” Phys. Fluids 33, 86108 (2021).
47
M. G. Lauer and P. J. Ansell, “A parametrization framework for multi- 60
M. Tiberga, A. Hennink, J. L. Kloosterman, and D. Lathouwers, “A high-order
element airfoil systems using Bezier curves,” AIAA Paper No. 2022-3525, discontinuous Galerkin solver for the incompressible RANS equations coupled
2022, p. 3525. to the k turbulence model,” Comput. Fluids 212, 104710 (2020).
48
X. Wei, X. Wang, and S. Chen, “Research on parameterization and optimiza- 61
P. Spalart and S. Allmaras, “A one-equation turbulence model for aerodynamic
tion procedure of low-Reynolds-number airfoils based on genetic algorithm flows,” AIAA Paper No. 1992-439, 1992, p. 439.
and Bezier curve,” Adv. Eng. Software 149, 102864 (2020). 62
S. L. Krist, R. T. Biedron, and C. L. Rumsey, “CFL3D user’s manual (version
49
J. C. Yu and R. Wulandari, “Airfoil aerodynamics optimization under uncer- 5.0),” NASA Technical Reports Server (NTRS) No. NASA-TM-208444, 1998.
tain operating conditions,” J. Phys. Conf. Ser. 1446, 012014 (2020). 63
C. L. Ladson, “Effects of independent variation of Mach and Reynolds numbers
50
S. Zhou, H. Zhou, K. Yang, H. Dong, and Z. Gao, “Research on blade design on the low-speed aerodynamic characteristics of the NACA 0012 airfoil sec-
method of multi-blade centrifugal fan for building efficient ventilation based tion,” Report No. NASA-TM-4074, 1988.
on Hicks-Henne function,” Sustainable Energy Technol. Assess. 43, 100971 64
I. K. M. Jais, A. R. Ismail, and S. Q. Nisa, “Adam optimization algorithm for
(2021). wide and deep neural network,” Knowl. Eng. Data Sci. 2, 41–46 (2019).

28 August 2023 10:55:55


51
H. Zhou, S. Zhou, Z. Gao, H. Dong, and K. Yang, “Blades optimal design of 65
X. Ying, “An overview of overfitting and its solutions,” J. Phys. Conf. Ser. 1168,
squirrel cage fan based on Hicks-Henne function,” Proc. Inst. Mech. Eng., Part 022022 (2019).
C: J. Mech. Eng. Sci. 235, 3844–3858 (2021). 66
S. Mirjalili and S. Mirjalili, “Genetic algorithm,” Evolutionary Algorithms and
52
X. Wu, W. Zhang, X. Peng, and Z. Wang, “Benchmark aerodynamic shape Neural Networks: Theory and Applications (Springer, 2019), pp. 43–55.
optimization with the POD-based CST airfoil parametric method,” Aerosp. Sci. 67
S. Katoch, S. S. Chauhan, and V. Kumar, “A review on genetic algorithm: Past,
Technol. 84, 632–640 (2019). present, and future,” Multimedia Tools Appl. 80, 8091–8126 (2021).

Phys. Fluids 35, 085140 (2023); doi: 10.1063/5.0160954 35, 085140-19


Published under an exclusive license by AIP Publishing

View publication stats

You might also like