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

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

Optimization with Gradient and Hessian Information Calculated Using Hyper-Dual Numbers

Semi-automatic transition from simulation to one-shot optimization with equality constraints

NUMERICAL 3D TRANSONIC FLOW SIMULATION OVER A WING

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

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

Introduction to ANSYS CFX

Single and multi-point aerodynamic optimizations of a supersonic transport aircraft using strategies involving adjoint equations and genetic algorithm

Improvements to a Newton-Krylov Adjoint Algorithm for Aerodynamic Optimization

Airfoil shape optimization using adjoint method and automatic differentiation. Praveen. C

Analysis of the Adjoint Euler Equations as used for Gradient-based Aerodynamic Shape Optimization

Grid Dependence Study of Transonic/Supersonic Flow Past NACA Air-foil using CFD Hemanth Kotaru, B.Tech (Civil Engineering)

AERODYNAMIC DESIGN OF FLYING WING WITH EMPHASIS ON HIGH WING LOADING

Shape optimisation using breakthrough technologies

A new multidimensional-type reconstruction and limiting procedure for unstructured (cell-centered) FVs solving hyperbolic conservation laws

Aerofoil Optimisation Using CST Parameterisation in SU2

Solution of 2D Euler Equations and Application to Airfoil Design

Multi-Mesh CFD. Chris Roy Chip Jackson (1 st year PhD student) Aerospace and Ocean Engineering Department Virginia Tech

MATH 573 Advanced Scientific Computing

Aerodynamic Design on Unstructured Grids for Turbulent Flows

Computation of Sensitivity Derivatives of Navier-Stokes Equations using Complex Variables

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

김태희, 권형일 1, 최성임 2* T.H. Kim, H.I. Kwon, and S.I. Choi

(c)2002 American Institute of Aeronautics & Astronautics or Published with Permission of Author(s) and/or Author(s)' Sponsoring Organization.

39th AIAA Aerospace Sciences Meeting and Exhibit January 8 11, 2001/Reno, NV

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

NUMERICAL SIMULATION OF 3D FLAPPING WING BASED ON CHIMERA METHOD

An efficient method for predicting zero-lift or boundary-layer drag including aeroelastic effects for the design environment

41st AIAA Aerospace Sciences Meeting and Exhibit Jan 6 9, 2003/Reno, Nevada

Keywords: CFD, aerofoil, URANS modeling, flapping, reciprocating movement

Debojyoti Ghosh. Adviser: Dr. James Baeder Alfred Gessow Rotorcraft Center Department of Aerospace Engineering

Development of a Consistent Discrete Adjoint Solver for the SU 2 Framework

Multi-Element High-Lift Configuration Design Optimization Using Viscous Continuous Adjoint Method

Application of Jetstream to a Suite of Aerodynamic Shape Optimization Problems. Karla Telidetzki

AIRFOIL SHAPE OPTIMIZATION USING EVOLUTIONARY ALGORITHMS

Aerodynamic Analysis of Forward Swept Wing Using Prandtl-D Wing Concept

Shape Optimization (activities ) Raino A. E. Mäkinen

CONFORMAL MAPPING POTENTIAL FLOW AROUND A WINGSECTION USED AS A TEST CASE FOR THE INVISCID PART OF RANS SOLVERS

ADJOINT OPTIMIZATION OF 2D-AIRFOILS IN INCOMPRESSIBLE FLOWS

Aerodynamic optimization using Adjoint methods and parametric CAD models

Aerodynamic Inverse Design Framework using Discrete Adjoint Method

AERODYNAMIC DESIGN FOR WING-BODY BLENDED AND INLET

A higher-order finite volume method with collocated grid arrangement for incompressible flows

Conceptual Design and CFD

Case C3.1: Turbulent Flow over a Multi-Element MDA Airfoil

Geometry Parameterization Using Control Grids

PROTECTION AGAINST MODELING AND SIMULATION UNCERTAINTIES IN DESIGN OPTIMIZATION NSF GRANT DMI

Program: Advanced Certificate Program

INVERSE METHODS FOR AERODYNAMIC DESIGN USING THE NAVIER-STOKES EQUATIONS

1.2 Numerical Solutions of Flow Problems

Constrained Aero-elastic Multi-Point Optimization Using the Coupled Adjoint Approach

An Investigation of Directional-Coarsening And Line-Implicit Smoothing Applied to Agglomeration Multigrid

Airfoil Design Optimization Using Reduced Order Models Based on Proper Orthogonal Decomposition

Case C2.2: Turbulent, Transonic Flow over an RAE 2822 Airfoil

Lecture 2 Unstructured Mesh Generation

Multigrid Solvers in CFD. David Emerson. Scientific Computing Department STFC Daresbury Laboratory Daresbury, Warrington, WA4 4AD, UK

Aerospace Applications of Optimization under Uncertainty

COMPARISON OF SHOCK WAVE INTERACTION FOR THE THREE-DIMENSIONAL SUPERSONIC BIPLANE WITH DIFFERENT PLANAR SHAPES

Limiters for Unstructured Higher-Order Accurate Solutions of the Euler Equations

AIR LOAD CALCULATION FOR ISTANBUL TECHNICAL UNIVERSITY (ITU), LIGHT COMMERCIAL HELICOPTER (LCH) DESIGN ABSTRACT

Development of mesh refinement methods at CFD codes for computational fluid mechanics problems DIPLOMA THESIS

OPTIMIZATIONS OF AIRFOIL AND WING USING GENETIC ALGORITHM

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

Introduction to Aerodynamic Shape Optimization

Analysis of an airfoil

Performance improvement of a wind turbine blade using a developed inverse design method

A NURBS-BASED APPROACH FOR SHAPE AND TOPOLOGY OPTIMIZATION OF FLOW DOMAINS

AERODYNAMIC SHAPES DESIGN ON THE BASE OF DIRECT NEWTON TYPE OPTIMIZATION METHOD

Automatic design procedures that use Computational Fluid Dynamics(CFD) combined with gradientbased

Transonic Airfoil Shape Optimization in Preliminary Design Environment

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

Computational Fluid Dynamics for Engineers

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

Generating Airplane Wings for Numerical Simulation and Manufacturing

Multigrid Third-Order Least-Squares Solution of Cauchy-Riemann Equations on Unstructured Triangular Grids

Single- and Multi-Point Aerodynamic Shape Optimization Using A Parallel Newton-Krylov Approach

A DRAG PREDICTION VALIDATION STUDY FOR AIRCRAFT AERODYNAMIC ANALYSIS

Numerical and theoretical analysis of shock waves interaction and reflection

Supersonic Wing Design Method Using an Inverse Problem for Practical Application

AN INVERSE DESIGN METHOD FOR ENGINE NACELLES AND WINGS

High-order mesh generation for CFD solvers

A High-Order Accurate Unstructured GMRES Solver for Poisson s Equation

Challenges in Boundary- Layer Stability Analysis Based On Unstructured Grid Solutions

Estimation of Flow Field & Drag for Aerofoil Wing

Efficient Multi-point Aerodynamic Design Optimization Via Co-Kriging

Abstract. Introduction

SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND

Semi-automatic domain decomposition based on potential theory

SPC 307 Aerodynamics. Lecture 1. February 10, 2018

On the high order FV schemes for compressible flows

Research and Design working characteristics of orthogonal turbine Nguyen Quoc Tuan (1), Chu Dinh Do (2), Quach Thi Son (2)

How to Enter and Analyze a Wing

Real-Time Shape Editing using Radial Basis Functions

Case C1.3: Flow Over the NACA 0012 Airfoil: Subsonic Inviscid, Transonic Inviscid, and Subsonic Laminar Flows

