Next Article in Journal
Research on Grid-Connected Speed Control of Hydraulic Wind Turbine Based on Enhanced Chaotic Particle Swarm Optimization Fuzzy PID
Next Article in Special Issue
Computational Aspects of L0 Linking in the Rasch Model
Previous Article in Journal
User Armor: An Extension for AppArmor
Previous Article in Special Issue
The Euler-Type Universal Numerical Integrator (E-TUNI) with Backward Integration
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Automated Framework for Streamlined CFD-Based Design and Optimization of Fixed-Wing UAV Wings

1
Laboratory of Fluid Mechanics and Turbomachinery, Department of Mechanical Engineering, Aristotle University of Thessaloniki, 54124 Thessaloniki, Greece
2
UAV Integrated Research Center (UAV-iRC), Center for Interdisciplinary Research and Innovation (CIRI), Aristotle University of Thessaloniki, 57001 Thessaloniki, Greece
*
Author to whom correspondence should be addressed.
Algorithms 2025, 18(4), 186; https://doi.org/10.3390/a18040186
Submission received: 31 December 2024 / Revised: 15 February 2025 / Accepted: 21 March 2025 / Published: 24 March 2025
(This article belongs to the Special Issue Numerical Optimization and Algorithms: 3rd Edition)

Abstract

:
The increasing complexity of the UAV aerodynamic design, imposed by novel configurations and requirements, has highlighted the need for efficient tools for high-fidelity simulation, especially for optimization purposes. The current work presents an automated CFD framework, tailored for fixed-wing UAVs, designed to streamline the geometry generation of wings, mesh creation, and simulation execution into a Python-based pipeline. The framework employs a parameterized meshing module capable of handling a broad range of wing geometries within an extensive design space, thereby reducing manual effort and achieving pre-processing times in the order of five minutes. Incorporating GPU-enabled solvers and high-performance computing environments allows for rapid and scalable aerodynamic evaluations. An automated methodology for assessing the CFD results is presented, addressing the discretization and iterative errors, as well as grid resolution, especially near wall surfaces. Comparisons with the results produced by a specialized mechanical engineer with over five years of experience in aircraft-related CFD indicate high accuracy, with deviations below 3% for key aerodynamic metrics. A large-scale deployment further demonstrates consistency across diverse wing samples. A Bayesian Optimization case study then illustrates the framework’s utility, identifying a wing design with an 8% improvement in the lift-to-drag ratio, while maintaining an average y + value below 1 along the surface. Overall, the proposed approach streamlines fixed-wing UAV design processes and supports advanced aerodynamic optimization and data generation.

1. Introduction

In recent decades, fixed-wing UAVs have found an increasingly diverse range of applications, including precision agriculture [1], cargo transport [2], and environmental monitoring [3]. UAVs can also be used for beach monitoring [4] and search and rescue situations in various environments [5] (i.e., forests and mountains, as well as highly densely populated areas). This growth is guided by advancements in autonomy, propulsion systems, and materials, enabling UAVs to meet evolving operational demands while maintaining adaptability for a broad spectrum of missions.
Despite these advancements, the design methodologies for fixed-wing UAVs largely resemble the “traditional” design methods employed for manned aircrafts [6,7]. The latter have evolved through a systematic, iterative, human intensive approach segmented into three primary stages: conceptual, preliminary, and detailed design. The conceptual phase lays the groundwork by defining high-level system requirements and exploring multiple configurations to address mission-specific criteria. At this phase, which is marked by significant uncertainty, rapid prototyping and multiple testing of various configurations are key to advances in the next stages. The need for the exploration of the design space before progressing requires the utilization of low-fidelity and semi-empirical methods to assess the impact of alterations, typically in geometry. The preliminary phase refines these configurations through focused analyses of key components, ensuring alignment with performance, stability, and manufacturability goals. Computational Fluid Dynamics (CFD) analyses are fundamental for assessing aerodynamic performance and optimizing UAV designs, especially in this stage. High-fidelity methods, such as Reynolds-Averaged Navier–Stokes (RANS) simulations, require detailed meshes that can be laborious to generate and validate, adding significant overhead to the design process. It is acknowledged that experimental testing, particularly with rapid prototyping (RP), remains fundamental in fixed-wing UAV development. However, conducting wind tunnel tests often requires significant infrastructure, including specialized facilities, calibration procedures, and trained personnel, making it resource-intensive—especially for large-scale UAVs in the tactical, MALE, and HALE categories [8]. In contrast, CFD provides a standardized and reproducible method for systematically analyzing multiple design variations in design offices, acting as a third way of analyzing engineering problems, in addition to theoretical relations and experiments [9]. Consequently, CFD is often the primary tool for aerodynamic assessment, while experimental testing serves as a crucial validation step where resources permit.
Finally, the detail design phase involves the details of the selected configuration, including the construction drawings, resolving all remaining uncertainties to deliver a prototype. This structured, iterative process, while effective, underscores the resource-intensive nature of fixed-wing UAV development.
This is even more evident when addressing specialized applications or unconventional configurations. Especially concerning the latter, and following the design trends of modern aviation, novel configurations are investigated [2,10,11] and new lift and drag estimation methods are introduced to assist in the early stages of development [12]. Among these novel configurations, Blended Wing Body (BWB) designs are gaining significant attention due to their potential to improve aerodynamic efficiency, increase payload capacity, and reduce fuel consumption. Unlike conventional UAV designs, BWBs integrate the fuselage and wings into a unified aerodynamic shape, which presents unique advantages and challenges in aerodynamic analysis. These designs are particularly relevant for missions demanding long endurance and high efficiency, such as surveillance or cargo delivery, making them a prime focus for modern research frameworks [13]. The framework presented in this study addresses these challenges directly by automating the generation and analysis of both conventional and BWB UAV meshes, emphasizing their potential importance in future UAV developments.
Several studies have explored the potential for fully automating the time-intensive phase of aerodynamic evaluation [14,15,16]. These works highlight specific algorithmic strategies to accelerate aspects of the design process, such as focusing on the solution phase alone, automating calculations (e.g., decomposing forces into lift and drag), or employing high-performance computing. Other research efforts have adopted a more holistic approach to address the problem comprehensively.
Specifically, in [17], the authors developed a framework to automatically handle mesh generation and CFD analysis. However, their analysis is limited to simple trapezoidal subsonic UAV wing planforms. Additionally, the study in [18] examined the efficiency of multi-fidelity algorithms that combine low-fidelity panel methods with CFD for Blended Wing Body (BWB) UAVs. Their approach began with a baseline geometry, which was deformed using Free-Form Deformation (FFD). This study, though, offers constrained degrees of freedom within the design space, as the configuration cannot deviate from a given baseline, e.g., providing no degrees of freedom in terms of wingspan. Furthermore, in [19], the authors applied FFD to locally morph computational grids and perform optimization studies using RANS CFD simulations. Similarly, in [20], researchers focused on validating an automated CFD chain, creating a Python-based framework that integrated multiple software tools for geometry manipulation. Both the above works, however, are limited to a specific baseline configuration, e.g., the Common Research Model in [19]. Moreover, studies [21,22] introduced machine learning methodologies for optimizing UAVs, including wings, fuselage, and engine configurations, by using high-level parameters (e.g., aspect ratio, wingspan, taper ratio, or thrust for engines) and targeting specific Unmanned Combat Aerial Vehicle (UCAV) designs. These works employed neural networks trained on low-fidelity panel data generated from frameworks capable of sampling design spaces, creating geometry models, and conducting analyses. Although these studies present a promising foundation that could potentially integrate CFD data, they do not eventually involve CFD results, which limits the fidelity and applicability of their optimization frameworks.
To cover the aforementioned research gaps, this study aims to develop an innovative, robust, and streamlined framework employing high-end commercial software to enable fully automated, high-fidelity CFD analyses of UAV wings. More specifically, the key objectives of this work are as follows:
  • Provide a general algorithm for automation of CFD-based investigations. All aspects are based on an extensive literature survey at every part of the study, combining well-established common practices with proposed novel algorithms that unify all the components. Due to budget constraints, the authors could not develop the framework to work with all possible software alternatives. However, in case other research groups want to employ a different software, they will only have to emphasize specific parameters, and the overall architecture will remain as suggested.
  • In contrast to existing frameworks that focus on given platforms or narrow design spaces, examine an extensive design space, allowing its application to the vast majority of UAV configurations [8].
  • Accommodate wings for both conventional and tailless configurations (flying wings, BWBs), while incorporating a set of 35 design parameters that can completely control the wing planform and its airfoils.
  • Apart from presenting the pipeline, suggest robust evaluation criteria and metrics in an automated format.
It must be noted at this point that, based on these objectives, this work aims to present and demonstrate a comprehensive algorithm and its corresponding framework, transitioning from geometry to simulation. The validation against experimental or flight-testing data is beyond the scope of this study, as the individual methods have already been validated in prior non-automated studies.
This paper proceeds as follows: Section 2 provides a detailed overview of the design space, focusing on UAV types and wing geometry parameterization. Section 3 outlines the framework’s components, including its integration of OpenVSP (v3.40.1), BETA CAE ANSA (v24.2.1, Root, Switzerland), and ANSYS Fluent [v2023 R2], with detailed sub-algorithms for each module. Section 4 discusses the evaluation metrics used to quantify errors from mesh generation and introduces a novel rapid assessment method for CFD results. In Section 5, the computational grid is validated against common geometries and expert benchmarks, supplemented by a large-scale deployment to assess result quality. Finally, the adaptability of the framework is demonstrated through an optimization case study, which highlights its capability to automate CFD pre-processing and analysis within constrained design spaces.

2. Design Space

This study organizes the design space into two components: geometric design space and flow conditions design space.
  • The geometric design space defines the shape of the wing, including planform parameters and airfoil shapes, which dictate the aerodynamic performance of UAVs.
  • The flow conditions design space considers environmental and operational parameters such as velocity and altitude, which influence aerodynamic performance under different mission scenarios.
Specifically, the wing geometries and flow conditions incorporated into the framework are derived from a diverse set of UAVs and their respective operational conditions. The design space includes UAVs ranging from the Micro class (<2 kg MTOW) to MALE and HALE-Strike categories (>600 kg MTOW), as classified by NATO and detailed in [8]. Table 1 summarizes these UAV categories along with their associated operating conditions.
The following sections elaborate on the geometric and flow conditions design space, detailing how they are parametrized and integrated into the framework to accommodate this wide range of UAV designs. Although this framework also covers conventional planforms, particular attention is given to tailless and Blended Wing Body (BWB) configurations, which, despite not being universally optimal for all missions, remain an important research focus in modern aviation. This is evidenced by multiple global initiatives—such as NASA’s X-48 and X-56 prototypes [23,24]—and the recent EU-funded EXAELIA project [25], whose flight demonstrators prominently feature BWB architectures. Moreover, BWBs pose complex challenges in simultaneously achieving lift generation and flight stability, making them valuable for testing and refining the framework’s capabilities. Thus, they serve as exemplary case studies even if they are not invariably the most efficient choice for every UAV application.

2.1. Geometric Design Space and Parametrization Techniques

To enable fully autonomous geometry generation without human intervention, the wing planform must be parameterized in such way as to account for the degrees of freedom necessary for a designer during the conceptual and preliminary stages of UAV design. For the wing parametrization, the current study employes “low-level” variables, such as wing chords ( c r , c t ) and wingspan (b), which offer a clearer and more practical representation of geometry.
The design space accommodates both conventional and BWB UAVs. Conventional UAV wings are typically defined with one or two sections (i.e., the distinct trapezoidal planform surfaces that constitute the wing, are referred to as wing sections), as seen in Figure 1, and are differentiated from the rest of the aircraft. In contrast, BWB UAVs have a more integrated structure, where the “fuselage-body” and wings blend into a continuous aerodynamic shape, as seen in Figure 1.
In most cases, and especially for BWB configurations, accurately capturing the complexity of the geometry requires multiple sections [26]. However, each additional section increases the number of design variables, leading to higher dimensionality in the design space. While greater dimensionality allows for detailed representations and subtle geometric variations, it also significantly increases computational costs during optimization. This framework restricts the design space for both conventional and BWB UAVs to two distinct trapezoidal sections which are smoothly blended to avoid sharp transitions, as explained in Section 3.1. While this parameterization includes non-planar features (dihedral), it does not currently incorporate additional non-planar elements like winglets, flaps, or slats. This limitation simplifies the geometry and meshing processes at this stage, providing a stable basis that can be extended to more complex design spaces in the future.
The necessary parameters and their respective range that define the planform of a wing instance for both configurations are tabulated in Table 2 and are also depicted in Figure 2.
A total of 11 low-level parameters are required to fully define the planform of a two-section wing, without including any details about the airfoil shape. It should be noted that all parameters are referenced from the coordinate system with an origin on the leading edge of the centerline chord. The x-axis spans along the chordwise direction and the y-axis spans along the spanwise direction of the wing.
Design variable constraints have been defined to exclude unrealistic wing geometries such as having taper ratio values larger than 1, wings with very thin sections that would be impossible to manufacture, or wings with excessive aft and forward sweep angles (Figure 3). These parameters, combined with constraints, ensure that the design space remains realistic and aligned with established aerodynamic standards.
The wing’s cross-section is defined by three distinct airfoils: one at the root, one at the kink (midsection break), and one at the tip. Airfoil profiles are assigned to these spanwise locations, with interpolation between them. The airfoil shape greatly affects the aerodynamic characteristics of wing geometry. The precise shape of an airfoil can vary greatly depending on its intended use, flight conditions, and performance requirements. One of the most common airfoil databases is the one from UIUC [27], which contains more than 1500 airfoil shapes from real cases. Selecting airfoils based on their unique categorical identifiers transforms the design space into a high-dimensional, discrete domain. This discrete nature lacks the continuity required for efficient aerodynamic shape optimization, where smooth transitions between design variables are essential. To address this, parameterization techniques that represent airfoil shapes through continuous variables are employed.
Common parametrization techniques include the Bézier–PARSEC method, Class Function/Shape Function Transformations (CST), B-Splines combined with dimensionality reduction techniques such as Principal Component Analysis (PCA), and others [28]. However, the main drawbacks of those methods are the generation of non-smooth trailing edges with the frequent crossing of the lower pressure surface and the upper suction one and the demand of a large amount of design to accurately represent the airfoil in terms of geometric similarity and aerodynamic performance. Given these challenges, a novel approach to airfoil parameterization was required—one that could achieve high shape diversity while maintaining a low dimensionality for efficient optimization. The method adopted in this study is based on the Bézier–GAN (BGAN) parameterization technique, developed by Chen, Chiu, and Fuge from the University of Maryland [29]. This deep learning model, based on Info-GAN structures, specifically designed for aerodynamic shape generation, leverages the smooth, continuous properties of Bézier curves within a GAN framework to produce realistic airfoil shapes.
These networks utilize latent codes and noise variables as inputs to the network, to effectively capture both major and minor shape variations in airfoils, enabling the synthesis of smooth, aerodynamic designs. The latent codes form a low-dimensional representation that serves as the primary mechanism for representing major shape features, such as thickness, camber, reflex, and overall curvature. Alongside the latent codes, noise variables can be introduced to handle finer, more detailed aspects of the airfoil shape. These noise variables provide an additional level of granularity, allowing for subtle adjustments that add diversity to the generated shapes. Following the training methodologies proposed by Chen et al., the parameters depicted in Table 3 are selected to train the airfoil generator.
Thus, with only eight design variables, it is possible to accurately represent an airfoil that belongs in the original UIUC database (training dataset), as well as to generate new novel configurations that enhance the exploration of the design space. It is important to note that while the UIUC database primarily contains airfoils analyzed at low Reynolds numbers, the BGAN training dataset utilizes only the geometry of the airfoils and not the results of the corresponding analyses. Moreover, many of the airfoils in the database are widely used in operating aircrafts, where they perform effectively at significantly higher Reynolds numbers.

