Adjoint code development and optimization using automatic differentiation (AD)

Size: px
Start display at page:

Download "Adjoint code development and optimization using automatic differentiation (AD)"

Transcription

1 Adjoint code development and optimization using automatic differentiation (AD) Praveen. C Computational and Theoretical Fluid Dynamics Division National Aerospace Laboratories Bangalore CTFD Seminar, March 31, 2006 Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 1 / 56

2 Outline 1 Mathematical formulation 2 Computing gradients 3 Quasi 1-D flow 4 Gradient smoothing 5 Quasi 1-D optimization: Pressure matching 6 2-D adjoint Euler solver 7 Future work Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 2 / 56

3 Outline 1 Mathematical formulation 2 Computing gradients 3 Quasi 1-D flow 4 Gradient smoothing 5 Quasi 1-D optimization: Pressure matching 6 2-D adjoint Euler solver 7 Future work Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 3 / 56

4 Mathematical formulation Constrained minimization problem Find δα such that δj < 0 min α J(α, u) subject to R(α, u) = 0 δj = J J δα + α u δu = J J u δα + α u α δα = Gδα Steepest descent δα = ɛg δj = ɛgg = ɛ G 2 < 0 Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 4 / 56

5 Mathematical formulation Constrained minimization problem min α J(α, u) subject to R(α, u) = 0 Find δα such that δj < 0 δj = J J δα + α u δu = J J u δα + α u α δα = Gδα Steepest descent δα = ɛg δj = ɛgg = ɛ G 2 < 0 Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 5 / 56

6 Sensitivity approach Linearized state equation or R R δα + α u δu = 0 R u u α = R α Solve sensitivity equation iteratively u t α + R u u α = R α Same eigenvalues as original system Costly if number of α are large Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 6 / 56

7 Adjoint approach We have δj = J J R R δα + δu and δα + α u α u δu = 0 Introduce a new unknown v δj = J ( ) J R δα + α u δu + v R δα + α u δu = Adjoint equation Iterative solution ( J α + v R α ) δα + ( ) R ( ) J v = u u v t + ( ) R v = u ( J u + v R u ( ) J u ) δu Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 7 / 56

8 Continuous vs Discrete Continuous approach: Start with governing PDE Derive adjoint PDE and boundary conditions Discretize adjoint PDE and solve Must be re-derived whenever cost function changes Not all cost functions admissible Discrete approach: Start with discrete approximation like FVM Derive discrete adjoint equations Solve discrete adjoint equations True sensitivity of discrete solution Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 8 / 56

9 Outline 1 Mathematical formulation 2 Computing gradients 3 Quasi 1-D flow 4 Gradient smoothing 5 Quasi 1-D optimization: Pressure matching 6 2-D adjoint Euler solver 7 Future work Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 9 / 56

10 Techniques for computing gradients Hand differentiation Finite difference method Complex variable method Automatic differentiation Computer code to compute some function Chain rule of differentiation Generates a code to compute derivatives ADIFOR, ADOLC, ODYSEE, TAMC, TAF, TAPENADE Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 10 / 56

11 Differentiation: Example Computer code, f = t 10 t 1 = x A simple example f = (xy + sin x + 4)(3y 2 + 6) t 2 = y t 3 = t 1 t 2 t 4 = sin t 1 t 5 = t 3 + t 4 t 6 = t t 7 = t 2 2 t 8 = 3t 7 t 9 = t t 10 = t 6 t 9 Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 11 / 56

12 Automatic Differentiation: F77 code subroutine costfunc(x, y, f) t1 = x t2 = y t3 = t1*t2 t4 = sin(t1) t5 = t3 + t4 t6 = t5 + 4 t7 = t2**2 t8 = 3.0*t7 t9 = t t10 = t6*t9 f = t10 end Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 12 / 56

13 Differentiation: Direct mode Some definitions I k := {i : i < k and t k depends explicitly on t i } ṫ i := t i α, Apply chain rule of differentiation t i,k := t i t k α = x, or y ṫ k = t k α = i I k t i t k = ṫ i t k,i k = 1, 2,..., 9, 10 α t i i I k Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 13 / 56

14 Differentiation: Direct mode Apply chain rule of differentiation t 1 = x ṫ 1 = ẋ t 2 = y ṫ 2 = ẏ t 3 = t 1 t 2 ṫ 3 = ṫ 1 t 2 + t 1 ṫ 2 t 4 = sin(t 1 ) ṫ 4 = cos(t 1 )ṫ 1 t 5 = t 3 + t 4 ṫ 5 = ṫ 3 + ṫ 4 t 6 = t ṫ 6 = ṫ 5 t 7 = t2 2 ṫ 7 = t 8 = 3t 7 ṫ 8 = 2t 2 ṫ 2 3ṫ 7 t 9 = t ṫ 9 = ṫ 8 t 10 = t 6 t 9 ṫ 10 = ṫ 6 t 9 + t 6 ṫ 9 ẋ = 1, ẏ = 0, ṫ 10 = f x and ẋ = 0, ẏ = 1, ṫ 10 = f y tapenade -d -vars "x y" -outvars f costfunc.f Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 14 / 56

15 Automatic Differentiation: Direct mode SUBROUTINE COSTFUNC_D(x, xd, y, yd, f, fd) t1d = xd t1 = x t2d = yd t2 = y t3d = t1d*t2 + t1*t2d t3 = t1*t2 t4d = t1d*cos(t1) t4 = SIN(t1) t5d = t3d + t4d t5 = t3 + t4 t6d = t5d t6 = t5 + 4 t7d = 2*t2*t2d t7 = t2**2 t8d = 3.0*t7d t8 = 3.0*t7 t9d = t8d t9 = t t10d = t6d*t9 + t6*t9d t10 = t6*t9 fd = t10d f = t10 END Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 15 / 56

16 Differentiation: Reverse mode Some definitions J k := {i : i > k and t i depends explicitly on t k } t i := f t i = t 10 t i, t i,k := t i t k Apply chain rule of differentiation in reverse t k = t 10 = t 10 t i = t i t i,k k = 10, 9,..., 2, 1 t k t i t k i J k i J k Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 16 / 56

