1 Introduction to MATLAB

Size: px
Start display at page:

Download "1 Introduction to MATLAB"

Transcription

1 L3 - December 015 Solving PDEs numerically (Reports due Thursday Dec 3rd, carolinemuller13@gmail.com) In this project, we will see various methods for solving Partial Differential Equations (PDEs) using numerical tools. The first part is a quick introduction to MATLAB. We will see how to define functions using matrix notations, and how to plot them as contours or surfaces. The second part aims at solving the one-dimensional advection equation using finite differences. We will look at the stability of various schemes, and introduce the famous CFL condition (Courant-Friedrichs-Lewy). Finally in the last part, we will introduce the notions of numerical dispersion or diffusion, which can be present in certain numerical schemes. 1 Introduction to MATLAB 1.1 Defining a 1D function We will start by defining a vector x, and a function of x. Using TP11intro.m, set subsection number = 1.1 which will execute the first paragraph of the code. This defines a vector x, the function f(x) = x and plots f(x). Note that in the definition of f(x), the power is preceded with a dot : f(x) = x. which indicates that the operation should be done component by component (i.e. x. = x. x = [x 1, x,, x n] in opposition to matrix multiplication ). Uncomment the last line and compare M. with M. Using the File pop-up menu, you may save the figure in Matlab format (*.fig) or use Save as to save it in various file formats (*.eps, *.png). 1. Defining a D function We now define a two-dimensional function of x and y. Set subsection number = 1. and plot f(x, y) as a surface z = f(x, y), and using contours. Note that in MATLAB, both surf and contour take the transpose of f as input (denoted f. ). Change the function to cos(πx). sin(πy) + by uncommenting the corresponding line. The tic/toc commands return the time elapsed between the tic and the toc. So here Matlab should return in the main command window the time elapsed to compute the for loops. In the next section, we will compare this time to the one obtained when you define the function in matrix notation instead of loops. 1

2 1.3 Defining a D function using matrix notations MATLAB tends to be quite slow when loops are used, as was done in the previous section for instance (there were two for loops). Therefore, an efficient way to perform D calculations is to use matrix notations. Set subsection number = 1.3 and define F (Y, X) using meshgrid. The MATLAB function meshgrid takes vectors x and y, and returns matrices X and Y. Matlab should return the time elapsed betweent the tic and toc commands, in other words the time elapsed to define the function in matrix form. How does it compare to the loops of the previous section? 1.4 Numerical approximation of derivative Our goal is to solve differential equations numerically. In order to do so, we need to approximate the derivatives of functions. One method is called finite difference and is based on Taylor s expansion : f(x + x) = f(x) + f (x) x + f (x) From (1) it is easy to show that f (x) = x + f (3) (x) 3! f(x + x) f(x) x x + + f (n) (x) x n + O( x n+1 ). (1) n! + O( x) () and f f(x + x) f(x x) (x) = + O( x ). (3) x The first approximation, forward difference, is of order 1, while the second two-sided difference is of order hence more accurate in general. Set subsection number = 1.4 and compare the first approximation () with the second (3). Numerical instability and the CFL ( Courant-Friedrichs-Lewy ) condition In this section, we will use finite differences to solve numerically the 1D advection equation with initial condition φ(x, t = 0) = φ 0 (x)..1 Exact solution t + = 0, (4) x It is easily verified that any function of the form φ(x, t) = f(x t) is a solution of (4), so that the solution of the above system is φ(x, t) = φ 0 (x t). Open TP1PDE.m and set subsection number =.1 to plot the exact solution at t = 0, and 4 when φ 0 (x) = e x. You can see that the initial condition is advected in time, and is centered around x = t at time t.

3 . Numerical solution 1: forward difference We now use forward difference () in both x and t to solve the above equation. We denote φ n j = φ(x j, t n ), where x j = j x (j = 0, ±1, ±, ±J) and t n = n t (n = 0, 1,, N) are our grid points in space and time. The forward difference () applied to φ(x j, t n ) yields t φn+1 j φ n j t and x φn j+1 φn j. (5) x Using forward difference (5), show that equation (4) yields the following time evolution for φ n at the next time step : j = (1 + γ)φ n j γφ n j+1, (6) where γ = t x. (7) For the numerical computation, it is convenient to write (6) in matrix form: J J+1 J = 1 + γ γ γ γ γ γ γ γ φ n J φ n J, where on the last row we have assumed x-periodicity of the solution so that φ n J+1 = φn J. Set subsection number =. and plot the numerical solution. Do you recover the exact solution? Why not? This is not an easy question. In order to answer this question, let s look at the domain of dependence of the solution, exact versus numerical. Remember that the exact solution at (x j, t n ) is a function of the initial condition at (x j t n, 0), in other words it is a function of the solution at earlier times and smaller x (see figure below). But from (6), the numerical solution at (x j, t n ) depends on the solution at (x j+n, t n N ), i.e. at smaller times but larger x. So changing the initial condition at (x j t n, 0) changes the exact solution, but does not impact the numerical solution at all We can not expect this numerical scheme to be accurate! In fact it is unstable.!me$ dx$ dt$ n$ ϕ jn $=$f(ϕ j n+1,$ϕ j+1 n+1 )$=$f(ϕ j,$ϕ j+1,$ϕ j+ )$ $ n+1$ j$ j+1$ Exact$solu!on$ϕ(x j,t n )$=$ ϕ 0 (x j +t n )$depends$on$earlier$!mes$and$smaller$x$ Domain$of$dependence$of$the$numerical$ solu!on$using$forward$difference$:$earlier$!mes$and$larger$x$ In order to stabilize the code, we need to make sure that the domain of dependence of the numerical solution contains the domain of dependence of the exact solution. So we need to make sure that the numerical solution depends on smaller t and x, which can be obtained with backward differentiation in space. x$ 3

