Lecture 16: Relaxation methods

Similar documents
The integrating factor method (Sect. 1.1)

Some notes about PDEs. -Bill Green Nov. 2015

Partial differential equations

Additive Manufacturing Module 8

Numerical Methods for Partial Differential Equations: an Overview.

INTRODUCTION TO PDEs

M.Sc. in Meteorology. Numerical Weather Prediction

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 9

Video 15: PDE Classification: Elliptic, Parabolic and Hyperbolic March Equations 11, / 20

Second-Order Linear ODEs (Textbook, Chap 2)

PDE Solvers for Fluid Flow

Numerical Optimization Algorithms

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 1: Finite Difference Method

Numerical Methods for Engineers and Scientists

Solution of Differential Equation by Finite Difference Method

AM 205: lecture 14. Last time: Boundary value problems Today: Numerical solution of PDEs

Basic Aspects of Discretization

Introduction to Partial Differential Equations

Solving PDEs with Multigrid Methods p.1

Finite-Elements Method 2

CHAPTER 4. Introduction to the. Heat Conduction Model

Value Problems Introduction

Elliptic Problems / Multigrid. PHY 604: Computational Methods for Physics and Astrophysics II

Newton-Raphson. Relies on the Taylor expansion f(x + δ) = f(x) + δ f (x) + ½ δ 2 f (x) +..

1D Wave PDE. Introduction to Partial Differential Equations part of EM, Scalar and Vector Fields module (PHY2064) Richard Sear.

Boundary value problems

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

Solution of a System of ODEs with POLYMATH and MATLAB, Boundary Value Iterations with MATLAB

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS

Classification of partial differential equations and their solution characteristics

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

Marching on the BL equations

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic

Lucio Demeio Dipartimento di Ingegneria Industriale e delle Scienze Matematiche

ENGI 4430 PDEs - d Alembert Solutions Page 11.01

DIFFERENTIAL EQUATIONS

BOUNDARY VALUE PROBLEMS

Solutions to Laplace s Equation in Cylindrical Coordinates and Numerical solutions. ρ + (1/ρ) 2 V

Parallelizing large scale time domain electromagnetic inverse problem

DIFFERENTIAL EQUATIONS

Numerical Solutions of Partial Differential Equations

Numerical Methods for PDEs

ME Computational Fluid Mechanics Lecture 5

DIFFERENTIAL EQUATIONS

Ordinary Differential Equations

PDE and Boundary-Value Problems Winter Term 2014/2015

Introduction LECTURE 1

Table of Contents. II. PDE classification II.1. Motivation and Examples. II.2. Classification. II.3. Well-posedness according to Hadamard

Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems

Introduction to Boundary Value Problems

Computation Fluid Dynamics

Scientific Computing: An Introductory Survey

Numerical Analysis and Computer Science DN2255 Spring 2009 p. 1(8)

Equations Introduction

Partial Differential Equations - part of EM Waves module (PHY2065)

PDEs, part 1: Introduction and elliptic PDEs

Lecture No 1 Introduction to Diffusion equations The heat equat

Practical in Numerical Astronomy, SS 2012 LECTURE 9

Chapter 5 Types of Governing Equations. Chapter 5: Governing Equations

Partial Differential Equations

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

Maths III - Numerical Methods

DIFFERENTIAL EQUATIONS

Lecture 3: Hamilton-Jacobi-Bellman Equations. Distributional Macroeconomics. Benjamin Moll. Part II of ECON Harvard University, Spring

Boundary value problems - an introduction

1 Curvilinear Coordinates

Introduction to Computational Fluid Dynamics

Chapter 3 Second Order Linear Equations

Reading: P1-P20 of Durran, Chapter 1 of Lapidus and Pinder (Numerical solution of Partial Differential Equations in Science and Engineering)

Boundary Value Problems - Solving 3-D Finite-Difference problems Jacob White

Fraunhofer Institute for Computer Graphics Research Interactive Graphics Systems Group, TU Darmstadt Fraunhoferstrasse 5, Darmstadt, Germany

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Mathematical Methods - Lecture 9

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

Lecture 16 Solving GLMs via IRWLS

Partial Differential Equations

Partial Differential Equations

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

Salmon: Lectures on partial differential equations

Efficient solution of stationary Euler flows with critical points and shocks

Numerically Solving Partial Differential Equations

9. Boundary layers. Flow around an arbitrarily-shaped bluff body. Inner flow (strong viscous effects produce vorticity) BL separates

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

Week 01 : Introduction. A usually formal statement of the equality or equivalence of mathematical or logical expressions

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

Lecture Introduction

Seismic wavepropagation concepts applied to the interpretation of marine controlled-source electromagnetics

Numerical Solutions to Partial Differential Equations

Lecture 13: Solution to Poission Equation, Numerical Integration, and Wave Equation 1. REVIEW: Poisson s Equation Solution

Intro to Research Computing with Python: Partial Differential Equations

Review for Exam 2 Ben Wang and Mark Styczynski

Mathematical Notes for E&M Gradient, Divergence, and Curl

Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS


Index. higher order methods, 52 nonlinear, 36 with variable coefficients, 34 Burgers equation, 234 BVP, see boundary value problems

7 The Navier-Stokes Equations

Solving Einstein s Equation Numerically III

u( x) = g( y) ds y ( 1 ) U solves u = 0 in U; u = 0 on U. ( 3)

Method of Lines. Received April 20, 2009; accepted July 9, 2009

Chapter 4. Nonlinear Hyperbolic Problems

Transcription:

Lecture 16: Relaxation methods Clever technique which begins with a first guess of the trajectory across the entire interval Break the interval into M small steps: x 1 =0, x 2,..x M =L Form a grid of points, y i,k i = 1,N k = 1,M NxM matrix 354