17 Differentiation: Reverse mode Apply chain rule of differentiation in reverse t 1 = x t 10 = 1 t 2 = y t 9 = t 10 t 10,9 = t 6 t 3 = t 1 t 2 t 8 = t 9 t 9,8 = t 6 t 4 = sin(t 1 ) t 7 = t 8 t 8,7 = 3t 6 t 5 = t 3 + t 4 t 6 = t 10 t 10,6 = t 9 t 6 = t t 5 = t 6 t 6,5 = t 9 t 7 = t2 2 t 4 = t 5 t 5,4 = t 9 t 8 = 3t 7 t 3 = t 5 t 5,3 = t 9 t 9 = t t 2 = t 7 t 7,2 + t 3 t 3,2 = 6t 2 t 6 + t 1 t 9 t 10 = t 6 t 9 t 1 = t 4 t 4,1 + t 3 t 3,1 = t 9 cos(t 1 ) + t 9 t 2 t 1 = f x, t 2 = f y tapenade -b -vars "x y" -outvars f costfunc.f Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 17 / 56

18 Automatic Differentiation: Reverse mode SUBROUTINE COSTFUNC_B(x, xb, y, yb, f, fb) t1 = x t2 = y t3 = t1*t2 t4 = SIN(t1) t5 = t3 + t4 t6 = t5 + 4 t7 = t2**2 t8 = 3.0*t7 t9 = t t10b = fb t6b = t9*t10b t9b = t6*t10b t8b = t9b t7b = 3.0*t8b t5b = t6b t3b = t5b t2b = t1*t3b + 2*t2*t7b t4b = t5b t1b = t2*t3b + COS(t1)*t4b yb = t2b xb = t1b fb = 0.0 END Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 18 / 56

19 Direct versus reverse AD Direct mode: cost is proportional to number of independent variables Reverse mode: cost does not depend on the number of independent variables Reverse mode preferred when number of independent variables is large Scalar output f Direct mode gives f s for given vector s Reverse mode gives f Vector output R R n Direct mode gives R s for given vector s Reverse mode gives ( R) s Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 19 / 56

20 Issues in reverse AD Intermediate variables required in reverse order Some variables may be over-written Iterative solvers Only final solution required AD differentiates the iterative loop Intermediate solutions stored in stack Huge memory requirements Not practical for large problems Piecemeal differentiation approach (Courty et al., Giles et al.): Modular flow solver Adjoint solver written manually AD for differentiating the modules Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 20 / 56

21 Outline 1 Mathematical formulation 2 Computing gradients 3 Quasi 1-D flow 4 Gradient smoothing 5 Quasi 1-D optimization: Pressure matching 6 2-D adjoint Euler solver 7 Future work Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 21 / 56

22 Discrete 1-D adjoint equations Finite volume residual for i th cell Numerical flux function Perturbation equation δr i = R i := F i+1/2 F i 1/2 = 0 F = F (X, Y ), F i+1/2 = F (U i, U i+1 ) X F i+1/2δu i + Y F i+1/2δu i+1 X F i 1/2δU i 1 Y F i 1/2δU i + R i α δα = 0 Introduce adjoint variable V i for i th cell δj = J α δα + i J U i δu i + i Vi δr i Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 22 / 56

23 Discrete adjoint equations Collecting terms containing δu i δj = i [ J U i + V i 1 ( + Vi Vi+1 Y F i 1/2 X F i+1/2 ) Y F i 1/2 ] X F i+1/2 δu i +... Adjoint equation for i th cell ( ) J ( ) + U i Y F i 1/2 V i 1 + ( X F i+1/2 ) Y F i 1/2 V i ( ) X F i+1/2 V i+1 = 0 Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 23 / 56

24 Example flow solver While u is not converged res = 0.0 fluxinflow(u(1), res(1)) do i=1,n-1 fluxinterior(u(i), u(i+1), res(i), res(i+1)) enddo fluxoutflow(u(n), res(n)) do i=1,n u(i) = u(i) (dt/dx)*res(i) enddo endwhile cost=0.0 do i=1,n costfunc(u(i), cost) enddo Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 24 / 56

25 Example adjoint solver costb=1.0 do i=1,n costfunc_b(u(i), ub1(i), cost, costb) enddo v=0.0 While v is not converged ub2 = 0.0 fluxinflow_b(u(1), ub2(1), res(1), v(1)) do i=1,n-1 fluxinterior_b(u(i), ub2(i), u(i+1), ub2(i+1), res(i), v(i), res(i+1), v(i+1)) enddo fluxoutflow_b(u(n), ub2(n), res(n), v(n)) do i=1,n v(i) = v(i) (dt/dx)*(ub1(i) + ub2(i)) enddo endwhile Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 25 / 56

26 Quasi 1-D flow Quasi 1-D flow in a duct t (hu) + dh (hf ) = P, x dx x (a, b) t > 0 ρ ρu 0 U = ρu E, f = p + ρu 2 (E + p)u, P = p 0 h(x) = cross-section height of duct Inverse design: find shape h to get pressure distribution p Optimization problem: find the shape h which minimizes J = b a (p p ) 2 dx Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 26 / 56

27 Quasi 1-D flow Finite volume scheme h i du i dt + h i+1/2f i+1/2 h i 1/2 F i 1/2 x Discrete cost function = (h i+1/2 h i 1/2 ) P i x J = N (p i pi )2 i=1 Control variables N = 100 h 1/2, h 1+1/2,..., h i+1/2,..., h N+1/2 Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 27 / 56

28 Duct shape Duct shape Target shape Current shape 1.6 h x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 28 / 56

29 Target pressure distribution p 2.5 Target pressure AUSMDV KFVS LF 2 Pressure x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 29 / 56

30 Current pressure distribution 2.5 Starting pressure AUSMDV KFVS LF 2 Pressure x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 30 / 56

31 Adjoint density 5 0 AUSMDV KFVS LF 5 Adjoint density x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 31 / 56

32 Convergence history: Explicit Euler 0 1 Convergence history with AUSMDV flux Flow Adjoint Residue No of iterations Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 32 / 56

33 Shape gradient Gradient AUSMDV KFVS LF 25 Gradient x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 33 / 56

34 Shape gradient Gradient Gradient AUSMDV KFVS LF x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 34 / 56

35 Validation of Shape gradient 35 Gradient with AUSMDV flux B Gradient A C x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 35 / 56

36 Validation of shape gradient J J(h + h) J(h h) h 2 h h A B C AD Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 36 / 56

37 Outline 1 Mathematical formulation 2 Computing gradients 3 Quasi 1-D flow 4 Gradient smoothing 5 Quasi 1-D optimization: Pressure matching 6 2-D adjoint Euler solver 7 Future work Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 37 / 56