4 .3 Numerical solution : backward difference in x We still use forward difference in t but now we use backward difference in x, i.e. instead of (5) we use: In that case, it is easily shown that (6) becomes: x φn j φn j 1 + O( x). (8) x j = (1 γ)φ n j + γφ n j 1, (9) where as before γ = t/ x. Looking again at the domain of dependence of the numerical solution (see figure below), it contains the exact solution if t/ x 1 γ 1. We therefore expect the numerical solution to be stable if γ 1, and unstable if γ > 1. $$$$Exact$solu!on$$!me$ dx$ dt$ n$ n+1$ ϕ jn $=$f(ϕ j n+1,$ϕ j+1 n+1 )$=$f(ϕ j,$ϕ j+1,$ϕ j+ )$ $ j+1$ j$ ϕ(x j,t n )$=$ϕ 0 (x j +t n )$ Domain$of$dependence$of$the$numerical$ solu!on$using$backward$difference$in$x$ As before, for the numerical computation it is convenient to write (9) in matrix form: J J+1 J = 1 γ 0 0 γ γ 1 γ γ 1 γ γ 1 γ x$ where on the first row we have assumed x-periodicity of the solution so that φ n J 1 = φn J. Set subsection number =.3 and plot the numerical solution for various functions of γ. Check the stability of the numerical solution for γ and > 1. Change the maximum value of x (spatial domain) by uncommenting the corresponding line. Since we use periodic boundary conditions, the numerical solution reenters the domain on the left when the maximum x is reached. If one wants to compute the numerical solution at large times, the spatial domain needs to be large as well in order to avoid periodic reentry..4 Numerical solution for arbitrary c: the CFL condition The stability criterion discussed earlier, γ 1, is called the CFL condition. More generally, for an arbitrary advection speed c: t + c = 0, (10) x equation (9) becomes: j = (1 cγ)φ n j + cγφ n j 1. (11) 4 φ n J φ n J,

5 A similar argument based on the domain of dependence of the numerical solution yields that the condition for stability is c x/ t, i.e. the numerical speed x/ t must be faster than the physical speed c. Another interpretation of the CFL condition is that a grid cell must not be completely emptied from one time step to the next. In other words, the solution travelling at speed c must not travel more than one x per t. Set subsection number =.4 and plot the numerical solution for various functions of x, t, and c. Investigate the stability of the numerical solution for various values of c, t and x, and check that the CFL condition has to be satisfied. 3 Numerical diffusion and dispersion When solving numerically a PDE, the truncation error in the Taylor series can lead to diffusive errors, or dispersive errors. We will illustrate both here. 3.1 Exact solution with discontinuity Open TP13Error.m and set subsection number = 3.1 to plot the solution to (4). Then set subsection number = 3. to plot the solution with a step function as initial condition. Note the slight difference between Matrix time evolution and the one used in TP1PDE.m since the step function is not periodic in x, so one can not use the periodic boundary condition φ n J+1 = φn J. Instead we use the one-sided boundary condition φ n J+1 = φn J. As before, the exact solution is simply the initial condition advected at x = t. We will now see what the numerical solution looks like when the initial condition is not smooth. 3. Numerical diffusion 3..1 Some background on diffusion An advection-diffusion equation is of the form: t + c x = D φ x, (1) where D > 0 is the diffusion coefficient. The last term diffuses the solution, to see this let s see what (1) does to a Fourier mode φ(x, t) = e ikx v(t) : (1) v t = ( ick Dk )v φ(x, t) = e ik(x ct) e k Dt. The first term is the usual travelling wave solution, and the second damping term tends to diffuse the solution particularly at small scales (large k). 3.. Numerical diffusion - modified equation Set subsection number = 3.3 to plot the numerical solution looks like when the initial condition is a step function. What do you observe? The truncation error in the Taylor expansion introduces numerical diffusion, which explains the diffusion of the numerical solution that you observe with time. This can be understood by looking at the so-called modified equation, which is obtained by Taylor expansion of the numerical scheme keeping the first error 5

6 term (see Appendix 6 for a detailed derivation of the modified equation). For instance for the numerical scheme (3.3.), the modified equation is: ( t + c x = c x 1 c t ) φ x x. (13) Note that numerical diffusion D = c x/ (1 c t/ x) is positive since the CFL condition for stability is x/ t c. Set subsection number = 3.4 and plot the numerical solution for various c, x, t. How does the numerical solution depend on the diffusivity? From the modified equation, the diffusion should be 0 when c t/ x = 1. Do you recover this result numerically? 3.3 Numerical dispersion Some background on dispersion A dispersive equation is of the form: t + c x = D 3 φ x 3, (14) where D is the dispersion coefficient. The last term disperses waves, in the sense that different wavenumbers are advected at different speeds. In order to illustrate this, let s see what (14) does to a Fourier mode φ(x, t) = e ikx v(t) : (1) v t = ( ick Dik3 )v φ(x, t) = e ik(x ct), with the modified wave speed c = c + Dk. Therefore, waves with different wavenumbers travel at different speeds (faster or slower depending on the sign of D) Numerical dispersion An example of dispersive scheme is the Lax-Wendroff scheme. This scheme is similar to the one used so far (3.3.), except that second order terms are kept, yielding a third order error (dispersive): j = (1 c γ )φ n j + cγ (cγ 1)φn j+1 + cγ (cγ + 1)φn j 1. It can be shown from the modified equation that the Lax-Wendroff scheme has a dispersion coefficient D = c/6 x (1 c γ ). Set subsection number = 3.5 and plot the numerical solution for various c, x, t. what happens to the sharp discontinuity of the initial condition? How does it depend on c, x, t? Do small scale waves travel faster or slower than the discontinuity? Is this what you would expect from the equations? Is this still true if you change the initial condition from step to square by uncommenting the corresponding lines? From the modified equation, the dispersion should be 0 when c t/ x = 1. Do you recover this result numerically? 6

