440 Geophysics: Heat flow with finite differences

Size: px
Start display at page:

Download "440 Geophysics: Heat flow with finite differences"

Transcription

1 440 Geophysics: Heat flow with finite differences Thorsten Becker, University of Southern California, 03/2005 Some physical problems, such as heat flow, can be tricky or impossible to solve analytically in any but the simplest situations. This is why we use numerical methods to model system behavior. All numerical methods suffer from general limitations, such as finite accuracy (resolution) and stability (robustness against blowing up ). This means that you will have to proceed carefully when using computers to get answers for geophysical problems, always being aware of the simplifications and approximations. However, with (nowadays) basic computer tools, you can solve relevant problems. For example, you may estimate the temperature distribution around a dike intrusion as a function of time and space, and this distribution will be reflected in the geological record. One method used to solve certain kinds of partial differential equations numerically is by finite differences (FD). Consider the heat flow equation in one dimension: T t = κ 2 T x 2 + H ρc p. (1) where T is temperature, κ thermal diffusivity, H volumetric heat production rate, ρ density, and c p heat capacity. T dependence on space, x, and time t is implied, but κ is assumed constant for eq. (1). Should the conductivity, k, be a function of x instead, we would have had to write 1 ρc p x (k(x) x T ) instead of κ 2 T for the heat flow term, since κ = k x 2 ρc p. In any numerical scheme, one has to discretize the spatial domain, and go from a continuous medium to individual points (or elements for the other main numerical scheme, finite elements). Let s subdivide the model region of extent 0...L in x direction into n nodes so that the i-th location is x i = x 0 + (i 1), (3) with (2) = L/(n 1), (4) which gives a range for x from x i=1 = 0 (for x 0 = 0) to x i=n = L. A larger number of nodes n therefore gives you finer spatial resolution,. What FD does then is approximate the / t and / x (as in eq. (1)) by finite differences between nodes, as opposed to infinitesimal partial derivatives in a continuum. Say, you need / x at x i, then you could approximate it from forward differences using the slope from the function value f (x i ) at x i to the next node at x i+1 = x i + like x (x i) f = f (x i+1) f (x i ). (5) This will be useful when you don t have a x i 1 node, as on the left domain boundary. Alternatively, you could use

2 backward differences where x (x i) b x = f (x i) f (x i 1 ), (6) for instance at the right domain boundary. However, it turns out that in general the best approximation to / x error-wise is by central differences. Those are obtained by averaging f x and b x such that x (x i) c x = x f + b x 2 = f (x i+1) f (x i 1 ). (7) 2 If we need second-order derivatives, those can be obtained from the finite difference between f and b x as 2 f x 2 (x i) c x 2 = x f b x = f (x i+1) 2 f (x i ) + f (x i 1 ) () 2. (8) (To be precise, the second order difference eq. (8) is properly derived by computing central differences of a forward difference at node x i+1/2 and a backward difference at node x i 1/2. This distinction can be important for k(x) type problems.) With those approximate finite differences at hand, we can now rewrite eq. (1). For simplicity, we will take κ constant and H = 0. The simplest way of rewriting the diffusion equation is by a Forward Time, Centered Space (FTCS) scheme f t T (x i,t j ) = κ c x 2 T (x i,t j ) (9) T (x i,t j+1 ) T (x i,t j ) κ ( = T (xi+1 t () 2,t j ) 2T (x i,t j ) + T (x i 1,t j ) ). (10) Time therefore needs to be discretized as well, and we have used i indices for space, and j for time, i.e. the temperature at time t j+1 = t j + t is T (x i,t j+1 ). We can march an initial solution at time t j forward by a time step t as T (x i,t j+1 ) = T (x i,t j ) + T = T (x i,t j ) + κ t () 2 ( T (xi+1,t j ) 2T (x i,t j ) + T (x i 1,t j ) ). (11) Because the incremental change of temperature from t j to t j+1, T, can be directly determined from the old temperature solution at t j, this method is called explicit. While FTCS is a really bad idea for advection problems (the method blows up), it is an OK (not the most efficient) approach for our diffusion problem, under certain conditions. Those stability conditions will be explored in class (see appendix). The general solution strategy for any heat flow, finite difference problem is thus to define an initial condition for T (x,t = 0), and boundary conditions (BCs) for the domain, i.e. at x = 0 and x = L. The latter are typically either constant temperature T = C (Dirichlet BC), or constant heat flow, T / x = C (Neumann BC). Then, discretize the spatial dimension, initialize the T i, j variables, and march the solution forward in time according to eq. (11) with some adequately chosen t. The following is a Matlab computer program (a script, actually) written by my post-doc Boris Kaus which illustrates these concepts. We will go over this in detail in class, but the script is included here for completeness. A percent sign,, is a comment, the rest are program instructions. 2

