2.1. Basic Problem Formulation
In the field of optimization, the formulation of the problem is the key to achieving an optimal solution. The basic problem formulation for a constrained optimization is mathematically presented by Skinner et al. [
5] as follows:
Minimize the objective function
with respect to design variables
,
where
.
Based on this mathematical formulation, the aerodynamic optimization process follows an iterative procedure in which the set of design variables evolve from a baseline airfoil until the objective function reaches its minimum or the maximum number of iterations is reached. The design space is constrained by the imposed system’s restrictions, which may be implicit or explicit in , ensuring the viability of the solution.
In the proposed aerodynamic optimization, the design variables are obtained through a B-spline parametrization of the baseline airfoil and a flap definition. These are iteratively updated using the PSO algorithm. In each iteration, the airfoil configuration is evaluated through an implicit objective function of
. Specifically, the XFOIL solver computes the aerodynamic performance of the airfoil under study, computing the lift and drag coefficients to determine the corresponding aircraft mission performance metrics leading to the objective function value. The overall optimization structure is summarized in
Figure 1, which illustrates a schematic representation of the algorithm implemented in XOPTFOIL. Details of the several steps in the optimization procedure are presented in the following sub-sections.
2.2. Airfoil Shape Parametrization
B-splines designate a smooth curve technique that is obtained by the product of basis functions
and an array of spatially defined discrete control points
[
19]. Equation (1) establishes the B-spline curves for a planar curve,
and
, with
n basis functions of order
and parametrized by the scalar
.
The B-splines method represents the airfoils using two B-splines, one for the upper surface and another for the lower surface. For each B-spline, is fixed at the leading edge ; is fixed at the trailing edge midpoint; and is aligned vertically with the leading edge. This applies to both upper and lower surfaces.
For the other control points, the
x-coordinates follow a cosine distribution, with only the
z-coordinates of the control points between 1 and
being free coordinates. This results in
design variables per surface. The B-spline control points’ coordinates definitions are given in Equation (2).
where
denotes a design variable, and
is the
z-coordinate at the trailing edge.
Figure 2 represents an example of this type of parametrization for the S9000 airfoil with 12 design variables (16 control points).
2.3. Particle Swarm Optimization
In 1995, Eberhart and Kennedy introduced a new optimization algorithm that defies convention by simulating the social behavior of flocks of birds, called Particle Swarm Optimization (PSO) [
8,
9,
10,
11]. Within PSO, each particle is “evolved” through cooperation and competition among both the members of the swarm and itself, across generations.
Each particle, in the D-dimensional space, is denoted by three vectors: position, , velocity, , and the particle’s personal best position . The best overall position within the swarm is also stored and symbolized as .
The particles, at each iteration
k, move through the search space following Equations (3)–(5).
where
and
are two positive constants;
and
are functions that generate a random number in the range
;
is the weight rate-of-change; and
is the optimization’s final weight value.
Iteratively, the particles “evolve” based on Equation (4), where their new position,
, is calculated by adding the new velocity,
, to their current position,
. The velocity, in each iteration, is derived from Equation (3), which is composed of three terms. The second term introduces a “cognition” component to the equation, reflecting the particle’s own thinking. The third term includes a “social” element encouraging collaboration within the particle swarm. And lastly, the first term,
, introduces a “flying” or “inertia” component to the equation by passing on the previous particle’s velocity to the new one, thus maintaining the tendency to explore the search space, as explained in [
7]. The first term enhances the algorithm’s global search ability, whereas the latter two emphasize local search refinement.
To improve the balance between global and local search, Shi and Eberhart [
12] introduced a new inertia weight (ω). In this work, the inertia weight follows a natural exponential function, as studied by Chen et al. [
20]. This function allows the particles to initially spread across the design space and then gradually converge toward the optimal solution, achieving an effective balance between exploration and exploitation. As the optimization progresses, the search transitions from global to local behavior, as described by Equation (5).
2.4. Aerodynamic Analysis
The aerodynamic analysis is performed in two steps. First, the aerodynamic coefficients of the airfoil are computed based on its geometry and operating conditions. Then, using these results, the aircraft’s aerodynamic properties are calculated considering its overall geometry.
XFOIL computes airfoil flow at low
Re by combining high-order panel methods with a fully coupled viscous/inviscid interaction [
15]. The viscous solution uses a two-equation lagged dissipation boundary layer model with an
eN transition criterion from the ISES code [
21]. This is iterated with incompressible potential flow via surface transpiration to capture separation. The panel method, with Kármán–Tsien compressibility correction, provides surface velocities, and the wake is included in the viscous equations, forming a nonlinear elliptic system solved with the full Newton method. Transition is predicted using the
eN method with user-defined
Ncrit. XFOIL 6.97 is integrated into XOPTFOIL as a set of external modules, containing the necessary subroutines directly retrieved from the source code in [
15].
To perform XFOIL analysis, airfoil geometry coordinates—generated from the B-spline control points in this study—flap variables (chord ratio and deflection), Re, Mach number (M), Ncrit, angle-of-attack (α), or lift coefficient (Cl) must be loaded into the routines. Furthermore, the mode of operation must be specified, either a single operating point or a sequence of operating points. When α is provided to XFOIL, it returns the corresponding Cl, the drag coefficient (Cd), and the pitching moment coefficient (Cm). When Cl is provided, XFOIL returns the corresponding α, Cd, and Cm.
To build the objective function, three different situations arise that need computing the aerodynamic coefficients. The first situation deals with computing the maximum lift coefficient (Cl,max) at take-off conditions; in this case, a sequence of α is used, and the highest Cl found in that sequence is taken as Cl,max. The second is needed to calculate Cl at a specified α during the take-off run; in this case both Cl and Cd are retrieved. The third and last case specifies a single Cl to retrieve Cd during the climb, the cruise, or a turn.
Aircraft performance metrics are also important to directly influence airfoil design. Therefore, a simple methodology was adopted to compute the aircraft aerodynamic coefficients, the lift coefficient (
CL), and the drag coefficient (
CD) at the relevant flight conditions of the mission. This methodology is outlined by Raymer [
22] and is briefly described below. The geometry of the aircraft is assumed fixed so that the outcome of the analysis depends only on changes to the airfoil shape.
The first step is to convert the airfoil’s lift coefficient into that of the aircraft. Given that the wing is the primary source of lift, contributions from other components—such as the tail and fuselage—are neglected. The wing
CL is then computed from the airfoil
Cl using the leading-edge suction method and the induced angle of attack (α
i), as defined in Equation (6), which is solved iteratively.
where
S is the wing planform area;
Sexposed is the wing area exposed to the airflow;
A is the wing aspect ratio; and
τ is a correction factor smaller than one to account for the non-elliptical lift distribution of the wing.
For high-aspect-ratio wings with moderate sweep and large airfoil leading-edge radius, the maximum wing lift coefficient (
CL,max) is typically 90% of the airfoil’s maximum lift coefficient. Thus, Equation (7) is used to compute the maximum lift coefficient.
The second step is to compute the aircraft’s drag coefficient using Equation (8), where the total drag coefficient is the sum of the contributions from each component of the aircraft plus a miscellaneous term, which accounts for extra drag sources.
The wing drag coefficient (
CD,w) is divided into two components, parasite and induced drag. The parasite drag is assessed using the airfoil’s drag coefficient obtained from the XFOIL analysis, whereas the induced drag is determined utilizing the Oswald span efficiency method. The wing drag coefficient is thus represented by Equation (9).
where
e is the Oswald span efficiency factor.
Since the tail and fuselage are assumed not to produce lift, they contribute only to parasite drag. This parasite drag coefficient is computed by the component buildup method, where the flat-plate skin friction coefficient (
Cf), which is a function of
Re, and the component form factor (
F), which accounts for pressure drag due to viscous separation, are calculated. The interference effects that arise when different components are joined together are considered with an interference factor (
Q). Thus, the fuselage and tail parasite drag coefficients are estimated using Equation (10).
where
Swet,fus/tail represents the wetted area of the corresponding aircraft component.
Other contributions to the drag coefficient, coming from the landing gear, antennas, surface gaps, and other elements, are contained in CD,misc.
2.5. Mission and Aircraft Performance
According to the ACC 2022 handbook [
17], the competition aimed to simulate a real medical emergency with the aircraft required to carry blood bags. Regarding the flight mission, the aircraft must take off from a 60 m grass runway with the maximum possible payload. Next, it must climb to a height as close as possible to 100 m within a 60 s window. Immediately after those 60 s, the distance task starts where the aircraft needs to perform a fast cruise to travel the highest distance possible within 120 s. Lastly, the aircraft must make a safe landing. Because some of these flight conditions are quite different from each other, the aircraft’s total score results from a balance between different features.
Figure 3 illustrates the total flight of the aircraft in the competition, highlighting the differing flight conditions encountered in a very short-time mission.
The flight is divided into three scoring tasks, each receiving a maximum of 1000 points. These tasks include the take-off phase, scored by the payload mass carried in the aircraft (
PSpay); the climb phase, scored by the height reached in 60 s (
PShgt); and the cruise phase, scored by the distance traveled in 120 s (
PSdis). The score is calculated using Equation (11), given in [
17]. As this equation employs a relative scoring method, it is necessary to specify the best partial scores (
PSmax) achieved during the competition, which are available in the ACC results [
23].
To estimate the aircraft performance in the competition based on the airfoil aerodynamic characteristics, the method described in
Section 2.4 is used. Performance equations for the various flight phases are obtained from Raymer [
22]. Full throttle is used throughout the whole flight. The amount of energy available onboard to perform the mission is fixed. Additionally, the same electrical motor and propeller are always used.
For the payload scoring, take-off conditions are considered. Stall speed (VS) is estimated from Cl,max using Equation (7) and the speed–lift coefficient relationship. Constant acceleration is assumed, so aerodynamic, propulsion, and ground friction forces are calculated for a single point at an average speed of , where is the stall speed, and is the lift-off speed. A constant α take-off ground run is also assumed, providing Cl and Cd for the airfoil, which are used to estimate CL and CD for the aircraft from Equations (6) and (8)–(10). Given the take-off distance limit of 60 m, the payload weight is calculated to match that distance.
For the climb scoring, the objective is to reach a height of 100 m. For the various defined values in the objective function, is computed from XFOIL. Then, and consequently are obtained using Equations (6) and (7). The rate of climb is computed for all these cases, and the one that provides the highest value is selected to estimate the climb time to 100 m.
The distance scoring is determined during cruise flight, which includes both straight and level flight as well as level turns. The procedure for obtaining the aircraft’s aerodynamic characteristics is the same as in the climb phase. However, a key difference arises in the turning phase: a bank angle is assumed, leading to increased CL and CD, which results in a reduced flight speed. The speeds in straight and turning flight are then used to calculate an average speed, weighted by the distances that can be flown in each mode within a given flying zone.
2.6. Objective Function, Constraints, and Design Variables
The ideal airfoil should have an aerodynamic performance that achieves the highest score while also having a robust off-design performance to accommodate the changing operating conditions which occur when transitioning from one flight phase to another when maneuvering and when unsteady wind conditions exist. This idea is converted into the objective function given by Equation (12), whose value is minimized throughout the optimization process.
The first term of the equation reflects the flight score, from Equation (7), where a is an importance coefficient used to shift the optimization outcome either toward the flight score or toward the off-design airfoil characteristics. This term is added to allow the optimization to be partially driven by the specific performance requirements of the aircraft mission.
The second through fourth terms in Equation (12) represent the relative improvement in the airfoil’s aerodynamic characteristics. These terms optimize multiple operating points at and around the initial flight conditions to allow robust off-design performance. The second and third terms help to increase the payload capacity, with the second term accounting for the maximum lift coefficient and the third term addressing the lift-to-drag ratio for various angles of attack in the take-off ground run. The fourth term focuses on minimizing the drag coefficient at different lift coefficients during the climb and cruise phases.
To emphasize the operating points closer to the design conditions while still accounting for edge cases without overemphasizing them, the weight of each operating point (
) is computed using a bell curve defined by Equation (13). For each phase, the initial design point is used as the mean value (
) and the distance between the selected and the iterated angles of attack or lift coefficients as the standard deviation (
).
Each weight is then normalized so that the sum of the weights in each flight phase equals 1/3, making sure the total collective weight across all phases equals 1. If a flight phase includes two types of operating points, such as the take-off phase, where the maximum lift coefficient and the lift-to-drag ratio during the ground run are considered, and the cruise phase, which includes level flight and sustained turn segments, each part is assigned an equal weight. This is summarized in Equation (14).
An equal weight is assigned to these terms of the equations based on the assumption that the first term is responsible for distinguishing their relative value.
Finally, to prevent the optimization from converging to impractical or nonviable designs, the last term in Equation (12) is included in the objective function to penalize unwanted solutions. This is a penalty factor encompassing the effect of unrealistic airfoil geometries and geometric constraints. When an airfoil geometry is generated from the new control points given by PSO, its validity is checked for three situations: surface smoothness (wavy surfaces are not desired); negative thickness; and negative trailing-edge angle. These checks are performed before XFOIL is executed. If the geometry fails to be valid, the airfoil is not evaluated and the objective function becomes just which is assigned a value of 106. When the airfoil geometry is valid, XFOIL is executed. Sometimes, though rarely, the XFOIL solution converges to too low a drag coefficient or fails to converge entirely. In the former case, to avoid bias to the swarm evolution, the obtained is compared to a standard laminar boundary layer flat plate friction coefficient (). In the latter case, the solution is rerun at slightly different Re for a given fixed number of trials until it converges. Rejected solutions result again in becoming just ; otherwise, and the constraints are normally evaluated.
To guarantee the feasibility of the airfoil geometry regarding wing structural design and manufacturability, a few inequality constraints are added. These include lower and upper bounds for the airfoil’s maximum thickness-to-chord ratio (
), the maximum camber-to-chord ratio (
), and the trailing-edge thickness-to-chord ratio (
), as shown in Equation (15) in normalized form. These constraints are accounted for in a penalty function using the barrier method, whereby all constraints are added together if positive, ignored otherwise, and multiplied by a factor which changes linearly from 10
−1 to 10
−4 at the beginning and at the end of the iterations, respectively. The penalty function is thus the penalty factor
.
The design variables are divided into two groups. The first group consists of the B-spline control points, which define the upper (
) and lower (
) surfaces of the airfoil. The second has the parameters that define the trailing-edge flap: the hinge position (
), and the flap deflection for take-off, climb, and cruise (
;
;
). Note that in this case
. This set of parameters gives the design variables vector described in
Section 2.1 as follows:
2.8. Optimization Set-Up
The target of the optimization is the S9000 airfoil, with
z-coordinates of 12 control points selected as design variables. As stated in
Section 2.1, each of these control point variables has upper
and lower
limits, given by Equations (18) and (19).
These limits are set through the application of both a relative perturbation
and an absolute perturbation
, with the resulting values given in
Table 1. In addition, the hinge position of the flaps and their deflection angles across the diverse flight phases are included as additional design variables. The initial flap design variable values and corresponding lower and upper bounds are provided in
Table 2. The geometric feature constraints penalize the objective function when set outside of the allowable limits provided in
Table 3.
The PSO algorithm will generate a swarm of 50 particles, an efficient size according to [
24], to find an optimal solution. The initial swarm is uniformly distributed within the range of design variables, except for a single particle, which assumes the initial airfoil shape to ensure a good initial design in the swarm. The algorithm parameters follow the
exhaustive XOPTFOIL option with values
,
,
,
,
which allow for better global search of the design space. The stopping criteria are
and
.
The airfoil optimization is conducted according to the objective function outlined in Equation (12) and discussed in
Section 2.6. The flight conditions selected to undergo optimization are centered around the initial operating points provided in
Table 4,
Table 5 and
Table 6 to ensure efficient optimization and enable the score calculation. All initial parameters for these three flight conditions were computed using the methodology implemented with the data of UBI’s aircraft flown in ACC 2022 [
25], which uses the S9000 airfoil. This aircraft has a 2.558 m wingspan, an aspect ratio of the wing of 13.96, a twin-boom tail arrangement, a laminar flow fuselage, and a pusher propeller layout. Propulsion data required to estimate mission performance was obtained from experimental wind tunnel tests in Zombori [
26].
To investigate the influence of each component of the objective function, the competition score, and the aerodynamic relative improvements, parameter in Equation (12) is used to scale the first term of the equation, thus changing the relative weight of each term. So, in addition to optimizing the airfoil with , the optimization was repeated for and . Also, three -specified operating points, with , were selected for the take-off ground run and twelve -specified operating points, with , were selected for the climb/cruise.
All these considerations transform Equation (12) into Equation (20), which represents the actual objective function guiding the optimization process.