2.2. Operating Conditions

The design space for this framework is confined to the subsonic regime, where flow velocities remain below Mach 0.3. This range is representative of typical UAV operational conditions according to [8,30,31] and ensures that compressibility effects can be neglected. Within this regime, velocities primarily influence computational mesh and turbulence modeling strategies. Table 1 highlights that each UAV class operates under different conditions without a uniform trend applying to all classifications. The selected operational design space is dependent on the wing geometry, which is sampled from the geometric design space. The altitude was kept constant (at sea level) for all wings, while the cruise speed was sampled within the range defined individually for each UAV class [8,32].

3. Framework Breakdown

The proposed framework automates the CFD workflow for UAV wings, integrating geometry generation, meshing, and simulation execution into a Python-based pipeline, as illustrated in Figure 4. It eliminates manual intervention, promotes consistency across a large design space, and significantly accelerates the aerodynamic evaluation process for both individual case studies and optimization-driven analyses.
The three modules are as follows:
  • Geometry Modeling: Utilizes OpenVSP’s Python API [33] for generating 3D UAV wing models. Implemented using an object-oriented programming (OOP) approach, the geometry module employs a Wing class that encapsulates design parameters, flight conditions, and methods for geometry generation and blending.
  • Meshing: Utilizes BETA CAE’s ANSA pre-processor [34] to transform geometries into solver-ready grids, adhering to stringent quality standards for subsonic flows.
  • Simulation Execution: Employs ANSYS Fluent via the appropriate API—PyFluent (v0.21) [35], a module for automating simulation setup, execution, and result post-processing.
The framework relies on XML files for data exchange between modules, allowing for consistent information flow. As presented in Section 5, high-performance computing (HPC) with the GPU-native Fluent solver significantly enhances computational efficiency, reducing processing times and enabling rapid CFD analysis execution.
An important comment must be made regarding the turbulence modeling approach, since it affects two latter key modules (meshing and solution). Several main approaches are encountered in the CFD literature, balancing accuracy and computational cost. Direct Numerical Simulation (DNS) resolves all turbulence scales but is computationally impractical for most applications, due to its high computational cost. Large Eddy Simulation (LES) resolves larger turbulent structures while modeling smaller eddies, requiring significant resources, especially for optimization purposes when the number of required solutions is in the hundreds or thousands, depending on the optimization study [17]. However, Reynolds-Averaged Navier–Stokes (RANS) models offer computational efficiency suitable for steady-state aerodynamic analyses, making them the industry standard [36,37].
In this study, the RANS approach with Menter’s k-omega SST [38] turbulence modeling is adopted, validated through prior work against both in-house test flight data and assessed against experimental results [39]. While this validation confirms its suitability within the design space intended, it is important to note that the model has not been explicitly validated for every possible wing configuration that may arise from the sampling of this space. However, its extensive use in similar studies further supports its applicability to this framework [40]. This choice is made to align with the computational tools available, specifically the GPU-native solvers in the utilized version of ANSYS Fluent 2023R2 [41,42].

3.1. Geometry Module

The geometry module is critical for generating CFD-ready wing geometries, ensuring compatibility with the following meshing and simulation processes. According to [41], a “good” geometric model tailored to the requirements of CFD not only enhances workflow efficiency but also ensures reliable and reproducible results—an essential objective of this framework, where robustness is paramount. Using an object-oriented programming approach, the module features a dedicated Wing class, as shown in Figure 5.
The Wing class methods can be distinguished into three categories:
  • Geometry Modeling: involves defining design parameters and producing the core geometry, automating blending between sections, calculating the Mean Aerodynamic Chord (MAC), and determining the center of gravity.
  • Operating Conditions: definition of flight conditions and computation of key metrics.
  • Case Management: exports geometry in STEP format and records attributes in an XML file for case tracking.
Trailing edge (TE) treatment, section blending, and Mean Aerodynamic Chord (MAC) calculation are integral to ensure that the generated wing geometries are appropriate for CFD meshing. The trailing edge cut is applied to improve mesh quality and numerical stability, as sharp TEs often lead to a high aspect ratio or skewed cells, affecting solver convergence [42]. To maintain consistency, the TE thickness is set to 1% of the chord length, a commonly recommended guideline for subsonic applications [41]. Blending between wing sections is fully automated to eliminate abrupt transitions, ensuring geometric continuity across all generated designs. The framework prioritizes the second section as the primary lifting surface, with the first section adjusted to enforce tangency at the leading and trailing edges, preventing discontinuities at the symmetry plane.
Additionally, the MAC is computed using a weighted averaging approach, serving as the reference chord length for moment coefficient (Cm) calculations, which define the pitching moment characteristics of the wing about its aerodynamic center [7]. Moreover, MAC serves as the characteristic length for the calculation of the Reynolds number. These treatments eliminate human intervention and are executed in the background, minimizing the workload needed for geometry preparation. Further details on TE treatment methodology, blending algorithms, and MAC computation are provided in Appendix A.1.
The right-hand side of Figure 5 highlights additional capabilities of the geometry module. While these functions, such as the calculation of Reynolds and Mach numbers, do not directly contribute to geometry generation, they provide essential metrics for flow characterization and categorization. Finally, through case management methods, the generated wing geometry can be exported in STEP file format, while the design parameters of the wing along with the calculated metrics can be recorded in an XML file for case tracking.

3.2. Mesh Module

The mesh module bridges the gap between raw geometry and solver-ready computational meshes. This module is tasked with two primary objectives: geometry pre-processing and mesh generation. The first objective builds upon the modeled wing generated by the geometry module, performing geometric manipulations to prepare a watertight control volume for mesh generation. This includes steps such as feature recognition, body of influence (BOI) definition, and far-field boundary creation. These steps are further analyzed and discussed in Appendix A.2 and Appendix A.3.
The second objective (mesh generation) involves discretizing the computational domain into smaller cells or elements, which act as control volumes for solving the governing equations of fluid flow. The quality of the mesh directly impacts numerical accuracy, numerical stability, and computational efficiency, as it determines the resolution of key physical phenomena such as boundary layers, wake regions, and separation zones.
Implemented via the ANSA Python API, the module uses an object-oriented pre_processor class with four method categories, as illustrated in Figure 6. The process begins with import methods, which handle the data transfer from the geometry module, importing STEP files and extracting attributes from the XML file for a case-specific setup. Next, feature recognition is performed to identify critical regions such as leading edges, trailing edges, and sharp perimeters. Bodies of Influence (BOIs) are then defined, along with the far-field boundaries of the computational domain. Following these geometric pre-processing steps, the meshing operations take place. Mesh parameters are dynamically adjusted using the custom Compute_Mesh_Parameters method and the geometric attributes of the given wing. The custom Batch_Mesh_Setup method then updates the meshing sessions/scenarios before generating the mesh in the following sequence: (1) surface meshing for both the wing wall and the far-field boundaries, (2) inflation layer mesh, and finally (3) volume meshing. Finally, the Export Mesh and Save Case methods save the mesh in Fluent-compatible .msh.h5 format and generate XML files for case tracking and attribute documentation.
At this stage, one notable feature of the XML file becomes evident: it serves as a bridge between the modules by enabling the transfer of all attributes and data from the Wing class to the pre_processor class. This eliminates the need for direct serialization, streamlining data handling within the framework. Once the geometry generation step is complete, the XML file ensures that the meshing module can independently proceed at a later time without requiring direct interaction with the geometry module.

3.2.1. Meshing for CFD

Selecting the appropriate meshing criteria depends on the geometric complexity, flow conditions, and the desired level of simulation fidelity. Different mesh types—categorized as structured, unstructured, or hybrid—each offer distinct benefits and challenges. Structured grids, characterized by their uniform and ordered connectivity, are highly efficient and accurate for simple geometries and flow-aligned features [43]. However, their rigid structure makes them challenging to apply to complex or multi-element configurations. Unstructured grids, on the other hand, provide flexibility to adapt to highly irregular geometries, covering intricate features like sharp edges or highly curved surfaces. Hybrid grids combine the advantages of both, employing structured grids in regions where precision is important, and unstructured grids in less critical areas.
In this work, the hybrid mesh approach is selected. A structured curvilinear mesh (inflation layer) is employed over the boundary layer region to capture critical near-wall phenomena, while for the remainder of the domain, an unstructured grid is chosen to flexibly adapt to the overall geometry. As for discretization elements, hexahedrals are predominantly used for both boundary layers and far-field regions, as they offer superior numerical accuracy and alignment with flow gradients [41].
Considering the practical implementation, the mesh of any arbitrary wing within the framework is generated via custom meshing scenarios which are passed through the ANSA batch mesh tool. These scenarios are tailored by parametrizing meshing options with the wing’s geometric characteristics, as observed in Table 4. The meshing module operates autonomously, requiring no additional user inputs. The batch mesh tool for CFD applications usually requires a surface meshing scenario, an inflation layer scenario, and a volume-meshing scenario. Each meshing scenario consists of multiple meshing sessions, addressing different aspects of the geometry. Specifics considering the meshing scenarios, the meshing parameters, and special treatments are discussed in Appendix A.3.

3.2.2. Surface Mesh

The shaded fields in Table 4 represent meshing parameters that are directly parametrized using geometric inputs specific to the wing’s design. These parametrizations are chosen with guidance from the established literature and reflect best practices to ensure computational accuracy and efficiency. For instance, the “minimum length” under “curvature refinement” and the “minimum first height” in “leading edge treatment” share a value of approximately 0.1% of the tip chord. Consistent with guidelines from the literature, refining key areas, such as leading and trailing edges to approximately 0.1% of the chord length and ensuring 80–100 cells along the chordwise direction, enhances the resolution required for capturing curvature effects and boundary layer dynamics [41]. Additionally, anisotropic distribution and gradual growth factors in mesh elements are recommended for resolving high-gradient regions near walls [43]. Other mesh parametrizations are derived by trial and error while testing the limits of the design space and grid independence studies that are mentioned in Section 5.1.
The automatic control over mesh sizing is achieved through .ansa_mpar files, which are edited automatically and passed to the ANSA pre-processing software. The .ansa_mpar files are configuration files that specify mesh parameters for different regions of a geometry. Each meshing session corresponds to an ansa parameter file. The modification of the .ansa_mpar files is achieved via the ansa_mpar_file_editor module, a custom utility developed to automate the process of editing these files. This module enables dynamic adjustments to mesh parameters by leveraging Python’s file-handling capabilities and regular expressions to target specific configuration settings within .ansa_mpar files. The modification of .ansa_mpar files is performed during the call of the compute_mesh_parameters, a custom method included in the pre_processing class.

3.2.3. Inflation Layer Mesh

This study employs a wall-resolving approach to accurately capture near-wall phenomena, which are critical for predicting aerodynamic characteristics. The near-wall region is dominated by the boundary layer, transitioning from the viscous sublayer dominated by laminar flow, where fluid particles move in orderly layers, to turbulent flow, characterized by chaotic fluctuations. These transitions significantly affect performance metrics such as skin friction and separation zones, making precise boundary layer modeling a necessity [44,45].
To address these challenges, the near-wall treatment focuses on resolving flow structures adjacent to the wall, guided by the non-dimensional wall distance y + [46]. Depending on the turbulence modeling approach, the meshing strategy ensures the first cell lies at a specific y + , which in CFD applications is called first-layer y + , or simply y + . As mentioned at the beginning of Section 3, this study employs the k-omega SST turbulence model [38]. Considering the latter, grid refinements target average y + values less than one ( y + < 1 ), which is essential for resolving the viscous sublayer.
The ANSA software allows us to have more control over specific features of the inflation layer; these features are listed below.
  • The first two layers are of the same height, equal to the first layer height calculation discussed in Appendix A.3.
  • A growth factor is applied for a specific number of layers that are calculated according to the total boundary layer height (see Appendix A.3).
  • To ensure the full coverage of the physical boundary layer and a smooth transition from the inflation layer to the volume mesh, additional layers are added on top for redundancy.
