Shape optimisation using breakthrough technologies

Similar documents
Mesh Morphing and the Adjoint Solver in ANSYS R14.0. Simon Pereira Laz Foley

Adjoint Solver Workshop

Optimisationfor CFD. ANSYS R14 Fluids Update Seminar. Milton Park, February 16 th, 2012 Sheffield, February 29 th, 2012 Aberdeen, March 8 th, 2012

Automated Design Exploration and Optimization. Clinton Smith, PhD CAE Support and Training PADT April 26, 2012

RBF Morph An Add-on Module for Mesh Morphing in ANSYS Fluent

Application of Wray-Agarwal Turbulence Model for Accurate Numerical Simulation of Flow Past a Three-Dimensional Wing-body

Introduction to ANSYS CFX

Multi-objective adjoint optimization of flow in duct and pipe networks

Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

Shape Optimization for Aerodynamic Efficiency Using Adjoint Methods

Adjoint Solver Advances, Tailored to Automotive Applications

Introduction to CFX. Workshop 2. Transonic Flow Over a NACA 0012 Airfoil. WS2-1. ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

Flow and Heat Transfer in a Mixing Elbow

Introduction to C omputational F luid Dynamics. D. Murrin

Studies of the Continuous and Discrete Adjoint Approaches to Viscous Automatic Aerodynamic Shape Optimization

Solution Recording and Playback: Vortex Shedding

Compressible Flow in a Nozzle

Supersonic Flow Over a Wedge

Flow in an Intake Manifold

Calculate a solution using the pressure-based coupled solver.

Overview and Recent Developments of Dynamic Mesh Capabilities

CFD Topological Optimization of a Car Water-Pump Inlet using TOSCA Fluid and STAR- CCM+

Tutorial: Simulating a 3D Check Valve Using Dynamic Mesh 6DOF Model And Diffusion Smoothing

I. Introduction. Optimization Algorithm Components. Abstract for the 5 th OpenFOAM User Conference 2017, Wiesbaden - Germany

Estimating Vertical Drag on Helicopter Fuselage during Hovering

Using Multiple Rotating Reference Frames

ANSYS Fluid Structure Interaction for Thermal Management and Aeroelasticity

Aero-Vibro Acoustics For Wind Noise Application. David Roche and Ashok Khondge ANSYS, Inc.

Middle East Technical University Mechanical Engineering Department ME 485 CFD with Finite Volume Method Fall 2017 (Dr. Sert)

1.2 Numerical Solutions of Flow Problems

Modeling Flow Through Porous Media

Automated Design Exploration and Optimization + HPC Best Practices

Topology Optimization in Fluid Dynamics

State of the art at DLR in solving aerodynamic shape optimization problems using the discrete viscous adjoint method

Modeling Unsteady Compressible Flow

Using Multiple Rotating Reference Frames

Simulation of Laminar Pipe Flows

Backward facing step Homework. Department of Fluid Mechanics. For Personal Use. Budapest University of Technology and Economics. Budapest, 2010 autumn

Aerodynamic Study of a Realistic Car W. TOUGERON

CFD MODELING FOR PNEUMATIC CONVEYING

Computational Study of Laminar Flowfield around a Square Cylinder using Ansys Fluent

Verification of Laminar and Validation of Turbulent Pipe Flows

Ansys Fluent R Michele Andreoli

Verification and Validation of Turbulent Flow around a Clark-Y Airfoil

CFD Analysis of 2-D Unsteady Flow Past a Square Cylinder at an Angle of Incidence

The viscous forces on the cylinder are proportional to the gradient of the velocity field at the

Analysis of an airfoil

NUMERICAL 3D TRANSONIC FLOW SIMULATION OVER A WING

Tutorial 1. Introduction to Using FLUENT: Fluid Flow and Heat Transfer in a Mixing Elbow

Express Introductory Training in ANSYS Fluent Workshop 04 Fluid Flow Around the NACA0012 Airfoil

A B C D E. Settings Choose height, H, free stream velocity, U, and fluid (dynamic viscosity and density ) so that: Reynolds number

