Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001.

Slides:



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

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 301 Finite.
Partial Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
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.
PART 7 Ordinary Differential Equations ODEs
ECE602 BME I Partial Differential Equations in Biomedical Engineering.
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac Professor of Aerospace Engineering.
PARTIAL DIFFERENTIAL EQUATIONS
Introduction to Numerical Methods I
Parabolic PDEs Generally involve change of quantity in space and time Equivalent to our previous example - heat conduction.
FEM In Brief David Garmire, Course: EE693I UH Dept. of Electrical Engineering 4/20/2008.
PDEs & Parabolic problems Jacob Y. Kazakia © Partial Differential Equations Linear in two variables: Usual classification at a given point (x,y):
Computational Fluid Dynamics I PIW Numerical Methods for Parabolic Equations Instructor: Hong G. Im University of Michigan Fall 2005.
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
Numerical Methods for Partial Differential Equations
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
Types of Governing equations
Differential Equations and Boundary Value Problems
CISE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM (Term 101) Section 04 Read & CISE301_Topic9.
SE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM Read & CISE301_Topic9 KFUPM.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
PART 7 Ordinary Differential Equations ODEs
Numerical methods for PDEs PDEs are mathematical models for –Physical Phenomena Heat transfer Wave motion.
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.
Today’s class Boundary Value Problems Eigenvalue Problems
Scientific Computing Partial Differential Equations Introduction and
Hyperbolic PDEs Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Introduction to Numerical Methods for ODEs and PDEs Methods of Approximation Lecture 3: finite differences Lecture 4: finite elements.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Lecture 3.
Copyleft  2005 by Media Lab Ordinary Differential Equations Boundary Value Problems.
Numerical methods to solve parabolic PDEs. Mathematical models: 5° Classification Classification based on the type of the solution (except, usually, the.
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
Boundary-Value Problems Boundary-value problems are those where conditions are not known at a single point but rather are given at different values of.
Programming assignment #2 Solving a parabolic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Transient Conduction: Finite-Difference Equations and Solutions Chapter 5 Section 5.9  
Introduction Examples of differential equations and related problems Analytical versus numerical solutions Ideas of numerical representations of solutions.
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.
Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.
Engineering Analysis – Computational Fluid Dynamics –
Engineering Analysis – Computational Fluid Dynamics –
An Introduction to Heat Transfer Morteza Heydari.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Finite Deference Method
Introduction to Numerical Methods for ODEs and PDEs Lectures 1 and 2: Some representative problems from engineering science and classification of equation.
Newton’s Method, Root Finding with MATLAB and Excel
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 271 Boundary-Value.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Finite Difference Schemes Dr. DAI Min. Type of finite difference scheme Explicit scheme – Advantage There is no need to solve a system of algebraic equations.
Solving Partial Differential Equation Numerically Pertemuan 13 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
Department of Mathematics Numerical Solutions to Partial Differential Equations Ch 12. Applied mathematics. Korea University.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 32.
Differential Equations
The Finite-Difference Method Taylor Series Expansion Suppose we have a continuous function f(x), its value in the vicinity of can be approximately expressed.
Ordinary Differential Equations
Chapter 30.
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Chapter 27.
Computers in Civil Engineering 53:081 Spring 2003
6th Lecture : Numerical Methods
Presentation transcript:

Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001

Systems of Ordinary Differential Equations - BVP Shooting Method for Nonlinear BVP Finite Difference Method Partial Differential Equations

Shooting Method for Nonlinear ODE-BVPs Nonlinear ODE Consider with guessed slope t Use the difference between u(b) and y b to adjust u’(a) m(t) = u(b, t) - y b is a function of the guessed value t Use secant method or Newton method to find the correct t value with m(t) = 0

Nonlinear Shooting Based on Secant Method Nonlinear ODE

MATLAB Example in Nonlinear Shooting Method Nonlinear shooting with secant method Convert to two first-order ODE-IVPs Update t using the secant method

Nonlinear Shooting - Secant Method y(x) y’(x)

Nonlinear Shooting Based on Newton’s Method Nonlinear ODE Check for convergence of m(t)

Nonlinear Shooting Based on Newton’s Method Nonlinear ODE-IVP Chain Rule x and t are independent 0

Nonlinear Shooting with Newton’s Method Solve ODE-IVP Construct the auxiliary equations

Nonlinear Shooting with Newton’s Method Calculate m(t) -- deviation from the exact BC Update t by Newton’s method

Finite-Difference Methods Divide the interval of interest into subintervals Replace the derivatives by appropriate finite-difference approximations in Chapter 11 Solve the system of algebraic equations by methods in Chapters 3 and 4 For nonlinear ODEs, methods in Chapter 5 may be used

Finite-Difference Method General Two-Point BVPs Replace the derivatives by appropriate finite-difference approximations xixi x i-1 x i+1 hhhh

Finite-Difference Method Central difference approximations Tridiagonal system

Finite-Difference Method Central Difference ==> Tridiagonal system

Finite-Difference Method for Nonlinear BVPs Nonlinear ODE-BVPs Evaluate f i by appropriate finite-difference approximations xixi x i-1 x i+1 hhhh

Finite-Difference Method for Nonlinear BVPs SOR method Iterative solution Convergence criterion

Example MATLAB Note error in Text f i : negative sign

Chapter 15 Partial Differential Equations

Classification of PDEs General form of linear second-order PDEs with two independent variables linear PDEs: a, b, c,….,g = f(x,y) only

Heat Equation: Parabolic PDE Heat transfer in a one-dimensional rod x = 0x = a g 1 (t)g 2 (t)

Discretize the solution domain in space and time with h =  x and k =  t Time (j index) space (i index) x t

Initial and Boundary Conditions Initial conditions : u(x,0) = f(x) u(0, t) = g 1 (t) u(a, t) = g 2 (t) Explicit Euler method

Heat Equation Finite-difference (i,j)(i+1,j)(i-1,j) (i,j+1) u(x,t) x x t t xixi x i+1 x i-1 tjtj t j+1 Forward-difference Central-difference at time level j

Explicit Method Explicit Euler method for heat equation Rearrange Stability:

Explicit Euler Method Stable Unstable (negative coefficients)

Heat Equation: Explicit Euler Method r = 0.5

Example: Explicit Euler Method Heat Equation (Parabolic PDE) c = 0.5, h = 0.25, k = x 60e -2t 20e -t 0 1 2

Example Explicit Euler method First step: t = 0.05

Second step: t = x 60e -2t 20e -t

Heat Equation: Time-dependent BCs r = 0.4

Stability for Explicit Euler Method It can be shown by Von Neumann analysis that Switch to Implicit method to avoid instability Numerical Stability

Explicit Euler Method: Stability Unstable !! r = 1

Implicit Euler method Initial conditions : u(x,0) = f(x) u(0, t) = g 1 (t) u(a, t) = g 2 (t) Unconditionally Stable

Implicit Method Finite-difference (i,j) (i+1,j+1)(i-1,j+1)(i,j+1) T(x,t) x x t t xixi x i+1 x i-1 tjtj t j+1 Forward-difference Central-difference at time level j+1

Implicit Euler Method Implicit Euler method for heat equation Tridiagonal matrix (Thomas algorithm) Unconditionally stable

Implicit Euler Method Unconditionally stable r = 2

Example: Implicit Euler Method Heat Equation (Parabolic PDE) c = 0.5, h = 0.25, k = x 60e -2t 20e -t 0 1

Example Implicit Euler method

Solve the tridiagonal matrix x 60e -2t 20e -t

Crank-Nicolson method Initial conditions : u(x,0) = f(x) u(0, t) = g 1 (t) u(a, t) = g 2 (t) Implicit Euler method : first-order in time Crank-Nicolson : second-order in time

Crank-Nicolson Method Crank-Nicolson method for heat equation Average between two time levels Tridiagonal matrix Unconditionally stable (neutrally stable) Oscillation may occur

General Two-Level Method General two-stage method for heat equation Weighted-average of spatial derivatives between two time levels n and n+1

Example: Crank-Nicolson Method Heat Equation (Parabolic PDE) c = 0.5, h = 0.25, k = x 60e -2t 20e -t 0 1

Example Crank-Nicolson method Tridiagonal matrix (r = 0.8)

Solve the tridiagonal matrix x 60e -2t 20e -t

Implicit Euler method Unconditionally stable r = 2

Heat Equation with Insulated Boundary No heat flux at x = 0 and x = a x = 0x = a u x (a,t) = 0 u x (0,t) = 0

Insulated Boundary No heat flux at x = a x = a x n+1 x n-1 xnxn u x (a,t)=0