The inflation layer height is calculated iteratively, starting with an initial thickness of twice the first layer height. Successive layers are generated using a growth factor, typically set to 1.2 for smooth transitions. The iterative process continues until the total inflation thickness equals or exceeds the estimated boundary layer thickness ( δ ). When the total inflation thickness exceeds the flat plate boundary layer height, the number of layers is returned and adjusted by a safety factor ( 1.1 ) to ensure adequate coverage, according to suggested practices [41]. Finally, additional layers are placed on top for redundancy. The following inflation layer (Figure 7) is produced automatically using the proposed framework.
The zoomed-in views in Figure 7 highlight critical aspects of the grid structure at the symmetry plane. The right view focuses on the inflation layers, showing finely spaced layers adjacent to the body, with the first two layers being the same height. The left view shows the transition from the inflation layers to the additional layers and then the outer grid, where 10 coarser layers extend to the outer domain. Note that the inflation layer growth factor also applies to the outer layers, which are added as a safety cushion. This ensures that the region of the actual boundary layer will always fall in this curvilinear structured grid.

3.2.4. Volume Mesh

Volume meshing is the final step during the mesh generation process, generating elements in the space between the inflation layer top cap and the far-field boundaries. The utilized volume-meshing algorithm produces an unstructured grid of hexahedrals wherever possible, and tetrahedrals (pyramids) in places where hexas are not allowed. For consistency, the meshing algorithm is called “HexaPoly”.

3.3. Solver Module

The solver module integrates ANSYS Fluent 2023R2 via PyFluent to automate simulation setup, execution, and post-processing. Utilizing Fluent’s GPU-native solver, calculations achieve up to 7× faster computational times compared to parallel CPU solvers, significantly reducing simulation duration [47]. A dedicated solution class, illustrated in Figure 8, manages input and output files, simulation setup, and execution. It also supports stall detection and convergence monitoring methods, ensuring high-fidelity results with minimal manual effort.
To initiate this process, instantiating the solution class also launches Fluent automatically according to the specified launcher settings. Whether running in GPU or CPU mode, with or without GUI, and using a predefined number of processors, the solver is initialized with the appropriate computational resources before proceeding with the case setup and execution.
Once Fluent is up and running, the module proceeds with loading the computational mesh from a .msh.h5 file. It then parses the XML file, extracting previously calculated attributes, including the MAC, reference surface area, Reynolds number, velocity, and altitude. These values are utilized in defining the simulation’s boundary conditions and reference parameters for later force and moment calculations.
The simulation setup is then performed iteratively over a predefined range of angles of attack. For each AoA in the range, the class executes all setup procedures detailed in Appendix A.4. Monitoring report files for lift, drag, and moments are also generated during the simulation, providing real-time feedback on solution convergence and stability. After initializing the solution, the simulation then enters an iterative solution phase, where Fluent runs for a predefined number of iterations while continuously checking for convergence, as described in Algorithm for Convergence Detection section. Once the solver detects convergence, the aerodynamic coefficients C L , C D , and C M are computed using the final force and moment values. Post-processing includes extracting maximum and mean y + values to evaluate the quality of the boundary layer resolution. The final results are stored in the XML file, and Fluent’s output files (.cas.h5, .dat.h5, .out) are also saved.
Throughout this process, robust error handling mechanisms ensure that Fluent automatically retries execution or logs issues if it encounters errors such as failed launches or missing files. The class is designed to efficiently manage multiple cases, automating the CFD workflow.

Algorithm for Convergence Detection

In CFD, convergence refers to the stabilization of iterative calculations of flow variables, indicating that the numerical solution is approaching a state that sufficiently satisfies the governing equations and boundary conditions. Typically, convergence is judged by a three-order-of-magnitude drop in residuals of continuity, momentum, and turbulence equations, alongside the stabilization of forces such as lift and drag [48]. Achieving convergence to machine precision is realistically impossible, and practical thresholds must balance accuracy and computational cost.
In this framework, a custom convergence detection algorithm is implemented due to the limitations of Fluent’s built-in methods for GPU-native solvers (Fluent v2023R2—v2024R2). This algorithm is incorporated as a hidden method within the solution class and called by the solve method while a simulation is running. This dependency can be observed in Figure 4 and Figure 8. The method incorporates residual monitoring, periodicity checks, and termination criteria, focusing specifically on the aerodynamic quantities of interest: the forces acting along the x and z axes. The residual of these forces is calculated iteratively as the maximum relative change in force values over a specified window of past iterations ( N ), using the formula of Equation (1).
R F x , z i = max N F i x ,   z F i j x ,   z F i x ,   z
Note the following:
R F x ,   z i : Maximum residual force in the x or z direction at iteration i ;
F x , z i : Current force in the x or z direction at iteration i ;
F x , z ( i j ) : Force value in the x or z direction from j -th previous iteration.
Residual convergence is flagged when both forces drop below a predefined residual flag for three consecutive checks, performed at specified iteration check interval. Periodicity detection, initiated after a defined iteration threshold and a defined level of convergence (residual flag should be at least as low as one order of magnitude larger than the threshold), uses zero-crossing analysis to identify stable oscillatory behavior [49]. If periodicity is confirmed, the solution is conditionally converged. Additionally, a maximum iteration cap of 2000 iterations is imposed to prevent excessive computational costs in scenarios where convergence or periodicity detection cannot be achieved. In those cases, the evaluation metrics described in Section 4 can assist in investigating the convergence issue.
Based on the findings of a sensitivity study, combining a 10 3   residual flag, 100-iteration checking window, and 10-iteration check interval is suggested as a balanced trade-off between computational cost and convergence robustness. The approach ensures high reliability and robustness in detecting convergence, accommodating the complexities of GPU-native solvers and aerodynamic flows.

4. Evaluation Metrics

The reliability of CFD results must consider the quantification of numerical errors, especially in an automated framework where human intervention is minimized. Thus, it is essential to ensure that the solutions generated are accurate, especially when considering critical aerodynamic quantities like lift and drag. The error in CFD modeling can be categorized into round-off errors, discretization errors, and iterative errors [50,51,52].
  • Round-off errors arise from the finite precision of numerical calculations performed by computers, particularly in large-scale simulations with many iterations, where the accumulation of small errors can impact the solution.
  • Discretization errors, on the other hand, result from the approximation of continuous governing equations using numerical schemes and finite spatial or temporal resolution. They encompass truncation errors, which arise from the omission of higher-order terms in the numerical approximation, and additional artifacts introduced by grid quality, boundary condition definition, and numerical schemes. Discretization errors are often treated as an epistemic uncertainty [53], reflecting incomplete knowledge of the true solution due to mesh and scheme limitations.
  • Iterative errors stem from the incomplete convergence of the solver to a stable solution, either due to insufficient iterations or suboptimal solver settings, and are similarly treated as an epistemic uncertainty [54].
While these errors cannot be entirely eliminated, estimating their impact is essential for assessing the numerical fidelity of CFD results. Such error estimation safeguards against misinterpreting numerical artifacts as physical phenomena and helps ensure that the automated workflow produces robust and reliable outputs.
To complement the error estimation process, this study also introduces a rapid reliability assessment methodology for evaluating the overall quality of CFD results. This assessment uses established best practices and guidelines for CFD simulations in the subsonic regime [41,48]. By systematically evaluating critical parameters—such as boundary layer resolution, the number of discretized cells within the boundary layer, and the convergence behavior of key forces—the methodology identifies unreliable simulations and highlights potential sources of inaccuracy. These quality checks act as a double-layer safeguard, ensuring that the solutions meet predefined standards of fidelity before progressing further in the design process.
Together, error estimation and rapid reliability assessment form a comprehensive framework for validating CFD outputs. The framework not only quantifies numerical uncertainties but also ensures solution quality through practical and experience-based reliability checks. This dual approach provides designers with robust and reliable outputs, enabling informed decision-making during the design and optimization process.

4.1. Discretization Error Quantification

This subsection focuses on two primary error sources: the Grid Convergence Index (GCI), which quantifies discretization errors, and iterative errors, which arise from incomplete solver convergence. These methods allow for the estimation of numerical uncertainties, enhancing confidence in the CFD solutions.
The Grid Convergence Index (GCI), rooted in Richardson extrapolation, is a well-established method for estimating discretization error in CFD simulations, while it has been validated against experimental data across diverse aerodynamic applications [55]. The GCI evaluates the convergence of key aerodynamic quantities, such as lift and drag, across systematically refined grids. The procedure is as follows:
  • Define a Representative Grid Size: for three-dimensional grids, Equation (2) is used.
    h = 1 N i = 1 N V i 1 3
Note that V i is the volume of the i t h cell and N is the total number of cells.
2.
Grid Refinement: perform analyses on three grids (coarse, medium, and fine), characterized by grid sizes h 1 < h 2 < h 3 , with a refinement ratio r (Equation (3)).
r = h c o a r s e h f i n e > 1.3
3.
Apparent Order of Accuracy p: Calculate p using Equations (4)–(6).
p = 1 l n ( r 21 ) ln φ 3 φ 2 φ 2 φ 1 + q ( p )
q p = l n r 21 p s r 32 p s
s = 1 × s g n φ 3 φ 2 φ 2 φ 1
In these equations, φ is the aerodynamic quantity of interest. The equations for p can be solved using fixed-point iteration.
4.
Extrapolated Solution: Use Richardson extrapolation (Equation (7)) to approximate the solution at an infinitely fine grid.
φ e x t 21 = r 21 p φ 1 φ 2 r 21 p 1
5.
Discretization Error (GCI): The error estimates are reported (Equations (8) and (9)).
ε 31 = φ 3 φ 1 φ 1 ε 3 , e x t = φ 3 φ e x t 21 φ e x t 21
G C I f i n e , 31   = 1.25 ε a , 31   r 31 p 1

4.2. Iterative Error Quantification

Iterative errors arise due to the non-linearity inherent in the governing equations, such as the Reynolds-Averaged Navier–Stokes (RANS) equations, and the iterative nature of numerical solvers [52,56]. Non-linearities from convective terms, turbulence closure models, and deferred corrections in discretization contribute significantly to iterative errors. Additionally, the solution of linearized algebraic systems through iterative methods introduces convergence-related discrepancies. While iterative errors can be reduced with additional iterations, achieving complete convergence is often computationally prohibitive, particularly in complex turbulent flows. This necessitates the adoption of reliable methods to quantify and manage iterative errors within acceptable limits to ensure the fidelity of CFD simulations.
Despite significant advancements in CFD, iterative errors remain an open problem, with numerous studies endeavoring to address their impact and quantification [50,51,52,55,56]. The approach to iterative error estimation employed in this study aligns with the same study utilized for the discretization error, thereby ensuring consistency and credibility within the numerical uncertainty framework. In this context, iterative error fulfills a dual role. It serves as a practical indicator of convergence, enabling engineers to assess whether a solution has stabilized by closely monitoring the error as the solution progresses. Furthermore, it provides an approximation of uncertainty, allowing for the estimation of numerical error should the simulation be terminated prematurely.
To quantify the iterative error, the methodology proposed by Ferziger [57] is employed. The iterative error, denoted as ε i t e r , is estimated using the formula of Equation (10).
ε i t e r , i   n φ i n + 1 φ i n     λ i 1
Note that n is the iteration number, φ i is the solution variable, and λ i is the principal eigenvalue of the solution matrix, approximated using Equation (11).
λ i = φ i n + 1 φ i n φ i n φ i n 1
The uncertainty in iteration convergence, δ i t e r , is then calculated as shown in Equation (12).
δ i t e r = ε i t e r , i n λ a v e 1
In this equation, λ a v e is the average value of λ i over a reasonable number of iterations. Following recommendations in prior studies, λ a v e is calculated using 1% of the total iterations [51].

4.3. Solution Confidence

Unlike global error estimates, key simulation quality indicators provide a practical and immediate assessment of grid and solution reliability. The confidence metrics utilized in this study are systematically implemented as part of the automated process, providing a quick and actionable diagnostic tool to assess simulation quality. By flagging runs that deviate from established thresholds, this method empowers engineers to either proceed with confidence or refine their setup, thus safeguarding the integrity of the design process.
According to widely accepted guidelines for the subsonic regime, as well as experimental validations [58], proper resolution of turbulence effects—particularly when using the low-Reynolds variant of the k-omega SST turbulence model adopted in this study—requires careful treatment of the boundary layer grid. For accurate turbulence modeling and wall shear stress prediction, an average y + value of less than 1 and a maximum y + value of 2 should be enforced across the wing surface. While a maximum y + value strictly below 1 is suggested by some researchers (see Table 5) as an ideal target, it is often unrealistic to achieve this consistently in automated frameworks, especially when considering the broad design space and flow conditions investigated in this work.
Nevertheless, it should be noted that this practical guideline is applied to ensure that the low-Reynolds modeling will consider the phenomena encountered within the viscous sublayer, which appears at a y + smaller than 5 [46].
Several studies have attempted to quantify the sensitivity of aerodynamic quantities to variations in y + values across a range of geometries and flow conditions [58,59]. However, these efforts remain limited, both in scope and applicability, as they do not comprehensively cover the design space or operational conditions explored in this study. As such, relying solely on y +   values for a quantified grid-resolution error remains impractical and, in many cases, misleading.
In addition to satisfying the first layer height requirements near wall boundaries, an accurate boundary layer resolution also demands a sufficient number of prism layers within the boundary layer to properly capture the flow phenomena starting from the near-wall region of the viscous sublayer and moving on to the buffer zone and logarithmic region. Existing studies have established that 20 to 40 prism layers are typically required to discretize the boundary layer accurately and ensure numerical fidelity (see Table 5). This ensures that steep gradients, particularly in the near-wall regions, are resolved with an adequate grid density.
By combining the guidelines for y + and the boundary layer discretization, a systematic confidence assessment system is suggested in the current study, indicatively using color coding to flag deviations from established thresholds. This system allows for a rapid visual evaluation of simulation reliability, as illustrated in Figure 9.
The green color represents the best-case scenario according to most guidelines, the orange color (left cross pattern) represents a type of grey zone where some studies agree, and the red color (right cross pattern) indicates poor confidence about the results of the analysis. In this framework, the y + values (both average and maximum) are extracted using the solver module and the functionality provided by PyFluent, utilizing built-in methods.
A critical factor contributing to the confidence in the results is the convergence behavior of each case. As described in Section 3, a substantial computational budget is allocated to the solution, and an automated algorithm continuously monitors the quantities of interest (forces generated on the wings) until they stabilize within a predefined tolerance level. Cases that fail to converge may indicate oscillatory or divergent behavior, or, in rare instances, a very slow rate of convergence, as observed in the authors’ experience. For every CFD result, the convergence condition is reported alongside the residuals for each force, providing designers with valuable insights into the simulation setup.