Introduction to Computational Fluid Dynamics Mech 122 D. Fabris, K. Lynch, D. Rich

Open source software tools for powertrain optimisation

Steady Flow: Lid-Driven Cavity Flow

AERODYNAMIC DESIGN FOR WING-BODY BLENDED AND INLET

Simulation of Turbulent Flow around an Airfoil

Simulation of Flow Development in a Pipe

Program: Advanced Certificate Program

Swapnil Nimse Project 1 Challenge #2

Driven Cavity Example

ANSYS FLUENT. Airfoil Analysis and Tutorial

Coupled Analysis of FSI

FLUENT Secondary flow in a teacup Author: John M. Cimbala, Penn State University Latest revision: 26 January 2016

Modeling External Compressible Flow

CFD Analysis of conceptual Aircraft body

Verification and Validation of Turbulent Flow around a Clark-Y Airfoil

Module D: Laminar Flow over a Flat Plate

Tutorial 17. Using the Mixture and Eulerian Multiphase Models

ANSYS AIM Tutorial Compressible Flow in a Nozzle

SPC 307 Aerodynamics. Lecture 1. February 10, 2018

Simulation of Turbulent Flow around an Airfoil

This tutorial illustrates how to set up and solve a problem involving solidification. This tutorial will demonstrate how to do the following:

and to the following students who assisted in the creation of the Fluid Dynamics tutorials:

Commercial Implementations of Optimization Software and its Application to Fluid Dynamics Problems

Estimation of Flow Field & Drag for Aerofoil Wing

Simulation of Turbulent Flow over the Ahmed Body

Coupling of STAR-CCM+ to Other Theoretical or Numerical Solutions. Milovan Perić

Team 194: Aerodynamic Study of Airflow around an Airfoil in the EGI Cloud

Comparisons of Compressible and Incompressible Solvers: Flat Plate Boundary Layer and NACA airfoils

Adjoint Optimization combined with mesh morphing for CFD applications

Speed and Accuracy of CFD: Achieving Both Successfully ANSYS UK S.A.Silvester

AIRFOIL SHAPE OPTIMIZATION USING EVOLUTIONARY ALGORITHMS

Fluid structure interaction analysis: vortex shedding induced vibrations

TryItNow! Step by Step Walkthrough: Spoiler Support

TUTORIAL#3. Marek Jaszczur. Boundary Layer on a Flat Plate W1-1 AGH 2018/2019

ANSYS AIM Tutorial Turbulent Flow Over a Backward Facing Step

The Spalart Allmaras turbulence model

CFD Topology Optimization of Automotive Components

Free-Form Shape Optimization using CAD Models

CFD Post-Processing of Rampressor Rotor Compressor

Automatic shape optimisation in hydraulic machinery using OpenFOAM

OzenCloud Case Studies

CFD Modelling in the Cement Industry

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution.

Grid. Apr 09, 1998 FLUENT 5.0 (2d, segregated, lam) Grid. Jul 31, 1998 FLUENT 5.0 (2d, segregated, lam)

An advanced RBF Morph application: coupled CFD-CSM Aeroelastic Analysis of a Full Aircraft Model and Comparison to Experimental Data

TUTORIAL#4. Marek Jaszczur. Turbulent Thermal Boundary Layer on a Flat Plate W1-1 AGH 2018/2019

An advanced RBF Morph application: coupled CFD-CSM Aeroelastic Analysis of a Full Aircraft Model and Comparison to Experimental Data

Integrating multi-body simulation and CFD: toward complex multidisciplinary design optimisation

An Optimization Method Based On B-spline Shape Functions & the Knot Insertion Algorithm

Transcription:

Shape optimisation using breakthrough technologies Compiled by Mike Slack Ansys Technical Services 2010 ANSYS, Inc. All rights reserved. 1 ANSYS, Inc. Proprietary

Introduction Shape optimisation technologies ( Automated Invention? ) 2010 ANSYS, Inc. All rights reserved. 2 ANSYS, Inc. Proprietary

