Partial Differential Equations

Similar documents
A large class of initial value (time-evolution) PDEs in one space dimension can be cast into the form of a flux-conservative equation, u (19.1.

Numerical Methods in Geophysics: Implicit Methods

Numerical Methods for PDEs

Computational Fluid Dynamics. Lecture 3

L 5 & 6: RelHydro/Basel. f(x)= ( ) f( ) ( ) ( ) ( ) n! 1! 2! 3! If the TE of f(x)= sin(x) around x 0 is: sin(x) = x - 3! 5!

The Advection-Diffusion equation!

Math 257: Finite difference methods

Taylor expansion: Show that the TE of f(x)= sin(x) around. sin(x) = x - + 3! 5! L 7 & 8: MHD/ZAH

Chapter 4. Fourier Series

Computational Fluid Dynamics. Lecture 5

Streamfunction-Vorticity Formulation

This chapter describes different methods to discretize the diffusion equation. f z 2 = 0. y ) x f

Numerical Astrophysics: hydrodynamics

MATH 10550, EXAM 3 SOLUTIONS

Numerical Methods for Ordinary Differential Equations

Lecture 2: Finite Difference Methods in Heat Transfer

Numerical Methods for Partial Differential Equations

b i u x i U a i j u x i u x j

Math 312 Lecture Notes One Dimensional Maps

Most text will write ordinary derivatives using either Leibniz notation 2 3. y + 5y= e and y y. xx tt t

UNIVERSITY OF CALIFORNIA - SANTA CRUZ DEPARTMENT OF PHYSICS PHYS 116C. Problem Set 4. Benjamin Stahl. November 6, 2014

Finite Dierence Schemes

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

DYNAMIC ANALYSIS OF BEAM-LIKE STRUCTURES SUBJECT TO MOVING LOADS

Hydro code II. Simone Recchi

Lesson 03 Heat Equation with Different BCs

Solutions to Problem Set 8

Special Modeling Techniques

The heat equation. But how to evaluate: F F? T T. We first transform this analytical equation into the corresponding form in finite-space:

Mini Lecture 10.1 Radical Expressions and Functions. 81x d. x 4x 4

Castiel, Supernatural, Season 6, Episode 18

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities

6.3 Testing Series With Positive Terms

Bertrand s Postulate

Math 113, Calculus II Winter 2007 Final Exam Solutions

a 2 +b 2 +c 2 ab+bc+ca.

Explicit scheme. Fully implicit scheme Notes. Fully implicit scheme Notes. Fully implicit scheme Notes. Notes

Numerical Solution of the Two Point Boundary Value Problems By Using Wavelet Bases of Hermite Cubic Spline Wavelets

1. Linearization of a nonlinear system given in the form of a system of ordinary differential equations

A STUDY ON MHD BOUNDARY LAYER FLOW OVER A NONLINEAR STRETCHING SHEET USING IMPLICIT FINITE DIFFERENCE METHOD

Solutions Numerical Simulation - Homework, 4/15/ The DuFort-Frankel method is given by. f n. x 2. (a) Truncation error: Taylor expansion

Math 155 (Lecture 3)

mx bx kx F t. dt IR I LI V t, Q LQ RQ V t,

Northwest High School s Algebra 2/Honors Algebra 2 Summer Review Packet

Lecture 6 Chi Square Distribution (χ 2 ) and Least Squares Fitting

Lecture 8: Solving the Heat, Laplace and Wave equations using finite difference methods

Monte Carlo Optimization to Solve a Two-Dimensional Inverse Heat Conduction Problem

Math 128A: Homework 1 Solutions

Solutions to Final Exam Review Problems

A New Method to Order Functions by Asymptotic Growth Rates Charlie Obimbo Dept. of Computing and Information Science University of Guelph

Sigma notation. 2.1 Introduction

Numerical Methods in Fourier Series Applications

MATH 6101 Fall 2008 Newton and Differential Equations

A numerical Technique Finite Volume Method for Solving Diffusion 2D Problem

Lecture 6 Chi Square Distribution (χ 2 ) and Least Squares Fitting

Notes on iteration and Newton s method. Iteration

Appendix: The Laplace Transform

Introduction to Algorithms 6.046J/18.401J LECTURE 3 Divide and conquer Binary search Powering a number Fibonacci numbers Matrix multiplication