Inflation Layer Exploration

This section and Figure 10, describes the approach adopted to generate a structured inflation layer mesh from unstructured CFD simulation data with the scope of accurately defining the grid elements inside the boundary layer (Figure 11). The development of a structured inflation layer mesh, while complex, enables the detailed post-processing of these regions.
The initial step involves extracting the simulation data, including element positions, node positions, and element–node connectivity. This information is gathered via PyFluent and forms the foundation for mapping relationships between nodes and elements, which is necessary for reconstructing structured layers. The data structure allows for the efficient traversal and identification of edges shared between elements, enabling the formation of a coherent network around the airfoil. The airfoil boundary is located by identifying nodes lying along its surface. These nodes are determined based on their spatial arrangement (their proximity to the plane of interest), their velocity magnitude (which should be zero according to the no-slip boundary condition imposed), and distinct geometric features, such as proximity to the airfoil shape and minimal deviation in the tangential direction. Once identified, the airfoil nodes are chained into a continuous sequence, representing the airfoil surface from the leading edge to the trailing edge. This chaining process preserved the geometric coherence of the airfoil outline.
Subsequently, elements connected to the airfoil nodes are isolated, using the connection information from the solver, forming the first inflation layer directly adjacent to the airfoil. The elements are ranked based on their proximity and connectivity to ensure an unambiguous representation of the layer.
Using the elements of the first layer as a foundation, additional inflation layers are constructed incrementally. For each layer, the following process is applied:
  • Element Connectivity Traversal: The neighboring elements of the current layer are identified through their shared edges.
  • Velocity and Y-Coordinate Filtering: Candidate elements for the next layer are filtered based on predefined constraints on x-velocity component and vertical (z-axis) alignment, ensuring physical relevance.
  • One-to-One Mapping: A one-to-one mapping is enforced between elements of consecutive layers to maintain coherence. This ensured that each element in a new layer corresponded to exactly one element in the previous layer, preserving the structured arrangement.
  • Continuity Validation: Additional continuity checks ensured the spatial arrangement of elements remained consistent. A maximum allowable distance criterion was applied between consecutive elements to detect and resolve discontinuities.
With the structured data array, including computed variables such as the fluid velocity and turbulent viscosity ratio, the boundary layer height can be determined at any position along the airfoil [48,61]. This enables a direct comparison with theoretical boundary layer heights and allows for the counting of prism cells within the boundary layer. While this proposed methodology shows promise for automatically extracting boundary layer information, its application is limited by the strong three-dimensional effects arising from varying boundary layer development rates along the wing. Consequently, constructing concise metrics to inform designers is beyond the scope of this study. However, the method can still be applied manually by selecting specific points of interest on the wing surface.

5. Framework Performance

The performance evaluation of the proposed framework is conducted through a combination of validation studies and a large-scale development in order to acquire statistical insights across a large sample of the design space. Firstly, in Section 5.1, a grid independence study is conducted alongside the quantification of discretization errors in the generated grids. It must be noted at this point that the main goal of this work is to present and demonstrate the entire pipeline of a framework that leads from geometry to simulation. Validating the framework against experimental or flight-testing data is beyond the scope of this work, especially given the fact that the methods have been validated in previous studies in their non-automated form. Additionally, in Section 5.2, a validation case is selected to benchmark the framework’s performance against the expertise of a highly skilled mechanical engineer specializing in CFD. This comparison focused on both time efficiency and the accuracy of the results.
Following this, in Section 5.3, an extensive series of analyses were conducted, sampling 1165 wings from the predefined design space (Section 2). The purpose of these analyses is to assess the framework’s performance across four primary aspects:
(1)
sampling a range of wing configurations;
(2)
meeting boundary-layer resolution and mesh-quality thresholds (Section 4);
(3)
ensuring solver convergence and minimal iterative error;
(4)
achieving computational efficiency for large-scale design exploration.
The findings indicate that the framework can handle a wide range of wing configurations without user intervention, while also providing detailed information on computational durations for geometry generation, mesh generation, solution setup, and solution execution. Additionally, the grids generated were evaluated using the quality metrics described in Section 4.
All the analyses presented in this section for the framework’s performance are conducted at the Aristotle University of Thessaloniki (AUTh) High Performance Computing (HPC) cluster, leveraging its advanced computational capabilities. This state-of-the-art system facilitated the efficient execution of the large-scale simulations required for validating the framework and analyzing the sampled wings. The HPC cluster specifications are detailed in Table 6.
It should be noted that the definition of a “highly skilled Mechanical Engineer specializing in CFD” is inherently subjective. In this case, the expert is an engineer with over five years of experience in CFD, specifically for aircraft and UAV applications [39,62,63,64]. The expert has served as the lead CFD engineer on multiple research and industrial projects, developing expertise in aerodynamic analysis, mesh optimization, and simulation validation. While this level of expertise provides a solid benchmark for comparison, it is acknowledged that individual skill sets and methodologies can vary significantly across practitioners, which may influence the comparison outcomes.

5.1. Grid Independence Studies and Error Quantification

This section focuses on performing grid independence studies within the framework, ensuring that the solution converges under mesh refinement using previously established practices [39]. Because these studies are performed by the framework automatically, the simulation setup, including model and solution scheme selection, matches the setup detailed in Algorithm for Convergence Detection section.
The ONERA M6 wing is selected for the grid independence studies due to its simplicity, public availability, and frequent use in benchmarking studies [65]. This well-documented geometry, depicted in Figure 12 is a staple in aerodynamic validation, offering established reference data for comparison. Although the ONERA M6 wing is commonly validated in high-speed subsonic and transonic flow regimes, this study is focused on subsonic incompressible flow conditions. Transonic regimes demand more intricate grid setups and solver configurations, which are outside the framework’s intended operational domain [66]. The ONERA M6 model, along with the corresponding design space parametrization, is illustrated in Figure 12 and Table 7.
The studies are conducted under sea-level atmospheric properties, with a freestream velocity of 25   m / s . Τwo angles of attack (AoAs) are selected: a moderate 4° and a higher 12°. The latter is commonly more demanding in terms of convergence, requiring more iterations due to the possible flow separation on the suction surface.
The study is executed by progressively increasing the number of grid elements using a scale factor that affects the hyper-parameters of the meshing algorithm. In Figure 13, the lift and drag forces on the ONERA M6 wing are illustrated for both AoAs.
The results highlight that for both cases, the lift and drag forces converge to stable values as the mesh density increases. This also validates the usage of a universal grid per wing and the importance of the BOIs in the proposed framework. Beyond a certain number, which in this case is for approximately 7.5 million grid elements, further refinement provides diminishing returns in accuracy. Thus, the appropriate parameters are being fine-tuned for the meshing module in order to reliably provide computational grids with this refinement. Using these parameters as the baseline, further investigation is being conducted into the determination of the discretization error as per the methodology described in Section 4.1. Three wings are chosen for this phase: the ONERA M6 wing, the RADAERO conventional wing (details are present in Section 6), and a wing belonging to the EURRICA BWB UAV [62]. The planform of the EURRICA wing is illustrated in Figure 14, along with the parametrization in Table 8.
By following this systematic approach, the GCI provides a quantified measure of the discretization error, yielding a transparent assessment of grid-resolution effects. Although GCI is traditionally applied to single-case simulations, this study extends its methodology to the broader design space by evaluating representative samples. The three sampled wings represent the design space of the framework as the most interesting cases. The mean GCI error is used as an aggregated estimate of the discretization error over the design space. In the absence of experimental validation in this study, the GCI remains a credible indicator of numerical errors.
The evaluation metrics for the following grid independence studies are the lift and drag forces. As illustrated in Figure 15, for each case, the least refined computational grid is the one generated using the hyper-parameters selected from the previous grid dependency study. Then, following the GCI approach, systematically more refined grids are created. The final errors calculated are shown in Table 9.
It is evident that the discretization error for the three cases between the least-fine grid and the extrapolated one, is in the order of 1%. The drag for all cases seems to be more sensitive regarding the grid resolution. This error can be reported as a safe estimate for the grid of this framework.

5.2. Solver Compared with Expert-Grade Results

To evaluate the efficiency and accuracy of the proposed framework, a comparison was conducted against a manually prepared simulation, performed by an experienced CFD mechanical engineer. To ensure consistent and comparable results, the ONERA M6 wing geometry (Figure 12, Table 7) generated by the framework was also provided to the expert. The engineer manually meshed the geometry while preserving the features of the wing. The simulation parameters, including models, solution schemes, and boundary conditions, are appropriately configured to match the setup performed automatically by the framework, as detailed in Algorithm for Convergence Detection section. The validation focuses on key aerodynamic quantities, including the lift coefficient C L , drag coefficient C D , and residual convergence trends. The framework is assessed for its ability to replicate these results while reducing the time and effort required for pre-processing and simulation setup.
The automated framework demonstrates high reliability, with the drag polar predictions deviating by less than 3% from the manually obtained results. This agreement highlights the framework’s capability to deliver high-level accuracy for subsonic aerodynamic evaluations. As illustrated in Figure 16, the framework successfully captured the lift and drag characteristics across the drag polar of the ONERA M6 wing.
One of the key strengths of the framework lies in its ability to significantly reduce the time required for geometry pre-processing, meshing, and simulation setup. The CFD engineer took approximately 40 min to manually generate the mesh and configure the solver for the ONERA M6 case. In contrast, the automated framework completed these tasks in under 5 min, achieving an 88% reduction in lead time. In this lead time, only the mesh generation and the solution setup are taken into consideration, since the solution execution time is the same for both cases (given that the grid resolution is similar).

5.3. Large Scale Deployment

To evaluate the scalability and robustness of the proposed framework, 1165 wing geometries are sampled from the design space outlined in Section 2. The sampling process employs a Latin Hypercube Sampling (LHS) technique to ensure a uniform distribution of design variables across the multidimensional design space [67]. These sampled wings represent a diverse range of conventional and unconventional configurations, including both conventional wings and more complex blended geometries typically found in tailless, flying wing, or BWB UAVs. Figure 17 provides a visual depiction of the distributions for the high-level planform parameters, illustrating the diversity and coverage achieved in the sampling process.
For each wing configuration, the corresponding flow velocity is sampled according to the methodology described in Section 2. The angle of attack range spans from 4 o to + 16 o , with an additional 4 o added in cases where stall has not yet occurred. This approach ensures a comprehensive aerodynamic characterization for each wing. The final dataset comprises 12,858 computational analyses, with an average of 11 simulation runs per configuration. This extensive dataset provides a robust foundation for evaluating the framework’s performance in terms of computational time, robustness, and mesh quality. From the total number of analyses, 96.75% were successfully completed, while the remaining 3.25% encountered issues related to mesh resolution (e.g., y + values) or convergence failure across the majority of runs. Such outcomes offer valuable insights into areas requiring improvement in mesh generation and solver setup for specific configurations.
Table 10 summarizes execution time statistics across the framework’s main phases, excluding geometry generation, which is negligible in comparison to other modules. From these data, it can be concluded that the median execution time for the pipeline from mesh generation to solution execution is approximately 539 s (9 min), with a standard deviation of 150 s. These results emphasize the framework’s capability to deliver high-fidelity aerodynamic results within a short timeframe, significantly enhancing the efficiency of the design process.
Figure 18 depicts the distribution of the two most time-consuming phases—mesh generation and simulation execution. The distribution plots reveal that mesh generation exhibits less variability compared to simulation execution, which is influenced by the complexity of each configuration.
While as described, y + is not an absolute measure of grid fidelity, it serves as a practical first step in assessing the quality of boundary layer resolution. In contrast, metrics such as the number of prism layers within the boundary layer provide a more comprehensive but inherently complex three-dimensional evaluation, which should be examined as a secondary step by the designer at critical spanwise locations on the wing surface. Equation (13) shows the criteria used to define a high-quality mesh.
y a v g + @ w i n g _ s u r f a c e < 1   a n d   y m a x + @ w i n g _ s u r f a c e < 2
Among the 12,858 cases, 93.2% met these quality constraints, indicating a robust and consistent mesh generation process. Outliers, representing 0.5% of cases with abnormal y + values exceeding two orders of magnitude above the quality threshold, are excluded from the analysis. Table 11 provides summary statistics for the y + values of the valid cases.
To further analyze the distribution of y + values, Figure 19 provides scatter plots of the average and maximum y + values for all cases. Figure 19a presents the full dataset, excluding the extreme outliers, and highlights the strong clustering of cases that meet the quality criteria, shown by the green diamond points. The presence of a small subset of extreme values, where y m a x +   exceeds 10, indicates specific challenges in grid resolution for certain geometries or flow conditions. These cases, although rare, suggest areas for localized adjustments to boundary layer refinement settings.
Figure 19b focuses on cases that satisfy or marginally exceed the quality thresholds, offering a clearer view of the robust performance achieved by the framework. The tightly clustered data points illustrate the consistency of the automated meshing process, particularly for the majority of sampled wings. Overall, these visualizations confirm that the framework maintains a high degree of mesh quality across a diverse range of wing configurations, with only minor deviations requiring further attention.
Regarding the iterative error, the same batch of wings is used to investigate the total uncertainty from either non-converged or prematurely converged cases. Solutions are either converged fully or stopped at 2000 iterations (maximum iterations) to assess the impact of incomplete convergence.
Figure 20 illustrates the average iterative error (for both forces in X and Z axis) for converged and non-converged wings across the sampled angles of attack. Non-converged wings exhibit significantly higher iterative errors, particularly at low angles of attack, where the error reaches its peak. In contrast, converged wings demonstrate negligible iterative errors across the entire range, underscoring the importance of convergence in achieving reliable results. This comparison emphasizes the role of iterative errors as a diagnostic tool for assessing the solution quality and the reliability of early terminated simulations.