Fast and Reliable Design Objective: Introduce two New and Elegant CFD shape optimisation methods. Do my best to describe how they work. Explain how these can reliably reduce your simulation time to find a shape optimised design. 2010 ANSYS, Inc. All rights reserved. 3 ANSYS, Inc. Proprietary

Optimizsation The process of adjusting control variables to find the levels that achieve the best possible outcome. The challenge is to achieve optimisation efficiently CFD runs can be long and expensive, even IO can be significant. So we will consider systematic methods to find an optimum response with a few trials Consider the different choice of technology, approach and algorithm? 2010 ANSYS, Inc. All rights reserved. 4 ANSYS, Inc. Proprietary

Fast and Reliable Design The tools that will be presented are all available in the current release. The Mesh Morph Optimiser is our first full release of this technology type. The adjoint concept has been 10 years in the making and is a unique offering in commercial CFD. At this point the functionality is still Beta. 2010 ANSYS, Inc. All rights reserved. 5 ANSYS, Inc. Proprietary

Agenda 1. Introduction 2. Morphing 3. Linear shape optimisation methods 4. Derivative based optimisation method 5. Summary 2010 ANSYS, Inc. All rights reserved. 6 ANSYS, Inc. Proprietary

Morphing 2010 ANSYS, Inc. All rights reserved. 7 ANSYS, Inc. Proprietary

Mesh Morphing Applies a geometric design change directly in the solver? Uses a Bernstein polynomial-based morphing scheme Freeform mesh deformation defined on a matrix of control points leads to a smooth deformation User prescribes the scale and direction of deformations to control points distributed evenly through the rectilinear region. 2010 ANSYS, Inc. All rights reserved. 8 ANSYS, Inc. Proprietary

Morpher Usage is based on the system of control points that can be moved freely in space 2010 ANSYS, Inc. All rights reserved. 9 ANSYS, Inc. Proprietary

Morpher Deformation based on movement of one control point 2010 ANSYS, Inc. All rights reserved. 10 ANSYS, Inc. Proprietary

Morpher Deformation can be performed many times 2010 ANSYS, Inc. All rights reserved. 11 ANSYS, Inc. Proprietary

Morpher Deformation volume can have different numbers of control points (example now uses five by two points) 2010 ANSYS, Inc. All rights reserved. 12 ANSYS, Inc. Proprietary

Examples I F1 Generic F1 car (Hexcore) nose extension before Two control points moved in -x 2010 ANSYS, Inc. All rights reserved. 13 ANSYS, Inc. Proprietary

Examples I F1 Generic F1 car (Hexcore) nose extension after Two control points moved in -x 2010 ANSYS, Inc. All rights reserved. 14 ANSYS, Inc. Proprietary

Mesh Morphing Workflow Stand Alone use of Morphing 1. Setup the CFD Problem 2. Perform the run 3. Identify improvements in the geometry 4. Use Morpher to modify the mesh in FLUENT itself 5. Run the solution on the modified geometry using the previous result as an initial condition 6. For small variations in geometry the new solution can be achieved very quickly Note: With a little work the morph can be scripted or linked to Workbench parameter using scheme variables 2010 ANSYS, Inc. All rights reserved. 15 ANSYS, Inc. Proprietary

Mesh Morpher Optimisation (MMO) 2010 ANSYS, Inc. All rights reserved. 16 ANSYS, Inc. Proprietary

Mesh Morpher Optimiser (MMO) Workflow - Morpher coupled with optimiser 1. Setup the CFD problem 2. Invoke Mesh Morpher Tool 3. Define Objective Function 4. Define deformation region and assign deformation of control points through Optimiser 5. Perform solution to get the optimised design 2010 ANSYS, Inc. All rights reserved. 17 ANSYS, Inc. Proprietary