THE use of computer algorithms for aerodynamic shape

ITU/FAA Faculty of Aeronautics and Astronautics

Adjoint Solver Workshop

A Systematic Study on the Impact of Dimensionality for a Two-Dimensional Aerodynamic Optimization Model Problem

FEMLAB Exercise 1 for ChE366

Verification of Moving Mesh Discretizations

Transcription:

An Optimization Method Based On B-spline Shape Functions & the Knot Insertion Algorithm P.A. Sherar, C.P. Thompson, B. Xu, B. Zhong Abstract A new method is presented to deal with shape optimization problems. In this method, the geometry is parameterized by B-spline shape functions with the control points of the B-spline curves becoming the design variables in the optimization scheme. The core idea of the method presented is to introduce the knot insertion algorithm which can keep the geometry unchanged whilst increasing the number of control points. Besides this core idea, the superreduced method and mesh refinement are also employed. The super-reduced method is used to get rid of the equality constraints. Hence a constrained optimization problem is converted into an unconstrained optimization problem with the constraints kept unchanged. We apply the method to two applications; first a problem involving Poisson s equation, and second, an application of the method to an airfoil design problem based on the airfoil NACA 0012. In both of these applications, the new method is shown to be efficient compared with standard methods. In particular, in the airfoil problem we obtain a CPU saving time of about 42% compared with the EX- TREM method. Keywords: B-spline, knot insertion algorithm, mesh refinement, optimization 1 Introduction Shape optimization problems can be regarded as a problem of finding a shape which can achieve a given performance while satisfying some constraints. Two kinds of method are used in optimization; gradient-based methods and global methods. The gradient-based method is efficient in finding a local optimum while the global method has the advantage of finding a global optimum and does not require the objective function to be differentiable. With the gradient-based method, the gradient information is necessary to minimize the objective function. In shape design problems, to obtain the gradient of the objective function with respect to the design variables one usually needs the gradient of the state variables with respect to design variables, called the sensitivity. Some Authors are in alphabetical order. Address: School of Engineering, Cranfield University, Cranfield MK43 0AL, UK. Email: p.sherar;chris.thompson;b.xu.2002;b.zhong@cranfield.ac.uk well-known methods to compute the sensitivity are the finite difference method [16,17], the complex variable method [2], automatic differentiation [4,5], sensitivity analysis [6,7], and the adjoint method [12,13,14]. In shape optimization geometry representation is an important issue. Hicks, Henne, Vanderplaats [10,11] use shape functions to parameterize shape changes. Another approach is to use the coordinates of every surface point as design variables. The approach removes the geometric model from the optimization loop, however, it may lead to discontinuities in the gradient which can be eliminated by a smoothing technique. An example of the use of B-spline control points to parameterize the geometry is given by Anderson and Venkatakrishnan [1]. In this paper, B-splines are chosen as shape functions to parameterize the changing geometry. The knot insertion algorithm has been incorporated into the shape optimization. Using this technique, the initial number of control points can be decreased. We then use the BFGS-based gradient method to find the optimum shape. 2 Method Description In this method, the geometry is parameterized by B-spline shape functions with nominal uniform knot set. Therefore, the control points of the B-spline curves become the design variables in the optimization scheme. The knot insertion algorithm is introduced to keep the geometry unchanged whilst increasing the number of control points. The initial number of control points can be set to a small number, potentially decreasing the number of optimization iterations. To achieve a suitable accuracy the final number of control points can be very large for the value of the objective function. In the approach taken here the knot insertion algorithm kicks in when the solution is close to the optimum solution. After that, a large number of design variables will be produced as specified by the user. Since the knot insertion algorithm does not change the geometry, the optimization problem will be kept the same. Beside this core idea, the super-reduced method and mesh refinement are also incorporated. The super-reduced idea [19] is employed to convert the constrained problem into

an unconstrained one (where the constraints are kept unchanged all the time). Using this method the gradient becomes a super-reduced gradient. Mesh refinement is extensively used in shape optimization. This approach is very useful when the exact gradient is difficult to obtain. In doing so, most of iterations will be done on the coarse grid and with relatively few on the refined grid, thus making the method more efficient. In the new method, the selection of the search direction and the update of the approximate Hessian matrix follows the same rule as BFGS method [9] does: s k = H(x k ) 1 g(x k ) H k+1 = H k + q kq T k q T k p H kp k p T k H k k p T k H kp k where p k = x k+1 x k, q k = g(x k+1 ) g(x k ), and x k, g k denotes the point and the gradient at the k-th iteration respectively. 2.1 Knot insertion algorithm The knot insertion algorithm [8] allows one to insert a knot into a B-spline curve without changing its shape. After knot insertion, the B-spline evaluation (p(u)) function changes from to p(u) = d i N i,k (u), with knot set (u i ) n+k n+1 d 1 i N i,k (u), with knot set (u 1 i ) n+1+k. where k is the order, n is the dimension, u is the parameter value, d i is the i-th control point for the B-spline curve before knot insertion and the d 1 i is the i-th control point of the B-spline after knot insertion. The new knot set differs from the original one in having an additional knot inserted somewhere in the interval [u k, u n+1 ]. If a knot û is to be inserted to the knot set coinciding with the knot u p+1 say, which already has multiplicity s, and the new knot set is denoted as { ui i p u 1 i = û = u p+1 i = p + 1, u i 1 i p + 2 then the number of control point increases from n to n + 1, the knot set number increasing from n + k to n + k + 1. Since B-splines have a local modification property, only some of the control points will change. These new control points are obtained by linear interpolation of the previous control points according to the formula: d 1 i = α 1 i d i + (1 α 1 i )d i 1 where α 1 i = (û u1 i )/(u1 i+k u1 i ) = (û u i)/(u i+k 1 u i ) and i = p k + s + 2, p k + s + 3,..., p. More details of this algorithm can be found in [8]. By repeating the knot insertion algorithm many times the number of control points can be made to increase as required. The knot insertion algorithm allows the user to add additional control points, i.e. design variables in the optimization, to the B-spline curve without changing the geometry. Therefore, it is possible for the user to start the optimization iteration with a small number of control points, ending with a large number of design variable to describe the geometry. The purpose in using the knot insertion algorithm is to decrease the number of optimization iterations whilst obtaining a better value for the objective function. 3 Application to a Poisson s problem We take the Poisson equation, 2 Φ = 1.0 in Ω with the boundary condition Φ = 0 on Ω and find the optimum shape maximising the maximum value in the domain (Ω): max max Φ, Ω Ω subject to a geometric constraint, which is taken here to be the area of the domain, A(Ω) is a constant. After reorganizing, the objective function can be chosen as: F = max Φ Ω Two cubic B-spline curves with nominal uniform knot sets are chosen to parameterize the geometry. After reorganization, the area of the whole domain is given as: A(Ω) = (y i u i+4 u i 4 ) m u j+4 u j (y j ) 4 j=1 where y i, y j are the control points in the upper curve, and lower curve respectively, n, m are the number of control points in the upper curve, and lower curve respectively, and u i are the knots.

The gradient used in the optimization is computed using the finite difference method with the superreduced method, given by the following equations: F F (y 1, y 2,..., y i 1, y i + ɛ, y i+1,..., y n + δ) y i ɛ F (y 1, y 2, y 3,..., y n ) i = 1, 2,..., n 1 ɛ F = 0 y n where δ is given by solving the following constraints: A(Ω (y 1, y 2,..., y i 1, y i + ɛ, y i+1,..., y n + δ)) = k and k is a constant. 3.1 Results With the new method, the optimizer starts from the initial shape (see Figure 1), which has about 3300 triangles, and the number of control points for this initial geometry is 22. After 37 optimization iterations it finds the optimum shape (see Figure 2), which has about 13, 000 number of triangles because mesh refinement has been employed. This optimum shape has 40 control points because the knot insertion algorithm has been incorporated. The value of the objective function at the optimum geometry is 0.062333. The software used to solve the Poisson equation is that developed by Becker and Thompson [3]. Figure 2: optimum shape produced with the new method The BFGS method used in the paper has been added the following enhancements: super-reduction, the geometry model, an algorithm to deal with self-intersection, and mesh refinement in order to deal with the constrained shape optimization problem. When the BFGS method is used, we starts from the same initial shape and with the same mesh. The optimizer takes 44 iterations to find the optimum shape. In terms of number of iterations, the new methods decreases the iteration counts by about 20%. The performance comparison of these two methods are shown in Figure 3. Figure 3: Convergence performance comparison with BFGS method In the above graph, in iteration 7, the value of the objective function actually increases instead of decreasing because the shape is going to self-intersect, and the algorithm produces replacement. We discuss the algorithm to deal with self-intersecting shapes in [18]. Figure 1: Initial shape The discretization error has also been investigated.

Below is a table that reflects the influence of discretization error on the PDE solution: number of nodes error in solution rate 814 0.0002161 3169 5.318e-05 4.06 Table 1: Discretization error analysis for the solution of Poisson s equation The above table shows that when the number of triangles is increased to about 4 times, then the discretization error will decrease to about 1/4, in agreement with theory. 4 Application for airfoil design The purpose of this application is to find optimum shapes to minimize the drag of transonic airfoils while keeping the lift coefficient constant and keeping the maximum thickness of the airfoil constant. In this application, we follow Zhong and Qiao s work [20] using the B-spline method to parameterize the geometry. The shape modifications are parameterized by cubic B-splines with a nominal uniform knot set. The geometry of the airfoil is given by the following equation. Y (Γ) = Y (Γ ini ) + P i N i (X), where Y (Γ), Y (Γ ini ),represent the y coordinate of the design geometry and initial geometry respectively, P i are the control points of the B-spline, and N i (X) are the B-spline basis functions. The transonic airfoil analysis code used in this paper is the NPUFOIL program, see [20]. The program is based on a combination of the full potential equation solver and the boundary layer flow analysis. The flow and the aerodynamic characteristics are computed via viscous/inviscid iteration. In this design case, the symmetric airfoil NACA0012 is chosen as the initial geometry. The lift coefficient C L = 0.5, Mach number M a = 0.77, and the Reynolds number Re = 6.5 10 6 are kept unchanged. For comparison, both the new method and the EXTREM [15] method are used in this design case. For the new method, the geometry is first parameterized by 5 free control points, and finally it reaches the optimum solution which has 9 free control points and the drag is reduced from 0.0182 to 0.0070. The optimum solution of the control point is: P 1 = 0.571028 P 2 = 0.70975 P 3 = 0.41511 P 4 = 0.13373 P 5 = 0.78084 P 6 = 1.3277 P 7 = 0.98959 P 8 = 0.56642 P 9 = 0.13606 The drag coefficient has been decreased by 62% (from 0.182 to 0.0070) for both methods, but the EXTREM method uses 408 function calls while the new method uses only 233. The CPU time per function call for these methods, (CPU/FC) is nearly the same. The performance comparison table for the two methods is given below: Methods Cd iterations FC CPU/FC EXTREM 0.0070 N/A 408 0.22246 New Method 0.0070 20 233 0.22418 Table 2: Performance comparison of the new method and the EXTREM method Fig. 4 shows the comparison of pressure distribution in design case of NACA 0012, and Fig. 5 shows the comparison of the drag coefficient for initial and optimal geometry. Figure 4: Initial and optimal pressure distribution for NACA 0012 Figure 5: The comparison of drag coefficients for initial airfoil and optimal airfoil (NACA 0012)

5 Conclusions In this paper, a new efficient method for shape optimization using B-spline shape functions combined with knot insertion algorithm and the super-reduced method is given. This method has good performance for both mathematical problems and airfoil design applications. In the application to a Poisson s equation problem, the new method uses only 37 iterations while the BFGS method uses 44 iterations. In the airfoil design case, the drag coefficient has been reduced significantly, by about 62% with only 233 function calls, saving about 42% CPU time compared to the EXTREM method. Using this technique researchers will be able to accelerate their optimization as long as B-spline shape functions are used to parameterize the geometry. In the future we will extend the range of application to include 3-dimensional problems. References [1] Anderson, W.K., Venkatakrishnan, V., Aerodynamic design optimisation on unstructured grids with a continuous adjoint formulation, AIAA Report 97-0643, 1997. [2] Anderson, W.K., Nielsen, E.J., Sensitivity analysis for Navier-Stokes equations on unstructured meshes using complex variables, AIAA Journal V39, N1, pp 56-63, 2001. [3] Becker, D., Thompson, C.P., A novel, parallel PDE solver for unstructured grids, 5th International Conference on Large-scale Scientific Computation, 2005. [4] Bischof, C., Carle, A., Gorliss, G., Griewank, A., Hovland,P., ADIFOR, Generating derivative codes from FORTRAN programs, Scientific Programming, V1, N1, pp 11-29,1992. [5] Bischof,C., Roh,L., Mauer-Oats, A.J., ADIC, An extensible automatic differentiation tool ANSI-C, Software Practice and Experience, V27, N12, pp 1427-1456, 1997. [9] Fletcher, R., Practical methods of optimisation second edition, Wiley, 1987 [10] Hicks, R.M., Henne, P.A., Wing design by numerical optimization, AIAA 77-1247, AIAA Aircraft System and Technology Conference, Seattle, Wash., 1977. [11] Hicks, R.M., Vanderplaats, G.N., Application of numerical optimization to the design of supercritical airfoils without drag-creep, SAE paper 770440, 1977. [12] Iollo, A., Kuruvila, G., Ta asan, S., Pseudo-time method for optimal shape design using the Euler equations, ICASE Report No. 93-78, 1993. [13] Jameson, A., Aerodynamic design via control theory, Journal of scientific computing, V3, N3, 1988. [14] Jameson, A., Optimum aerodynamic design using CFD and control theory, AIAA Paper 95-1729, 1995. [15] Jacob, H.G., Rechnergestutzte optimierung statischer and dynamischer system, Springer, Verlag, 1982. [16] Lee, K.D., Eyi, S., Transonic airfoil design by constrained optimisation, AIAA 91-3287, AIAA 9th Applied Aerodynamics Conference, Baltimore, MD, 1991. [17] Lee, K.D., Eyi, S., Transonic airfoil design by constrained optimisation, Journal of aircraft, V30, N6, 1993. [18] Sherar, P.A., Thompson, C.P., Xu, B., Zhong, B., A Novel Shape Optimization Method Using Knot Insertion Argorithm in B-Spline and Its Application to Transonic Airfoil Design, Computer methods in Applied Mechanics and Engineering, [in preparation] 2007. [19] Xie, L., Gradient-based optimum aerodynamic design using adjoint-methods, PhD thesis of Virginia Polytechnic Institute and State University, 2002 [20] Zhong, B., Qiao, Z., Multiobjective optimization design of transonic airfoils, ICAS-94-2.1.1, 1994. [6] Borggaard, J., Burns, J., A sensitivity equation approach to shape optimisation in fluid flows, ICASE Report No.94-8, 1994. [7] Burkardt, J., Gunzburger, M., Sensitivity discrepenancy for geometric parameters, ASME CFD for Design and Optimisation, V232, pp 9-15, 1995. [8] Farin, G.E., Curves and surfaces for CAGD: a practical guide 5th edition, San Diego: Academic Press, 2002.