MATH 112: HOMEWORK 6 SOLUTIONS. Problem 1: Rudin, Chapter 3, Problem s k < s k < 2 + s k+1

Explicit Group Methods in the Solution of the 2-D Convection-Diffusion Equations

Goal. Adaptive Finite Element Methods for Non-Stationary Convection-Diffusion Problems. Outline. Differential Equation

More Elementary Aspects of Numerical Solutions of PDEs!

SOLUTIONS: ECE 606 Homework Week 7 Mark Lundstrom Purdue University (revised 3/27/13) e E i E T

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS

Stability Analysis of the Euler Discretization for SIR Epidemic Model

4.3 Growth Rates of Solutions to Recurrences

An efficient time integration method for extra-large eddy simulations

Lecture 6: Integration and the Mean Value Theorem. slope =

CS537. Numerical Analysis and Computing

TIME-CORRELATION FUNCTIONS

Research Article A New Second-Order Iteration Method for Solving Nonlinear Equations

Signals and Systems. Problem Set: From Continuous-Time to Discrete-Time

sin(n) + 2 cos(2n) n 3/2 3 sin(n) 2cos(2n) n 3/2 a n =

DETERMINATION OF MECHANICAL PROPERTIES OF A NON- UNIFORM BEAM USING THE MEASUREMENT OF THE EXCITED LONGITUDINAL ELASTIC VIBRATIONS.

Question 1: The magnetic case

Lyapunov Stability Analysis for Feedback Control Design

μ are complex parameters. Other

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Find quadratic function which pass through the following points (0,1),(1,1),(2, 3)... 11

Rearranging the Alternating Harmonic Series

THE SOLUTION OF NONLINEAR EQUATIONS f( x ) = 0.

Dynamic Programming. Sequence Of Decisions

Dynamic Programming. Sequence Of Decisions. 0/1 Knapsack Problem. Sequence Of Decisions

Analysis of a Numerical Scheme An Example

Finite Difference Approximation for Transport Equation with Shifts Arising in Neuronal Variability

AE/ME 339 Computational Fluid Dynamics (CFD)

Taylor polynomial solution of difference equation with constant coefficients via time scales calculus

Mark Lundstrom Spring SOLUTIONS: ECE 305 Homework: Week 5. Mark Lundstrom Purdue University


Numerical Schemes to Solve Advective Contaminant Transport Problems with Linear Sorption and First Order Decay

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

RADICAL EXPRESSION. If a and x are real numbers and n is a positive integer, then x is an. n th root theorems: Example 1 Simplify

Integer Linear Programming

Quiz. Use either the RATIO or ROOT TEST to determine whether the series is convergent or not.

APPENDIX F Complex Numbers

Finite Difference Approximation for First- Order Hyperbolic Partial Differential Equation Arising in Neuronal Variability with Shifts

Higher-order iterative methods by using Householder's method for solving certain nonlinear equations

Transcription:

Partial Differetial Equatios Part 2 Massimo Ricotti ricotti@astro.umd.edu Uiversity of Marylad Partial Differetial Equatios p.1/15

Upwid differecig I additio to amplitude errors (istability or dampig), scheme may also have phase errors (dispersio) or trasport errors (spurious trasport of iformatio). Upwid differecig helps reduce trasport errors: u +1 j t u j = v j u j u j 1 x, vj > 0, u j+1 u j x, vj < 0, where here we ve supposed that v is ot costat, for illustratio. Partial Differetial Equatios p.2/15

Schematically, oly use iformatio upwid of grid poit j to costruct differeces: t v t v +1 +1 j 1 j j+1 x j 1 j j+1 x Upwid differece is oly first order i space. Still, it has lower trasport error tha secod-order cetered differece. Better? Ca costruct higher-order upwid differece schemes... Partial Differetial Equatios p.3/15

Secod-order accuracy i time We have bee dealig with two derivatives, / x ad / t. We have costructed higher-order schemes i space. What about t? Staggered leapfrog is 2 d -order i time: t u+1 j u 1 j t ( F j+1 F ) j 1 =. x But, subject to a mesh-drift istability. Thik of space-time discretizatio: Odd-iteger coupled to eve-iteger j, Eve-iteger coupled to odd-iteger j ( red-black orderig; odd ad eve mesh poits decoupled). Partial Differetial Equatios p.4/15

Schematically, t +2 +1 1 j 2 j 1 j j+1 j+2 x Ca be fixed by addig diffusio to couple grid poits (add ǫ(fj 1 2F j + F j+1 ), ǫ 1 to RHS). Partial Differetial Equatios p.5/15

Two-step Lax-Wedroff: aother 2 d -order scheme. 1. Use Lax step to estimate fluxes at + 1 2 ad j ± 1 2 : u +1/2 j 1/2 = u j 1 + u j 2 u +1/2 j+1/2 = u j + u j+1 2 t 2 x t 2 x ( F j Fj 1 ), ( F j+1 F j ). 2. Usig these half-step values of u, calculate F(u +1/2 j±1/2 ) F +1/2 j±1/2. 3. The use leapfrog to get updated values: u +1 j = u j t x ( ) F +1/2 j+1/2 F +1/2 j 1/2. Partial Differetial Equatios p.6/15

Schematically, t +1 +1/2 halfstep poits j 1 j j +1 x Fixes dissipatio ad mesh driftig but itroduces phase error (dispersio). Ofte first-order upwid scheme is as good as/better tha 2 d -order L-W. Partial Differetial Equatios p.7/15

Summary: Hyperbolic methods May IVPs ca be cast i flux-coservative form. Solvig methods: 1. FTCS ucoditioally ustable. Never use. 2. Lax equivalet to addig diffusio, damps small scales. 3. Upwid differecig reduces trasport errors, but oly 1 st -order i space. 4. Staggered leapfrog 2 d -order i time, but subject to mesh-drift istability. Fix with diffusio. 5. Two-step Lax-Wedroff 2 d -order i time, but suffers from phase error. NRiC recommeds staggered leapfrog (presumably with diffusio), particularly for problems related to the wave equatio. For problems sesitive to trasport errors, NRiC recommeds upwid differecig schemes. Partial Differetial Equatios p.8/15

Solvig Parabolic PDEs (Diffusive IVPs) NRiC 19.2. Prototypical parabolic PDE is diffusio equatio: u t = D 2 u x 2, where we have take D > 0 to be costat (D = 0 is trivial ad D < 0 leads to physically ustable solutios). Cosider FTCS differecig: u +1 j t u j = D [ u j 1 2u j + ] u j+1. ( x) 2 Partial Differetial Equatios p.9/15

vo Neuma aalysis gives ξ(k) = 1 4D t ( ) k x ( x) 2 si2. 2 This is stable provided 2D t ( x) 2 1. The 2 d derivative makes all the differece (we saw addig diffusio via the Lax method stabilizes FTCS for the hyperbolic equatio). Diffusio time over scale L is τ D L 2 /D. So stability criterio says t τ D /2 across oe cell. Ofte iterested i evolutio of time scales τ D of oe cell. How ca we build stable scheme for larger t? Partial Differetial Equatios p.10/15

Implicit differecig Evaluate RHS of differece equatio at + 1: u +1 j u j t To solve this, rewrite as: = D [ u +1 j 1 ] 2u+1 j + u +1 j+1. ( x) 2 αu +1 j 1 + (1 + 2α)u+1 j αu +1 j+1 = u j, (1) where α D t/( x) 2. I 1-D, this is a tri-di matrix. I 3-D, get large, sparse, baded matrix. Solve the usual way. Partial Differetial Equatios p.11/15

What is limit of (1) as t (α )? Divide through by α to fid FD form of 2 u/ x 2 = 0, i.e., static solutio. Fully implicit scheme is ucoditioally stable ad gives correct equilibrium structure, but caot be used to follow small-timescale pheomea. Partial Differetial Equatios p.12/15

Crak-Nicholso differecig Form average of explicit ad implicit schemes (i space): u +1 j t u j = D [ (u +1 j 1 2u+1 j + u +1 j 1 ) + (u j 1 2u j + u j 1 ) ]. 2( x) 2 Ucoditioally stable, 2 d -order accurate i time (both sides cetered at + 1/2). Partial Differetial Equatios p.13/15

Schematically, t t Explicit (FTCS) Fully Implicit Crak Nicholso t x x x (1st order stable for small dt) (1st order stable for all dt) (2d order stable for all dt) Freezes small-scale pheomea. Ca use fully implicit scheme at ed to drive fluctuatios to equilibrium. Partial Differetial Equatios p.14/15

Noliear diffusio problems For oliear diffusio problems, e.g., where D = D(x), the implicit differecig more complex. Must liearize system ad use iterative methods. Partial Differetial Equatios p.15/15