Objective Function Objective Function is a single scalar value that the chosen optimizer method will drive towards a minimum. Typical Objective Functions Lift & drag Mass flow-rate for inlets, outlets or internal plane Surface average pressures for walls/inlets/outlets Min-max absolute pressure/temperature etc. Objective Function is unrestricted and can be defined using, User defined functions Scheme Function 2010 ANSYS, Inc. All rights reserved. 18 ANSYS, Inc. Proprietary

Example - Morpher with Shape Optimizer Baseline Design Optimized Design Application: L-shaped duct Objective Function: Uniform flow at the outlet 2010 ANSYS, Inc. All rights reserved. 19 ANSYS, Inc. Proprietary

Example - Morpher with Shape Optimizer Baseline Design Optimized Design Application: Manifold Objective Function: Equal flow rate through all the 18 nozzles 2010 ANSYS, Inc. All rights reserved. 20 ANSYS, Inc. Proprietary

Example Simple Sedan Defining the deformation And shape variables 2010 ANSYS, Inc. All rights reserved. 21 ANSYS, Inc. Proprietary

Deformation Definition Parameter 0 1. Select individual control points and prescribe the relative ranges of motion. 2. More than one direction and scale of motion can be assigned using parameters 3. Choose an optimizer that will work to find the size of deformation to apply to each parameter 2010 ANSYS, Inc. All rights reserved. 22 ANSYS, Inc. Proprietary

Variable 2 Variable 2 What does Optimisation involve Lets consider the Simplex algorithm We need an objective Variables to be considered (geometric parameters) A k+1 geometric figure in a k-dimensional space is called a simplex. k+1 is the number of trials to find the variables direction of improvement. Dimensional Space Variable1 Variable1 Variable1 2010 ANSYS, Inc. All rights reserved. 23 ANSYS, Inc. Proprietary

Variable 2 Simplex how it works Good Best 1. Rank Best, Worst and Next Best 2. Find mid point B to NB and reflect W 3. Evaluate Reflected Point 4. If Worse contract inside trial area 5. Adjust NB to W and rank new trial 6. Repeat until objective achieved Worst Next Best Bad Variable1 2010 ANSYS, Inc. All rights reserved. 24 ANSYS, Inc. Proprietary

Variable 2 Simplex how it works Good 1. Rank Best, Worst and Next Best 2. Find mid point B to NB and reflect W 3. Evaluate Reflected Point 4. If Worse contract inside trial area 5. Adjust NB to W and rank new trial 6. Repeat until objective achieved Bad Variable1 2010 ANSYS, Inc. All rights reserved. 25 ANSYS, Inc. Proprietary

Variable 2 Simplex how it works Good 1. Rank Best, Worst and Next Best 2. Find mid point B to NB and reflect W 3. Evaluate Reflected Point 4. If Worse contract inside trial area 5. Adjust NB to W and rank new trial 6. Repeat until objective achieved Bad Variable1 2010 ANSYS, Inc. All rights reserved. 26 ANSYS, Inc. Proprietary

Variable 2 Simplex how it works Good 1. Rank Best, Worst and Next Best 2. Find mid point B to NB and reflect W 3. Evaluate Reflected Point 4. If Worse contract inside trial area 5. Adjust NB to W and rank new trial 6. Repeat until objective achieved Bad Variable1 2010 ANSYS, Inc. All rights reserved. 27 ANSYS, Inc. Proprietary

Variable 2 Simplex how it works Good 1. Rank Best, Worst and Next Best 2. Find mid point B to NB and reflect W 3. Evaluate Reflected Point 4. If Worse contract inside trial area 5. Adjust NB to W and rank new trial 6. Repeat until objective achieved Bad Variable1 2010 ANSYS, Inc. All rights reserved. 28 ANSYS, Inc. Proprietary

Variable 2 Simplex how it works Good 1. Rank Best, Worst and Next Best 2. Find mid point B to NB and reflect W 3. Evaluate Reflected Point 4. If Worse contract inside trial area 5. Adjust NB to W and rank new trial 6. Repeat until objective achieved Bad Variable1 2010 ANSYS, Inc. All rights reserved. 29 ANSYS, Inc. Proprietary