6. Optimization Case Study

To demonstrate the power of the automated CFD framework, one aerodynamic shape optimization case study is conducted. This includes a conventional UAV wing with the goal of showcasing the adaptability and robustness of the algorithm. The objective of optimization is to maximize the lift-to-drag ( L / D ) while also satisfying the sensitive stability constraints. All the design variables described in Section 2 are selected, except for the dihedral angle, since it plays a minor role in the aerodynamic performance and the longitudinal stability of the UAV [6,7].
Bayesian Optimization (BO) was chosen for these cases, as it is a method well-suited for high-cost optimization problems [68]. BO utilizes a surrogate model, typically a Gaussian Process (GP), to map the aerodynamic behavior to inputs (i.e., the design variables). The Expected Improvement (EI) criterion drives the algorithm in balancing exploration (unseen design areas) and exploitation (refining promising regions), enabling efficient exploration of high-dimensional design spaces while minimizing the number of analyses required. Classic BO does not offer a straightforward way of incorporating constraints into the optimization formulation. To tackle this, Ref. [69] introduces Constrained Bayesian Optimization (cBO), which incorporates inequality constraints by placing Gaussian Process priors on both the objective and constraint functions. This approach allows for the optimization of an expensive objective function while simultaneously considering feasibility constraints. For the CFD analyses, the AUTh HPC infrastructure was utilized, using the specifications described in Table 6.

Conventional UAV Wing—RADAERO

The RADAERO platform (Figure 21), a conventional fixed-wing UAV with an inverted V-tail configuration, is selected as the reference configuration. The RADAERO platform is a platform that has been 100% designed and built by the Laboratory of Fluid Mechanics and Turbomachinery [70] and has successfully completed several hours of flight testing.
The initial design variables for this case are given in Table 12. The wing’s airfoil—NACA 2414—and dihedral angle are kept constant along the wing sections. The upper and lower bound of the design variables are constrained to a ±   20 % from the baseline configuration, ensuring a resemblance to the already designed aircraft. This minimizes the impact of the new wing on the overall performance of the UAV. Flight conditions are fixed at a cruising speed of 25 m/s at sea level, with a reference Reynolds number of 200.000 and an angle of attack of 4 o . Since RADAERO already features a horizontal and vertical stabilizer, and in a hypothetical scenario of later-stage optimization it imposes a stability constraint on the wing, in order to ensure that the tail remains the same.
The optimization problem formulation is displayed in Equation (14).
m a x i m i z e L D subject   to   C L 0.414 0 C M c 4 0.0781  
An initial DoE stage (Exploration) is performed, so as to explore the design space. In this phase, using LHS, random configurations are analyzed, thus providing information to the GPs, mapping the inputs to the outputs, and constructing the foundation of feasible and infeasible regions. According to [71,72], the majority of the computational budget should be distributed to the exploitation stage i.e., the infill stage. Guided by the EI acquisition function, the optimizer specifically selects points in the design space that offer a high probability of improving the current best score of the quantity of interest. A total of 30 wing designs are evaluated with a ratio of exploration-to-exploitation equal to 1:2. As illustrated in Figure 22, circles denote valid solutions that satisfy constraints, while crosses represent invalid solutions.
The framework successfully identified a final optimal wing design with an 8% increase in L / D , a 2% improvement in C L , and a modest reduction in C M c / 4 , aligning with the constraint (Table 13). On the optimized wing, the average y + value along the wing was kept below 1. This highlights the framework’s effectiveness in navigating a constrained design space, as evidenced by the progressive improvements across iterations and the ability to maintain stability and aerodynamic performance, while also providing reliable and fully automated CFD results.
The optimized wing planform is compared to the baseline in Figure 23. It is evident that the span of the wing increased leading along with its aspect ratio, which has an explicit effect on the reduction in induced drag [7].

7. Conclusions

This study presents the development and validation of an automated CFD pre-processing framework designed to streamline high-fidelity aerodynamic simulations tailored for fixed-wing UAV applications. By integrating the geometric modeling, mesh generation, and simulation setup into a cohesive workflow, this framework significantly reduces manual effort and computational inefficiencies. By leveraging Python APIs and a combination of open-source and commercial tools, tshe framework achieves a fully parameterized and automated pipeline, reducing pre-processing times to mere minutes and making it suitable for rapid iterations in design workflows. Moreover, a methodology for estimating the reliability of the framework’s results is proposed, incorporating considerations for discretization error, potential early solution termination, non-dimensional y + values on the wing’s surface, and grid resolution within the boundary layer.
Adhering to best practices and guidelines established by CFD experts and practitioners, the framework demonstrated high accuracy compared to expert-generated results, as well as high consistency across a large number of sampled wings. Additionally, various grid independence studies have been performed, covering a wide range of the design space.
The framework’s integration with high-performance computing (HPC) environments featuring GPU solvers minimizes the labor-intensive work needed to prepare a geometry for CFD simulation. This results in pre-processing durations in the order of 5–7 min and the complete execution of the framework in less than 10–15 min for a single wing at a given angle of attack.
Moreover, the framework is integrated with an off-the-shelf optimizer, functioning as a robust black-box function. Using Bayesian Optimization, the framework identified an optimal wing configuration that achieved an 8% improvement in L / D , along with a 2% increase in C L , and a modest reduction in C M . These improvements, while incremental, highlight the framework’s adaptability and demonstrate the advantages of encapsulating all modules within a unified Python pipeline. The framework’s reliable mesh generation ensures seamless execution of cases without computational issues, even under varying conditions.
In summary, the framework represents a significant step forward in streamlining the pre-processing and analysis phases of UAV design. It provides a scalable, efficient, and accurate solution for high-fidelity aerodynamic evaluations, while establishing a robust foundation for future advancements in optimization.
Future work could address the following areas to enhance the framework’s capabilities and expand its scope of use. The framework can be extended to accommodate more complex non-planar features, such as wings with winglets, fins, fences, and tail configurations. Incorporating these components can potentially enable the analysis of complete fixed-wing UAV and aircraft configurations. Moreover, the framework provides a great opportunity to generate large-scale datasets suitable for machine learning applications of aerodynamic shape optimization for UAVs.

Author Contributions

Conceptualization, C.P. and P.P.; methodology, C.P. and G.E.; software, C.P., G.E. and D.T.; validation, C.P. and P.P.; investigation, C.P. and G.E.; resources, P.P and C.P.; data curation, C.P., G.E. and D.T.; writing—original draft preparation, C.P., G.E. and D.T.; writing—review and editing, C.P. and P.P.; visualization, C.P., G.E. and D.T.; supervision, P.P.; funding acquisition, P.P. All authors have read and agreed to the published version of the manuscript.

Funding

The research work was supported by the Hellenic Foundation for Research and Innovation (HFRI) under the Basic Research Financing (Horizontal support for all Sciences), National Recovery and Resilience Plan (Project Number: 016429, Project Acronym: INDIANA).

Data Availability Statement

Data available on request due to restrictions related to the details of the baseline platform. The data presented in this study are available on request from the corresponding author.

Acknowledgments

Results presented in this work have been produced using the Aristotle University of Thessaloniki (AUTh) High Performance Computing Infrastructure and Resources.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Appendix A.1. Geometry Module Features

The following paragraphs dive into the geometry pre-processing methods and treatments.

Appendix A.1.1. Trailing Edge Treatment

Trailing edge (TE) treatments are essential in CFD modeling, as they influence the progression of the inflation layer and ensures stability in numerical solutions. For subsonic wing simulations, two common TE treatments—rounded and straight cut—are considered (Figure A1), each with unique implications for modeling and meshing.
The straight cut design is chosen for this framework due to its compatibility with meshing automation, ensuring robust feature recognition by the meshing software. This decision prioritizes automation reliability over marginal quality improvements offered by rounded edges [41]. OpenVSP facilitates the parameterized control of TE thickness via the input of the chord lengths ( c 1 ,   c 2 ,   c 3 ), automatically trimming the trailing edge for each airfoil to 1% of the chord length, which adheres to the common guidelines.
Figure A1. Trailing edge treatment.
Figure A1. Trailing edge treatment.
Algorithms 18 00186 g0a1

Appendix A.1.2. Blending Between Sections

Blending between the two wing sections is essential to eliminate sharp transitions, ensuring aerodynamic continuity and structural smoothness. OpenVSP (v3.40.1) automates this process, effectively reducing manual effort. Universal rules are applied consistently across all wing geometries, regardless of whether they are conventional or BWB designs (Figure A2). These rules prioritize Section 2, preserving its role as the primary lifting surface, while adjustments to Section 1 ensure tangency with the second, at critical points such as the leading and trailing edges.
Figure A2. Blending between the 2 wing sections (faded region is the pre-blended one).
Figure A2. Blending between the 2 wing sections (faded region is the pre-blended one).
Algorithms 18 00186 g0a2
Symmetry along the centerline is preserved by carefully aligning the leading and trailing edge vertices, preventing the formation of sharp features at the root airfoil. A parameter known as “blending strength” is consistently applied to control the curvature and ensures uniformity across the design space. The blending effect is particularly evident in configurations with significant angle differences between sections, such as variations in sweep or dihedral angles.

Appendix A.1.3. Mean Aerodynamic Chord Calculation

Taking the example of a cranked wing (two-sectioned wing) from [7], the definition of MAC can be generalized for wings with multiple sections. Each wing section can be treated as an “independent” wing, allowing its MAC to be calculated separately. To determine the overall MAC for the entire wing, a weighted average of these individual MACs is calculated, factoring in the contribution of each section to the total planform surface area of the wing (Equation (A1)). Although the blending features are not accounted for in the approximation of the MAC, this does not pose any issues due to the fact that it is consistent between all generated wings.
c ¯ = c i ¯   w i         w h e r e ,     c i ¯ = 2 3 c r o o t 1 + λ i + λ i 2 1 + λ i             a n d ,     w i = S i S t o t

Appendix A.2. Meshing Module–Geometry Pre-Processing Features

The following paragraphs dive into the mesh pre-processing methods, emphasizing their contribution to creating a watertight control volume with additional features for mesh refinement.

Appendix A.2.1. Control Volume Boundaries/Far-Field

Wing aerodynamic simulations focus on analyzing the aerodynamic performance of a wing under free atmospheric conditions. To accurately represent these conditions, the control volume (far-field) should be large enough so that the flow field at its boundaries remain unaffected by disturbances caused by the wing “wall”. However, the size of the control volume should also be carefully managed to avoid exceeding computational capacity.
Control volumes can take on various shapes, such as rectangular parallelepipeds, bullet-shaped geometries, or semi-spheres. To the best of the authors’ knowledge, there is no universally established standard regarding the optimal shape of the control volume, as the choice often depends on the specific simulation requirements. Based on previous, in-house experience, and in order to facilitate automation, the rectangular parallelepiped shape was selected to represent the far-field bounds.
The parametrized dimensions that define the artificial far-field boundaries adhere to common practices [41,43,48] and are illustrated in Figure A3. The origin of reference is located at the leading edge of the root airfoil. According to best practices, the distance between the upstream and downstream boundaries is set to 25 chord lengths, with the root chord leading edge is positioned at 25% of this distance. Vertically, the far-field boundaries extend 10 chord lengths above and below the origin. For the lateral extent, the boundary is defined by the semispan of the wing ( b 2 ), which has been specified as five semispan lengths.
Figure A3. Control volume dimensions and layout. The yellow outline denotes the outer boundary of the computational domain, while the blue lines represent internal sizing boxes used to define mesh refinement regions around the geometry of interest.
Figure A3. Control volume dimensions and layout. The yellow outline denotes the outer boundary of the computational domain, while the blue lines represent internal sizing boxes used to define mesh refinement regions around the geometry of interest.
Algorithms 18 00186 g0a3

Appendix A.2.2. Bodies of Influence (BOIs)

Bodies of Influence (BOIs) are auxiliary geometries defined around the wing wall that enhance mesh control and improve cell quality within the volume surrounding the wing. To align with the objectives of this framework, every generated geometry must be meshed, ensuring that the mesh design accommodates simulations across various angles of attack. By strategically defining BOIs around the wing wall, the mesh can be refined in critical regions, such as the wake and upstream flow areas, thereby enabling the use of a “universal mesh per geometry”, which improves efficiency.
Considering the shape of the far-field defined in the previous subsection, the BOIs method generates two trapezoidal frustums, as auxiliary geometries for mesh refinement. As shown in Figure A3, the frustums are strategically oriented with their larger bases positioned towards the wing’s wake, where greater refinement is essential, particularly at higher angles of attack. The dimensions of each frustum are also parametrized with the MAC and the wing’s semispan ( b 2 ).

Appendix A.2.3. Part Identifiers (PIDs)

To improve robustness, the framework assigns unique part identifiers (PIDs) to key geometric features, enabling precise referencing for meshing and analysis setup. The identified features include the “wing wall”, “wingtip cap”, “symmetry face”, “opposite symmetry face”, “inlet”, “outlet”, “upper far-field”, and “lower far-field”. The wing is segmented into the “wing wall” and “wingtip cap” PIDs to streamline meshing, while far-field boundary differentiation aids in defining boundary conditions for analysis setup.

