An aerodynamic design optimization framework using a discrete adjoint approach with OpenFOAM

Abstract Advances in computing power have enabled computational fluid dynamics (CFD) to become a crucial tool in aerodynamic design. To facilitate CFD-based design, the combination of gradient-based optimization and the adjoint method for computing derivatives can be used to optimize designs with respect to a large number of design variables. Open field operation and manipulation (OpenFOAM) is an open source CFD package that is becoming increasingly popular, but it currently lacks an efficient infrastructure for constrained design optimization. To address this problem, we develop an optimization framework that consists of an efficient discrete adjoint implementation for computing derivatives and a Python interface to multiple numerical optimization packages. Our adjoint optimization framework has the following salient features: (1) The adjoint computation is efficient, with a computational cost that is similar to that of the primal flow solver and scales up to 10 million cells and 1024 CPU cores. (2) The adjoint derivatives are fully consistent with those generated by the flow solver with an average error of less than 0.1%. (3) The adjoint framework can handle optimization problems with more than 100 design variables and various geometric and physical constraints such as volume, thickness, curvature, and lift constraints. (4) The framework includes additional modules that are essential for successful design optimization: a geometry-parametrization module, a mesh-deformation algorithm, and an interface to numerical optimizations. To demonstrate our design-optimization framework, we optimize the ramp shape of a simple bluff geometry and analyze the flow in detail. We achieve 9.4% drag reduction, which is validated by wind tunnel experiments. Furthermore, we apply the framework to solve two more complex aerodynamic-shape-optimization applications: an unmanned aerial vehicle, and a car. For these two cases, the drag is reduced by 5.6% and 12.1%, respectively, which demonstrates that the proposed optimization framework functions as desired. Given these validated improvements, the developed techniques have the potential to be a useful tool in a wide range of engineering design applications, such as aircraft, cars, ships, and turbomachinery.

[1]  Nikolaus A. Adams,et al.  Investigation of Unsteady Flow Structures in the Wake of a Realistic Generic Car Model , 2011 .

[2]  William Gropp,et al.  Efficient Management of Parallelism in Object-Oriented Numerical Software Libraries , 1997, SciTools.

[3]  A. Jameson,et al.  A COMPARISON OF THE CONTINUOUS AND DISCRETE ADJOINT APPROACH TO AUTOMATIC AERODYNAMIC OPTIMIZATION , 2000 .

[4]  K. Giannakoglou,et al.  Continuous Adjoint Methods for Turbulent Flows, Applied to Shape and Topology Optimization: Industrial Applications , 2016 .

[5]  R. Ricci,et al.  Detached–eddy simulations of the flow over a cylinder at Re = 3900 using OpenFOAM , 2016 .

[6]  Aleksandar Jemcov,et al.  OpenFOAM: A C++ Library for Complex Physics Simulations , 2007 .

[7]  Michael A. Saunders,et al.  SNOPT: An SQP Algorithm for Large-Scale Constrained Optimization , 2002, SIAM J. Optim..

[8]  H. Bijl,et al.  Mesh deformation based on radial basis function interpolation , 2007 .

[9]  D. Mavriplis Discrete Adjoint-Based Approach for Optimization Problems on Three-Dimensional Unstructured Meshes , 2007 .

[10]  Kyriakos C. Giannakoglou,et al.  Noise reduction in car aerodynamics using a surrogate objective function and the continuous adjoint method with wall functions , 2015 .

[11]  Niles A. Pierce,et al.  An Introduction to the Adjoint Approach to Design , 2000 .

[12]  John D. Ramsdell,et al.  Estimation of Sparse Jacobian Matrices , 1983 .

[13]  Stephen F. Benjamin,et al.  Open source Computational Fluid Dynamics using OpenFOAM , 2015 .

[14]  Cody A. Paige,et al.  Automatic Differentiation Adjoint of the Reynolds-Averaged Navier-Stokes Equations with a Turbulence Model , 2013 .

[15]  Hrvoje Jasak,et al.  OpenFOAM Turbo Tools: From General Purpose CFD to Turbomachinery Simulations , 2011 .