Variable 2 Simplex how it works Good 1. Rank Best, Worst and Next Best 2. Find mid point B to NB and reflect W 3. Evaluate Reflected Point 4. If Worse contract inside trial area 5. Adjust NB to W and rank new trial 6. Repeat until objective achieved Bad Variable1 2010 ANSYS, Inc. All rights reserved. 30 ANSYS, Inc. Proprietary

Example - Morpher with Shape Optimizer Baseline Design Optimized Design Application: Incompressible turbulent flow over a car Objective Function: Minimise Drag 2010 ANSYS, Inc. All rights reserved. 31 ANSYS, Inc. Proprietary

Generic HVAC Duct HVAC duct section of an aircraft with one main outlet and two side outlets Objective: Minimize pressure drop in the duct by optimizing the shape of branch-2 branch outlets Pressure = 0 Pa Inlet Velocity = 10m/s main outlet Pressure = 0 Pa branch 1 branch 2 Baseline Modified 2010 ANSYS, Inc. All rights reserved. 32 ANSYS, Inc. Proprietary

Adjoint method 2010 ANSYS, Inc. All rights reserved. 33 ANSYS, Inc. Proprietary

What does an adjoint solver do? An adjoint solver provides specific information about a fluid system that is very difficult to gather otherwise. An adjoint solver can be used to compute the derivative of an engineering quantity with respect to all of the inputs for the system. For example Derivative of drag with respect to the shape of a vehicle. Derivative of total pressure drop with respect the shape of the flow path. 2010 ANSYS, Inc. All rights reserved. 34 ANSYS, Inc. Proprietary

Key Ideas - Fundamentals High-level system view of a conventional flow solver Inputs Boundary mesh Interior mesh Material properties Boundary condition 1 Flow angle Inlet velocity FLOW SOLVER Outputs Field data Contour plots Vector plots xy-plots Scalar values Lift Drag Total pressure drop 2010 ANSYS, Inc. All rights reserved. 35 ANSYS, Inc. Proprietary

Key Ideas - Fundamentals HOW ARE CHANGES TO KEY OUTPUTS DEPENDENT ON CHANGES TO THE INPUTS? Inputs Boundary mesh Interior mesh Material properties Boundary condition 1 Flow angle Inlet velocity? ADJOINT SOLVER Outputs Field data Contour plots Vector plots xy-plots Scalar values Lift Drag Total pressure drop 2010 ANSYS, Inc. All rights reserved. 36 ANSYS, Inc. Proprietary

Key Ideas - Fundamentals Flow solution q, and the inputs to the problem c. J( q; c) Output R( q; c) 0 Change in output J J q q Change the inputs c by c J c c R R q c q c 0 Residuals of the Navier-Stokes equations Linearized Navier-Stokes Adjoint equations Engineer a particular linear combination of linearized NS equations introduce multipliers q ~ q~ q R T Change in output J q After substitutions ~ R ~ R q c T T q q q c 0 J T R J q~ Change in c inputs c c 2010 ANSYS, Inc. All rights reserved. 37 ANSYS, Inc. Proprietary

Key Ideas Adjoint Equations Construct and solve an adjoint problem to get a helper solution q~ q R T Solve using AMG J q This innocent-looking system of equations is at the heart of the adjoint solver. Involves a familiar process Solution advancement controls Courant number, underrelaxation Residuals & iterations Roughly the same effort as a conventional flow solution 2010 ANSYS, Inc. All rights reserved. 38 ANSYS, Inc. Proprietary

Key Ideas Shape Sensitivity Shape sensitivity: Sensitivity of the observed value with respect to (boundary) grid node locations ( Drag) w. x mesh n n Node displacement Shape sensitivity coefficients: Vector field defined on mesh nodes Visualization of shape sensitivity Drag sensitivity for NACA0012 Uses vector field visualization. Identifies regions of high and low sensitivity. 2010 ANSYS, Inc. All rights reserved. 39 ANSYS, Inc. Proprietary