Appendix A.2.4. Feature Recognition

Traditional approaches to pre-processing often rely on extensive manual interventions, including the creation of multiple custom PIDs to apply localized meshing parameters. While this approach allows for fine control over mesh refinement, it introduces significant challenges:
  • Time-Intensive Processes: Manual custom PID creation demands meticulous geometry manipulation, which is labor-intensive and prone to errors.
  • Lack of Robustness: The process is highly dependent on the operator’s expertise, reducing the ability to automate and standardize the meshing for diverse geometries.
  • Automation Limitations: Manual adjustments are difficult to replicate in Python-based environments, limiting the scalability and efficiency of the pre-processing module.
To overcome these challenges, the pre-processing module leverages the feature-recognition capabilities provided by ANSA. The custom feature-recognition method automates the identification and tagging of critical geometric elements on the wing, such as the leading edge, trailing edge, and wingtip sharp features. This automated approach ensures that appropriate meshing parameters will be later applied to the relevant recognized regions without the need for excessive custom PID definitions, thereby streamlining the workflow and enhancing the framework’s ability to mesh arbitrary wing geometries consistently.

Appendix A.3. Meshing Module–Meshing Features

Appendix A.3.1. Surface Mesh Details

The surface meshing scenario not only refers to the wing wall but also to the far-field artificial boundaries that together with the wing comprise the watertight volume called domain. This scenario includes three sessions: the wing wall, the wingtip and the far-field meshing sessions, executed in order from the smallest to the largest cell size. As defined earlier in the feature-recognition method, three key aspects of the wing geometry are identified: the leading edge (LE), trailing edge (TE), and wingtip. The wing-wall session not only includes the meshing parameters for the wing surface but also applies specialized treatments for the leading and trailing edges. Similarly, the wingtip session incorporates specific adaptations to handle the meshing process of the sharp edges around the wingtip airfoil. Finally, the far-field session generates the surface mesh on the far-field boundaries. All parameters considering the surface mesh sessions are summarized in Table 4.
The first three mesh parameter categories—namely “Mesh type,” “Mesh Sizing,” and “Curvature Refinement”—are shared across all sessions and define the fundamental or global parameters needed for surface grid creation. The mesh type specifies the type of algorithm and elements used for meshing. In this case, the ANSA CFD meshing algorithm is employed, generating first-order quad elements where possible and first-order trias in regions where quads cannot be formed. This algorithm generates unstructured curvilinear grids with first-order quadrangle elements on the specified PIDs. The mesh sizing parameters dictate the growth rate of surface elements and impose a constraint on the maximum element length.
The leading and trailing edges of the wing are meshed using an anisotropic distribution of quad elements, which ensures a finer resolution near the sharp or highly curved features. To ensure smooth transitions and controlled spacing, constant-height zones are defined both above and below the leading edge. This region of elements forms a fine structured mesh near the stagnation point, where large gradients are expected. Moving further away from this constant-height zone, the element height increases according to the specified growth rate, ensuring a gradual transition to coarser elements. Finally, a maximum element aspect ratio is enforced to prevent the excessive stretching of elements, maintaining high-quality discretization. The result of this treatment can be observed in Figure A4. Similarly, the meshing treatment for the trailing edge ensures that the trimmed surface is discretized with four rows of elements, forming an anisotropic structured mesh. Moving away from the trimmed surface on the upper and lower wing surfaces, the element height increases in accordance with the specified growth factor, while the generated elements form a structured grid. The height of the initial elements immediately adjacent to the trimmed surface is set to one-quarter of the thickness of the trimmed surface, ensuring a smooth transition from face to face. The result of this trailing edge treatment is illustrated in Figure A4.
Figure A4. Specific mesh treatment along the wing surface.
Figure A4. Specific mesh treatment along the wing surface.
Algorithms 18 00186 g0a4
As shown in Table 4, the approach for handling sharp features—whether convex or concave—is straightforward and governed by a single meshing parameter: the maximum element length. Simply put, along the sharp features, a maximum element length is enforced to achieve the desired level of discretization. Beyond the sharp edge, the element length increases progressively in accordance with the global growth factor.

Appendix A.3.2. Inflation Layer Details

The first layer height ( h 1 ) is calculated to position the first cell within the viscous sublayer, ensuring precise wall shear stress and velocity gradient calculations. The height of the viscous sublayer is approximated for a flat plate using the Schlichting skin-friction correlation (Equation (A2)) for wall shear stress τ w , which is valid for Reynolds numbers R e < 10 9 , according to Schlichting and Gersten [44].
h 1 = y + μ ρ u * ,     w h e r e           u * = C f 1 2 ρ u 2 ρ  
Note that, given the fact that flows over airfoils and wings encounter pressure gradients, the boundary layer thickness will vary in regard to the theoretical flat plate (zero pressure gradient) value. Therefore, the real height of the viscous sublayer can only be determined after the execution of a simulation. Thus, it can be used to check the validity of a given simulation, as discussed in more detail in Section 4.
Another important aspect for the inflation layer is that its total height was designed to be larger than the total height of the boundary layer. This choice is guided by a well-established rationale [44,48], ensuring a sufficient number of cells within this critical region for accurate simulation. The total boundary layer height ( δ ) can be approximated using Equation (A3) according to [37]. This relationship applies only for a fully turbulent flow over a flat plate. However, it can serve as a reliable indication, given that a turbulent boundary layer is thicker than its laminar counterpart (e.g., provided that the pressure gradients are identical).
δ = 0.37 · R e 1 5 · c ¯

Appendix A.3.3. Volume Mesh Details

Figure A5 illustrates the meshing algorithm’s result on the symmetry plane. Two meshing parameters are needed to fully define the volume-meshing scenario, including a global growth rate, which is set to 1.2, and a maximum element length, which is equal to the parametrized value 0.65 × c 1 , similar to the surface meshing scenario.
Figure A5. An illustration of the HexaPoly algorithm used for the discretization of the volume.
Figure A5. An illustration of the HexaPoly algorithm used for the discretization of the volume.
Algorithms 18 00186 g0a5

Appendix A.4. Solution Module–Solution Setup

At the core of CFD lie the Navier–Stokes equations (momentum conservation), the continuity equation (mass conservation), and the energy equation, which govern the behavior of the fluid flow. For the incompressible low-Mach number flows over wings considered in this work, the energy equation is omitted due to the absence of significant compressibility effects and heat transfer [41]. As previously mentioned in Section 3, the k-omega SST is selected as the turbulence model, with its parameters kept to the default values recommended by Menter. Regarding more specific solver settings, the framework incorporates the following key aspects:
  • Gradient Correction: According to Menter et al. in [48], the “fast-mode warped face gradient correction” option supported by Fluent is enabled due to the unstructured hexahedral type of mesh generated by the mesh module. This option improves the accuracy of gradient calculations on unstructured or highly distorted meshes.
  • Solution Scheme: The SIMPLE (Semi-Implicit Method for Pressure Linked Equations) solution scheme is utilized within this computational framework. The SIMPLE scheme strikes a balance between computational efficiency and numerical stability, making it well-suited for steady-state external aerodynamic simulations. Compared to other algorithms, the SIMPLE scheme’s less stringent requirements on relaxation and computational resources align with the focus on automating simulations within a broad design space.
  • Initialization: In this work, hybrid initialization is employed as the default approach due to its robustness and efficiency in complex aerodynamic problems. Hybrid initialization combines elements of potential flow solutions and mass-weighted averages to provide a physically realistic starting point for the flow field, minimizing the computational effort required for convergence.
  • Materials: The state of the material (air) specified for the simulation is determined based on the atmospheric model “U.S. Standard Atmosphere 1976” [73]. In this model, air properties are defined as functions of altitude. These relationships have been implemented within a Python class called atmosphere, enabling direct access to or the calculation of air properties based solely on the specified altitude.
  • Boundary Conditions (BC): Inlet and outlet BCs are dependent on the angle of attack of the wing. Simulations are performed across a wide range of AoAs to capture the complete drag polar. To account for the changes in the flow field due to varying AoAs, the “Upper Far-Field” and “Lower Far-Field” PIDs are adjusted accordingly.
At a “Velocity-Inlet” boundary, the freestream parameters must be specified, including the freestream velocity, pressure, and the freestream turbulent characteristics. The freestream velocity is defined component-wise, taking into consideration the angle of attack ( α ). According to Rumsey and Spalart in [74], while using the k-omega SST model, the turbulence intensity ( T u ) and turbulence viscosity ratio ( β ) are calculated from Equation (A4).
T u = 0.0008165 and   β = 2 × 10 7   R e
Similarly, the “Pressure-Outlet” BC requires specifying the turbulence characteristics of the outflow, as defined above, along with a gauge pressure set to zero to represent atmospheric conditions at the outlet.