38 Gradient smoothing Non-smooth gradients especially in the presence of shocks Smooth using an elliptic equation ( 1 ɛ i d 2 dx 2 ) ḡ i = g i L i = ɛ i = { g i+1 g i + g i g i 1 }L i g i+1 2g i + g i 1 max( g i+1 g i + g i g i 1, TOL) Finite difference with Jacobi iterations Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 38 / 56

39 Gradient smoothing Gradient using AUSMDV flux Original gradient Smoothed gradient 25 Gradient x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 39 / 56

40 Outline 1 Mathematical formulation 2 Computing gradients 3 Quasi 1-D flow 4 Gradient smoothing 5 Quasi 1-D optimization: Pressure matching 6 2-D adjoint Euler solver 7 Future work Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 40 / 56

41 Quasi 1-D optimization: Shape Target Initial h x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 41 / 56

42 Quasi 1-D optimization: Final shape h Target Initial Final x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 42 / 56

43 Quasi 1-D optimization: Pressure Pressure 1.5 Target Initial Final x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 43 / 56

44 Quasi 1-D optimization: Convergence 10 0 Cost Gradient Cost/Gradient No. of iterations Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 44 / 56

45 Quasi 1-D optimization: Adjoint density 0 5 Adjoint density Initial Final x Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 45 / 56

46 Outline 1 Mathematical formulation 2 Computing gradients 3 Quasi 1-D flow 4 Gradient smoothing 5 Quasi 1-D optimization: Pressure matching 6 2-D adjoint Euler solver 7 Future work Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 46 / 56

47 2-D finite volume flow solver Unstructured triangular grid Vertex-centroid scheme (Frink, Jameson) Vertex values obtained using inverse-distance averaging with correction for linear consistency p i u p = w i i r i u i w i i r i L R Convergence acceleration using matrix-free LUSGS with spectral radius approximation Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 47 / 56

48 2-D finite volume adjoint solver Vertex averaging including weights are differentiated For transonic flow limiter is also differentiated Adjoint solver requires 38% more memory compared to flow solver Time per adjoint iteration = Twice the time per flow solver iteration Convergence acceleration using LUSGS with spectral-radius approximation Automated using Makefile Adjoint validation for J(α) = C l Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 48 / 56

49 Grid for NACA-0012: Number of vertices = 6560 Number of triangles = Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 49 / 56

50 Validation of adjoints: Lift-curve slope, subsonic flow C l Angle of attack in degrees Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 50 / 56

51 Validation of adjoints: Lift-curve slope, transonic flow C l Angle of attack in degrees Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 51 / 56

52 Lift-curve slope: C lα AOA M = 0.4 M = 0.8 C lα C lα /Cl th α C lα C lα /Cl th α Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 52 / 56

53 Convergence history: α = 3 o M = 0.4 M = Flow Adjoint 10 Flow Adjoint Residue Residue e-04 1e-04 1e-05 1e-05 1e-06 1e-06 1e e No. of iterations No. of iterations Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 53 / 56

54 Adjoint density for lift coefficient: α = 3 o M = 0.4 M = 0.8 Adjoint_Density, min = , max = Adjoint_Density, min = , max = Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 54 / 56

55 Outline 1 Mathematical formulation 2 Computing gradients 3 Quasi 1-D flow 4 Gradient smoothing 5 Quasi 1-D optimization: Pressure matching 6 2-D adjoint Euler solver 7 Future work Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 55 / 56

56 Future work How to deform the grid? How to account for grid perturbation? Smoothing of gradients in 2-D Application to 2-D optimization problems Extension to viscous flows Grid adaptation Praveen. C (CTFD, NAL) Adjoints and optimization CTFD Seminar 56 / 56

Adjoint approach to optimization

Adjoint approach to optimization Adjoint approach to optimization Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore 560065 http://math.tifrbng.res.in Health, Safety

More information

Airfoil shape optimization using adjoint method and automatic differentiation

Airfoil shape optimization using adjoint method and automatic differentiation Airfoil shape optimization using adjoint method and automatic differentiation Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore 5665

More information

Finite Volume Method

Finite Volume Method Finite Volume Method An Introduction Praveen. C CTFD Division National Aerospace Laboratories Bangalore 560 037 email: praveen@cfdlab.net April 7, 2006 Praveen. C (CTFD, NAL) FVM CMMACS 1 / 65 Outline

More information

Efficient Hessian Calculation using Automatic Differentiation

Efficient Hessian Calculation using Automatic Differentiation 25th AIAA Applied Aerodynamics Conference, 25-28 June 2007, Miami Efficient Hessian Calculation using Automatic Differentiation Devendra P. Ghate and Michael B. Giles Oxford University Computing Laboratory,

More information

Numerical Solution of Partial Differential Equations governing compressible flows

Numerical Solution of Partial Differential Equations governing compressible flows Numerical Solution of Partial Differential Equations governing compressible flows Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore

More information

Is My CFD Mesh Adequate? A Quantitative Answer

Is My CFD Mesh Adequate? A Quantitative Answer Is My CFD Mesh Adequate? A Quantitative Answer Krzysztof J. Fidkowski Gas Dynamics Research Colloqium Aerospace Engineering Department University of Michigan January 26, 2011 K.J. Fidkowski (UM) GDRC 2011

More information

Finite volume method on unstructured grids

Finite volume method on unstructured grids Finite volume method on unstructured grids Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore 560065 http://math.tifrbng.res.in/~praveen

More information

PDE Solvers for Fluid Flow

PDE Solvers for Fluid Flow PDE Solvers for Fluid Flow issues and algorithms for the Streaming Supercomputer Eran Guendelman February 5, 2002 Topics Equations for incompressible fluid flow 3 model PDEs: Hyperbolic, Elliptic, Parabolic

More information

An Investigation of the Attainable Efficiency of Flight at Mach One or Just Beyond

An Investigation of the Attainable Efficiency of Flight at Mach One or Just Beyond An Investigation of the Attainable Efficiency of Flight at Mach One or Just Beyond Antony Jameson Department of Aeronautics and Astronautics AIAA Aerospace Sciences Meeting, Reno, NV AIAA Paper 2007-0037

More information

Automatic Differentiation for Optimum Design, Applied to Sonic Boom Reduction

Automatic Differentiation for Optimum Design, Applied to Sonic Boom Reduction Automatic Differentiation for Optimum Design, Applied to Sonic Boom Reduction Laurent Hascoët, Mariano Vázquez, Alain Dervieux Laurent.Hascoet@sophia.inria.fr Tropics Project, INRIA Sophia-Antipolis AD