[16]  Kevin J. Maki,et al.  RANS Simulation Versus Experiments of Flow Induced Motion of Circular Cylinder With Passive Turbulence Control at 35,000 < RE < 130,000 , 2014 .

[17]  R. Dwight,et al.  Numerical sensitivity analysis for aerodynamic optimization: A survey of approaches , 2010 .

[18]  Darrell Guillaume,et al.  Computational and Experimental Design of a Fixed-Wing UAV , 2015 .

[19]  Antony Jameson,et al.  Aerodynamic design via control theory , 1988, J. Sci. Comput..

[20]  Joaquim R. R. A. Martins,et al.  Aerodynamic Shape Optimization of Common Research Model Wing–Body–Tail Configuration , 2016 .

[21]  S. Timme,et al.  Robust and efficient adjoint solver for complex flow conditions , 2017 .

[22]  Tsuyoshi Murata,et al.  {m , 1934, ACML.

[23]  Joaquim R. R. A. Martins,et al.  The complex-step derivative approximation , 2003, TOMS.

[24]  Ken Badcock,et al.  Enabling off-design linearised aerodynamics analysis using Krylov subspace recycling technique , 2016 .

[25]  J. Alonso,et al.  ADjoint: An Approach for the Rapid Development of Discrete Adjoint Solvers , 2006 .

[26]  Peter Bachant,et al.  An Extensive Validation of an Open Source Based Solution for Automobile External Aerodynamics , 2017 .

[27]  Joaquim R. R. A. Martins,et al.  On the influence of optimization algorithm and initial design on wing aerodynamic shape optimization , 2018 .

[28]  Stefan Ulbrich,et al.  A Discrete Adjoint Approach for the Optimization of Unsteady Turbulent Flows , 2013 .

[29]  A. Jameson,et al.  Optimum Aerodynamic Design Using the Navier–Stokes Equations , 1997 .

[30]  Joaquim R. R. A. Martins,et al.  Extensions to the design structure matrix for the description of multidisciplinary design, analysis, and optimization processes , 2012, Structural and Multidisciplinary Optimization.

[31]  J. Eric,et al.  Aerodynamic Design Optimization on Unstructured Meshes Using the Navier-Stokes Equations , 1998 .

[32]  Ümit V. Çatalyürek,et al.  A Parallel Distance-2 Graph Coloring Algorithm for Distributed Memory Computers , 2005, HPCC.

[33]  Joaquim R. R. A. Martins,et al.  High-fidelity multipoint hydrostructural optimization of a 3-D hydrofoil , 2017 .

[34]  C. Mader,et al.  Stability-Constrained Aerodynamic Shape Optimization of Flying Wings , 2013 .

[35]  Graeme J. Kennedy,et al.  Scalable Parallel Approach for High-Fidelity Steady-State Aeroelastic Analysis and Adjoint Derivative Computations , 2014 .

[36]  Anton Fuchs,et al.  Experiments and numerical simulations on the aerodynamics of the Ahmed body , 2011 .

[37]  O. Pironneau On optimum profiles in Stokes flow , 1973, Journal of Fluid Mechanics.

[38]  Joaquim R. R. A. Martins,et al.  Multidisciplinary design optimization: A survey of architectures , 2013 .

[39]  Carsten Othmer,et al.  Adjoint methods for car aerodynamics , 2014, Journal of Mathematics in Industry.

[40]  Gunther Ramm,et al.  Some salient features of the time - averaged ground vehicle wake , 1984 .

[41]  D. K. Walters,et al.  Validation of OpenFOAM numerical methods and turbulence models for incompressible bluff body flows , 2015 .

[42]  D. Spalding,et al.  A calculation procedure for heat, mass and momentum transfer in three-dimensional parabolic flows , 1972 .

[43]  Masashi Kashitani,et al.  A study on high subsonic airfoil flows in relatively high Reynolds number by using OpenFOAM , 2014 .

[44]  J. Martins,et al.  Buffet-Onset Constraint Formulation for Aerodynamic Shape Optimization , 2017 .

[45]  Alex Pothen,et al.  What Color Is Your Jacobian? Graph Coloring for Computing Derivatives , 2005, SIAM Rev..

[46]  E. Nielsen,et al.  Efficient Construction of Discrete Adjoint Operators on Unstructured Grids Using Complex Variables , 2005 .

[47]  John B. Shoven,et al.  I , Edinburgh Medical and Surgical Journal.

[48]  Joaquim R. R. A. Martins,et al.  A CAD-Free Approach to High-Fidelity Aerostructural Optimization , 2010 .

[49]  Hrvoje Jasak,et al.  A tensorial approach to computational continuum mechanics using object-oriented techniques , 1998 .

[50]  Joaquim R. R. A. Martins,et al.  Multipoint High-Fidelity Aerostructural Optimization of a Transport Aircraft Configuration , 2014 .

[51]  Nikolaus A. Adams,et al.  Experimental and Numerical Investigation of the DrivAer Model , 2012 .

[52]  Eric Blades,et al.  A fast mesh deformation method using explicit interpolation , 2012, J. Comput. Phys..

[53]  Kenneth Karbon,et al.  Adjoint-Driven Aerodynamic Shape Optimization Based on a Combination of Steady State and Transient Flow Solutions , 2016 .

[54]  Uwe Naumann,et al.  A Discrete Adjoint Model for OpenFOAM , 2013, ICCS.

[55]  U. Naumann,et al.  Discrete Adjoint of an implicit coupled solver based on foam-extend using Algorithmic Differentiation , 2014 .

[56]  Ivar S. Ertesvåg,et al.  Modeling of turbulent separated flows using OpenFOAM , 2013 .

[57]  Ümit V. Çatalyürek,et al.  A Scalable Parallel Graph Coloring Algorithm for Distributed Memory Computers , 2005, Euro-Par.

[58]  J. J. Moré,et al.  Estimation of sparse jacobian matrices and graph coloring problems , 1983 .

[59]  W. Hucho,et al.  Aerodynamics of Road Vehicles , 1987 .

[60]  C. Rhie,et al.  Numerical Study of the Turbulent Flow Past an Airfoil with Trailing Edge Separation , 1983 .

[61]  Stefan Becker,et al.  Flow and Turbulence Structure in the Wake of a Simplified Car Model , 2003 .

[62]  C. Othmer A continuous adjoint formulation for the computation of topological and surface sensitivities of ducted flows , 2008 .

[63]  Joaquim R. R. A. Martins,et al.  Aerodynamic Shape Optimization Investigations of the Common Research Model Wing Benchmark , 2015 .

[64]  Thomas Blacha,et al.  The Aerodynamic Development of the New Audi Q5 , 2017 .

[65]  Daniel J Poole,et al.  Adaptive Surrogate-Based Optimization of Vortex Generators for a Tiltrotor Geometry , 2017 .

[66]  Marcus Meyer,et al.  Stabilisation of discrete steady adjoint solvers , 2015, J. Comput. Phys..

[67]  Schumacher Thomas,et al.  Adjoint Optimization for Vehicle External Aerodynamics , 2016 .

[68]  Michael A. Saunders,et al.  USER’S GUIDE FOR SNOPT 5.3: A FORTRAN PACKAGE FOR LARGE-SCALE NONLINEAR PROGRAMMING , 2002 .

[69]  J. Martins,et al.  Multipoint Aerodynamic Shape Optimization Investigations of the Common Research Model Wing , 2015 .

[70]  George J. Vachtsevanos,et al.  Military and Civilian Unmanned Aircraft , 2015 .

[71]  P. Spalart A One-Equation Turbulence Model for Aerodynamic Flows , 1992 .

[72]  John T. Hwang,et al.  Multidisciplinary Design Optimization of Aircraft Configurations Part 1 : A modular coupled adjoint approach , 2016 .

[73]  Joaquim R. R. A. Martins,et al.  Structural and Multidisciplinary Optimization Manuscript No. Pyopt: a Python-based Object-oriented Framework for Nonlinear Constrained Optimization , 2022 .