References

  1. Velusamy, P.; Rajendran, S.; Mahendran, R.K.; Naseer, S.; Shafiq, M.; Choi, J.G. Unmanned Aerial Vehicles (UAV) in Precision Agriculture: Applications and Challenges. Energies 2021, 15, 217. [Google Scholar] [CrossRef]
  2. Panagiotou, P.; Mitridis, D.; Dimopoulos, T.; Kapsalis, S.; Dimitriou, S.; Yakinthos, K. Aerodynamic Design of a Tactical Blended-Wing-Body UAV for the Aerial Delivery of Cargo and Lifesaving Supplies. In Proceedings of the AIAA Scitech 2020 Forum, Orlando, FL, USA, 6–10 January 2020; American Institute of Aeronautics and Astronautics: Reston, VA, USA, 2020. [Google Scholar]
  3. Green, D.R.; Hagon, J.J.; Gómez, C.; Gregory, B.J. Using Low-Cost UAVs for Environmental Monitoring, Mapping, and Modelling: Examples From the Coastal Zone. Coast. Manag. Glob. Chall. Innov. 2019, 465–501. [Google Scholar] [CrossRef]
  4. Queralta, J.P.; Raitoharju, J.; Gia, T.N.; Passalis, N.; Westerlund, T. AutoSOS: Towards Multi-UAV Systems Supporting Maritime Search and Rescue with Lightweight AI and Edge Computing. arXiv 2020, arXiv:2005.03409. [Google Scholar]
  5. Martinez-Alpiste, I.; Golcarenarenji, G.; Wang, Q.; Alcaraz-Calero, J.M. Search and Rescue Operation Using UAVs: A Case Study. Expert Syst. Appl. 2021, 178, 114937. [Google Scholar] [CrossRef]
  6. Raymer, D. Aircraft Design: A Conceptual Approach, 6th ed.; American Institute of Aeronautics and Astronautics, Inc.: Washington, DC, USA, 2018; ISBN 978-1-62410-490-9. [Google Scholar]
  7. Gudmundsson, S. General Aviation Aircraft Design: Applied Methods and Procedures; Butterworth-Heinemann: Oxford, UK, 2022. [Google Scholar]
  8. Mitridis, D.; Kapsalis, S.; Terzis, D.; Panagiotou, P. An Evaluation of Fixed-Wing Unmanned Aerial Vehicle Trends and Correlations with Respect to NATO Classification, Region, EIS Date and Operational Specifications. Aerospace 2023, 10, 382. [Google Scholar] [CrossRef]
  9. Anderson, J. Computational Fluid Dynamics; Wendt, J.F., Ed.; Springer: Berlin/Heidelberg, Germany, 2009; ISBN 978-3-540-85055-7. [Google Scholar]
  10. Psarros, A.; Kapsalis, S.; Dimopoulos, T.; Mitridis, D.; Terzis, D.; Giannakis, E.; Panagiotou, P.; Savaidis, G.; Yakinthos, K. Detail and Structural Design of a Fixed-Wing BWB UAV. J. Phys. Conf. Ser. 2024, 2716, 012069. [Google Scholar]
  11. Lehmkuehler, K.; Wong, K.; Verstraete, D. Design and Test of a UAV Blended Wing Body Configuration. In Proceedings of the ICAS 2012, Brisbane, Australia, 23–28 September 2012. [Google Scholar]
  12. Götten, F.; Havermann, M.; Braun, C.; Marino, M.; Bil, C. Wind-Tunnel and CFD Investigations of UAV Landing Gears and Turrets—Improvements in Empirical Drag Estimation. Aerosp. Sci. Technol. 2020, 107, 106306. [Google Scholar] [CrossRef]
  13. Torenbeek, E. Blended Wing Body Aircraft: A Historical Perspective. Encycl. Aerosp. Eng. 2016. [Google Scholar] [CrossRef]
  14. Zhang, M.; Gong, J.; Axner, L.; Barth, M. Automation of High-Fidelity CFD Analysis for Aircraft Design and Optimization Aided by HPC. In Proceedings of the 28th Euromicro International Conference on Parallel, Distributed and Network-Based Processing (PDP), Västerås, Sweden, 11–13 March 2020. [Google Scholar]
  15. Papkov, V.; Shadymov, N.; Pashchenko, D. CFD-Modeling of Fluid Flow in Ansys Fluent Using Python-Based Code for Automation of Repeating Calculations. Int. J. Mod. Phys. C 2023, 34, 2350114. [Google Scholar] [CrossRef]
  16. Salmon, F.; Chatellier, L. PyMeshFOAM: Automated Meshing for CFD and Fluid–Structure Simulations. SoftwareX 2023, 23, 101431. [Google Scholar] [CrossRef]
  17. Benaouali, A.; Kachel, S. A Surrogate-Based Integrated Framework for the Aerodynamic Design Optimization of a Subsonic Wing Planform Shape. Proc. Inst. Mech. Eng. G J. Aerosp. Eng. 2018, 232, 872–883. [Google Scholar] [CrossRef]
  18. Mohammad Zadeh, P.; Sayadi, M. An Efficient Aerodynamic Shape Optimization of Blended Wing Body UAV Using Multi-Fidelity Models. Chin. J. Aeronaut. 2018, 31, 1165–1180. [Google Scholar] [CrossRef]
  19. Lyu, Z.; Kenway, G.K.W.; Martins, J.R.R.A. Aerodynamic Shape Optimization Investigations of the Common Research Model Wing Benchmark. AIAA J. 2015, 53, 968–985. [Google Scholar]
  20. Gu, X.; Ciampa, P.D.; Nagel, B. An Automated CFD Analysis Workflow in Overall Aircraft Design Applications. CEAS Aeronaut. J. 2018, 9, 3–13. [Google Scholar] [CrossRef]
  21. Karali, H.; Inalhan, G.; Tsourdos, A. AI-Driven Multidisciplinary Conceptual Design of Unmanned Aerial Vehicles. In Proceedings of the AIAA SciTech Forum and Exposition, Orlando, FL, USA, 8–12 January 2024; American Institute of Aeronautics and Astronautics Inc.: Reston, VA, USA, 2024. [Google Scholar]
  22. Karali, H.; Inalhan, G.; Tsourdos, A. Advanced UAV Design Optimization Through Deep Learning-Based Surrogate Models. Aerospace 2024, 11, 669. [Google Scholar] [CrossRef]
  23. Liebeck, R.H. The X-48B and X-48C Take to the Air. In Beyond Tube and Wing; NASA: Washington, DC, USA, 2020; p. 163. [Google Scholar]
  24. Grauer, J.A.; Boucher, M.J. System Identification of Flexible Aircraft: Lessons Learned from the x-56a Phase 1 Flight Tests. In Proceedings of the AIAA Scitech 2020 Forum, Orlando, FL, USA, 6–10 January 2020; pp. 1–26. [Google Scholar] [CrossRef]
  25. EXperimental Aircraft for European Leadership in Aviation. Available online: https://exaelia.eu/ (accessed on 15 February 2025).
  26. Panagiotou, P.; Fotiadis-Karras, S.; Yakinthos, K. Conceptual Design of a Blended Wing Body MALE UAV. Aerosp. Sci. Technol. 2018, 73, 32–47. [Google Scholar] [CrossRef]
  27. Selig, M.S. UIUC Airfoil Coordinates Database. Available online: https://m-selig.ae.illinois.edu/ads/coord_database.html (accessed on 15 February 2025).
  28. Masters, D.A.; Taylor, N.J.; Rendall, T.C.S.; Allen, C.B.; Poole, D.J. Geometric Comparison of Aerofoil Shape Parameterization Methods. AIAA J. 2017, 55, 1575–1589. [Google Scholar] [CrossRef]
  29. Chen, W.; Chiu, K.; Fuge, M. Airfoil Design Parameterization and Optimization Using Bezier Generative Adversarial Networks. AIAA J. 2020, 58, 4723–4735. [Google Scholar]
  30. Agez, B. Preliminary Design Correlations and Cost Estimation for Fixed-Wing Military Unmanned Aerial Vehicles. In Proceedings of the IEEE Aerospace Conference Proceedings; IEEE Computer Society, Big Sky, MT, USA, 2–9 March 2024. [Google Scholar]
  31. Cotting, M.C. An Initial Study to Categorize Unmanned Aerial Vehicles for Flying Qualities Evaluation. In Proceedings of the 47th AIAA Aerospace Sciences Meeting including The New Horizons Forum and Aerospace Exposition, Orlando, FL, USA, 5–8 January 2009. [Google Scholar]
  32. Verstraete, D.; Palmer, J.L.; Hornung, M. Preliminary Sizing Correlations for Fixed-Wing Unmanned Aerial Vehicle Characteristics. J. Aircr. 2017, 55, 715–726. [Google Scholar] [CrossRef]
  33. McDonald, R.A. Advanced Modeling in Open VSP. In Proceedings of the 16th AIAA Aviation Technology, Integration, and Operations Conference, Washington, DC, USA, 13–17 June 2016; American Institute of Aeronautics and Astronautics Inc.: Reston, VA, USA, 2016. [Google Scholar]
  34. ANSA Pre-Processor—BETA CAE Systems. Available online: https://www.beta-cae.com/ansa.htm (accessed on 30 December 2024).
  35. PyFluent Documentation 0.21.0—PyFluent. Available online: https://fluent.docs.pyansys.com/version/0.21/ (accessed on 30 December 2024).
  36. Spalart, P. Reflections on RANS Modelling. Notes Numer. Fluid Mech. Multidiscip. Des. 2010, 111, 7–24. [Google Scholar] [CrossRef]
  37. Menter, F.; Hüppe, A.; Matyushenko, A.; Kolmogorov, D. An Overview of Hybrid RANS–LES Models Developed for Industrial CFD. Appl. Sci. 2021, 11, 2459. [Google Scholar] [CrossRef]
  38. Menter, F.R. Two-Equation Eddy-Viscosity Turbulence Models for Engineering Applications. AIAA J. 1994, 32, 1598–1605. [Google Scholar] [CrossRef]
  39. Dimopoulos, T.; Paliaikos, D.; Christou, V.; Kaparos-Tsafos, P.; Panagiotou, P. Experimental and Computational Investigation of the Vortical Structures Generated from a Blended-Wing-Body UAV Model. Aerosp. Sci. Technol. 2023, 139, 108377. [Google Scholar] [CrossRef]
  40. Kontogiannis, S.G.; Ekaterinaris, J.A. Design, Performance Evaluation and Optimization of a UAV. Aerosp. Sci. Technol. 2013, 29, 339–350. [Google Scholar] [CrossRef]
  41. Goetten, F.; Finger, D.F.; Marino, M.; Bil, C. A Review of Guidelines and Best Practices for Subsonic Aerodynamic Simulations Using RANS CFD. In APISAT 2019: Asia Pacific International Symposium on Aerospace Technology; Engineers Australia: Gold Coast, Australia, 2019. [Google Scholar]
  42. Veríssimo, R. Best Practice Guidelines in External Aerodynamics CFD: Applied to Unmanned Aerial Vehicles at Cruise Conditions. Doctoral dissertation, Academia da Força Aérea, São Paulo, Brazil, 2016. [Google Scholar]
  43. Hirsch, C. Numerical Computation of Internal and External Flows: The Fundamentals of Computational Fluid Dynamics; Elsevier: Amsterdam, The Netherlands, 2007. [Google Scholar]
  44. Schlichting, H.; Gersten, K. Boundary-Layer Theory. Bound.-Layer Theory 2016, 1–799. Available online: https://books.google.co.jp/books/about/Boundary_Layer_Theory.html?id=bOUyDQAAQBAJ&redir_esc=y (accessed on 15 February 2025).
  45. Pope, S.B. Turbulent Flows. Meas. Sci. Technol. 2001, 12, 2020–2021. [Google Scholar] [CrossRef]
  46. Wilcox, D.C. Turbulence Modeling for CFD; DCW Industries: La Canada, CA, USA, 1998. [Google Scholar]
  47. ANSYS. ANSYS Unleashing the Full Power of GPUs for Ansys Fluent, Part 2; ANSYS: Canonsburg, PA, USA, 2022. [Google Scholar]
  48. Menter, F.; Sechner, R.; Germany GmbH; Matyushenko, A.A.; Petersburg, S. Best Practice: RANS Turbulence Modeling in Ansys CFD; ANSYS: Canonsburg, PA, USA, 2021. [Google Scholar]
  49. Sreenivasan, K.R.; Prabhu, A.; Narasimha, R. Zero-Crossings in Turbulent Signals; ICTP: Trieste, Italy, 1983; Volume 137. [Google Scholar]
  50. Celik, I.; Karaismail, E.; Parsons, D. A Reliable Error Estimation Technique for CFD Applications; NATO: Brussels, Belgium, 2007. [Google Scholar]
  51. Ferziger, J.H.; Perić, M. Further Discussion of Numerical Errors in CFD. Int. J. Numer. Methods Fluids 1996, 23, 1263–1274. [Google Scholar] [CrossRef]
  52. Eça, L.; Eça, L.; Hoekstra, M. On the Influence of the Iterative Error in the Numerical Uncertainty of Ship Viscous Flow Calculations. In Proceedings of the 26th Symposium on Naval Hydrodynamics, Rome, Italy, 17–22 September 2006. [Google Scholar]
  53. Cary, A.W.; Schaefer, J.A.; Duque, E.P.N.; Lawrence, S.S. Application of a Cfd Uncertainty Quantification Framework for Industrial-Scale Aerodynamic Analysis. In Proceedings of the AIAA Scitech 2019 Forum, San Diego, CA, USA, 7–11 January 2019; American Institute of Aeronautics and Astronautics Inc.: Reston, VA, USA, 2019. [Google Scholar]
  54. Schaefer, J.; Romerot, V.; Schafert, S.; Denham11, C. Approaches for Quantifying Uncertainties in Computational Modeling for Aerospace Applications. In Proceedings of the AIAA Scitech 2020 Forum, Orlando, FL, USA, 6–10 January 2020. [Google Scholar]
  55. Celik, I.B.; Ghia, U.; Roache, P.J.; Freitas, C.J.; Coleman, H.; Raad, P.E. Procedure for Estimation and Reporting of Uncertainty Due to Discretization in CFD Applications. J. Fluids Eng. Trans. ASME 2008, 130, 0780011–0780014. [Google Scholar] [CrossRef]
  56. Mártins, M.A.; Marchi, C.H. Estimate of Iteration Errors in Computational Fluid Dynamics. Numer. Heat Transf. Part B Fundam. 2008, 53, 234–245. [Google Scholar] [CrossRef]
  57. Ferziger, J.H. Estimation and Reduction of Numerical Error. ASME-Publ.-Fed 1993, 158, 1. [Google Scholar]
  58. Georgiadis, N.J.; Dudek, J.C.; Tierney, T.P. AIAA-95-2613 Grid Resolution and Turbulent Inflow Boundary Condition Recommendations for NPARC Calculations. In Proceedings of the 31st Joint Propulsion Conference and Exhibit, San Diego, CA, USA, 10–12 July 1995. [Google Scholar]
  59. Menter, F.R.; Smirnov, P.E.; Liu, T.; Avancha, R. A One-Equation Local Correlation-Based Transition Model. Flow Turbul. Combust. 2015, 95, 583–619. [Google Scholar] [CrossRef]
  60. Menter, F.R.; Kuntz, M.; Langtry, R. Ten Years of Industrial Experience with the SST Turbulence Model. Turbul. Heat Mass Transf. 2003, 4, 625–632. [Google Scholar]
  61. Anderson, J.D. Fundamentals of Aerodynamics; McGraw Hill: New York, NY, USA, 1984; ISBN 0070016569. [Google Scholar]
  62. Panagiotou, P.; Dimopoulos, T.; Dimitriou, S.; Yakinthos, K. Quasi-3D Aerodynamic Analysis Method for Blended-Wing-Body UAV Configurations. Aerospace 2021, 8, 13. [Google Scholar] [CrossRef]
  63. Antoniou, S.; Kapsalis, S.; Panagiotou, P.; Yakinthos, K. Parametric Investigation of Leading-Edge Slats on a Blended-Wing-Body UAV Using the Taguchi Method. Aerospace 2023, 10, 720. [Google Scholar] [CrossRef]
  64. Dimitriadis, G.; Panagiotou, P.; Dimopoulos, T.; Yakinthos, K. Aerodynamic Stability Derivative Calculations Using the Compressible Source and Doublet Panel Method. J. Aircr. 2024, 61, 1034–1046. [Google Scholar] [CrossRef]
  65. Mayeur, J.; Dumont, A.; Destarac, D.; Gleize, V. RANS Simulations on TMR Test Cases and M6 Wing with the Onera ElsA Flow Solver. In Proceedings of the 53rd AIAA Aerospace Sciences Meeting, Kissimmee, FL, USA, 5–9 January 2015; American Institute of Aeronautics and Astronautics Inc.: Reston, VA, USA, 2015. [Google Scholar]
  66. Tinoco, E.N.; Brodersen, O.P.; Keye, S.; Laflin, K.R.; Feltrop, E.; Vassberg, J.C.; Mani, M.; Rider, B.; Wahls, R.A.; Morrison, J.H.; et al. Summary Data from the Sixth AIAA CFD Drag Prediction Workshop: CRM Cases. J. Aircr. 2017, 55, 1352–1379. [Google Scholar] [CrossRef]
  67. Helton, J.C.; Davis, F.J. Latin Hypercube Sampling and the Propagation of Uncertainty in Analyses of Complex Systems. Reliab. Eng. Syst. Saf. 2003, 81, 23–69. [Google Scholar] [CrossRef]
  68. Snoek, J.; Larochelle, H.; Adams, R.P. Practical Bayesian Optimization of Machine Learning Algorithms. arXiv 2012, arXiv:1206.2944. [Google Scholar]
  69. Gardner, J.R.; Kusner, M.J.; Xu, Z.; Weinberger, K.Q.; Cunningham, J.P. Bayesian Optimization with Inequality Constraints. In Proceedings of the 31st International Conference on International Conference on Machine Learning, Beijing, China, 21–26 June 2014. [Google Scholar]
  70. Bliamis, C.; Vlahostergios, Z.; Misirlis, D.; Yakinthos, K. Numerical Evaluation of Riblet Drag Reduction on a MALE UAV. Aerospace 2022, 9, 218. [Google Scholar] [CrossRef]
  71. Parekh, J.; Bekemeyer, P.; Helm, S.; François, D.G.; Grabe, C. Surrogate Based Design Space Exploration and Exploitation for an Efficient Airfoil Optimization under Uncertainties Using Transition Models. Aerosp. Sci. Technol. 2024, 154, 109532. [Google Scholar] [CrossRef]
  72. Martins, J.R.; Ning, A. Engineering Design Optimization; Cambridge University Press: Cambridge, UK, 2021. [Google Scholar] [CrossRef]
  73. NASA. U.S. Standard Atmosphere; NASA: Washington, DC, USA, 1976.
  74. Spalart, P.R.; Rumsey, C.L. Effective Inflow Conditions for Turbulence Models in Aerodynamic Calculations. AIAA J. 2007, 45, 2544–2553. [Google Scholar] [CrossRef]