Key Ideas Mesh Moprhing Constrained motion Some walls within the control volume may be constrained not to move. Actual change 3.1 DP = -213.8 Total improvement of 8% 2010 ANSYS, Inc. All rights reserved. 40 ANSYS, Inc. Proprietary

Pressure drop reduction example 2010 ANSYS, Inc. All rights reserved. 41 ANSYS, Inc. Proprietary

Key Ideas Mesh Adaptation Solution-based mesh adaptation Regions in the flow domain where the adjoint solution is large have a strong effect of discretization errors in the quantity of interest. Baseline Mesh Adapt in regions where the adjoint solution is large Adapted Mesh Detail Adjoint solution Drag sensitivity Adapted Mesh 2010 ANSYS, Inc. All rights reserved. 42 ANSYS, Inc. Proprietary

Current Functionality ANSYS-Fluent flow solver has very broad scope Adjoint is configured to compute solutions based on some assumptions Steady, incompressible, laminar flow. Steady, incompressible, turbulent flow with standard wall functions. First-order discretization in space. Frozen turbulence. The primary flow solution does NOT need to be run with these restrictions Strong evidence that these assumptions do not undermine the utility of the adjoint solution data for engineering purposes. Fully parallelized. Gradient algorithm for shape modification Mesh morphing using control points. Adjoint-based solution adaption 2010 ANSYS, Inc. All rights reserved. 43 ANSYS, Inc. Proprietary

Internal flow Simple 3D Total pressure Sensitivity of total pressure drop to shape 2010 ANSYS, Inc. All rights reserved. 44 ANSYS, Inc. Proprietary

Internal flow Simple 3D Total pressure drop = -23765 Pa Predicted change = 2858 Pa Actual change = 2390 Pa 2010 ANSYS, Inc. All rights reserved. 45 ANSYS, Inc. Proprietary

Dp tot [Pa] 180 Elbow optimization Thanks to Hauke Reese ANSYS Germany 100 90 80 70 60 50 40 30 20 10 0 0 10 20 30 Run [-] 2010 ANSYS, Inc. All rights reserved. 46 ANSYS, Inc. Proprietary

180 Elbow: Optimization Loop Base design End design 2010 ANSYS, Inc. All rights reserved. 47 ANSYS, Inc. Proprietary

IC Engine flow Adjoint Residuals Contours of magnitude of shape sensitivity Shape sensitivity vectors 2010 ANSYS, Inc. All rights reserved. 48 ANSYS, Inc. Proprietary

External Automotive Aerodynamics Small car Surface map of the drag sensitivity to shape changes Surface map of the drag sensitivity to shape changes Surface map of the drag sensitivity to shape changes 2010 ANSYS, Inc. All rights reserved. 49 ANSYS, Inc. Proprietary

Generic F1 Front Wing Example Adjoint computation takes about the same resources as the baseline flow calculation Gives the sensitivity of the downforce to the shape of the wing. Regions of high and low sensitivity 2010 ANSYS, Inc. All rights reserved. 50 ANSYS, Inc. Proprietary

Generic F1 Front Wing Example Adjoint solution: Quantifies the effect of specific changes to shape upon downforce Suggests an optimal modification to the shape to enhance downforce Baseline downforce = 905.4N Predicted improvement = 41.6N Actual improvement = 39.1N 2010 ANSYS, Inc. All rights reserved. 51 ANSYS, Inc. Proprietary

Generic F1 Front Wing Example 2010 ANSYS, Inc. All rights reserved. 52 ANSYS, Inc. Proprietary

Summary 2010 ANSYS, Inc. All rights reserved. 53 ANSYS, Inc. Proprietary

Summary Two new approaches to consider The morpher and optimisation provide efficient tool to make and compare geometric adjustments. Consider using the adjoint to guide the morpher. The Adjoint alone is also very useful to identify key sensitivities. These are new technologies which will continue to be enhanced. We encourage you to consider these techniques and will be happy to assist you. 2010 ANSYS, Inc. All rights reserved. 54 ANSYS, Inc. Proprietary