7 4 Application: Numerical D Advection of a passive tracer In this section, we will use a full D numerical code to investigate the impact of different discretizations on the advection of tracers. The code does not use the finite difference methods discussed in and 3. Instead it uses a method called finite volume. It is very similar to finite differences, the only difference being that the equations are written for the spatial averages over the small grid volumes x x + x (see 5 for a more detailed discussion of finite volume methods). Three options are given for the spatial discretization: up1 (lowest order hence lowest accuracy), up3 (intermediate order) and up5 (highest order). For the time discretization, there are also three choices: Heun, RK (similar order as Heun), RK3 (highest order). (RK stands for Runge Kutta methods, which are popular methods of time discretization, see 5 for a discussion of other common time stepping methods). Open Adv D.m, and pick the discretizations up3 in space and Heun in time (default values). Run the code, which advects a patch of tracer. The tracer is advected by a circular flow, and the simulation performs a full π circular advection. At the end of the simulations, the code should return the difference between the initial state and the final state. Does the square patch get advected exactly? i.e. does the patch go back to its initial position and shape at the end of the simulation? Why or why not? Reduce the order of the spatial discretization to up1, and then increase the order by choosing up5. Does the answer to the previous question change? It can be shown that up3 and up5 have numerical dispersion. This can be seen by saturating the colorbar to show smaller anomalies. The matlab command to change the colorbar range is caxis, for instance to [ ]. Uncomment the corresponding line in Adv D.m (last line) and run the code again. Do you see the numerical dispersion of up3 and up5? You can change the square patch to a circular patch. Uncomment the corresponding lines in the code, do the above results still hold? You can save a movie of the simulation by setting param.movie to 1. This will save the file ANIMATION.avi, make sure that you rename this file before running the code again, otherwise your movie will be overwritten. Also keep an eye on your simulation length if you make a movie, since matlab movies are quite large. 5 Suggested further topics: Some modern numerical tools 5.1 Multistep methods In state of the art models, various tricks have been used to increase the order of the discretization in time, for instance multistep methods. Multistep methods use information from several previous steps to calculate the next value. For instance for the differential equation dy dt the general form for an explicit two-step method is: = f(y, t), (15) y n+1 = A y n + B y n 1 + C t f(y n, t n ) + D t f(y n 1, t n 1 ). A popular scheme is the second-order Adams-Bashforth method which uses A=1, B=0, C=3/ and D=-1/. Note that if B or D are not zero, you need two past time steps n 1 & n to deduce the next time step n. Let s derive the coefficients A, B, C, D of the second-order Adams-Bashforth method: 7

8 Let s write (15) as y n+1 = y n + t n+1 t n f(y, t). Show that the second-order Adams-Bashforth method is obtained by approximating f(y, t) in the integrand by its linear interpolating polynomial between t n 1 and t n. 5. Intermediate time steps We note that these is another approach than multistep methods to increase the order of the discretization in time: the use of intermediate time steps. This is the case of the popular Runge Kutta method, which uses intermediate times between t n and t n+1 to deduce y n+1. For instance the second-order Runge-Kutta yields: 5.3 Finite volume k 1 = tf(y n, t n ) (16) ( k = tf y n + k 1, t n + t ) (17) y n+1 = y n + k (18) A powerful method for solving PDEs, particularly those containing a divergence term, is the finite volume method. Finite volume refers to the small volume surrounding each grid point (in our one-dimensional case x j x/, x j + x/). The equations are written for the spatial averages over these small grid volumes φ n j = 1 x xj+ x/ x j x/ φ(x, t)dx. Using the divergence theorem, divergence terms are written as surface integrals of fluxes in and out the small grid cell volume. Let us for instance consider the following equation: t + F x = 0. (19) This equation is similar to the one-dimensional advection equation that we studied so far, but the flux of φ is now given by the divergence of an arbitrary function F (in our case F = cφ). It is standard to use a slightly different discretization, where the advected quantities φ n j are computed at (t n, x j ) as before, but where fluxes Fj±1/ n are now computed at interfaces (t n, x j ± x/). Rewrite equation (19) for φ j (t) by integrating (19) in space (between x j 1/ and x j+1/ ), and show that: d φ j dt + 1 [ ] F x j+ 1 F j 1 = 0. This equation is exact for the volume averages, i.e. no approximations have been made during its derivation. 6 Appendix: Modified equation In order to estimate the leading order numerical error in the numerical scheme (3.3.), we Taylor expand up to order : j = (1 cγ)φ n j + cγφ n j 1 (0) φ n j + t t + t ( φ t = (1 cγ)φn j + cγ φ n j x x + x ) φ x (1) t t + cγ x x = t φ x φ + cγ t x. () 8

9 Using the leading order equation t + c x = 0 φ t = c φ x, and remembering that γ = t/ x, We recover equation (13). 7 References t + c x = ( c t + c x ) φ x. (3) Courant R., Friedrichs K. and Lewy H. (1967) On the partial difference equations of mathematical physics, IBM Journal. Durran D. (010) Numerical methods for fluid dynamics: with applications in geophysics, Springer, textbook 516pp. Iserles A. (008) A first course in the numerical analysis of differential equations, Cambridge University Press, textbook 480 pp. 9

Partial differential equations

Partial differential equations Partial differential equations Many problems in science involve the evolution of quantities not only in time but also in space (this is the most common situation)! We will call partial differential equation

More information

MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS NUMERICAL FLUID MECHANICS FALL 2011

MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS NUMERICAL FLUID MECHANICS FALL 2011 MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS 02139 2.29 NUMERICAL FLUID MECHANICS FALL 2011 QUIZ 2 The goals of this quiz 2 are to: (i) ask some general

More information

MTH 452/552 Homework 3

MTH 452/552 Homework 3 MTH 452/552 Homework 3 Do either 1 or 2. 1. (40 points) [Use of ode113 and ode45] This problem can be solved by a modifying the m-files odesample.m and odesampletest.m available from the author s webpage.

More information

Fourth Order RK-Method

Fourth Order RK-Method Fourth Order RK-Method The most commonly used method is Runge-Kutta fourth order method. The fourth order RK-method is y i+1 = y i + 1 6 (k 1 + 2k 2 + 2k 3 + k 4 ), Ordinary Differential Equations (ODE)