Figure 1. The two distinct sections used to generate a conventional and a BWB wing.
Figure 1. The two distinct sections used to generate a conventional and a BWB wing.
Algorithms 18 00186 g001
Figure 2. Design variables used to parameterize the wing planform.
Figure 2. Design variables used to parameterize the wing planform.
Algorithms 18 00186 g002
Figure 3. Unrealistic wing designs produced when the design space is not being constrained. The planform surfaces are displayed with the leading edge being on the left.
Figure 3. Unrealistic wing designs produced when the design space is not being constrained. The planform surfaces are displayed with the leading edge being on the left.
Algorithms 18 00186 g003
Figure 4. Framework pipeline. More than 35 custom functions have been developed to facilitate the framework.
Figure 4. Framework pipeline. More than 35 custom functions have been developed to facilitate the framework.
Algorithms 18 00186 g004
Figure 5. Wing class developed for the geometry module along with its sub-methods.
Figure 5. Wing class developed for the geometry module along with its sub-methods.
Algorithms 18 00186 g005
Figure 6. Pre_Processor class developed for the meshing module along with its sub-methods.
Figure 6. Pre_Processor class developed for the meshing module along with its sub-methods.
Algorithms 18 00186 g006
Figure 7. An example of the inflation layer that resulted from the automatic algorithm.
Figure 7. An example of the inflation layer that resulted from the automatic algorithm.
Algorithms 18 00186 g007
Figure 8. Solution class responsible for solution setup and execution.
Figure 8. Solution class responsible for solution setup and execution.
Algorithms 18 00186 g008
Figure 9. Qualitative metric of the grid resolution based on the y + and the amount of prism layers inside the boundary layer.
Figure 9. Qualitative metric of the grid resolution based on the y + and the amount of prism layers inside the boundary layer.
Algorithms 18 00186 g009
Figure 10. Structured inflation layer flowchart.
Figure 10. Structured inflation layer flowchart.
Algorithms 18 00186 g010
Figure 11. Boundary layer recognition.
Figure 11. Boundary layer recognition.
Algorithms 18 00186 g011
Figure 12. ONERA M6 wing planform.
Figure 12. ONERA M6 wing planform.
Algorithms 18 00186 g012
Figure 13. Grid independence study for ONERA M6 wing. (a) Lift and drag at 4 o AoA for a varying number of grid elements; (b) lift and drag at 12 o AoA for a varying number of grid elements. Red points indicates the selected refinement that satisfies the study.
Figure 13. Grid independence study for ONERA M6 wing. (a) Lift and drag at 4 o AoA for a varying number of grid elements; (b) lift and drag at 12 o AoA for a varying number of grid elements. Red points indicates the selected refinement that satisfies the study.
Algorithms 18 00186 g013
Figure 14. EURRICA wing planform.
Figure 14. EURRICA wing planform.
Algorithms 18 00186 g014
Figure 15. Discretization error for lift and drag for various grid refinement cases: (a) ONERA M6 wing, (b) RADAERO conventional wing, and (c) EURRICA BWB wing.
Figure 15. Discretization error for lift and drag for various grid refinement cases: (a) ONERA M6 wing, (b) RADAERO conventional wing, and (c) EURRICA BWB wing.
Algorithms 18 00186 g015
Figure 16. Drag polar comparison of ONERA M6 between the framework and a CFD engineer.
Figure 16. Drag polar comparison of ONERA M6 between the framework and a CFD engineer.
Algorithms 18 00186 g016
Figure 17. Distribution of the sampled planform high-level parameters. Each subfigure corresponds directly to a specific design variable from Table 2 (e.g., chord lengths c i , spanwise positions b i , sweep angles Λ i , twist angles i i , and dihedral angles γ i ).
Figure 17. Distribution of the sampled planform high-level parameters. Each subfigure corresponds directly to a specific design variable from Table 2 (e.g., chord lengths c i , spanwise positions b i , sweep angles Λ i , twist angles i i , and dihedral angles γ i ).
Algorithms 18 00186 g017
Figure 18. Distribution of the two most time-consuming phases of the framework for 1165 wings. (a) Mesh generation time, which is mostly centered around 250–300 s. (b) Simulation execution time, which is mostly centered around 150 s.
Figure 18. Distribution of the two most time-consuming phases of the framework for 1165 wings. (a) Mesh generation time, which is mostly centered around 250–300 s. (b) Simulation execution time, which is mostly centered around 150 s.
Algorithms 18 00186 g018
Figure 19. Scatter plot of the average and maximum y + values for all the cases. (a) All cases without the extreme outliers. (b) Focused scatter plot around y m e a n + < 1 and y m a x + < 5 .
Figure 19. Scatter plot of the average and maximum y + values for all the cases. (a) All cases without the extreme outliers. (b) Focused scatter plot around y m e a n + < 1 and y m a x + < 5 .
Algorithms 18 00186 g019
Figure 20. Average iterative error for every angle of attack, for converged and non-converged wings.
Figure 20. Average iterative error for every angle of attack, for converged and non-converged wings.
Algorithms 18 00186 g020
Figure 21. Top view of the RADAERO platform.
Figure 21. Top view of the RADAERO platform.
Algorithms 18 00186 g021
Figure 22. Optimization history of RADAERO wing planform.
Figure 22. Optimization history of RADAERO wing planform.
Algorithms 18 00186 g022
Figure 23. Pressure coefficient contours of baseline and optimized wing, including a top and front view.
Figure 23. Pressure coefficient contours of baseline and optimized wing, including a top and front view.
Algorithms 18 00186 g023
Table 1. Design space regarding the UAV types that this framework can handle.
Table 1. Design space regarding the UAV types that this framework can handle.
ClassCategory GTOW [kg]Altitude [ft]Cruise Speed Range [km/h]Reynolds Number RangeFlow Regime
Class IMicro < 2 < 200 30 100 10 4 10 6 Laminar to Transitional
Mini 2 15 < 3000 30 100
Small 15 150 < 5000 50 150
Class IITactical 150 600 < 18,000 100 400 10 6 10 7 Predominantly turbulent
Class IIIMALE > 600 < 45,000 200 300 > 10 7 Fully turbulent
HALE > 600 < 65,000 400 800
Strike > 600 < 65,000 400 800
Table 2. Design variables used to parameterize the wing planform and their respectable range.
Table 2. Design variables used to parameterize the wing planform and their respectable range.
Planform
Parameter
DescriptionUnitsLimits
c 1 Centerline chord length m c 1 [ 0.2 ,   10 ]
c 2 Root chord length m c 2 [ 0.3 × c 1 ,   c 1 ]
c 3 Tip chord length m c 3 [ 0.3 × c 2 ,   c 2 ]
b 1 c 2 spanwise location m b 1 [ 0.2 × b 2 ,   0.7 × b 2 ]
b 2 c 3 spanwise location (semispan) m b 2 [ 1 ,   10 ]
Λ 1 Sweep   angle   of   section   1 @ c / 4 d e g Λ 1   [ 0 ,   60 ]
Λ 2 Sweep   angle   of   section   2 @ c / 4 d e g Λ 2   [ 0 ,   60 ]
i 1 Twist   angle   of   c 2 @ c / 4 d e g i 1   [ 5 ,   5 ]
i 2 Twist   angle   of   c 3 @ c / 4 d e g i 2   [ 7 ,   7 ]
γ 1
γ 2
Dihedral angle of section 1 d e g γ 1   [ 10 ,   10 ]
Dihedral angle of section 2 d e g γ 2   [ 10 ,   10 ]
Table 3. Training parameters for the BGAN model.
Table 3. Training parameters for the BGAN model.
Training ParameterValueDescription
Bézier degree32The number of Bézier control points
Latent codes dimension8Number of latent codes
Noise dimension0Number of components in noise vector
Train steps/epochs150,000-
Batch size32Number of samples per network pass
Bounds[0, 1]Bounds of latent codes and noise components
Latent code sampling PDFUniformProbability distribution
Table 4. Parameters that control surface mesh.
Table 4. Parameters that control surface mesh.
Wing-Wall SessionWingtip SessionFar-Field Session
Mesh typeAlgorithmCFDCFDCFD
Element TypeQuads and TriasQuads and TriasQuads and Trias
Order1st1st1st
Mesh SizingGrowth Rate1.21.21.2
Max Length f M A C f c 3 f c 1
Curvature
Refinement
Distortion Angle0015
Min length f ( c 3 ) f c 3 -
Leading Edge TreatmentDistributionAnisotropic--
Min first height f ( c 3 )
Growth Factor1.15
Max Aspect1
Trailing Edge TreatmentDistributionAnisotropic--
Min Aspect0.05
Growth Factor1.15
Max Aspect0.7
Sharp Edge TreatmentMax Length- f c 3 -
Table 5. Proposed y + values and prism layers in boundary layers in different studies.
Table 5. Proposed y + values and prism layers in boundary layers in different studies.
Study Proposed   y + Proposed Prism Layers
Menter et al., 1994 [38]3N/A
Georgiadis et al., 1995 [58]2N/A
Menter et al., 2015 [59]130
Goetten et al., 2019 [41]N/A20–40
Menter et al., 2003 [60]2N/A
ANSYS–Menter 2021 [48]130–40
Table 6. AUTh’s system cluster specifications.
Table 6. AUTh’s system cluster specifications.
ComponentQuantitySpecification
CPU Cores16AMD EPYC 7742
GPU1NVIDIA A100 40 GB
RAM128Gb of DDR4
Table 7. Parametrization of the ONERA M6 wing.
Table 7. Parametrization of the ONERA M6 wing.
ParameterONERA M6
c 1 805.9 mm
c 2 629.5 mm
c 3 451.3 mm
b 1 598.2 mm
b 2 1196.3 mm
Λ 1 26.7 °
Λ 2 26.7 °
i 1 0 °
i 2 0 °
γ 1
γ 2
0 °
0 °
Table 8. Parametrization of the EURRICA wing.
Table 8. Parametrization of the EURRICA wing.
ParameterEURRICA *
c 1 0.966 m
c 2 0.285 m
c 3 0.174 m
b 1 0.3765 m
b 2 1.0433 m
Λ 1 37.5°
Λ 2 33.0°
i 1 -
i 2 -
γ 1
γ 2
-
-
* data restrictions apply.
Table 9. Grid discretization errors.
Table 9. Grid discretization errors.
DragLift
Platform Relative   Error   ε 31 D r a g Extrapolated   Relative   Error   ε 3 , e x t D r a g Drag GCI31 Relative   Error   ε 31 L i f t Extrapolated   Relative   Error   ε 3 , e x t L i f t Lift GCI31
ONERA M60.80%2.10%1.21%0.15%0.22%0.09%
RADDAERO0.37%0.40%0.06%0.09%0.09%0.02%
EURRICA0.86%1.37%0.40%0.07%0.06%0.03%
Table 10. Summary statistics of required execution time for 1165 wings (rounded).
Table 10. Summary statistics of required execution time for 1165 wings (rounded).
Type of ValueMesh Generation [s]Writing Mesh to Disk [s]Loading Mesh in FLUENT [s]Initializing Solution in FLUENT [s]Analysis Execution in FLUENT [s]
Minimum Value540.51838
Maximum Value338589115561150
Mean Value255365019259
Median Value232334517212
Table 11. Summary statistics of the results for grid resolution.
Table 11. Summary statistics of the results for grid resolution.
Type of Value y a v e r a g e + y m a x i m u m +
Minimum0.320.79
Maximum9.1829.53
Mean0.481.55
Median0.461.40
Table 12. RADAERO wing planform design space.
Table 12. RADAERO wing planform design space.
Design VariableBaseline *Lower BoundUpper Bound
c 1 -0.10–0.50 m
c 2 -
c 3 -
b 1 0.24 m0.19 m0.29 m
b 2 1.125 m0.9 m1.35 m
Λ 1 20°
Λ 2 20°
i 1 -−2.0–0.0
i 2 -
* Data restrictions apply.
Table 13. Initial and optimized aerodynamic performance of RADAERO wing.
Table 13. Initial and optimized aerodynamic performance of RADAERO wing.
VariableInitial ValueAfter OptimizationChange y a v g + o p t . y m a x + o p t . I t e r . E r r o r
L / D 19.9621.528%0.421.096.85 × 10−4
C L 0.41430.42252%
C M −0.0781−0.076−2.7%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Pliakos, C.; Efrem, G.; Terzis, D.; Panagiotou, P. An Automated Framework for Streamlined CFD-Based Design and Optimization of Fixed-Wing UAV Wings. Algorithms 2025, 18, 186. https://doi.org/10.3390/a18040186

AMA Style

Pliakos C, Efrem G, Terzis D, Panagiotou P. An Automated Framework for Streamlined CFD-Based Design and Optimization of Fixed-Wing UAV Wings. Algorithms. 2025; 18(4):186. https://doi.org/10.3390/a18040186

Chicago/Turabian Style

Pliakos, Chris, Giorgos Efrem, Dimitrios Terzis, and Pericles Panagiotou. 2025. "An Automated Framework for Streamlined CFD-Based Design and Optimization of Fixed-Wing UAV Wings" Algorithms 18, no. 4: 186. https://doi.org/10.3390/a18040186

APA Style

Pliakos, C., Efrem, G., Terzis, D., & Panagiotou, P. (2025). An Automated Framework for Streamlined CFD-Based Design and Optimization of Fixed-Wing UAV Wings. Algorithms, 18(4), 186. https://doi.org/10.3390/a18040186

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop