6th Lecture : Numerical Methods

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Advertisements

Formal Computational Skills
2ª aula Evolution Equation. The Finite Volume Method.
ORDINARY DIFFERENTIAL EQUATIONS (ODE)
Computational Modeling for Engineering MECN 6040
Chapter 8 Elliptic Equation.
Parabolic Partial Differential Equations
Ordinary Differential Equations
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Lecture Objectives: Review discretization methods for advection diffusion equation Accuracy Numerical Stability Unsteady-state CFD Explicit vs. Implicit.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Introduction to Numerical Methods for ODEs and PDEs Methods of Approximation Lecture 3: finite differences Lecture 4: finite elements.
Start Presentation October 4, 2012 Solution of Non-linear Equation Systems In this lecture, we shall look at the mixed symbolic and numerical solution.
Variants of the 1D Wave Equation Jason Batchelder 6/28/07.
Lecture 3.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
7. Introduction to the numerical integration of PDE. As an example, we consider the following PDE with one variable; Finite difference method is one of.
Boundary Value Problems l Up to this point we have solved differential equations that have all of their initial conditions specified. l There is another.
Engineering Analysis – Computational Fluid Dynamics –
Engineering Analysis – Computational Fluid Dynamics –
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
CIS888.11V/EE894R/ME894V A Case Study in Computational Science & Engineering We will apply several numerical methods to find a steady state solution of.
Numerical Analysis – Differential Equation
COMPUTATIONAL FLUID DYNAMICS (AE 2402) Presented by IRISH ANGELIN S AP/AERO.
CIS/ME 794Y A Case Study in Computational Science & Engineering 2-D conservation of momentum (contd.) Or, in cartesian tensor notation, Where repeated.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
ESO 208A/ESO 218 COMPUTATIONAL METHODS IN ENGINEERING.
Lecture Objectives: Review discretization methods for advection diffusion equation –Accuracy –Numerical Stability Unsteady-state CFD –Explicit vs. Implicit.
1 LECTURE 6 Stability of Parabolic PDEs. 2 Aim of Lecture Last week we discussed Parabolic PDEs –Looked at Explicit and Implicit Methods –Advantages and.
Lecture Objectives: - Numerics. Finite Volume Method - Conservation of  for the finite volume w e w e l h n s P E W xx xx xx - Finite volume.
First-order Differential Equations Chapter 2. Overview II. Linear equations Chapter 1 : Introduction to Differential Equations I. Separable variables.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
EEE 431 Computational Methods in Electrodynamics
Ordinary Differential Equations
Lecture 4: Numerical Stability
Finite Difference Methods
Convection-Dominated Problems
Chapter 30.
First order non linear pde’s
Linearized Block Implicit (LBI) Method applied to Quasi-1D Flow
21th Lecture - Advection - Diffusion
CSE245: Computer-Aided Circuit Simulation and Verification
Class Notes 18: Numerical Methods (1/2)
Numerical Solutions of Ordinary Differential Equations
Objective Numerical methods.
Finite Volume Method for Unsteady Flows
Chapter 27.
Topic 3 Discretization of PDE
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
Objective Numerical methods Finite volume.
CSE245: Computer-Aided Circuit Simulation and Verification
Numerical Analysis Lecture 37.
topic4: Implicit method, Stability, ADI method
topic4: Implicit method, Stability, ADI method
Topic 3 Discretization of PDE
Numerical Analysis Lecture 38.
topic4: Implicit method, Stability, ADI method
Introduction to Ordinary Differential Equations
MATH 175: Numerical Analysis II
topic4: Implicit method, Stability, ADI method
Numerical Computation and Optimization
Differential equations
Topic 3 Discretization of PDE
Presentation transcript:

6th Lecture : Numerical Methods 1 6th Lecture : Numerical Methods Boundary Layer Theory Dept. of Naval Architecture and Ocean Engineering

