Computational Methods for Design Lecture 4 – Introduction to Sensitivities John A. Burns C enter for O ptimal D esign A nd C ontrol I nterdisciplinary.

Slides:



Advertisements
Similar presentations
Geometric Integration of Differential Equations 2. Adaptivity, scaling and PDEs Chris Budd.
Advertisements

Technique of nondimensionalization Aim: –To remove physical dimensions –To reduce the number of parameters –To balance or distinguish different terms in.
A Discrete Adjoint-Based Approach for Optimization Problems on 3D Unstructured Meshes Dimitri J. Mavriplis Department of Mechanical Engineering University.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2014 – 35148: Continuous Solution for Boundary Value Problems.
Slide 4b.1 Stiff Structures, Compliant Mechanisms, and MEMS: A short course offered at IISc, Bangalore, India. Aug.-Sep., G. K. Ananthasuresh Lecture.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Announcements Topics: Work On:
Dr. Jie Zou PHY Chapter 7 Numerical Differentiation: 1 Lecture (I) 1 Ref: “Applied Numerical Methods with MATLAB for Engineers and Scientists”, Steven.
Differential Equations
MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY IMSP, UPLB.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Chapter 1: First-Order Differential Equations 1. Sec 1.1: Differential Equations and Mathematical Models Definition: Differential Equation An equation.
CHAPTER 8 APPROXIMATE SOLUTIONS THE INTEGRAL METHOD
The Finite Difference Method This section presents a quick overview bout the finite difference method. This method can be used to solve any partial differential.
Scientific Computing Partial Differential Equations Explicit Solution of Wave Equation.
Computational Methods for Design Lecture 3 – Elementary Differential Equations John A. Burns C enter for O ptimal D esign A nd C ontrol I nterdisciplinary.
Time integration methods for the Heat Equation Solution u for t= Tobias Köppl TUM.
Scientific Computing Partial Differential Equations Introduction and
Computational Methods for Design Lecture 2 – Some “ Simple ” Applications John A. Burns C enter for O ptimal D esign A nd C ontrol I nterdisciplinary C.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Math 3120 Differential Equations with Boundary Value Problems Chapter 4: Higher-Order Differential Equations Section 4-9: Solving Systems of Linear Differential.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Deterministic vs. Random Maximum A Posteriori Maximum Likelihood Minimum.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Math 3120 Differential Equations with Boundary Value Problems
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 31.
Integration of 3-body encounter. Figure taken from
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
Discontinuous Galerkin Methods Li, Yang FerienAkademie 2008.
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
Akram Bitar and Larry Manevitz Department of Computer Science
Texas A&M University, Department of Aerospace Engineering AN EMBEDDED FUNCTION TOOL FOR MODELING AND SIMULATING ESTIMATION PROBLEMS IN AEROSPACE ENGINEERING.
Circuits Theory Examples Newton-Raphson Method. Formula for one-dimensional case: Series of successive solutions: If the iteration process is converged,
MECH4450 Introduction to Finite Element Methods Chapter 9 Advanced Topics II - Nonlinear Problems Error and Convergence.
Numerical Analysis – Differential Equation
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Numerical methods 1 An Introduction to Numerical Methods For Weather Prediction by Mariano Hortal office 122.
Only One Word for Review Review Engineering Differential Equations The Second Test.
Chapter 5 Laplace Transform
Dr. Mujahed AlDhaifallah ( Term 342)
ESO 208A/ESO 218 COMPUTATIONAL METHODS IN ENGINEERING.
MECH593 Introduction to Finite Element Methods
Amir Yavariabdi Introduction to the Calculus of Variations and Optical Flow.
Announcements Topics: -sections 6.4 (l’Hopital’s rule), 7.1 (differential equations), and 7.2 (antiderivatives) * Read these sections and study solved.
Ordinary Differential Equations (ODEs). Objectives of Topic  Solve Ordinary Differential Equations (ODEs).  Appreciate the importance of numerical methods.
Differential Equations
MA2213 Lecture 10 ODE. Topics Importance p Introduction to the theory p Numerical methods Forward Euler p. 383 Richardson’s extrapolation.
Solving Ordinary Differential Equations
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
S5.40. Module Structure 30% practical tests / 70% written exam 3h lectures / week (except reading week) 3 x 2h of computer labs (solving problems practicing.
EEE 431 Computational Methods in Electrodynamics
DIFFERENTIAL EQUATIONS
Boundary Element Analysis of Systems Using Interval Methods
Scientific Computing Lab
525602:Advanced Numerical Methods for ME
Class Notes 18: Numerical Methods (1/2)
Ch 1.3: Classification of Differential Equations
Ch 1.3: Classification of Differential Equations
CSE 245: Computer Aided Circuit Simulation and Verification
Differential Equations
MATH 175: Numerical Analysis II
Ph.D. Thesis Numerical Solution of PDEs and Their Object-oriented Parallel Implementations Xing Cai October 26, 1998.
Some iterative methods free from second derivatives for nonlinear equation Muhammad Aslam Noor Dept. of Mathematics, COMSATS Institute of Information Technology,
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
Akram Bitar and Larry Manevitz Department of Computer Science
Presentation transcript:

Computational Methods for Design Lecture 4 – Introduction to Sensitivities John A. Burns C enter for O ptimal D esign A nd C ontrol I nterdisciplinary C enter for A pplied M athematics Virginia Polytechnic Institute and State University Blacksburg, Virginia A Short Course in Applied Mathematics 2 February 2004 – 7 February 2004 N∞M∞T Series Two Course Canisius College, Buffalo, NY

A Falling Object “Newton’s Second Law”. y(t) { { AIR RESISTANCE

System of Differential Equations

Parameters IN REAL PROBLEMS THERE ARE PARAMETERS SOLUTIONS DEPEND ON THESE PARAMETERS WE WILL BE INTERESTED IN COMPUTING SENSITIVITIES WITH RESPECT TO THESE PARAMETERS

Examples: n=m=1 CONTINUOUS EVERYWHERE UNIQUE SOLUTION CONTINUOUS WHEN UNIQUE SOLUTION

Logistics Equation

Computing Sensitivities HOW DO WE COMPUTE THE SENSITIVITIES …

SEM Example 1 DIFFERENTIATE

SEM Example 1

SEM Method SOLVE THE SYSTEM (DE) – (SE) (DE) (SE) 1.WHY DO IT THIS WAY ? 2.WE DERIVED (SE) BY USING THE KNOWN SOLUTION … HOW DO WE FIND (SE) IN GENERAL? 3.HOW GENERAL IS THIS PROCESS?

Derivation of SEN Eq DIFFERENTIATE THE EQUATION WITH RESPECT TO q INTERCHANGE THE ORDER OF DIFFERENTIATION

Derivation of SEN Eq (DE) (SE)

SEM Method (DE) (SE)

Explicit Euler for SEQs t0t0 (x 0,s 0 ) R2R2

Explicit Euler for SEQs

SOLVE BOTH DE AND SE TOGETHER HOW DOES IT WORK?

MATLAB Code for SEM Set q Set x 0 and s 0 Set h Time interval Set ICs Explicit Euler

DE Solution x(t)

SE Solution s(t)

Special Structure of SE’s (DE) (SE) (DE) (SE) FIRST: SOLVE (DE) SECOND: SOLVE (SE)

Logistics Equation

SEQ for the Logistics Equation DIFFERENTIATE THE EQUATION WITH RESPECT TO q 1

SEQ for the Logistics Equation

INTERCHANGE THE ORDER OF DIFFERENTIATION

SEQ for the Logistics Equation

NEED SENSITIVITY WITH RESPECT TO q 2

SEQ for the Logistics Equation 2 DIFFERENTIATE THE EQUATION WITH RESPECT TO q 2

SEQ for the Logistics Equation 2

INTERCHANGE THE ORDER OF DIFFERENTIATION

SEQ for the Logistics Equation 2

SEQ’s for the Logistics Equation FROM THE FIRST PARTIAL THE LOGISTICS EQUATION

SEQ’s for the Logistics Equation FIRST: SOLVE (DE) SECOND: SOLVE (SEs)

Model Problem #1 q q q SENSITIVITY The sensitivity equation for s(x, q ) =  q w(x, q ) in the “ physical ” domain  ( q ) = (0, q ) is given by Can be made “ rigorous ” by the method of mappings. MORE ABOUT THIS NEAR THE END q q q  q,q, q q q

Typical Cost Function WHERE w( x, q ) USUALLY SATISFIES A DIFFERENTIAL EQUATION AND q IS A PARAMETER (OR VECTOR OF PARAMETERS) q q q q q q q q q q q q q q THE CHAIN RULE PRODUCES OR (Reality) USING NUMERICAL SOLUTIONS hh hh CONTINUOUS SENSITIVITY DISCRETE SENSITIVITY

Computing Gradients (I) BY FINITE DIFFERENCES q q0q0 q0q0 q0q0 q h h h TYPICAL APPROACHES TO COMPUTE q q =q0q =q0 h (II) BY DISCRETE SENSITIVITIES q0q0 q0q0 q0q0 q0q0 q0q0 h h h h

Computing Gradients FINITE DIFFERENCES REQUIRES 2 NON-LINEAR SOLVES IF SHAPE IS A DESIGN VARIABLE, FD REQUIRES 2 MESH GENERATIONS DISCRETE SENSITIVITIES REQUIRES THE EXISTENCE OF THE DISCRETE SENSITIVITY IF SHAPE IS A DESIGN VARIABLE, THE DISCRETE SENSITIVITY LEADS TO MESH DERIVATIVES COMPUTATIONS WHAT IS THE “ CONTINUOUS / HYBRID ” SENSITIVITY EQUATION METHOD? --- SEM q0q0 q0q0 q0q0 h h h, k APPROXIMATE

A Sensitivity Equation Method FOR q > 1 AND h=q / (N+1) CONSIDER (FORMAL ) h h h h h NUMERICAL APPROXIMATION x=0 x=1 x=q x w(x) w h (x) = Finite Element Approximation q q,q,  DISCRETE STATE EQUATION

A Sensitivity Equation Method h h h h h h h q q,q,  q q  q,q, q h  IMPORTANT OBSERVATIONS l The sensitivity equations are linear The sensitivity equation “ solver ” can be constructed independently of the forward solver -- SENSE™ When done correctly “ mesh gradients ” are not required

A Sensitivity Equation Method FOR q > 1 AND k = q / (M+1) CONSIDER (FORMAL) 2 nd NUMERICAL APPROXIMATION x=0 x=1 x=q x s(x)=  q w(x,q) s h,k (x) = Finite Element Approximation of  h h,k q q  q,q, q q q h h h

Convergence Issues q q q h h h q k h,k THEOREM. The finite element scheme is asymptotically consistent. qq h h h k k a trust region method should (might?) converge. qq h h k When the erroris small, then IDEA: J. T. Borggaard and J. A. Burns, “ A PDE Sensitivity Equation Method for Optimal Aerodynamic Design ”, Journal of Computational Physics, Vol.136 (1997), R. G. Carter, “ On the Global Convergence of Trust-Region Algorithms Using Inexact Gradient Information ”, SIAM J. Num. Anal., Vol 28 (1991), J. T. Borggaard, “ The Sensitivity Equation Method for Optimal Design ”, Ph.D. Thesis, Virginia Tech, Blacksburg, VA, 1995.

Convergence Issues N=16, M=32

Convergence Issues qq h hh THE CASE k = h is often used, but may not be “ good enough ” NOT CONVERGENT

Timing Issues THE CASE k = 2h offers flexibility and qq h h 2h2h convergence. But, what about timings? Approximately 96.6% of cpu time spent in function evaluations Approximately 02.4% of cpu time spent in gradient evaluations

Mathematics Impacts “ Practically ” UNDERSTANDING THE PROPER MATHEMATICAL FRAMEWORK CAN BE EXPLOITED TO PRODUCE BETTER SCIENTIFIC COMPUTING TOOLS  A REAL JET ENGINE WITH 20 DESIGN VARIABLES l PREVIOUS ENGINEERING DESIGN METHODOLOGY REQUIRED 8400 CPU HRS ~ 1 YEAR l USING A HYBRID SEM DEVELOPED AT VA TECH AS IMPLEMENTED BY AEROSOFT IN SENSE™ REDUCED THE DESIGN CYCLE TIME FROM CPU HRS ~ 1 YEAR TO 480 CPU HRS ~ 3 WEEKS NEW MATHEMATICS WAS THE ENABLING TECHNOLOGY

Special Structure of SE’s (DE) (SE) (DE) (SE) FIRST: SOLVE (DE) SECOND: SOLVE (SE)

END