More information

Applications of adjoint based shape optimization to the design of low drag airplane wings, including wings to support natural laminar flow

Applications of adjoint based shape optimization to the design of low drag airplane wings, including wings to support natural laminar flow Applications of adjoint based shape optimization to the design of low drag airplane wings, including wings to support natural laminar flow Antony Jameson and Kui Ou Aeronautics & Astronautics Department,

More information

DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement

DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement HONOM 2011 in Trento DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement Institute of Aerodynamics and Flow Technology DLR Braunschweig 11. April 2011 1 / 35 Research

More information

A Study of Transonic Flow and Airfoils. Presented by: Huiliang Lui 30 th April 2007

A Study of Transonic Flow and Airfoils. Presented by: Huiliang Lui 30 th April 2007 A Study of Transonic Flow and Airfoils Presented by: Huiliang Lui 3 th April 7 Contents Background Aims Theory Conservation Laws Irrotational Flow Self-Similarity Characteristics Numerical Modeling Conclusion

More information

Entropy stable schemes for compressible flows on unstructured meshes

Entropy stable schemes for compressible flows on unstructured meshes Entropy stable schemes for compressible flows on unstructured meshes Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore deep@math.tifrbng.res.in http://math.tifrbng.res.in/

More information

Derivatives for Time-Spectral Computational Fluid Dynamics using an Automatic Differentiation Adjoint

Derivatives for Time-Spectral Computational Fluid Dynamics using an Automatic Differentiation Adjoint Derivatives for Time-Spectral Computational Fluid Dynamics using an Automatic Differentiation Adjoint Charles A. Mader University of Toronto Institute for Aerospace Studies Toronto, Ontario, Canada Joaquim

More information

Continuous adjoint based error estimation and r-refinement for the active-flux method

Continuous adjoint based error estimation and r-refinement for the active-flux method Continuous adjoint based error estimation and r-refinement for the active-flux method Kaihua Ding, Krzysztof J. Fidkowski and Philip L. Roe Department of Aerospace Engineering, University of Michigan,

More information

An Introduction to the Discontinuous Galerkin Method

An Introduction to the Discontinuous Galerkin Method An Introduction to the Discontinuous Galerkin Method Krzysztof J. Fidkowski Aerospace Computational Design Lab Massachusetts Institute of Technology March 16, 2005 Computational Prototyping Group Seminar

More information

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs Chapter Two: Numerical Methods for Elliptic PDEs Finite Difference Methods for Elliptic PDEs.. Finite difference scheme. We consider a simple example u := subject to Dirichlet boundary conditions ( ) u

More information

DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement

DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement 16th International Conference on Finite Elements in Flow Problems DG Methods for Aerodynamic Flows: Higher Order, Error Estimation and Adaptive Mesh Refinement Institute of Aerodynamics and Flow Technology

More information

Module III: Partial differential equations and optimization

Module III: Partial differential equations and optimization Module III: Partial differential equations and optimization Martin Berggren Department of Information Technology Uppsala University Optimization for differential equations Content Martin Berggren (UU)

More information

Discrete and continuous adjoint method for compressible CFD J. Peter ONERA

Discrete and continuous adjoint method for compressible CFD J. Peter ONERA Discrete and continuous adjoint method for compressible CFD J. Peter ONERA J. Peter 1 1 ONERA DMFN October 2, 2014 J. Peter (ONERA DMFN) Adjoint method for compressible CFD October 2, 2014 1 / 60 Outline

More information

Output-Based Error Estimation and Mesh Adaptation in Computational Fluid Dynamics: Overview and Recent Results

Output-Based Error Estimation and Mesh Adaptation in Computational Fluid Dynamics: Overview and Recent Results Output-Based Error Estimation and Mesh Adaptation in Computational Fluid Dynamics: Overview and Recent Results Krzysztof J. Fidkowski University of Michigan David L. Darmofal Massachusetts Institute of

More information

Computation Fluid Dynamics

Computation Fluid Dynamics Computation Fluid Dynamics CFD I Jitesh Gajjar Maths Dept Manchester University Computation Fluid Dynamics p.1/189 Garbage In, Garbage Out We will begin with a discussion of errors. Useful to understand

More information

Challenges and Complexity of Aerodynamic Wing Design

Challenges and Complexity of Aerodynamic Wing Design Chapter 1 Challenges and Complexity of Aerodynamic Wing Design Kasidit Leoviriyakit and Antony Jameson Department of Aeronautics and Astronautics Stanford University, Stanford CA kasidit@stanford.edu and

More information

Hp-Adaptivity on Anisotropic Meshes for Hybridized Discontinuous Galerkin Scheme

Hp-Adaptivity on Anisotropic Meshes for Hybridized Discontinuous Galerkin Scheme Hp-Adaptivity on Anisotropic Meshes for Hybridized Discontinuous Galerkin Scheme Aravind Balan, Michael Woopen and Georg May AICES Graduate School, RWTH Aachen University, Germany 22nd AIAA Computational

More information

Progress in Mesh-Adaptive Discontinuous Galerkin Methods for CFD

Progress in Mesh-Adaptive Discontinuous Galerkin Methods for CFD Progress in Mesh-Adaptive Discontinuous Galerkin Methods for CFD German Aerospace Center Seminar Krzysztof Fidkowski Department of Aerospace Engineering The University of Michigan May 4, 2009 K. Fidkowski

More information

Application of Dual Time Stepping to Fully Implicit Runge Kutta Schemes for Unsteady Flow Calculations

Application of Dual Time Stepping to Fully Implicit Runge Kutta Schemes for Unsteady Flow Calculations Application of Dual Time Stepping to Fully Implicit Runge Kutta Schemes for Unsteady Flow Calculations Antony Jameson Department of Aeronautics and Astronautics, Stanford University, Stanford, CA, 94305

More information

Numerical Optimization Algorithms

Numerical Optimization Algorithms Numerical Optimization Algorithms 1. Overview. Calculus of Variations 3. Linearized Supersonic Flow 4. Steepest Descent 5. Smoothed Steepest Descent Overview 1 Two Main Categories of Optimization Algorithms

More information

Gradient-Based Optimum Aerodynamic Design Using Adjoint Methods

Gradient-Based Optimum Aerodynamic Design Using Adjoint Methods Gradient-Based Optimum Aerodynamic Design Using Adjoint Methods Lei Xie Dissertation submitted to the Faculty of the Virginia Polytechnic Institute and State University in partial fulfillment of the requirements

More information

Simulation of Condensing Compressible Flows

Simulation of Condensing Compressible Flows Simulation of Condensing Compressible Flows Maximilian Wendenburg Outline Physical Aspects Transonic Flows and Experiments Condensation Fundamentals Practical Effects Modeling and Simulation Equations,

More information

An Investigation of the Attainable Efficiency of Flight at Mach One or Just Beyond

An Investigation of the Attainable Efficiency of Flight at Mach One or Just Beyond 45 th Aerospace Sciences Meeting and Exhibit, January 8 11, 2007, Reno, Nevada An Investigation of the Attainable Efficiency of Flight at Mach One or Just Beyond Antony Jameson Department of Aeronautics

More information

The Shallow Water Equations

The Shallow Water Equations If you have not already done so, you are strongly encouraged to read the companion file on the non-divergent barotropic vorticity equation, before proceeding to this shallow water case. We do not repeat

More information

Adjoint-based aerodynamic shape optimization

Adjoint-based aerodynamic shape optimization IT Licentiate theses 2003-012 Adjoint-based aerodynamic shape optimization OLIVIER AMOIGNON UPPSALA UNIVERSITY Department of Information Technology Adjoint-based aerodynamic shape optimization BY OLIVIER

More information

A Stable Spectral Difference Method for Triangles

A Stable Spectral Difference Method for Triangles A Stable Spectral Difference Method for Triangles Aravind Balan 1, Georg May 1, and Joachim Schöberl 2 1 AICES Graduate School, RWTH Aachen, Germany 2 Institute for Analysis and Scientific Computing, Vienna

More information

Aerodynamic Inverse Design and Shape Optimization via Control Theory

Aerodynamic Inverse Design and Shape Optimization via Control Theory Aerodynamic Inverse Design and Shape Optimization via Control Theory 1 1 Thomas V. Jones Professor of Engineering Department of Aeronautics & Astronautics Stanford University SciTech 2015 January 5, 2015

More information

Basic Aspects of Discretization

Basic Aspects of Discretization Basic Aspects of Discretization Solution Methods Singularity Methods Panel method and VLM Simple, very powerful, can be used on PC Nonlinear flow effects were excluded Direct numerical Methods (Field Methods)

More information

Nonlinear Frequency Domain Methods Applied to the Euler and Navier-Stokes Equations p.1/50

Nonlinear Frequency Domain Methods Applied to the Euler and Navier-Stokes Equations p.1/50 Nonlinear Frequency Domain Methods Applied to the Euler and Navier-Stokes Equations Matthew McMullen Advisor: Antony Jameson Co-advisor: Juan Alonso Sponsor: Accelerated Strategic Computing Initiative

More information

minimize x subject to (x 2)(x 4) u,

minimize x subject to (x 2)(x 4) u, Math 6366/6367: Optimization and Variational Methods Sample Preliminary Exam Questions 1. Suppose that f : [, L] R is a C 2 -function with f () on (, L) and that you have explicit formulae for

More information

Kasetsart University Workshop. Multigrid methods: An introduction

Kasetsart University Workshop. Multigrid methods: An introduction Kasetsart University Workshop Multigrid methods: An introduction Dr. Anand Pardhanani Mathematics Department Earlham College Richmond, Indiana USA pardhan@earlham.edu A copy of these slides is available

More information

Review and Unification of Methods for Computing Derivatives of Multidisciplinary Computational Models

Review and Unification of Methods for Computing Derivatives of Multidisciplinary Computational Models his is a preprint of the following article, which is available from http://mdolabenginumichedu J R R A Martins and J Hwang Review and unification of methods for computing derivatives of multidisciplinary

More information

Lecture 11: Arclength and Line Integrals

Lecture 11: Arclength and Line Integrals Lecture 11: Arclength and Line Integrals Rafikul Alam Department of Mathematics IIT Guwahati Parametric curves Definition: A continuous mapping γ : [a, b] R n is called a parametric curve or a parametrized

More information

6. Iterative Methods for Linear Systems. The stepwise approach to the solution...

6. Iterative Methods for Linear Systems. The stepwise approach to the solution... 6 Iterative Methods for Linear Systems The stepwise approach to the solution Miriam Mehl: 6 Iterative Methods for Linear Systems The stepwise approach to the solution, January 18, 2013 1 61 Large Sparse

More information

Méthode de quasi-newton en interaction fluide-structure. J.-F. Gerbeau & M. Vidrascu

Méthode de quasi-newton en interaction fluide-structure. J.-F. Gerbeau & M. Vidrascu Méthode de quasi-newton en interaction fluide-structure J.-F. Gerbeau & M. Vidrascu Motivations médicales Athérosclérose : Sistole Diastole La formation des plaques est liée, entre autre, la dynamique

More information

Tangent linear and adjoint models for variational data assimilation

Tangent linear and adjoint models for variational data assimilation Data Assimilation Training Course, Reading, -4 arch 4 Tangent linear and adjoint models for variational data assimilation Angela Benedetti with contributions from: arta Janisková, Philippe Lopez, Lars

More information

AProofoftheStabilityoftheSpectral Difference Method For All Orders of Accuracy

AProofoftheStabilityoftheSpectral Difference Method For All Orders of Accuracy AProofoftheStabilityoftheSpectral Difference Method For All Orders of Accuracy Antony Jameson 1 1 Thomas V. Jones Professor of Engineering Department of Aeronautics and Astronautics Stanford University

More information

Poisson Equation in 2D

Poisson Equation in 2D A Parallel Strategy Department of Mathematics and Statistics McMaster University March 31, 2010 Outline Introduction 1 Introduction Motivation Discretization Iterative Methods 2 Additive Schwarz Method

More information

Using AD to derive adjoints for large, legacy CFD solvers

Using AD to derive adjoints for large, legacy CFD solvers Using AD to derive adjoints for large, legacy CFD solvers J.-D. Müller Queen Mary, University of London collaborators: D. Jones, F. Christakpoulos, S. Xu, QMUL S. Bayyuk, ESI, Huntsville AL c Jens-Dominik

More information

A hybrid adjoint approach applied to RANS equations

A hybrid adjoint approach applied to RANS equations Center for urbulence Research Annual Research Briefs 2013 303 A hybrid adjoint approach applied to RANS equations By. W. R. aylor, F. Palacios, K. Duraisamy AND J. J. Alonso 1. Motivation and objectives