More information

Multistep Methods for IVPs. t 0 < t < T

Multistep Methods for IVPs. t 0 < t < T Multistep Methods for IVPs We are still considering the IVP dy dt = f(t,y) t 0 < t < T y(t 0 ) = y 0 So far we have looked at Euler s method, which was a first order method and Runge Kutta (RK) methods

More information

PDEs, part 3: Hyperbolic PDEs

PDEs, part 3: Hyperbolic PDEs PDEs, part 3: Hyperbolic PDEs Anna-Karin Tornberg Mathematical Models, Analysis and Simulation Fall semester, 2011 Hyperbolic equations (Sections 6.4 and 6.5 of Strang). Consider the model problem (the

More information

3.3. Phase and Amplitude Errors of 1-D Advection Equation

3.3. Phase and Amplitude Errors of 1-D Advection Equation 3.3. Phase and Amplitude Errors of 1-D Advection Equation Reading: Duran section 2.4.2. Tannehill et al section 4.1.2. The following example F.D. solutions of a 1D advection equation show errors in both

More information

2.2. Methods for Obtaining FD Expressions. There are several methods, and we will look at a few:

2.2. Methods for Obtaining FD Expressions. There are several methods, and we will look at a few: .. Methods for Obtaining FD Expressions There are several methods, and we will look at a few: ) Taylor series expansion the most common, but purely mathematical. ) Polynomial fitting or interpolation the

More information

Finite Volume Method for Scalar Advection in 2D

Finite Volume Method for Scalar Advection in 2D Chapter 9 Finite Volume Method for Scalar Advection in D 9. Introduction The purpose of this exercise is to code a program to integrate the scalar advection equation in two-dimensional flows. 9. The D

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 5 Chapter 21 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University 1 All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

More information

ENO and WENO schemes. Further topics and time Integration

ENO and WENO schemes. Further topics and time Integration ENO and WENO schemes. Further topics and time Integration Tefa Kaisara CASA Seminar 29 November, 2006 Outline 1 Short review ENO/WENO 2 Further topics Subcell resolution Other building blocks 3 Time Integration

More information

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13 REVIEW Lecture 12: Spring 2015 Lecture 13 Grid-Refinement and Error estimation Estimation of the order of convergence and of the discretization error Richardson s extrapolation and Iterative improvements

More information

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation Chapter 3. Finite Difference Methods for Hyperbolic Equations 3.1. Introduction Most hyperbolic problems involve the transport of fluid properties. In the equations of motion, the term describing the transport

More information

Part 1. The diffusion equation

Part 1. The diffusion equation Differential Equations FMNN10 Graded Project #3 c G Söderlind 2016 2017 Published 2017-11-27. Instruction in computer lab 2017-11-30/2017-12-06/07. Project due date: Monday 2017-12-11 at 12:00:00. Goals.

More information

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

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations Finite Differences for Differential Equations 28 PART II Finite Difference Methods for Differential Equations Finite Differences for Differential Equations 29 BOUNDARY VALUE PROBLEMS (I) Solving a TWO

More information

The one-dimensional equations for the fluid dynamics of a gas can be written in conservation form as follows:

The one-dimensional equations for the fluid dynamics of a gas can be written in conservation form as follows: Topic 7 Fluid Dynamics Lecture The Riemann Problem and Shock Tube Problem A simple one dimensional model of a gas was introduced by G.A. Sod, J. Computational Physics 7, 1 (1978), to test various algorithms

More information

6.094 Introduction to MATLAB January (IAP) 2009

6.094 Introduction to MATLAB January (IAP) 2009 MIT OpenCourseWare http://ocw.mit.edu 6.094 Introduction to MATLAB January (IAP) 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 6.094: Introduction

More information

Intro to Research Computing with Python: Partial Differential Equations

Intro to Research Computing with Python: Partial Differential Equations Intro to Research Computing with Python: Partial Differential Equations Erik Spence SciNet HPC Consortium 28 November 2013 Erik Spence (SciNet HPC Consortium) PDEs 28 November 2013 1 / 23 Today s class

More information

Chapter 5 Exercises. (a) Determine the best possible Lipschitz constant for this function over 2 u <. u (t) = log(u(t)), u(0) = 2.

Chapter 5 Exercises. (a) Determine the best possible Lipschitz constant for this function over 2 u <. u (t) = log(u(t)), u(0) = 2. Chapter 5 Exercises From: Finite Difference Methods for Ordinary and Partial Differential Equations by R. J. LeVeque, SIAM, 2007. http://www.amath.washington.edu/ rjl/fdmbook Exercise 5. (Uniqueness for

More information

Qualifying Examination

Qualifying Examination Summer 24 Day. Monday, September 5, 24 You have three hours to complete this exam. Work all problems. Start each problem on a All problems are 2 points. Please email any electronic files in support of

More information

3.4. Monotonicity of Advection Schemes

3.4. Monotonicity of Advection Schemes 3.4. Monotonicity of Advection Schemes 3.4.1. Concept of Monotonicity When numerical schemes are used to advect a monotonic function, e.g., a monotonically decreasing function of x, the numerical solutions

More information

Solving PDEs with PGI CUDA Fortran Part 4: Initial value problems for ordinary differential equations

Solving PDEs with PGI CUDA Fortran Part 4: Initial value problems for ordinary differential equations Solving PDEs with PGI CUDA Fortran Part 4: Initial value problems for ordinary differential equations Outline ODEs and initial conditions. Explicit and implicit Euler methods. Runge-Kutta methods. Multistep

More information

Ordinary differential equations - Initial value problems

Ordinary differential equations - Initial value problems Education has produced a vast population able to read but unable to distinguish what is worth reading. G.M. TREVELYAN Chapter 6 Ordinary differential equations - Initial value problems In this chapter

More information

MIT (Spring 2014)

MIT (Spring 2014) 18.311 MIT (Spring 014) Rodolfo R. Rosales May 6, 014. Problem Set # 08. Due: Last day of lectures. IMPORTANT: Turn in the regular and the special problems stapled in two SEPARATE packages. Print your

More information

Appendix C: Recapitulation of Numerical schemes

Appendix C: Recapitulation of Numerical schemes Appendix C: Recapitulation of Numerical schemes August 31, 2009) SUMMARY: Certain numerical schemes of general use are regrouped here in order to facilitate implementations of simple models C1 The tridiagonal

More information

Finite Volume Schemes: an introduction

Finite Volume Schemes: an introduction Finite Volume Schemes: an introduction First lecture Annamaria Mazzia Dipartimento di Metodi e Modelli Matematici per le Scienze Applicate Università di Padova mazzia@dmsa.unipd.it Scuola di dottorato

More information

Numerical Methods for Partial Differential Equations CAAM 452. Spring 2005

Numerical Methods for Partial Differential Equations CAAM 452. Spring 2005 Numerical Methods for Partial Differential Equations Instructor: Tim Warburton Class Location: Duncan Hall 1046 Class Time: 9:5am to 10:40am Office Hours: 10:45am to noon in DH 301 CAAM 45 Spring 005 Homeworks

More information

ECE257 Numerical Methods and Scientific Computing. Ordinary Differential Equations

ECE257 Numerical Methods and Scientific Computing. Ordinary Differential Equations ECE257 Numerical Methods and Scientific Computing Ordinary Differential Equations Today s s class: Stiffness Multistep Methods Stiff Equations Stiffness occurs in a problem where two or more independent

More information

Lecture V: The game-engine loop & Time Integration

Lecture V: The game-engine loop & Time Integration Lecture V: The game-engine loop & Time Integration The Basic Game-Engine Loop Previous state: " #, %(#) ( #, )(#) Forces -(#) Integrate velocities and positions Resolve Interpenetrations Per-body change

More information

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester HIGHER ORDER METHODS School of Mathematics Semester 1 2008 OUTLINE 1 REVIEW 2 HIGHER ORDER METHODS 3 MULTISTEP METHODS 4 SUMMARY OUTLINE 1 REVIEW 2 HIGHER ORDER METHODS 3 MULTISTEP METHODS 4 SUMMARY OUTLINE

More information

Francis X. Giraldo,

Francis X. Giraldo, 1 Time-Integrators Francis X. Giraldo, giraldo@nrlmry.navy.mil, www.nrlmry.navy.mil/~giraldo/projects/nseam.html 1.1 Introduction Roughly speaking, there are 2 classes of TIs: 1. EulerianMethods(fixed-frame-e.g.,arockatthebottomofaflowing

More information

Ordinary Differential Equations

Ordinary Differential Equations Ordinary Differential Equations We call Ordinary Differential Equation (ODE) of nth order in the variable x, a relation of the kind: where L is an operator. If it is a linear operator, we call the equation

More information

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 20

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 20 2.29 Numerical Fluid Mechanics Fall 2011 Lecture 20 REVIEW Lecture 19: Finite Volume Methods Review: Basic elements of a FV scheme and steps to step-up a FV scheme One Dimensional examples d x j x j 1/2

More information

Numerical Methods for Differential Equations

Numerical Methods for Differential Equations Numerical Methods for Differential Equations Chapter 2: Runge Kutta and Multistep Methods Gustaf Söderlind Numerical Analysis, Lund University Contents V4.16 1. Runge Kutta methods 2. Embedded RK methods

More information

Multistage Methods I: Runge-Kutta Methods

Multistage Methods I: Runge-Kutta Methods Multistage Methods I: Runge-Kutta Methods Varun Shankar January, 0 Introduction Previously, we saw that explicit multistep methods (AB methods) have shrinking stability regions as their orders are increased.

More information

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II Advection / Hyperbolic PDEs Notes In addition to the slides and code examples, my notes on PDEs with the finite-volume method are up online: https://github.com/open-astrophysics-bookshelf/numerical_exercises

More information

MECH : a Primer for Matlab s ode suite of functions

MECH : a Primer for Matlab s ode suite of functions Objectives MECH 4-563: a Primer for Matlab s ode suite of functions. Review the fundamentals of initial value problems and why numerical integration methods are needed.. Introduce the ode suite of numerical

More information

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2 Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer ringhofer@asu.edu, C2 b 2 2 h2 x u http://math.la.asu.edu/ chris Last update: Jan 24, 2006 1 LITERATURE 1. Numerical Methods for Conservation

More information

4.4 Computing π, ln 2 and e

4.4 Computing π, ln 2 and e 252 4.4 Computing π, ln 2 and e The approximations π 3.1415927, ln 2 0.69314718, e 2.7182818 can be obtained by numerical methods applied to the following initial value problems: (1) y = 4, 1 + x2 y(0)

More information

Ordinary Differential Equations

Ordinary Differential Equations CHAPTER 8 Ordinary Differential Equations 8.1. Introduction My section 8.1 will cover the material in sections 8.1 and 8.2 in the book. Read the book sections on your own. I don t like the order of things

More information

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

Index. higher order methods, 52 nonlinear, 36 with variable coefficients, 34 Burgers equation, 234 BVP, see boundary value problems Index A-conjugate directions, 83 A-stability, 171 A( )-stability, 171 absolute error, 243 absolute stability, 149 for systems of equations, 154 absorbing boundary conditions, 228 Adams Bashforth methods,

More information

Lecture 17: Initial value problems

Lecture 17: Initial value problems Lecture 17: Initial value problems Let s start with initial value problems, and consider numerical solution to the simplest PDE we can think of u/ t + c u/ x = 0 (with u a scalar) for which the solution

More information

Math 7824 Spring 2010 Numerical solution of partial differential equations Classroom notes and homework

Math 7824 Spring 2010 Numerical solution of partial differential equations Classroom notes and homework Math 7824 Spring 2010 Numerical solution of partial differential equations Classroom notes and homework Jan Mandel University of Colorado Denver May 12, 2010 1/20/09: Sec. 1.1, 1.2. Hw 1 due 1/27: problems

More information

LAB 1: MATLAB - Introduction to Programming. Objective:

LAB 1: MATLAB - Introduction to Programming. Objective: LAB 1: MATLAB - Introduction to Programming Objective: The objective of this laboratory is to review how to use MATLAB as a programming tool and to review a classic analytical solution to a steady-state

More information

Numerical Methods in Physics and Astrophysics

Numerical Methods in Physics and Astrophysics Kostas Kokkotas 2 October 20, 2014 2 http://www.tat.physik.uni-tuebingen.de/ kokkotas Kostas Kokkotas 3 TOPICS 1. Solving nonlinear equations 2. Solving linear systems of equations 3. Interpolation, approximation

More information

NUMERICAL SOLUTION OF ODE IVPs. Overview

NUMERICAL SOLUTION OF ODE IVPs. Overview NUMERICAL SOLUTION OF ODE IVPs 1 Quick review of direction fields Overview 2 A reminder about and 3 Important test: Is the ODE initial value problem? 4 Fundamental concepts: Euler s Method 5 Fundamental

More information

Split explicit methods

Split explicit methods Split explicit methods Almut Gassmann Meteorological Institute of the University of Bonn Germany St.Petersburg Summer School 2006 on nonhydrostatic dynamics and fine scale data assimilation Two common

More information

9.6 Predictor-Corrector Methods

9.6 Predictor-Corrector Methods SEC. 9.6 PREDICTOR-CORRECTOR METHODS 505 Adams-Bashforth-Moulton Method 9.6 Predictor-Corrector Methods The methods of Euler, Heun, Taylor, and Runge-Kutta are called single-step methods because they use

More information

Numerical Methods - Initial Value Problems for ODEs

Numerical Methods - Initial Value Problems for ODEs Numerical Methods - Initial Value Problems for ODEs Y. K. Goh Universiti Tunku Abdul Rahman 2013 Y. K. Goh (UTAR) Numerical Methods - Initial Value Problems for ODEs 2013 1 / 43 Outline 1 Initial Value

More information

Numerical Methods in Physics and Astrophysics

Numerical Methods in Physics and Astrophysics Kostas Kokkotas 2 October 17, 2017 2 http://www.tat.physik.uni-tuebingen.de/ kokkotas Kostas Kokkotas 3 TOPICS 1. Solving nonlinear equations 2. Solving linear systems of equations 3. Interpolation, approximation

More information

Finite Differences: Consistency, Stability and Convergence

Finite Differences: Consistency, Stability and Convergence Finite Differences: Consistency, Stability and Convergence Varun Shankar March, 06 Introduction Now that we have tackled our first space-time PDE, we will take a quick detour from presenting new FD methods,

More information

Module 4: Numerical Methods for ODE. Michael Bader. Winter 2007/2008

Module 4: Numerical Methods for ODE. Michael Bader. Winter 2007/2008 Outlines Module 4: for ODE Part I: Basic Part II: Advanced Lehrstuhl Informatik V Winter 2007/2008 Part I: Basic 1 Direction Fields 2 Euler s Method Outlines Part I: Basic Part II: Advanced 3 Discretized

More information

Chapter 17. Finite Volume Method The partial differential equation

Chapter 17. Finite Volume Method The partial differential equation Chapter 7 Finite Volume Method. This chapter focusses on introducing finite volume method for the solution of partial differential equations. These methods have gained wide-spread acceptance in recent

More information

arxiv: v1 [physics.comp-ph] 22 Feb 2013

arxiv: v1 [physics.comp-ph] 22 Feb 2013 Numerical Methods and Causality in Physics Muhammad Adeel Ajaib 1 University of Delaware, Newark, DE 19716, USA arxiv:1302.5601v1 [physics.comp-ph] 22 Feb 2013 Abstract We discuss physical implications

More information

First In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 20 September 2018

First In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 20 September 2018 First In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 20 September 208 () [6] In the absence of predators the population of mosquitoes in a certain area would increase at a rate proportional

More information

Semi-Lagrangian Formulations for Linear Advection Equations and Applications to Kinetic Equations

Semi-Lagrangian Formulations for Linear Advection Equations and Applications to Kinetic Equations Semi-Lagrangian Formulations for Linear Advection and Applications to Kinetic Department of Mathematical and Computer Science Colorado School of Mines joint work w/ Chi-Wang Shu Supported by NSF and AFOSR.

More information

The family of Runge Kutta methods with two intermediate evaluations is defined by

The family of Runge Kutta methods with two intermediate evaluations is defined by AM 205: lecture 13 Last time: Numerical solution of ordinary differential equations Today: Additional ODE methods, boundary value problems Thursday s lecture will be given by Thomas Fai Assignment 3 will

More information

Finite Difference and Finite Element Methods

Finite Difference and Finite Element Methods Finite Difference and Finite Element Methods Georgy Gimel farb COMPSCI 369 Computational Science 1 / 39 1 Finite Differences Difference Equations 3 Finite Difference Methods: Euler FDMs 4 Finite Element

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 5 Chapter 19 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

More information

Advection, Conservation, Conserved Physical Quantities, Wave Equations

Advection, Conservation, Conserved Physical Quantities, Wave Equations EP711 Supplementary Material Thursday, September 4, 2014 Advection, Conservation, Conserved Physical Quantities, Wave Equations Jonathan B. Snively!Embry-Riddle Aeronautical University Contents EP711 Supplementary

More information

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes Jim Lambers MAT 772 Fall Semester 21-11 Lecture 21 Notes These notes correspond to Sections 12.6, 12.7 and 12.8 in the text. Multistep Methods All of the numerical methods that we have developed for solving

More information

c 2012 Society for Industrial and Applied Mathematics

c 2012 Society for Industrial and Applied Mathematics SIAM J. NUMER. ANAL. Vol. 50, No. 4, pp. 849 860 c 0 Society for Industrial and Applied Mathematics TWO RESULTS CONCERNING THE STABILITY OF STAGGERED MULTISTEP METHODS MICHELLE GHRIST AND BENGT FORNBERG

More information

Fundamentals Physics

Fundamentals Physics Fundamentals Physics And Differential Equations 1 Dynamics Dynamics of a material point Ideal case, but often sufficient Dynamics of a solid Including rotation, torques 2 Position, Velocity, Acceleration

More information

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Lecture Notes on Numerical Schemes for Flow and Transport Problems Lecture Notes on Numerical Schemes for Flow and Transport Problems by Sri Redeki Pudaprasetya sr pudap@math.itb.ac.id Department of Mathematics Faculty of Mathematics and Natural Sciences Bandung Institute

More information

Problem Set 4 Issued: Wednesday, March 18, 2015 Due: Wednesday, April 8, 2015

Problem Set 4 Issued: Wednesday, March 18, 2015 Due: Wednesday, April 8, 2015 MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS 0139.9 NUMERICAL FLUID MECHANICS SPRING 015 Problem Set 4 Issued: Wednesday, March 18, 015 Due: Wednesday,

More information

1D Heat equation and a finite-difference solver

1D Heat equation and a finite-difference solver 1D Heat equation and a finite-difference solver Guillaume Riflet MARETEC IST 1 The advection-diffusion equation The original concept applied to a property within a control volume from which is derived

More information

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement Romain Teyssier CEA Saclay Romain Teyssier 1 Outline - Euler equations, MHD, waves, hyperbolic

More information

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Lecture Notes on Numerical Schemes for Flow and Transport Problems Lecture Notes on Numerical Schemes for Flow and Transport Problems by Sri Redeki Pudaprasetya sr pudap@math.itb.ac.id Department of Mathematics Faculty of Mathematics and Natural Sciences Bandung Institute

More information

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

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic Applied Mathematics 205 Unit III: Numerical Calculus Lecturer: Dr. David Knezevic Unit III: Numerical Calculus Chapter III.3: Boundary Value Problems and PDEs 2 / 96 ODE Boundary Value Problems 3 / 96

More information

Dispersion relations, linearization and linearized dynamics in PDE models

Dispersion relations, linearization and linearized dynamics in PDE models Dispersion relations, linearization and linearized dynamics in PDE models 1 Dispersion relations Suppose that u(x, t) is a function with domain { < x 0}, and it satisfies a linear, constant coefficient

More information

You may not use your books, notes; calculators are highly recommended.

You may not use your books, notes; calculators are highly recommended. Math 301 Winter 2013-14 Midterm 1 02/06/2014 Time Limit: 60 Minutes Name (Print): Instructor This exam contains 8 pages (including this cover page) and 6 problems. Check to see if any pages are missing.

More information

Applied Math for Engineers

Applied Math for Engineers Applied Math for Engineers Ming Zhong Lecture 15 March 28, 2018 Ming Zhong (JHU) AMS Spring 2018 1 / 28 Recap Table of Contents 1 Recap 2 Numerical ODEs: Single Step Methods 3 Multistep Methods 4 Method

More information

Lecture IV: Time Discretization

Lecture IV: Time Discretization Lecture IV: Time Discretization Motivation Kinematics: continuous motion in continuous time Computer simulation: Discrete time steps t Discrete Space (mesh particles) Updating Position Force induces acceleration.

More information

Astrodynamics (AERO0024)

Astrodynamics (AERO0024) Astrodynamics (AERO0024) 5. Numerical Methods Gaëtan Kerschen Space Structures & Systems Lab (S3L) Why Different Propagators? Analytic propagation: Better understanding of the perturbing forces. Useful

More information

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis Appendix 3B MATLAB Functions for Modeling and Time-domain analysis MATLAB control system Toolbox contain the following functions for the time-domain response step impulse initial lsim gensig damp ltiview

More information

Math 660 Lecture 4: FDM for evolutionary equations: ODE solvers

Math 660 Lecture 4: FDM for evolutionary equations: ODE solvers Math 660 Lecture 4: FDM for evolutionary equations: ODE solvers Consider the ODE u (t) = f(t, u(t)), u(0) = u 0, where u could be a vector valued function. Any ODE can be reduced to a first order system,

More information

q t = F q x. (1) is a flux of q due to diffusion. Although very complex parameterizations for F q

q t = F q x. (1) is a flux of q due to diffusion. Although very complex parameterizations for F q ! Revised Tuesday, December 8, 015! 1 Chapter 7: Diffusion Copyright 015, David A. Randall 7.1! Introduction Diffusion is a macroscopic statistical description of microscopic advection. Here microscopic

More information

Numerical Hydraulics

Numerical Hydraulics ETHZ, Fall 017 Numerical Hydraulics Assignment 4 Numerical solution of 1D solute transport using Matlab http://www.bafg.de/ http://warholian.com Numerical Hydraulics Assignment 4 ETH 017 1 Introduction

More information

Section 7.4 Runge-Kutta Methods

Section 7.4 Runge-Kutta Methods Section 7.4 Runge-Kutta Methods Key terms: Taylor methods Taylor series Runge-Kutta; methods linear combinations of function values at intermediate points Alternatives to second order Taylor methods Fourth

More information

Thermal Analysis Contents - 1

Thermal Analysis Contents - 1 Thermal Analysis Contents - 1 TABLE OF CONTENTS 1 THERMAL ANALYSIS 1.1 Introduction... 1-1 1.2 Mathematical Model Description... 1-3 1.2.1 Conventions and Definitions... 1-3 1.2.2 Conduction... 1-4 1.2.2.1

More information

Krylov single-step implicit integration factor WENO methods for advection-diffusion-reaction equations

Krylov single-step implicit integration factor WENO methods for advection-diffusion-reaction equations Accepted Manuscript Krylov single-step implicit integration factor WENO methods for advection diffusion reaction equations Tian Jiang, Yong-Tao Zhang PII: S0021-9991(16)00029-2 DOI: http://dx.doi.org/10.1016/j.jcp.2016.01.021

More information

Ordinary Differential Equations

Ordinary Differential Equations Chapter 13 Ordinary Differential Equations We motivated the problem of interpolation in Chapter 11 by transitioning from analzying to finding functions. That is, in problems like interpolation and regression,

More information

Todd Arbogast. Department of Mathematics and Center for Subsurface Modeling, Institute for Computational Engineering and Sciences (ICES)

Todd Arbogast. Department of Mathematics and Center for Subsurface Modeling, Institute for Computational Engineering and Sciences (ICES) CONSERVATIVE CHARACTERISTIC METHODS FOR LINEAR TRANSPORT PROBLEMS Todd Arbogast Department of Mathematics and, (ICES) The University of Texas at Austin Chieh-Sen (Jason) Huang Department of Applied Mathematics

More information

Integration of Ordinary Differential Equations

Integration of Ordinary Differential Equations Integration of Ordinary Differential Equations Com S 477/577 Nov 7, 00 1 Introduction The solution of differential equations is an important problem that arises in a host of areas. Many differential equations

More information

Matlab Section. November 8, 2005

Matlab Section. November 8, 2005 Matlab Section November 8, 2005 1 1 General commands Clear all variables from memory : clear all Close all figure windows : close all Save a variable in.mat format : save filename name of variable Load

More information

30 crete maximum principle, which all imply the bound-preserving property. But most

30 crete maximum principle, which all imply the bound-preserving property. But most 3 4 7 8 9 3 4 7 A HIGH ORDER ACCURATE BOUND-PRESERVING COMPACT FINITE DIFFERENCE SCHEME FOR SCALAR CONVECTION DIFFUSION EQUATIONS HAO LI, SHUSEN XIE, AND XIANGXIONG ZHANG Abstract We show that the classical

More information

Lecture 4: Numerical solution of ordinary differential equations

Lecture 4: Numerical solution of ordinary differential equations Lecture 4: Numerical solution of ordinary differential equations Department of Mathematics, ETH Zürich General explicit one-step method: Consistency; Stability; Convergence. High-order methods: Taylor

More information

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by Numerical Analysis A Comprehensive Introduction H. R. Schwarz University of Zürich Switzerland with a contribution by J. Waldvogel Swiss Federal Institute of Technology, Zürich JOHN WILEY & SONS Chichester

More information

Vector Fields and Solutions to Ordinary Differential Equations using Octave

Vector Fields and Solutions to Ordinary Differential Equations using Octave Vector Fields and Solutions to Ordinary Differential Equations using Andreas Stahel 6th December 29 Contents Vector fields. Vector field for the logistic equation...............................2 Solutions

More information

Navier-Stokes equations

Navier-Stokes equations 1 Navier-Stokes equations Introduction to spectral methods for the CSC Lunchbytes Seminar Series. Incompressible, hydrodynamic turbulence is described completely by the Navier-Stokes equations where t

More information

4 Stability analysis of finite-difference methods for ODEs

4 Stability analysis of finite-difference methods for ODEs MATH 337, by T. Lakoba, University of Vermont 36 4 Stability analysis of finite-difference methods for ODEs 4.1 Consistency, stability, and convergence of a numerical method; Main Theorem In this Lecture

More information

MATHEMATICAL METHODS INTERPOLATION

MATHEMATICAL METHODS INTERPOLATION MATHEMATICAL METHODS INTERPOLATION I YEAR BTech By Mr Y Prabhaker Reddy Asst Professor of Mathematics Guru Nanak Engineering College Ibrahimpatnam, Hyderabad SYLLABUS OF MATHEMATICAL METHODS (as per JNTU

More information

Advection in two dimensions

Advection in two dimensions Lecture 0 Advection in two dimensions 6. Stability of multiple terms (in multiple dimensions) When we analyzed the stability of time-stepping methods we tended to consider either a single damping term

More information

Chap. 19: Numerical Differentiation

Chap. 19: Numerical Differentiation Chap. 19: Numerical Differentiation Differentiation Definition of difference: y x f x x i x f x i As x is approaching zero, the difference becomes a derivative: dy dx lim x 0 f x i x f x i x 2 High-Accuracy

More information

Virtual University of Pakistan

Virtual University of Pakistan Virtual University of Pakistan File Version v.0.0 Prepared For: Final Term Note: Use Table Of Content to view the Topics, In PDF(Portable Document Format) format, you can check Bookmarks menu Disclaimer:

More information

Fourier analysis for discontinuous Galerkin and related methods. Abstract

Fourier analysis for discontinuous Galerkin and related methods. Abstract Fourier analysis for discontinuous Galerkin and related methods Mengping Zhang and Chi-Wang Shu Abstract In this paper we review a series of recent work on using a Fourier analysis technique to study the

More information

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods COSC 336 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods Fall 2005 Repetition from the last lecture (I) Initial value problems: dy = f ( t, y) dt y ( a) = y 0 a t b Goal:

More information

Acoustic Wave Equation

Acoustic Wave Equation Acoustic Wave Equation Sjoerd de Ridder (most of the slides) & Biondo Biondi January 16 th 2011 Table of Topics Basic Acoustic Equations Wave Equation Finite Differences Finite Difference Solution Pseudospectral

More information

Chapter 10 Exercises

Chapter 10 Exercises Chapter 10 Exercises From: Finite Difference Methods for Ordinary and Partial Differential Equations by R. J. LeVeque, SIAM, 2007. http://www.amath.washington.edu/ rl/fdmbook Exercise 10.1 (One-sided and

More information

multistep methods Last modified: November 28, 2017 Recall that we are interested in the numerical solution of the initial value problem (IVP):

multistep methods Last modified: November 28, 2017 Recall that we are interested in the numerical solution of the initial value problem (IVP): MATH 351 Fall 217 multistep methods http://www.phys.uconn.edu/ rozman/courses/m351_17f/ Last modified: November 28, 217 Recall that we are interested in the numerical solution of the initial value problem

More information