Contents Shooting method for Falkner-Skan equation Numerical method 2 Shooting method for Falkner-Skan equation Numerical method Finite difference Stability analysis Explicit vs. Implicit scheme Mid-term Exam : Plan

Shooting Method for Falkner-Skan Eqn. (I) 3 Recall, from Falkner-Skan Transform (HW#2) Then the momentum equation becomes Boundary condition This is … Boundary Value Problem (BVP) : BC’s are defined at both sides of domain. cf. Initial Value Problem (IVP) : BC’s are defined at single side. For IVP, we can march with integration from η=0 to η= η. Nth order ODE  Set of N Simultaneous 1st order differential equations

Shooting Method for Falkner-Skan Eqn. (II) 4 1st order IVP Recall, to solve ODE = to integrate ODE How to integrate ? Runge-Kutta method ! 4th order Runge-Kutta method Discretization

Shooting Method for Falkner-Skan Eqn. (III) 5 The Falkner-Skan equation is BVP, not IVP. Let’s set Then we have original equations Real boundary condition is We have to find s such that From some arbitrary initial guess s0, get a converged value sn by iterative method. Let’s employ Newton’s method s : arbitrary intial condition

Shooting Method for Falkner-Skan Eqn. (IV) 6 The Falkner-Skan equation If we differentiate both sides of equation Then we have variational equations Runge-Kutta method : to integrate original & variational equations to get

Shooting Method for Falkner-Skan Eqn. (V) 7 FORTRAN Program (I)

Shooting Method for Falkner-Skan Eqn. (VI) 8 FORTRAN Program

Shooting Method for Falkner-Skan Eqn. (VII) 9 FORTRAN Program (II)

Shooting Method for Falkner-Skan Eqn. (VIII) 10 FORTRAN Program (III)

Numerical Method (I) For non-similar flows Finite Difference 11 For non-similar flows We have to solve PDE numerically. Computer solves Difference Equation, not Differential Equation. Finite Difference We divide the space into NM points with spacing (Δx, Δy)

Numerical Method (II) Finite Difference : cont’d 12 Finite Difference : cont’d For first partial derivative For second derivative forward difference backward difference central difference

Numerical Method (III) 13 Finite Difference : cont’d

Numerical Method (IV) 14 Finite Difference : cont’d

Numerical Method (V) Simplified example : Advection/Heat equation 15 Simplified example : Advection/Heat equation Finite differencing gives Explicit scheme : marching with respect to x

Numerical Method (VI) Before going further … 16 Before going further … We have to consider stability & accuracy. Error Round-off error : finite number of digit used in computer Truncation error : higher-order terms from finite difference Stability : Due to many arithmetic operations, errors may accumulate to become infinite. von Neumann’s stability analysis For advection/heat equation, let’s assume the solution form as (This assumption is valid, because the equation is linear.) In finite difference form,

Numerical Method (VII) 17 Von Neumann’s stability analysis : cont’d Substituting into In finite difference form, Stability of the solution requires This gives Thus, for explicit scheme, Δx (or Δt) should be not be made arbitrarily large. Note, implicit scheme is unconditionally stable.

Numerical Method (VIII) 18 Implicit scheme Reconsider finite differencing of diffusion term, This equation can’t be solved separately.  Inversion of Tri-diagonal matrix unknown Tri-Diagonal Matrix

Numerical Method (IX) Crank-Nicolson scheme : Explicit + Implicit 19 Crank-Nicolson scheme : Explicit + Implicit Advantages Absolutely stable 2nd order accurate Truncation error for explicit : Truncation error for implicit : Truncation error for C-N :

Numerical Method (X) For non-linear N-S equation : beyond this course 20 For non-linear N-S equation : beyond this course There are many schemes, for example, Convection term : upwind Diffusion : Crank-Nicolson Pressure correction : Fractional Step (Runge-Kutta) Stability analysis is not applicable in nonlinear equation.