More information

Numerical Analysis Comprehensive Exam Questions

Numerical Analysis Comprehensive Exam Questions Numerical Analysis Comprehensive Exam Questions 1. Let f(x) = (x α) m g(x) where m is an integer and g(x) C (R), g(α). Write down the Newton s method for finding the root α of f(x), and study the order

More information

Solution Algorithms for Viscous Flow

Solution Algorithms for Viscous Flow Solution Algorithms for Viscous Flow Antony Jameson Department of Aeronautics and Astronautics Stanford University, Stanford CA Indian Institute of Science Bangalore, India September 20, 2004 Flo3xx Computational

More information

Certification of Derivatives Computed by Automatic Differentiation

Certification of Derivatives Computed by Automatic Differentiation Certification of Derivatives Computed by Automatic Differentiation Mauricio Araya Polo & Laurent Hascoët Project TROPCS WSEAS, Cancún, México, May 13, 2005 1 Plan ntroduction (Background) Automatic Differentiation

More information

Application of a Non-Linear Frequency Domain Solver to the Euler and Navier-Stokes Equations

Application of a Non-Linear Frequency Domain Solver to the Euler and Navier-Stokes Equations Application of a Non-Linear Frequency Domain Solver to the Euler and Navier-Stokes Equations Matthew McMullen and Antony Jameson and Juan J. Alonso Dept. of Aeronautics & Astronautics Stanford University

More information

CapSel Roe Roe solver.

CapSel Roe Roe solver. CapSel Roe - 01 Roe solver keppens@rijnh.nl modern high resolution, shock-capturing schemes for Euler capitalize on known solution of the Riemann problem originally developed by Godunov always use conservative

More information

First, Second, and Third Order Finite-Volume Schemes for Diffusion

First, Second, and Third Order Finite-Volume Schemes for Diffusion First, Second, and Third Order Finite-Volume Schemes for Diffusion Hiro Nishikawa 51st AIAA Aerospace Sciences Meeting, January 10, 2013 Supported by ARO (PM: Dr. Frederick Ferguson), NASA, Software Cradle.

More information

A Multi-Dimensional Limiter for Hybrid Grid

A Multi-Dimensional Limiter for Hybrid Grid APCOM & ISCM 11-14 th December, 2013, Singapore A Multi-Dimensional Limiter for Hybrid Grid * H. W. Zheng ¹ 1 State Key Laboratory of High Temperature Gas Dynamics, Institute of Mechanics, Chinese Academy

More information

Numerical Solution Techniques in Mechanical and Aerospace Engineering

Numerical Solution Techniques in Mechanical and Aerospace Engineering Numerical Solution Techniques in Mechanical and Aerospace Engineering Chunlei Liang LECTURE 3 Solvers of linear algebraic equations 3.1. Outline of Lecture Finite-difference method for a 2D elliptic PDE

More information

Solving the Euler Equations!

Solving the Euler Equations! http://www.nd.edu/~gtryggva/cfd-course/! Solving the Euler Equations! Grétar Tryggvason! Spring 0! The Euler equations for D flow:! where! Define! Ideal Gas:! ρ ρu ρu + ρu + p = 0 t x ( / ) ρe ρu E + p

More information

Chapter 9 Implicit integration, incompressible flows

Chapter 9 Implicit integration, incompressible flows Chapter 9 Implicit integration, incompressible flows The methods we discussed so far work well for problems of hydrodynamics in which the flow speeds of interest are not orders of magnitude smaller than

More information

5. FVM discretization and Solution Procedure

5. FVM discretization and Solution Procedure 5. FVM discretization and Solution Procedure 1. The fluid domain is divided into a finite number of control volumes (cells of a computational grid). 2. Integral form of the conservation equations are discretized

More information

AM 205: lecture 19. Last time: Conditions for optimality Today: Newton s method for optimization, survey of optimization methods

AM 205: lecture 19. Last time: Conditions for optimality Today: Newton s method for optimization, survey of optimization methods AM 205: lecture 19 Last time: Conditions for optimality Today: Newton s method for optimization, survey of optimization methods Optimality Conditions: Equality Constrained Case As another example of equality

More information

A Crash-Course on the Adjoint Method for Aerodynamic Shape Optimization

A Crash-Course on the Adjoint Method for Aerodynamic Shape Optimization A Crash-Course on the Adjoint Method for Aerodynamic Shape Optimization Juan J. Alonso Department of Aeronautics & Astronautics Stanford University jjalonso@stanford.edu Lecture 19 AA200b Applied Aerodynamics

More information

An Efficient Low Memory Implicit DG Algorithm for Time Dependent Problems

An Efficient Low Memory Implicit DG Algorithm for Time Dependent Problems An Efficient Low Memory Implicit DG Algorithm for Time Dependent Problems P.-O. Persson and J. Peraire Massachusetts Institute of Technology 2006 AIAA Aerospace Sciences Meeting, Reno, Nevada January 9,

More information

Final Exam. Monday March 19, 3:30-5:30pm MAT 21D, Temple, Winter 2018

Final Exam. Monday March 19, 3:30-5:30pm MAT 21D, Temple, Winter 2018 Name: Student ID#: Section: Final Exam Monday March 19, 3:30-5:30pm MAT 21D, Temple, Winter 2018 Show your work on every problem. orrect answers with no supporting work will not receive full credit. Be

More information

Lagrangian Coherent Structures (LCS)

Lagrangian Coherent Structures (LCS) Lagrangian Coherent Structures (LCS) CDS 140b - Spring 2012 May 15, 2012 ofarrell@cds.caltech.edu A time-dependent dynamical system ẋ (t; t 0, x 0 )=v(x(t;,t 0, x 0 ),t) x(t 0 ; t 0, x 0 )=x 0 t 2 I R

More information

Sensitivity analysis by adjoint Automatic Differentiation and Application

Sensitivity analysis by adjoint Automatic Differentiation and Application Sensitivity analysis by adjoint Automatic Differentiation and Application Anca Belme Massimiliano Martinelli Laurent Hascoët Valérie Pascual Alain Dervieux INRIA Sophia-Antipolis Project TROPICS Alain.Dervieux@inria.fr

More information

Hamiltonian partial differential equations and Painlevé transcendents

Hamiltonian partial differential equations and Painlevé transcendents The 6th TIMS-OCAMI-WASEDA Joint International Workshop on Integrable Systems and Mathematical Physics March 22-26, 2014 Hamiltonian partial differential equations and Painlevé transcendents Boris DUBROVIN

