Adjoint Shape Optimization for Aerospace Applications

Adjoint Shape Optimization for Aerospace Applications

Adjoint Shape Optimization for Aerospace Applications Franklyn J. Kelecy ANSYS, Inc. Advanced Modeling & Simulation (AMS) Seminar Series NASA Ames Research Center, April 8, 2021 Agenda • Introduction to Adjoint Methods for CFD • Adjoint Theory Overview • Adjoint Solver in Ansys Fluent • Gradient-Based Optimizer • Shape Optimization Examples ‐ Simple cases (flow and heat transfer) ‐ Supersonic wind tunnel ‐ Hypersonic aerospike • Summary + Questions 2 Introduction to Adjoint Methods for CFD What is the Adjoint Method? • The Adjoint Method is a specialized mathematical tool that extends the scope of a CFD solution by providing detailed sensitivity data for the performance of a fluid system subject to specific boundary conditions. • The Adjoint Solver can be used to compute the derivative of an engineering quantities with respect to all inputs for the system. This includes the flow geometry! • Consequently, it can be used to guide intelligent design modifications for shape optimization of any geometric feature in the computational domain. • There are many more uses of Adjoint methods in CFD, but we will focus on shape optimization in this presentation. Adjoint-based shape modification of an automotive front spoiler Parametric Design Optimization vs. Adjoint Optimization • Parametric Design Optimization • Adjoint Optimization ‐ Finds optimal operating conditions for given ‐ Finds an optimal shape for a given shape which can be described by a finite operating condition number of parameters. ‐ Derive the optimal shape from a baseline ‐ Parametric behavior is determined by brute CFD flow calculation. force (Design Of Experiments) • Smart design decisions possible with low investment of computation time • Computationally expensive as the number of parameters increases • No parameterization of the geometry is necessary! Example I • Rear Cabin Automobile HVAC Duct - Minimize Total Pressure Drop 33% reduced pressure drop • Small geometry changes determined by Adjoint optimization / mesh morphing results in significant performance improvement! ‐ This is a consequence of node displacements for specified portion of domain. 6 Example II • Airplane – full scale - Maximize Lift/Drag ‐ Optimize shape of the wing to increase lift to drag ratio ‐ Again, just small changes result in a significant improvement… 55% increased lift Sensitivities of Normal Optimal Displacement 7 Example III Vehicle drag reduction 8 Overview of the Workflow • The workflow can be viewed as a four-step process 1. CFD Run (known process) 2. Calculate the derivatives (gradients) 3. Sensitivity data Mesh Update CFD Run • Mapping sent back by derivatives 4. Update the shape (Mesh) • Based on the sensitivity data Sensitivity Adjoint • Based on the environment constraints data calculation • This four-step process can be run multiple times to reach an optimum evolution for the design… 9 Adjoint-Driven Optimization CFD Solver Repeat... Export geometry (STL format) Flow solution New Geometry Mesh Local Morph optimum Adjoint Solver x5 x4 x3 x2 x1 x0 Shape Sensitivities Design Optimal Tool Constrained Design Change Additional Capabilities • But the adjoint can do much more than just shape optimization… Identification of the most important Insight factors affecting performance. Design How a prescribed change will alter the Exploration performance. Systematic improvement of Optimization performance using gradient information. Robust Comprehensive identification of the Design most influential design parameters. Robust Sensitivity of the numerics to the mesh node locations. Simulation log10(magnitude of shape sensitivity) 11 Adjoint Theory Overview How Does the Adjoint Solver Work? • Macro view of a conventional flow solved with Fluent Inputs (c) Flow solution (q) Observable (J) • Boundary mesh • Field data • Scalar quantities • Interior mesh • Pressure of interest • Material • Velocity • Lift properties • Density • Drag • Boundary •… • Pressure drop conditions • Outputs •… • Flow angle • Contour plots Flow solver Flow • Inlet velocity • Vector plots •… • xy plots •… • … Evaluation of solution 13 The Adjoint Problem • How do observables depend on the inputs? Inputs (c) Observable (J) • Boundary mesh • Scalar quantities • Interior mesh ? of interest • Material • Lift properties • Drag • Boundary • Pressure drop conditions •… • Flow angle • Inlet velocity Adjoint solver •… •… 14 Mathematical Background • We begin with a flow solution, , and the inputs to the problem, . Residuals of the Navier- Quantity of interest Stokes equations 풊 • Define the Lagrangian with the vector of Lagrange multipliers : 푑퐽 푑푞 휕퐽 휕푅 휕퐽 휕푅 Adjoint solution variables = + 푞 + + 푞 푑푐 푑푐 휕푞 휕푞 휕푐 휕푐 푑퐽 휕퐽 휕푅 = + 푞 푑푐 휕푐 휕푐 휕퐽 휕푅 휕푅 휕퐽 Choose 푞 such that... + 푞 =0 푞 =− 휕푞 휕푞 휕푞 휕푞 Reduced to one linear problem!!!! Adjoint sensitivities 15 Adjoint Sensitivities Let’s examine the Adjoint sensitivities in more detail. The sensitivity equation below is evaluated at each mesh node in our CFD model. For shape sensitivity, we consider the input vector 풄 to be the (x,y,z) locations for every node in our model i.e. the mesh. NOTE: and are calculated using expressions derived from the definitions of the observables and the Fluent CFD discretized equations. Total sensitivity of 퐽 w.r.t. x,y,z at Change in 퐽 due to the a given mesh sensitivity of the flow solution to node. Change in 퐽 due to a changes in x,y,z at a given node change in the node’s location. This depends on the x,y,z position at a Adjoint solution! given mesh node. 16 ©2020 Ansys, Inc. / Confidential Adjoint Sensitivity Example 퐽 = 풎풂풔풔 풇풍풐풘 풂풕 풐풖풕풍풆풕 = 휌퐴푉|표푢푡푙푒푡 푐 = 푚푒푠ℎ (푥, 푦, 푧) Outlet boundary node Here, the observable depends directly on the geometry at the outlet node… CFD domain non-zero 푞 non-zero Wall node = 0 Here, the observable does not depend directly 푞 non-zero on geometry at the wall node… 17 ©2020 Ansys, Inc. / Confidential Mathematical Background: Summary • Flow solution , and the inputs to the problem . Residuals of the Navier- Quantity of interest Stokes equations 풊 • In large-scale optimization we need the derivative (or sensitivity): • That is given by the equation: ‐ where 푞 is solution of 푞 =− (the so-called adjoint problem) The adjoint method is a very clever mathematical approach that makes possible the computation of the shape derivative in large-scale optimization 18 Adjoint Solver Methodology Calculate the Computing a Add the correction adjoint residual correction to adjoint solution 퐽: quantity of interest 푞: flow solution 푅: Residuals of Navier‐Stokes 푅: Residuals of adjoint 1. Calculate the adjoint residual: 푅 = − 푞 푀: simplified system Jacobian 훼: URF 2. Determine correction to adjoint solution: 푀Δ푞 = − 푞 = 푅 ‐ AMG iterative approach is used to compute an approximate solution to the equations 3. Update adjoint equations by the corrected adjoint vector: 푞 ← 푞 + 훼Δ푞 4. Start again until residuals reach the specified threshold or max iterations reached 19 Continuous Adjoint vs Discrete Adjoint • Continuous adjoint • Discrete adjoint 1. Have the discretization of the flow solver first 1. Derive the adjoint equation formulation first 2. Get the exact discretized adjoint equation for the 2. Discretize the adjoint equation. discretized flow solver system - 퐷 휆 = 퐷[ ] 휕푅 휕퐽 퐷 휆 = 퐷 휕푞 휕푞 • Advantages • Advantages - Better efficiency in speed and memory - High accuracy: discrete adjoint solver gives exact derivative of the numerical simulation system. Much better accuracy especially for the turbulence problem. - The differentiation can be verified with finite difference method in both unit function level and system level. - Ansys Fluent uses the Discrete Adjoint approach The Adjoint Solver in Ansys Fluent Physics Supported by the Fluent Adjoint Solver • Mesh ‐ All mesh types (hex, tet, wedge, polyhedral) • CFD Solver ‐ Steady-state, pressure-based solver (Segregated and Coupled) • Physical Models ‐ Incompressible and compressible flow ‐ Energy equation ‐ Laminar and Turbulent Flow (k-e, k-w, GEKO) ‐ Moving Reference Frames • Materials ‐ Constant fluid/solid properties ‐ Ideal gas (compressible) • Cell Zone Types ‐ Fluid zones, porous media • Boundary Conditions ‐ Walls, pressure inlets, velocity inlets, mass flow inlets, mass flow outlets, pressure outlets, pressure farfield, symmetric, periodic Adjoint Solver – Fluent Workflow Baseline Define Observable Choose Adjoint Set controls Set Monitor Calculate CFD discretization • Force … • Default • Auto Adjust • Residual below • ~ 2-3 times of Solution • Surface integral • Best • Dissipation 0.001 is the flow solver • Volume integral matching suppression considered as a good solution • Algebraic scheme for operations stabilization • Manual setting Adjoint solution: rich sensitivity info Modify Geometry Defining Observables • Wide range of observable quantities ‐ Pressure drop (total pressure difference) ‐ Forces and moments, swirl ‐ Surface and volume integrals of field quantities • Static and total pressure • Static and total temperature • Mass flux and heat flux ‐ May use Iso-clip, interior, boundary zones • Surface and volume integrals on selected zones and cell registers • Mathematical operators on defined observables ‐ Ratio, product, linear combination, constants, unary operation, arithmetic average, mean variance ‐ Operators permit you to develop custom observables 24 Adjoint Solver Methods • Assign Adjoint solver methods • Ideally, methods should match flow solution but lower order is OK and will be more stable • Options for ‐

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    79 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us