3 1D Diffusion, explicit finite difference scheme Equation solved: dt/dt = kappa*(dˆ2 T/dxˆ2) using Forward Time Centered Space (FTCS) explicit method i.e. T(t_{i+1}) = T(t_i) + kappa * dt * (T(x_{j+1})-2*T(x_j)+T(x_{j-1})/dxˆ2; Matlab script by Boris Kaus, March 2005 clear all; Input parameters L = 1000; length of model domain in m W_dike = 100; Width of intruding dike T_bg = 1000; Background temperature [C] T_dike = 1300; Temperature of intruding dike kappa = 1e-6; Thermal diffusivity [mˆ2/s] dt = 1; Timestep in years Numerical parameters nx = 101; Number of gridpoints in x-direction num_time= 100; Number of timesteps year = 3600*24*365.25; Seconds/year dt = dt*year; Initialization dx = L/(nx-1); Spacing in x-direction x = -L/2:dx:L/2; Numerical grid in x-direction T = ones(1,nx)*t_bg; ind = find(abs(x)<w_dike/2); spatial region where dike is found T(ind) = T_dike; Initial temperature 3

4 Time loop for itime=1:num_time save old temperature T_old = T; Compute finite difference scheme ind = 2:nx-1; index array T2nd = (T(ind+1)-2*T(ind)+T(ind-1))/dxˆ2; dt/dxˆ2 T(ind) = kappa*dt*t2nd + T_old(ind); Set BC (constant temperature) T(1) = T_old(1); T(nx) = T_old(nx); end Plotting figure(1), clf plot(x,t) xlabel( Distance [m] ) ylabel( Temperature [ˆo C] ) title([ Time =,num2str(itime*dt/year), years ]) drawnow pause(1/10) The Matlab software allows you to write computer programs quickly, and plot the results easily. You can read more about the Matlab language at help/techdoc/matlab.html/. One nifty, yet sometimes perplexing, feature of Matlab is that it works with vectors. For instance, the lines dx = L/(nx-1); Spacing in x-direction x = -L/2:dx:L/2; Numerical grid in x-direction tell the program to actually make an array x = {x 1, x 2,..., x n } with nx elements x 1 = L/2, x 2 = L/2+dx, x 3 = L/2 + 2dx,..., x nx = L/2. More about that in class. 4

5 Addendum: stability of FTCS and more As you noticed from the exercises in class, there exists a stability criterion for which the FTCS scheme works stably for the diffusion problem. The criterion says that you have to choose the time step t small enough for a given spatial resolution and diffusivity κ so that t ()2 2κ holds. This condition can be derived by means of von Neumann stability analysis, and makes physical sense: t is of order of the characteristic diffusion time for numerical noise as determined by the grid spacing (note factor two). As you might have also noted, one needs to march the solution forward by a large number of time steps so that the essential processes of heat conduction can be captured if t is limited by the above criterion. This makes FTCS as an explicity method a bad idea if efficiency is required. One would therefore rather use implicit schemes (such as Crank-Nicholson), but we don t have the time to discuss these in class. If you want to read more about solving the heat conduction (or any diffusion) equation, you might start with, e.g., Press et al. (1993), sec For advection problems, see sec in that same cookbook text. If you need more detail and explanations, a great resource is Spiegelman (2004). Marc teaches what has to be an awesome class (judging from his lecture notes) at Columbia University on numerical modeling. His chapter 6 ( columbia.edu/ mspieg/mmm/diffusion.pdf) deals with diffusion problems. References Press, W. H., Teukolsky, S. A., Vetterling, W. T., and Flannery, B. P. (1993). Numerical Recipes in C: The Art of Scientific Computing. Cambridge University Press, Cambridge, 2 edition. Spiegelman, M. (2004). Myths and Methods in Modeling. Columbia University Course Lecture Notes, mspieg/mmm/. (12) 5

1 Finite difference example: 1D implicit heat equation

1 Finite difference example: 1D implicit heat equation 1 Finite difference example: 1D implicit heat equation 1.1 Boundary conditions Neumann and Dirichlet We solve the transient heat equation ρc p t = ( k ) (1) on the domain L/2 x L/2 subject to the following

More information

1 Two-dimensional heat equation with FD

1 Two-dimensional heat equation with FD i+1,j -1 +1 H z i-1,j z x x L Figure 1: Finite difference discretization of the 2D heat problem. 1 Two-dimensional heat equation with FD We now revisit the transient heat equation, this time with sources/sinks,

More information

Finite Difference Approach to Option Pricing

Finite Difference Approach to Option Pricing Finite Difference Approach to Option Pricing February 998 CS5 Lab Note. Ordinary differential equation An ordinary differential equation, or ODE, is an equation of the form du = fut ( (), t) (.) dt where

More information

Euler s Method and Functions

Euler s Method and Functions Chapter 3 Euler s Method and Functions The simplest method for approximately solving a differential equation is Euler s method. One starts with a particular initial value problem of the form dx dt = f(t,

More information

The Heat Equation. Lectures INF2320 p. 1/88

The Heat Equation. Lectures INF2320 p. 1/88 The Heat Equation Lectures INF232 p. 1/88 Lectures INF232 p. 2/88 The Heat Equation We study the heat equation: u t = u xx for x (,1), t >, (1) u(,t) = u(1,t) = for t >, (2) u(x,) = f(x) for x (,1), (3)

More information

An Introduction to Partial Differential Equations

An Introduction to Partial Differential Equations An Introduction to Partial Differential Equations Andrew J. Bernoff LECTURE 2 Cooling of a Hot Bar: The Diffusion Equation 2.1. Outline of Lecture An Introduction to Heat Flow Derivation of the Diffusion

More information

Feature Commercial codes In-house codes

Feature Commercial codes In-house codes A simple finite element solver for thermo-mechanical problems Keywords: Scilab, Open source software, thermo-elasticity Introduction In this paper we would like to show how it is possible to develop a

More information

Numerical Analysis Lecture Notes

Numerical Analysis Lecture Notes Numerical Analysis Lecture Notes Peter J. Olver. Finite Difference Methods for Partial Differential Equations As you are well aware, most differential equations are much too complicated to be solved by

More information

Introduction to the Finite Element Method

Introduction to the Finite Element Method Introduction to the Finite Element Method 09.06.2009 Outline Motivation Partial Differential Equations (PDEs) Finite Difference Method (FDM) Finite Element Method (FEM) References Motivation Figure: cross

More information

Diffusion: Diffusive initial value problems and how to solve them

Diffusion: Diffusive initial value problems and how to solve them 84 Chapter 6 Diffusion: Diffusive initial value problems and how to solve them Selected Reading Numerical Recipes, 2nd edition: Chapter 19 This section will consider the physics and solution of the simplest

More information

Module 1 : Conduction. Lecture 5 : 1D conduction example problems. 2D conduction

Module 1 : Conduction. Lecture 5 : 1D conduction example problems. 2D conduction Module 1 : Conduction Lecture 5 : 1D conduction example problems. 2D conduction Objectives In this class: An example of optimization for insulation thickness is solved. The 1D conduction is considered

More information

BINOMIAL OPTIONS PRICING MODEL. Mark Ioffe. Abstract

BINOMIAL OPTIONS PRICING MODEL. Mark Ioffe. Abstract BINOMIAL OPTIONS PRICING MODEL Mark Ioffe Abstract Binomial option pricing model is a widespread numerical method of calculating price of American options. In terms of applied mathematics this is simple

More information

Numerical Methods for Differential Equations

Numerical Methods for Differential Equations Numerical Methods for Differential Equations Course objectives and preliminaries Gustaf Söderlind and Carmen Arévalo Numerical Analysis, Lund University Textbooks: A First Course in the Numerical Analysis

More information

Figure 1 - Unsteady-State Heat Conduction in a One-dimensional Slab

Figure 1 - Unsteady-State Heat Conduction in a One-dimensional Slab The Numerical Method of Lines for Partial Differential Equations by Michael B. Cutlip, University of Connecticut and Mordechai Shacham, Ben-Gurion University of the Negev The method of lines is a general

More information

Second Order Linear Partial Differential Equations. Part I

Second Order Linear Partial Differential Equations. Part I Second Order Linear Partial Differential Equations Part I Second linear partial differential equations; Separation of Variables; - point boundary value problems; Eigenvalues and Eigenfunctions Introduction

More information

CS 294-73 Software Engineering for Scientific Computing. http://www.cs.berkeley.edu/~colella/cs294fall2013. Lecture 16: Particle Methods; Homework #4

CS 294-73 Software Engineering for Scientific Computing. http://www.cs.berkeley.edu/~colella/cs294fall2013. Lecture 16: Particle Methods; Homework #4 CS 294-73 Software Engineering for Scientific Computing http://www.cs.berkeley.edu/~colella/cs294fall2013 Lecture 16: Particle Methods; Homework #4 Discretizing Time-Dependent Problems From here on in,

More information

Model Order Reduction for Linear Convective Thermal Flow

Model Order Reduction for Linear Convective Thermal Flow Model Order Reduction for Linear Convective Thermal Flow Christian Moosmann, Evgenii B. Rudnyi, Andreas Greiner, Jan G. Korvink IMTEK, April 24 Abstract Simulation of the heat exchange between a solid

More information

Iterative Solvers for Linear Systems

Iterative Solvers for Linear Systems 9th SimLab Course on Parallel Numerical Simulation, 4.10 8.10.2010 Iterative Solvers for Linear Systems Bernhard Gatzhammer Chair of Scientific Computing in Computer Science Technische Universität München

More information

Parabolic Equations. Chapter 5. Contents. 5.1.2 Well-Posed Initial-Boundary Value Problem. 5.1.3 Time Irreversibility of the Heat Equation

Parabolic Equations. Chapter 5. Contents. 5.1.2 Well-Posed Initial-Boundary Value Problem. 5.1.3 Time Irreversibility of the Heat Equation 7 5.1 Definitions Properties Chapter 5 Parabolic Equations Note that we require the solution u(, t bounded in R n for all t. In particular we assume that the boundedness of the smooth function u at infinity

More information

SECTION VI: FLOOD ROUTING. Consider the watershed with 6 sub-basins. Q 1 = Q A + Q B (Runoff from A & B)

SECTION VI: FLOOD ROUTING. Consider the watershed with 6 sub-basins. Q 1 = Q A + Q B (Runoff from A & B) SECTION VI: FLOOD ROUTING Consider the watershed with 6 sub-basins Q 1 = Q A + Q B (Runoff from A & B) 1 Q 2 = (Q A + Q B ) 2 + Q C + Q D (Routed runoff from Q 1 ) + (Direct runoff from C & D) What causes

More information

Scientic Computing 2013 Computer Classes: Worksheet 11: 1D FEM and boundary conditions

Scientic Computing 2013 Computer Classes: Worksheet 11: 1D FEM and boundary conditions Scientic Computing 213 Computer Classes: Worksheet 11: 1D FEM and boundary conditions Oleg Batrashev November 14, 213 This material partially reiterates the material given on the lecture (see the slides)

More information

7. DYNAMIC LIGHT SCATTERING 7.1 First order temporal autocorrelation function.

7. DYNAMIC LIGHT SCATTERING 7.1 First order temporal autocorrelation function. 7. DYNAMIC LIGHT SCATTERING 7. First order temporal autocorrelation function. Dynamic light scattering (DLS) studies the properties of inhomogeneous and dynamic media. A generic situation is illustrated

More information

Scientific Programming

Scientific Programming 1 The wave equation Scientific Programming Wave Equation The wave equation describes how waves propagate: light waves, sound waves, oscillating strings, wave in a pond,... Suppose that the function h(x,t)

More information

WEEK #3, Lecture 1: Sparse Systems, MATLAB Graphics

WEEK #3, Lecture 1: Sparse Systems, MATLAB Graphics WEEK #3, Lecture 1: Sparse Systems, MATLAB Graphics Visualization of Matrices Good visuals anchor any presentation. MATLAB has a wide variety of ways to display data and calculation results that can be

More information

Advanced CFD Methods 1

Advanced CFD Methods 1 Advanced CFD Methods 1 Prof. Patrick Jenny, FS 2014 Date: 15.08.14, Time: 13:00, Student: Federico Danieli Summary The exam took place in Prof. Jenny s office, with his assistant taking notes on the answers.

More information

OPTION PRICING WITH PADÉ APPROXIMATIONS

OPTION PRICING WITH PADÉ APPROXIMATIONS C om m unfacsciu niva nkseries A 1 Volum e 61, N um b er, Pages 45 50 (01) ISSN 1303 5991 OPTION PRICING WITH PADÉ APPROXIMATIONS CANAN KÖROĞLU A In this paper, Padé approximations are applied Black-Scholes

More information

Including thermal effects in CFD simulations

Including thermal effects in CFD simulations Including thermal effects in CFD simulations Catherine Meissner, Arne Reidar Gravdahl, Birthe Steensen [email protected], [email protected] Fjordgaten 15, N-125 Tonsberg hone: +47 8 1800 Norway Fax:

More information

VARIANCE REDUCTION TECHNIQUES FOR IMPLICIT MONTE CARLO SIMULATIONS

VARIANCE REDUCTION TECHNIQUES FOR IMPLICIT MONTE CARLO SIMULATIONS VARIANCE REDUCTION TECHNIQUES FOR IMPLICIT MONTE CARLO SIMULATIONS An Undergraduate Research Scholars Thesis by JACOB TAYLOR LANDMAN Submitted to Honors and Undergraduate Research Texas A&M University

More information

The mhr model is described by 30 ordinary differential equations (ODEs): one. ion concentrations and 23 equations describing channel gating.

The mhr model is described by 30 ordinary differential equations (ODEs): one. ion concentrations and 23 equations describing channel gating. On-line Supplement: Computer Modeling Chris Clausen, PhD and Ira S. Cohen, MD, PhD Computer models of canine ventricular action potentials The mhr model is described by 30 ordinary differential equations

More information

Pricing Barrier Options under Local Volatility

Pricing Barrier Options under Local Volatility Abstract Pricing Barrier Options under Local Volatility Artur Sepp Mail: [email protected], Web: www.hot.ee/seppar 16 November 2002 We study pricing under the local volatility. Our research is mainly

More information

An Introduction to Applied Mathematics: An Iterative Process

An Introduction to Applied Mathematics: An Iterative Process An Introduction to Applied Mathematics: An Iterative Process Applied mathematics seeks to make predictions about some topic such as weather prediction, future value of an investment, the speed of a falling

More information

1 Completeness of a Set of Eigenfunctions. Lecturer: Naoki Saito Scribe: Alexander Sheynis/Allen Xue. May 3, 2007. 1.1 The Neumann Boundary Condition

1 Completeness of a Set of Eigenfunctions. Lecturer: Naoki Saito Scribe: Alexander Sheynis/Allen Xue. May 3, 2007. 1.1 The Neumann Boundary Condition MAT 280: Laplacian Eigenfunctions: Theory, Applications, and Computations Lecture 11: Laplacian Eigenvalue Problems for General Domains III. Completeness of a Set of Eigenfunctions and the Justification

More information

Heavy Parallelization of Alternating Direction Schemes in Multi-Factor Option Valuation Models. Cris Doloc, Ph.D.

Heavy Parallelization of Alternating Direction Schemes in Multi-Factor Option Valuation Models. Cris Doloc, Ph.D. Heavy Parallelization of Alternating Direction Schemes in Multi-Factor Option Valuation Models Cris Doloc, Ph.D. WHO INTRO Ex-physicist Ph.D. in Computational Physics - Applied TN Plasma (10 yrs) Working

More information

N 1. (q k+1 q k ) 2 + α 3. k=0

N 1. (q k+1 q k ) 2 + α 3. k=0 Teoretisk Fysik Hand-in problem B, SI1142, Spring 2010 In 1955 Fermi, Pasta and Ulam 1 numerically studied a simple model for a one dimensional chain of non-linear oscillators to see how the energy distribution

More information

Lecture 16 - Free Surface Flows. Applied Computational Fluid Dynamics

Lecture 16 - Free Surface Flows. Applied Computational Fluid Dynamics Lecture 16 - Free Surface Flows Applied Computational Fluid Dynamics Instructor: André Bakker http://www.bakker.org André Bakker (2002-2006) Fluent Inc. (2002) 1 Example: spinning bowl Example: flow in

More information

Introduction to the Finite Element Method (FEM)

Introduction to the Finite Element Method (FEM) Introduction to the Finite Element Method (FEM) ecture First and Second Order One Dimensional Shape Functions Dr. J. Dean Discretisation Consider the temperature distribution along the one-dimensional

More information

An Introduction to Core-conductor Theory

An Introduction to Core-conductor Theory An Introduction to Core-conductor Theory I often say when you can measure what you are speaking about and express it in numbers you know something about it; but when you cannot measure it, when you cannot

More information

SOLUTION OF Partial Differential Equations. (PDEs)

SOLUTION OF Partial Differential Equations. (PDEs) SOLUTION OF Partial Differential Equations (PDEs) Mathematics is the Language of Science PDEs are the expression of processes that occur across time & space: (x,t), (x,y), (x,y,z), or (x,y,z,t) Partial

More information

Domain decomposition techniques for interfacial discontinuities

Domain decomposition techniques for interfacial discontinuities Domain decomposition techniques for interfacial discontinuities Geordie McBain Institut Jean le Rond d Alembert December 5, 2012 Connexion and substructuring Two ways to look at domain decomposition Decomposing

More information

Physics of the Atmosphere I

Physics of the Atmosphere I Physics of the Atmosphere I WS 2008/09 Ulrich Platt Institut f. Umweltphysik R. 424 [email protected] heidelberg.de Last week The conservation of mass implies the continuity equation:

More information

Introduction to Finite Difference Methods

Introduction to Finite Difference Methods Introduction to Finite Difference Methods Since most physical systems are described by one or more differential equations, the solution of differential equations is an integral part of many engineering

More information

CONSERVATION LAWS. See Figures 2 and 1.

CONSERVATION LAWS. See Figures 2 and 1. CONSERVATION LAWS 1. Multivariable calculus 1.1. Divergence theorem (of Gauss). This states that the volume integral in of the divergence of the vector-valued function F is equal to the total flux of F

More information

Fourth-Order Compact Schemes of a Heat Conduction Problem with Neumann Boundary Conditions

Fourth-Order Compact Schemes of a Heat Conduction Problem with Neumann Boundary Conditions Fourth-Order Compact Schemes of a Heat Conduction Problem with Neumann Boundary Conditions Jennifer Zhao, 1 Weizhong Dai, Tianchan Niu 1 Department of Mathematics and Statistics, University of Michigan-Dearborn,

More information

Multi-Block Gridding Technique for FLOW-3D Flow Science, Inc. July 2004

Multi-Block Gridding Technique for FLOW-3D Flow Science, Inc. July 2004 FSI-02-TN59-R2 Multi-Block Gridding Technique for FLOW-3D Flow Science, Inc. July 2004 1. Introduction A major new extension of the capabilities of FLOW-3D -- the multi-block grid model -- has been incorporated

More information

5.4 The Heat Equation and Convection-Diffusion

5.4 The Heat Equation and Convection-Diffusion 5.4. THE HEAT EQUATION AND CONVECTION-DIFFUSION c 6 Gilbert Strang 5.4 The Heat Equation and Convection-Diffusion The wave equation conserves energy. The heat equation u t = u xx dissipates energy. The

More information

Numerical Resolution Of The Schrödinger Equation

Numerical Resolution Of The Schrödinger Equation École Normale Supérieure de Lyon Master Sciences de la Matière 2011 Numerical Analysis Project Numerical Resolution Of The Schrödinger Equation Loren Jørgensen, David Lopes Cardozo, Etienne Thibierge Abstract

More information

To give it a definition, an implicit function of x and y is simply any relationship that takes the form:

To give it a definition, an implicit function of x and y is simply any relationship that takes the form: 2 Implicit function theorems and applications 21 Implicit functions The implicit function theorem is one of the most useful single tools you ll meet this year After a while, it will be second nature to

More information

Thermodynamics: Lecture 2

Thermodynamics: Lecture 2 Thermodynamics: Lecture 2 Chris Glosser February 11, 2001 1 OUTLINE I. Heat and Work. (A) Work, Heat and Energy: U = Q + W. (B) Methods of Heat Transport. (C) Infintesimal Work: Exact vs Inexact Differentials

More information

Pricing Barrier Option Using Finite Difference Method and MonteCarlo Simulation

Pricing Barrier Option Using Finite Difference Method and MonteCarlo Simulation Pricing Barrier Option Using Finite Difference Method and MonteCarlo Simulation Yoon W. Kwon CIMS 1, Math. Finance Suzanne A. Lewis CIMS, Math. Finance May 9, 000 1 Courant Institue of Mathematical Science,

More information

Numerical PDE methods for exotic options

Numerical PDE methods for exotic options Lecture 8 Numerical PDE methods for exotic options Lecture Notes by Andrzej Palczewski Computational Finance p. 1 Barrier options For barrier option part of the option contract is triggered if the asset

More information

INTEGRAL METHODS IN LOW-FREQUENCY ELECTROMAGNETICS

INTEGRAL METHODS IN LOW-FREQUENCY ELECTROMAGNETICS INTEGRAL METHODS IN LOW-FREQUENCY ELECTROMAGNETICS I. Dolezel Czech Technical University, Praha, Czech Republic P. Karban University of West Bohemia, Plzeft, Czech Republic P. Solin University of Nevada,

More information

Black Scholes Option Valuation for Scientific Computing Students

Black Scholes Option Valuation for Scientific Computing Students Black Scholes Option Valuation for Scientific Computing Students Desmond J. Higham Department of Mathematics, University of Strathclyde, Glasgow G XH, Scotland January, 4 Abstract Mathematical finance

More information

ABSTRACT FOR THE 1ST INTERNATIONAL WORKSHOP ON HIGH ORDER CFD METHODS

ABSTRACT FOR THE 1ST INTERNATIONAL WORKSHOP ON HIGH ORDER CFD METHODS 1 ABSTRACT FOR THE 1ST INTERNATIONAL WORKSHOP ON HIGH ORDER CFD METHODS Sreenivas Varadan a, Kentaro Hara b, Eric Johnsen a, Bram Van Leer b a. Department of Mechanical Engineering, University of Michigan,

More information

- momentum conservation equation ρ = ρf. These are equivalent to four scalar equations with four unknowns: - pressure p - velocity components

- momentum conservation equation ρ = ρf. These are equivalent to four scalar equations with four unknowns: - pressure p - velocity components J. Szantyr Lecture No. 14 The closed system of equations of the fluid mechanics The above presented equations form the closed system of the fluid mechanics equations, which may be employed for description

More information

Parallel 3D Image Segmentation of Large Data Sets on a GPU Cluster

Parallel 3D Image Segmentation of Large Data Sets on a GPU Cluster Parallel 3D Image Segmentation of Large Data Sets on a GPU Cluster Aaron Hagan and Ye Zhao Kent State University Abstract. In this paper, we propose an inherent parallel scheme for 3D image segmentation

More information

ME6130 An introduction to CFD 1-1

ME6130 An introduction to CFD 1-1 ME6130 An introduction to CFD 1-1 What is CFD? Computational fluid dynamics (CFD) is the science of predicting fluid flow, heat and mass transfer, chemical reactions, and related phenomena by solving numerically

More information

Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON

Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON John Burkardt Information Technology Department Virginia Tech http://people.sc.fsu.edu/ jburkardt/presentations/cg lab fem basis tetrahedron.pdf

More information

Interactive comment on A simple 2-D inundation model for incorporating flood damage in urban drainage planning by A. Pathirana et al.

Interactive comment on A simple 2-D inundation model for incorporating flood damage in urban drainage planning by A. Pathirana et al. Hydrol. Earth Syst. Sci. Discuss., 5, C2756 C2764, 2010 www.hydrol-earth-syst-sci-discuss.net/5/c2756/2010/ Author(s) 2010. This work is distributed under the Creative Commons Attribute 3.0 License. Hydrology

More information

Introduction. 1.1 Motivation. Chapter 1

Introduction. 1.1 Motivation. Chapter 1 Chapter 1 Introduction The automotive, aerospace and building sectors have traditionally used simulation programs to improve their products or services, focusing their computations in a few major physical

More information

Does Black-Scholes framework for Option Pricing use Constant Volatilities and Interest Rates? New Solution for a New Problem

Does Black-Scholes framework for Option Pricing use Constant Volatilities and Interest Rates? New Solution for a New Problem Does Black-Scholes framework for Option Pricing use Constant Volatilities and Interest Rates? New Solution for a New Problem Gagan Deep Singh Assistant Vice President Genpact Smart Decision Services Financial

More information

Interactive simulation of an ash cloud of the volcano Grímsvötn

Interactive simulation of an ash cloud of the volcano Grímsvötn Interactive simulation of an ash cloud of the volcano Grímsvötn 1 MATHEMATICAL BACKGROUND Simulating flows in the atmosphere, being part of CFD, is on of the research areas considered in the working group

More information

Heat Transfer and Energy

Heat Transfer and Energy What is Heat? Heat Transfer and Energy Heat is Energy in Transit. Recall the First law from Thermodynamics. U = Q - W What did we mean by all the terms? What is U? What is Q? What is W? What is Heat Transfer?

More information

MEL 807 Computational Heat Transfer (2-0-4) Dr. Prabal Talukdar Assistant Professor Department of Mechanical Engineering IIT Delhi

MEL 807 Computational Heat Transfer (2-0-4) Dr. Prabal Talukdar Assistant Professor Department of Mechanical Engineering IIT Delhi MEL 807 Computational Heat Transfer (2-0-4) Dr. Prabal Talukdar Assistant Professor Department of Mechanical Engineering IIT Delhi Time and Venue Course Coordinator: Dr. Prabal Talukdar Room No: III, 357

More information

Chapter 9 Partial Differential Equations

Chapter 9 Partial Differential Equations 363 One must learn by doing the thing; though you think you know it, you have no certainty until you try. Sophocles (495-406)BCE Chapter 9 Partial Differential Equations A linear second order partial differential

More information

TWO-DIMENSIONAL FINITE ELEMENT ANALYSIS OF FORCED CONVECTION FLOW AND HEAT TRANSFER IN A LAMINAR CHANNEL FLOW

TWO-DIMENSIONAL FINITE ELEMENT ANALYSIS OF FORCED CONVECTION FLOW AND HEAT TRANSFER IN A LAMINAR CHANNEL FLOW TWO-DIMENSIONAL FINITE ELEMENT ANALYSIS OF FORCED CONVECTION FLOW AND HEAT TRANSFER IN A LAMINAR CHANNEL FLOW Rajesh Khatri 1, 1 M.Tech Scholar, Department of Mechanical Engineering, S.A.T.I., vidisha

More information

Numerical Solution of Differential Equations

Numerical Solution of Differential Equations Numerical Solution of Differential Equations 3 rd year JMC group project Summer Term 2004 Supervisor: Prof. Jeff Cash Saeed Amen Paul Bilokon Adam Brinley Codd Minal Fofaria Tejas Shah Agenda Adam: Differential

More information

Stability of Evaporating Polymer Films. For: Dr. Roger Bonnecaze Surface Phenomena (ChE 385M)

Stability of Evaporating Polymer Films. For: Dr. Roger Bonnecaze Surface Phenomena (ChE 385M) Stability of Evaporating Polymer Films For: Dr. Roger Bonnecaze Surface Phenomena (ChE 385M) Submitted by: Ted Moore 4 May 2000 Motivation This problem was selected because the writer observed a dependence

More information

Problem Set 5 Due: In class Thursday, Oct. 18 Late papers will be accepted until 1:00 PM Friday.

Problem Set 5 Due: In class Thursday, Oct. 18 Late papers will be accepted until 1:00 PM Friday. Math 312, Fall 2012 Jerry L. Kazdan Problem Set 5 Due: In class Thursday, Oct. 18 Late papers will be accepted until 1:00 PM Friday. In addition to the problems below, you should also know how to solve

More information

The one dimensional heat equation: Neumann and Robin boundary conditions

The one dimensional heat equation: Neumann and Robin boundary conditions The one dimensional heat equation: Neumann and Robin boundary conditions Ryan C. Trinity University Partial Differential Equations February 28, 2012 with Neumann boundary conditions Our goal is to solve:

More information

correct-choice plot f(x) and draw an approximate tangent line at x = a and use geometry to estimate its slope comment The choices were:

correct-choice plot f(x) and draw an approximate tangent line at x = a and use geometry to estimate its slope comment The choices were: Topic 1 2.1 mode MultipleSelection text How can we approximate the slope of the tangent line to f(x) at a point x = a? This is a Multiple selection question, so you need to check all of the answers that

More information

Notes for AA214, Chapter 7. T. H. Pulliam Stanford University

Notes for AA214, Chapter 7. T. H. Pulliam Stanford University Notes for AA214, Chapter 7 T. H. Pulliam Stanford University 1 Stability of Linear Systems Stability will be defined in terms of ODE s and O E s ODE: Couples System O E : Matrix form from applying Eq.

More information

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation Differential Relations for Fluid Flow In this approach, we apply our four basic conservation laws to an infinitesimally small control volume. The differential approach provides point by point details of

More information

Method of Green s Functions

Method of Green s Functions Method of Green s Functions 8.303 Linear Partial ifferential Equations Matthew J. Hancock Fall 006 We introduce another powerful method of solving PEs. First, we need to consider some preliminary definitions

More information

Abaqus/CFD Sample Problems. Abaqus 6.10

Abaqus/CFD Sample Problems. Abaqus 6.10 Abaqus/CFD Sample Problems Abaqus 6.10 Contents 1. Oscillatory Laminar Plane Poiseuille Flow 2. Flow in Shear Driven Cavities 3. Buoyancy Driven Flow in Cavities 4. Turbulent Flow in a Rectangular Channel

More information

Lecture 3 Fluid Dynamics and Balance Equa6ons for Reac6ng Flows

Lecture 3 Fluid Dynamics and Balance Equa6ons for Reac6ng Flows Lecture 3 Fluid Dynamics and Balance Equa6ons for Reac6ng Flows 3.- 1 Basics: equations of continuum mechanics - balance equations for mass and momentum - balance equations for the energy and the chemical

More information

Computational Physics

Computational Physics Computational Physics Sheet 6, Computational Physics Course 17105 Professor: H. Ruhl, Exercises: N. Moschüring and N. Elkina Discussion of Solutions: Dec 03, 01, Room A49 Problem 1: Yee solver for Schrödinger

More information

POISSON AND LAPLACE EQUATIONS. Charles R. O Neill. School of Mechanical and Aerospace Engineering. Oklahoma State University. Stillwater, OK 74078

POISSON AND LAPLACE EQUATIONS. Charles R. O Neill. School of Mechanical and Aerospace Engineering. Oklahoma State University. Stillwater, OK 74078 21 ELLIPTICAL PARTIAL DIFFERENTIAL EQUATIONS: POISSON AND LAPLACE EQUATIONS Charles R. O Neill School of Mechanical and Aerospace Engineering Oklahoma State University Stillwater, OK 74078 2nd Computer

More information

Finite cloud method: a true meshless technique based on a xed reproducing kernel approximation

Finite cloud method: a true meshless technique based on a xed reproducing kernel approximation INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN ENGINEERING Int. J. Numer. Meth. Engng 2001; 50:2373 2410 Finite cloud method: a true meshless technique based on a xed reproducing kernel approximation N.

More information

5 Numerical Differentiation

5 Numerical Differentiation D. Levy 5 Numerical Differentiation 5. Basic Concepts This chapter deals with numerical approximations of derivatives. The first questions that comes up to mind is: why do we need to approximate derivatives

More information

Hydrodynamics of stellar explosions

Hydrodynamics of stellar explosions Some basic hydrodynamics The art of CFD Hydrodynamic challenges in stellar explosions Hydrodynamics of stellar explosions General: Literature L.D.Landau & E.M.Lifshitz, Fluid Mechanics, Pergamon (1959)

More information

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 10

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 10 Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T. Heath Chapter 10 Boundary Value Problems for Ordinary Differential Equations Copyright c 2001. Reproduction

More information

Lecture 21 Integration: Left, Right and Trapezoid Rules

Lecture 21 Integration: Left, Right and Trapezoid Rules Lecture 1 Integration: Left, Right and Trapezoid Rules The Left and Right point rules In this section, we wish to approximate a definite integral b a f(x)dx, where f(x) is a continuous function. In calculus

More information

Finite Element Method

Finite Element Method 16.810 (16.682) Engineering Design and Rapid Prototyping Finite Element Method Instructor(s) Prof. Olivier de Weck [email protected] Dr. Il Yong Kim [email protected] January 12, 2004 Plan for Today FEM Lecture

More information

SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I

SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I Lennart Edsberg, Nada, KTH Autumn 2008 SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I Parameter values and functions occurring in the questions belowwill be exchanged

More information

CAE -Finite Element Method

CAE -Finite Element Method 16.810 Engineering Design and Rapid Prototyping Lecture 3b CAE -Finite Element Method Instructor(s) Prof. Olivier de Weck January 16, 2007 Numerical Methods Finite Element Method Boundary Element Method

More information

The continuous and discrete Fourier transforms

The continuous and discrete Fourier transforms FYSA21 Mathematical Tools in Science The continuous and discrete Fourier transforms Lennart Lindegren Lund Observatory (Department of Astronomy, Lund University) 1 The continuous Fourier transform 1.1

More information

Numerical Methods for Differential Equations

Numerical Methods for Differential Equations 1 Numerical Methods for Differential Equations 1 2 NUMERICAL METHODS FOR DIFFERENTIAL EQUATIONS Introduction Differential equations can describe nearly all systems undergoing change. They are ubiquitous

More information

240EQ014 - Transportation Science

240EQ014 - Transportation Science Coordinating unit: 240 - ETSEIB - Barcelona School of Industrial Engineering Teaching unit: 713 - EQ - Department of Chemical Engineering Academic year: Degree: 2015 MASTER'S DEGREE IN CHEMICAL ENGINEERING

More information

6 Scalar, Stochastic, Discrete Dynamic Systems

6 Scalar, Stochastic, Discrete Dynamic Systems 47 6 Scalar, Stochastic, Discrete Dynamic Systems Consider modeling a population of sand-hill cranes in year n by the first-order, deterministic recurrence equation y(n + 1) = Ry(n) where R = 1 + r = 1

More information

Spatial Data Analysis

Spatial Data Analysis 14 Spatial Data Analysis OVERVIEW This chapter is the first in a set of three dealing with geographic analysis and modeling methods. The chapter begins with a review of the relevant terms, and an outlines

More information

Numerical Solution of Differential Equations

Numerical Solution of Differential Equations Numerical Solution of Differential Equations Dr. Alvaro Islas Applications of Calculus I Spring 2008 We live in a world in constant change We live in a world in constant change We live in a world in constant

More information

4. Introduction to Heat & Mass Transfer

4. Introduction to Heat & Mass Transfer 4. Introduction to Heat & Mass Transfer This section will cover the following concepts: A rudimentary introduction to mass transfer. Mass transfer from a molecular point of view. Fundamental similarity

More information

Numerical Methods for Differential Equations

Numerical Methods for Differential Equations Numerical Methods for Differential Equations Chapter 1: Initial value problems in ODEs Gustaf Söderlind and Carmen Arévalo Numerical Analysis, Lund University Textbooks: A First Course in the Numerical

More information

Coupling Forced Convection in Air Gaps with Heat and Moisture Transfer inside Constructions

Coupling Forced Convection in Air Gaps with Heat and Moisture Transfer inside Constructions Coupling Forced Convection in Air Gaps with Heat and Moisture Transfer inside Constructions M. Bianchi Janetti 1, F. Ochs 1 and R. Pfluger 1 1 University of Innsbruck, Unit for Energy Efficient Buildings,

More information

CFD Application on Food Industry; Energy Saving on the Bread Oven

CFD Application on Food Industry; Energy Saving on the Bread Oven Middle-East Journal of Scientific Research 13 (8): 1095-1100, 2013 ISSN 1990-9233 IDOSI Publications, 2013 DOI: 10.5829/idosi.mejsr.2013.13.8.548 CFD Application on Food Industry; Energy Saving on the

More information