More information

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS 1 / 59 AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS The Finite Volume Method These slides are partially based on the recommended textbook: Culbert B.

More information

Efficient solution of stationary Euler flows with critical points and shocks

Efficient solution of stationary Euler flows with critical points and shocks Efficient solution of stationary Euler flows with critical points and shocks Hans De Sterck Department of Applied Mathematics University of Waterloo 1. Introduction consider stationary solutions of hyperbolic

More information

Numerical Optimization

Numerical Optimization Constrained Optimization Computer Science and Automation Indian Institute of Science Bangalore 560 012, India. NPTEL Course on Constrained Optimization Constrained Optimization Problem: min h j (x) 0,

More information

A high-order discontinuous Galerkin solver for 3D aerodynamic turbulent flows

A high-order discontinuous Galerkin solver for 3D aerodynamic turbulent flows A high-order discontinuous Galerkin solver for 3D aerodynamic turbulent flows F. Bassi, A. Crivellini, D. A. Di Pietro, S. Rebay Dipartimento di Ingegneria Industriale, Università di Bergamo CERMICS-ENPC

More information

SAROD Conference, Hyderabad, december 2005 CONTINUOUS MESH ADAPTATION MODELS FOR CFD

SAROD Conference, Hyderabad, december 2005 CONTINUOUS MESH ADAPTATION MODELS FOR CFD 1 SAROD Conference, Hyderabad, december 2005 CONTINUOUS MESH ADAPTATION MODELS FOR CFD Bruno Koobus, 1,2 Laurent Hascoët, 1 Frédéric Alauzet, 3 Adrien Loseille, 3 Youssef Mesri, 1 Alain Dervieux 1 1 INRIA

More information

Well-balanced DG scheme for Euler equations with gravity

Well-balanced DG scheme for Euler equations with gravity Well-balanced DG scheme for Euler equations with gravity Praveen Chandrashekar praveen@tifrbng.res.in Center for Applicable Mathematics Tata Institute of Fundamental Research Bangalore 560065 Dept. of

More information

Sensitivity Analysis AA222 - Multidisciplinary Design Optimization Joaquim R. R. A. Martins Durand

Sensitivity Analysis AA222 - Multidisciplinary Design Optimization Joaquim R. R. A. Martins Durand Sensitivity Analysis AA222 - Multidisciplinary Design Optimization Joaquim R. R. A. Martins Durand 165 email: joaquim.martins@stanford.edu 1 Introduction Sensitivity analysis consists in computing derivatives

More information

[N175] Development of Combined CAA-CFD Algorithm for the Efficient Simulation of Aerodynamic Noise Generation and Propagation

[N175] Development of Combined CAA-CFD Algorithm for the Efficient Simulation of Aerodynamic Noise Generation and Propagation The 32nd International Congress and Exposition on Noise Control Engineering Jeju International Convention Center, Seogwipo, Korea, August 25-28, 2003 [N175] Development of Combined CAA-CFD Algorithm for

More information

Math 234 Exam 3 Review Sheet

Math 234 Exam 3 Review Sheet Math 234 Exam 3 Review Sheet Jim Brunner LIST OF TOPIS TO KNOW Vector Fields lairaut s Theorem & onservative Vector Fields url Divergence Area & Volume Integrals Using oordinate Transforms hanging the

More information

A COUPLED-ADJOINT METHOD FOR HIGH-FIDELITY AERO-STRUCTURAL OPTIMIZATION

A COUPLED-ADJOINT METHOD FOR HIGH-FIDELITY AERO-STRUCTURAL OPTIMIZATION A COUPLED-ADJOINT METHOD FOR HIGH-FIDELITY AERO-STRUCTURAL OPTIMIZATION Joaquim Rafael Rost Ávila Martins Department of Aeronautics and Astronautics Stanford University Ph.D. Oral Examination, Stanford

More information

1 Distributions (due January 22, 2009)

1 Distributions (due January 22, 2009) Distributions (due January 22, 29). The distribution derivative of the locally integrable function ln( x ) is the principal value distribution /x. We know that, φ = lim φ(x) dx. x ɛ x Show that x, φ =

More information

Active sets, steepest descent, and smooth approximation of functions

Active sets, steepest descent, and smooth approximation of functions Active sets, steepest descent, and smooth approximation of functions Dmitriy Drusvyatskiy School of ORIE, Cornell University Joint work with Alex D. Ioffe (Technion), Martin Larsson (EPFL), and Adrian

More information

Discretization Error Reduction through r Adaptation in CFD

Discretization Error Reduction through r Adaptation in CFD Discretization Error Reduction through r Adaptation in CFD ASME Verification and Validation Symposium May 13 15, 2015 William C. Tyson, Christopher J. Roy, Joseph M. Derlaga, and Charles W. Jackson Aerospace

More information

COMPLETE CONFIGURATION AERO-STRUCTURAL OPTIMIZATION USING A COUPLED SENSITIVITY ANALYSIS METHOD

COMPLETE CONFIGURATION AERO-STRUCTURAL OPTIMIZATION USING A COUPLED SENSITIVITY ANALYSIS METHOD COMPLETE CONFIGURATION AERO-STRUCTURAL OPTIMIZATION USING A COUPLED SENSITIVITY ANALYSIS METHOD Joaquim R. R. A. Martins Juan J. Alonso James J. Reuther Department of Aeronautics and Astronautics Stanford

More information

Optimal Control. Lecture 18. Hamilton-Jacobi-Bellman Equation, Cont. John T. Wen. March 29, Ref: Bryson & Ho Chapter 4.

Optimal Control. Lecture 18. Hamilton-Jacobi-Bellman Equation, Cont. John T. Wen. March 29, Ref: Bryson & Ho Chapter 4. Optimal Control Lecture 18 Hamilton-Jacobi-Bellman Equation, Cont. John T. Wen Ref: Bryson & Ho Chapter 4. March 29, 2004 Outline Hamilton-Jacobi-Bellman (HJB) Equation Iterative solution of HJB Equation

More information

Advanced numerical methods for nonlinear advectiondiffusion-reaction. Peter Frolkovič, University of Heidelberg

Advanced numerical methods for nonlinear advectiondiffusion-reaction. Peter Frolkovič, University of Heidelberg Advanced numerical methods for nonlinear advectiondiffusion-reaction equations Peter Frolkovič, University of Heidelberg Content Motivation and background R 3 T Numerical modelling advection advection