Relaxation methods Now convert the system of equations y' = f(x,y) into a set of difference equations y i,k+1 y i,k = (x k+1 x k ) f i (½[x k+1 + x k ], (½[y k+1 + y k ]) 0 = E i,k y i,k+1 y i,k (x k+1 x k )f i,k Set of N(M 1) equations with N(M 1) unknowns (there are N b.c. s) 355

Relaxation methods Can solve this problem iteratively by multidimensional Newton-Raphson, using 0 = E i,k (y i,k+1 + Δy i,k+1, y i,k + Δy i,k ) = E i,k (y i,k+1, y i,k ) + Δy i,k+1 E i,k / Δy i,k+1 + Δy i,k E i,k / Δy i,k to solve for the required Δy i,k For each iteration, we need to solve a MN x MN linear system to determine the required correction to y i,k (but the system is fortunately a sparse one) 356

Relaxation methods The procedure is repeated until the trajectory relaxes to the correct one x = 0 x = L 357

Relaxation methods Grid size is critical put more points where the gradient is largest If not known a priori, shooting methods may be better Relaxation methods work best for smooth functions (use shooting methods for oscillatory functions) Relaxation methods are favored when shooting methods are very unstable (e.g. in presence of a growing exponential solution) 358

Partial differential equations (Recipes, Chapter 19) The Physical Universe is described by Partial Differential Equations Maxwell s equations The Schrodinger Equation The Navier-Stokes Equation The Einstein Field equation 359

Partial differential equations PDEs are more complicated than ODEs to deal with analytically: not surprisingly, they are much more difficult to handle numerically many more methods could be the subject of an entire course 360

Partial differential equations We saw with ODEs that there was an important distinction between initial value problems and two point boundary problems In PDEs, the very FORM of the equation determines where the bc s can be specified 361

Partial differential equations Two key types of problem: Initial value problems: Given the state of the system at t=0, compute the time evolution Boundary value problems Find a static (time-independent) solution subject to boundary conditions on a surface enclosing a volume 362

Partial differential equations Simplify the discussion by considering 2-D problems Examples of initial value problems: Solution to the 1-(spatial)D wave equation, given φ(x,t) at time t = 0 2 φ/ x 2 c 2 2 φ/ t 2 = 0 Solution to 1-(spatial)D diffusion equation, given φ (x,t) at time t = 0 κ 2 φ/ x 2 φ/ t = 0 363

Partial differential equations Simplify the discussion by considering 2-D problems Examples of boundary value problems: Solution to Poisson s equation, 2 φ/ x 2 + 2 φ/ y 2 ρ = 0 within some volume V enclosed by a boundary S on which the b.c s are specified 364

Boundary conditions In initial value problems, the boundary condition is typically specified at t = 0 and the solution is propagated forward in time, step by step t Boundary conditions x 365

Boundary conditions In boundary value problems, the boundary condition is specified on some closed surface y x Boundary conditions 366

Boundary conditions The methods of solution are somewhat analogous to the case of ODEs: Initial value problems: step forward in time, using derivatives determined by the PDEs Boundary value problems: solve within the volume using relaxation methods or, create a phony time-dependence and integrate to t 367

Mathematical description It is usually fairly clear on physical grounds whether a problem is an initial value problem or a boundary value problem Electro/magnetostatic problem: BVP Time-indep. Schrodinger equation: BVP Time-dependent Schrodinger equation: IVP Wave equation: IVP Diffusion equation: IVP 368

Mathematical description Note, however, that the type of b.c. is also determined by the FORM of the equation For example, you can solve 2 φ/ x 2 + 2 φ/ y 2 = 0 (Laplace s equation) given arbitrary boundary conditions on a closed loop in the x-y plane but you cannot solve 2 φ/ x 2 c 2 2 φ/ t 2 = 0 (wave equation) 369

Mathematical description Some PDEs ( hyperbolic and parabolic ) have characteristic curves on which arbitrary boundary conditions cannot be imposed example: the wave equation Some PDEs ( elliptic ) do not have such curves example: Laplace s equation 370

371 Mathematical description For a 2 nd -order PDE in two variables: the characteristic curves (if they exist) are given by 0 2 2 2 2 2 2 = + + + + + + G F y E x D y C y x B x A φ φ φ φ φ φ AC B A A B dx dy ± = 2 1

Mathematical description Such PDEs are categorized according to the value of B 2 AC B 2 AC < 0 elliptic eqn No characteristic curves B 2 AC = 0 parabolic eqn 1 family of characteristic curves B 2 AC > 0 hyperbolic eqn 2 families of characteristic curves 372

Mathematical description Examples: Poisson/Laplace s equation: (A,B,C) = (1,0,1) B 2 AC < 0 elliptic no characteristic curves any boundary conditions allowed 373

Mathematical description Examples: Diffusion equation: (A,B,C) = (k,0,0) B 2 AC = 0 parabolic characteristic curves exist not all boundary conditions allowed 374

Mathematical description Examples: Wave equation: (A,B,C) = (1,0, c 2 ) B 2 AC = c 2 > 0 hyperbolic 2 families of characteristic curve exist with dt/dx = ± c 1 or dx/dt = ± c 375

Mathematical description Characteristic curves for the wave equation: once a boundary condition is specified at one point on a characteristic curve, it cannot be arbitrarily specified at a 2 nd point ct Boundary conditions x 376

Mathematical description Information propagates along the characteristic curves (at speed c in the +x and x directions) ct Boundary conditions x 377

Mathematical description If the b.c. s are determined at t = 0, the behavior for t > 0 is completely specified ct Boundary conditions x 378

Mathematical description We can t arbitrarily specify φ on a boundary that crosses a given characteristic curve more than once ct not allowed as surface With arbitrary b.c. s x 379