More information

AeroFoam: an accurate inviscid compressible solver for aerodynamic applications

AeroFoam: an accurate inviscid compressible solver for aerodynamic applications 3 rd OpenFOAM Workshop th July 2008 AeroFoam: an accurate inviscid compressible solver for aerodynamic applications Giulio Romanelli Elisa Serioli Paolo Mantegazza Aerospace Engineering Department Politecnico

More information

The Fast Sweeping Method. Hongkai Zhao. Department of Mathematics University of California, Irvine

The Fast Sweeping Method. Hongkai Zhao. Department of Mathematics University of California, Irvine The Fast Sweeping Method Hongkai Zhao Department of Mathematics University of California, Irvine Highlights of fast sweeping mehtod Simple (A Gauss-Seidel type of iterative method). Optimal complexity.

More information

Implicit Solution of Viscous Aerodynamic Flows using the Discontinuous Galerkin Method

Implicit Solution of Viscous Aerodynamic Flows using the Discontinuous Galerkin Method Implicit Solution of Viscous Aerodynamic Flows using the Discontinuous Galerkin Method Per-Olof Persson and Jaime Peraire Massachusetts Institute of Technology 7th World Congress on Computational Mechanics

More information

Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of. Conservation Laws 1. Abstract

Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of. Conservation Laws 1. Abstract Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of Conservation Laws Sirui Tan and Chi-Wang Shu 3 Abstract We develop a high order finite difference numerical boundary condition for solving

More information

Parametric Curves. Calculus 2 Lia Vas

Parametric Curves. Calculus 2 Lia Vas Calculus Lia Vas Parametric Curves In the past, we mostly worked with curves in the form y = f(x). However, this format does not encompass all the curves one encounters in applications. For example, consider

More information

Efficient FEM-multigrid solver for granular material

Efficient FEM-multigrid solver for granular material Efficient FEM-multigrid solver for granular material S. Mandal, A. Ouazzi, S. Turek Chair for Applied Mathematics and Numerics (LSIII), TU Dortmund STW user committee meeting Enschede, 25th September,

More information

A Sobolev trust-region method for numerical solution of the Ginz

A Sobolev trust-region method for numerical solution of the Ginz A Sobolev trust-region method for numerical solution of the Ginzburg-Landau equations Robert J. Renka Parimah Kazemi Department of Computer Science & Engineering University of North Texas June 6, 2012

More information

ADJOINT AND DEFECT ERROR BOUNDING AND CORRECTION FOR FUNCTIONAL ESTIMATES

ADJOINT AND DEFECT ERROR BOUNDING AND CORRECTION FOR FUNCTIONAL ESTIMATES ADJOINT AND DEFECT ERROR BOUNDING AND CORRECTION FOR FUNCTIONAL ESTIMATES Niles A. Pierce and Michael B. Giles Applied & Computational Mathematics, California Institute of Technology Computing Laboratory,

More information

0.2. CONSERVATION LAW FOR FLUID 9

0.2. CONSERVATION LAW FOR FLUID 9 0.2. CONSERVATION LAW FOR FLUID 9 Consider x-component of Eq. (26), we have D(ρu) + ρu( v) dv t = ρg x dv t S pi ds, (27) where ρg x is the x-component of the bodily force, and the surface integral is

More information

Total Pressure Losses Minimization in Turbomachinery Cascades, using a New Continuous Adjoint Formulation

Total Pressure Losses Minimization in Turbomachinery Cascades, using a New Continuous Adjoint Formulation Total Pressure Losses Minimization in Turbomachinery Cascades, using a New Continuous Adjoint Formulation D.I. Papadimitriou, K.C. Giannakoglou Laboratory of Thermal Turbomachines, National Technical University

More information

Conservation of Mass. Computational Fluid Dynamics. The Equations Governing Fluid Motion

Conservation of Mass. Computational Fluid Dynamics. The Equations Governing Fluid Motion http://www.nd.edu/~gtryggva/cfd-course/ http://www.nd.edu/~gtryggva/cfd-course/ Computational Fluid Dynamics Lecture 4 January 30, 2017 The Equations Governing Fluid Motion Grétar Tryggvason Outline Derivation

More information

Math 216 Second Midterm 19 March, 2018

Math 216 Second Midterm 19 March, 2018 Math 26 Second Midterm 9 March, 28 This sample exam is provided to serve as one component of your studying for this exam in this course. Please note that it is not guaranteed to cover the material that

More information

Well-balanced DG scheme for Euler equations with gravity

Well-balanced DG scheme for Euler equations with gravity Well-balanced DG scheme for Euler equations with gravity Praveen Chandrashekar praveen@tifrbng.res.in Center for Applicable Mathematics Tata Institute of Fundamental Research Bangalore 560065 Higher Order

More information

Divergence Formulation of Source Term

Divergence Formulation of Source Term Preprint accepted for publication in Journal of Computational Physics, 2012 http://dx.doi.org/10.1016/j.jcp.2012.05.032 Divergence Formulation of Source Term Hiroaki Nishikawa National Institute of Aerospace,

More information

Computing Spectra of Linear Operators Using Finite Differences

Computing Spectra of Linear Operators Using Finite Differences Computing Spectra of Linear Operators Using Finite Differences J. Nathan Kutz Department of Applied Mathematics University of Washington Seattle, WA 98195-2420 Email: (kutz@amath.washington.edu) Stability

More information

Functional differentiation

Functional differentiation Functional differentiation March 22, 2016 1 Functions vs. functionals What distinguishes a functional such as the action S [x (t] from a function f (x (t, is that f (x (t is a number for each value of

More information

Draft Notes ME 608 Numerical Methods in Heat, Mass, and Momentum Transfer

Draft Notes ME 608 Numerical Methods in Heat, Mass, and Momentum Transfer Draft Notes ME 608 Numerical Methods in Heat, Mass, and Momentum Transfer Instructor: Jayathi Y. Murthy School of Mechanical Engineering Purdue University Spring 00 c 1998 J.Y. Murthy and S.R. Mathur.

More information

1 Assignment 1: Nonlinear dynamics (due September

1 Assignment 1: Nonlinear dynamics (due September Assignment : Nonlinear dynamics (due September 4, 28). Consider the ordinary differential equation du/dt = cos(u). Sketch the equilibria and indicate by arrows the increase or decrease of the solutions.

More information