Boise State University GEOS 397 Fall 2016

Similar documents
(Refer Slide Time: 01:17)

Finite Element Method

YEAR 12 Trial Exam Paper FURTHER MATHEMATICS. Written examination 1. Worked solutions

Economics 101 Fall 2016 Answers to Homework #1 Due Thursday, September 29, 2016

As an example, we consider the following PDE with one variable; Finite difference method is one of numerical method for the PDE.

Chapter 6 Analyzing Accumulated Change: Integrals in Action

AEM Computational Fluid Dynamics Instructor: Dr. M. A. R. Sharif

Deriving and Solving the Black-Scholes Equation

Chapter DIFFERENTIAL EQUATIONS: PHASE SPACE, NUMERICAL SOLUTIONS

Chapter 6: Quadratic Functions & Their Algebra

(8m 2 5m + 2) - (-10m 2 +7m 6) (8m 2 5m + 2) + (+10m 2-7m + 6)

Formulating Models of Simple Systems using VENSIM PLE

Applications of Exponential Functions Group Activity 7 Business Project Week #10

Mathematics Success Grade 8

5.1 Exponents and Scientific Notation

Problem Set #2. Intermediate Macroeconomics 101 Due 20/8/12

MAC Learning Objectives. Learning Objectives (Cont.)

Write legibly. Unreadable answers are worthless.

Iteration. The Cake Eating Problem. Discount Factors

Percents, Explained By Mr. Peralta and the Class of 622 and 623

Chapter 6: Supply and Demand with Income in the Form of Endowments

Module 10:Application of stochastic processes in areas like finance Lecture 36:Black-Scholes Model. Stochastic Differential Equation.

Sterman, J.D Business dynamics systems thinking and modeling for a complex world. Boston: Irwin McGraw Hill

Numerical Methods in Option Pricing (Part III)

Jacob: What data do we use? Do we compile paid loss triangles for a line of business?

Chapter 4 Factoring and Quadratic Equations

Algebra 1 Predicting Patterns & Examining Experiments

Lecture 16: Estimating Parameters (Confidence Interval Estimates of the Mean)

EGR 102 Introduction to Engineering Modeling. Lab 09B Recap Regression Analysis & Structured Programming

3.1 Solutions to Exercises

So far in the short-run analysis we have ignored the wage and price (we assume they are fixed).

Using Optimal Time Step Selection to Boost the Accuracy of FD Schemes for Variable-Coefficient PDEs

FINITE MATH LECTURE NOTES. c Janice Epstein 1998, 1999, 2000 All rights reserved.

Probability in Options Pricing

Analyzing Accumulated Change: More Applications of Integrals & 7.1 Differences of Accumulated Changes

Symmetric Game. In animal behaviour a typical realization involves two parents balancing their individual investment in the common

Game Theory and Economics Prof. Dr. Debarshi Das Department of Humanities and Social Sciences Indian Institute of Technology, Guwahati

Jacob: The illustrative worksheet shows the values of the simulation parameters in the upper left section (Cells D5:F10). Is this for documentation?

Macroeconomics I Exam Revision. Part A: Week Four Economic Growth Based on Week Three Lectures [Also refer to Chapter 20]

CS 774 Project: Fall 2009 Version: November 27, 2009

3.1 Solutions to Exercises

Unit 8 Notes: Solving Quadratics by Factoring Alg 1

A No-Arbitrage Theorem for Uncertain Stock Model

ECN101: Intermediate Macroeconomic Theory TA Section

S14 Exponential Growth and Decay (Graphing Calculator or App Needed)

MA-1. North Carolina Math 1 Unit 2 Mid-Unit Assessment. Name: Class: Date:

Problem Set 1: Review of Mathematics; Aspects of the Business Cycle

Application of an Interval Backward Finite Difference Method for Solving the One-Dimensional Heat Conduction Problem

Math 229 FINAL EXAM Review: Fall Final Exam Monday December 11 ALL Projects Due By Monday December 11

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL

a. Fill in the following table (you will need to expand it from the truncated form provided here). Round all your answers to the nearest hundredth.

Lesson 21: Comparing Linear and Exponential Functions Again

Notation for the Derivative:

SCHOOL OF BUSINESS, ECONOMICS AND MANAGEMENT. BF360 Operations Research

Probability and Stochastics for finance-ii Prof. Joydeep Dutta Department of Humanities and Social Sciences Indian Institute of Technology, Kanpur

Math Fundamental Principles of Calculus Final - Fall 2015 December 14th, 2015

BOSTON UNIVERSITY SCHOOL OF MANAGEMENT. Math Notes

The Normal Distribution

MLC at Boise State Polynomials Activity 2 Week #3

1. The Flexible-Price Monetary Approach Assume uncovered interest rate parity (UIP), which is implied by perfect capital substitutability 1.

Notes on a Basic Business Problem MATH 104 and MATH 184 Mark Mac Lean (with assistance from Patrick Chan) 2011W

a*(variable) 2 + b*(variable) + c

MATH60082 Example Sheet 6 Explicit Finite Difference

Math 6 Unit 7 Notes: Proportional relationships

Homework 3: Asset Pricing

Calculus Review with Matlab

So far in the short-run analysis we have ignored the wage and price (we assume they are fixed).

3.3 rates and slope intercept form ink.notebook. October 23, page 103. page 104. page Rates and Slope Intercept Form

Ph.D. Preliminary Examination MICROECONOMIC THEORY Applied Economics Graduate Program June 2017

32.4. Parabolic PDEs. Introduction. Prerequisites. Learning Outcomes

Unit 8: Quadratic Expressions (Polynomials)

Exploring Slope. High Ratio Mountain Lesson 11-1 Linear Equations and Slope

The Weibull in R is actually parameterized a fair bit differently from the book. In R, the density for x > 0 is

I. More Fundamental Concepts and Definitions from Mathematics

troduction to Algebra

APPM 2360 Project 1. Due: Friday October 6 BEFORE 5 P.M.

Frequency Distributions

Pre-Algebra, Unit 7: Percents Notes

Mathematics Success Level H

Math 250A (Fall 2008) - Lab II (SOLUTIONS)

Problem 1: Markowitz Portfolio (Risky Assets) cov([r 1, r 2, r 3 ] T ) = V =

Extensions to the Black Scholes Model

1 Interest: Investing Money

MSC FINANCIAL ENGINEERING PRICING I, AUTUMN LECTURE 6: EXTENSIONS OF BLACK AND SCHOLES RAYMOND BRUMMELHUIS DEPARTMENT EMS BIRKBECK

Developmental Math An Open Program Unit 12 Factoring First Edition

A C E. Answers Investigation 4. Applications. x y y

4.1 Write Linear Equations by Using a Tables of Values

2014/2015, week 6 The Ramsey model. Romer, Chapter 2.1 to 2.6

Dr. Maddah ENMG 625 Financial Eng g II 10/16/06

Finite Potential Well

Lecture Notes 1 Part B: Functions and Graphs of Functions

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

EE/AA 578 Univ. of Washington, Fall Homework 8

Laboratory I.9 Applications of the Derivative

An IMEX-method for pricing options under Bates model using adaptive finite differences Rapport i Teknisk-vetenskapliga datorberäkningar

Numerical Differentiation & Integration. Romberg Integration

3.1 Factors and Multiples of Whole Numbers

THE UNIVERSITY OF TEXAS AT AUSTIN Department of Information, Risk, and Operations Management

25 Increasing and Decreasing Functions

escript basics Lutz Gross School of Earth Sciences The University of Queensland 1/46 13/03/13

Transcription:

Homework #3: Hill-slope evolution and plotting Due: 5:00 PM 09/16/16 Please read the following questions carefully and make sure to answer the problems completely. In your MATLAB script(s), please include the problem numbers with your answers. Then use the Publish function in MATLAB to publish your script to a pdf document. For more on the Publish functionality within MAT- LAB see http://www.mathworks.com/help/matlab/matlab_prog/publishing-matlab-code.html. Upload your pdf file to Blackboard under Assignment #3. Your filename should be GEOS397 HW3 Lastname.pdf. Hint: You can achieve this automatically by calling your MATLAB script GEOS397 HW3 Lastname.m. NOTE: This activity builds on an existing previous SERC activity: Introduction to MATLAB for Geomorphology Madoff (n.d.). In this new activity, prior to implementing the numerical solution to the PDE described below, the student(s) must first use Taylor expansions to derive the finite difference solution to the PDE. Background Modern geomorphological research involves basic knowledge of 1) the landforms, processes and data that can be observed in the field, 2) the physics and mathematics of those processes, and 3) computer based modeling. These three components combined allow us to gain new insights into landform evolution processes, understand past changes, and make predictions about future landforms. In this homework you will learn some of the basics of the MATLAB computing software, the programming environment, how to build and run simple models, and to plot your results. You will model the evolution of a hill-slope through time. All programming will take place in the MATLAB editor; you only need to make one script. I suggest you build sections of the script and make sure each section runs as expected before you proceed to the next section. The Hill-slope model After reading the papers by Hallet & Putkonen (1994) and Putkonen et al. (2008) and discussing them in class with the guest lecturer Mike Poulos, you should have a feel for how hill-slopes evolve through time. Let s review the equations anyway and work through the important parts we need to consider when going from equations on paper to code in a computer. The transport equation The transport equation is q = κ dz dx, (1) where κ is the topographic diffusivity (or diffusion coefficient) in m 2 /yr. Equation 1 states that the soil flux (q) is proportional to the hill-slope gradient (dz/dx). We use proportional here instead of equal because the right-hand-side is multiplied by κ. Intuitively this should make sense; all else being equal, soil should move (think soil flux) faster on a steep hill-slope than on a gentle one. Finally, topographic diffusivity is a function of many factors (e.g. climate, substrate, vegetation, animal activity, etc.) and can potentially vary in time and space. 1

The conservation equation The conservation equation is dz dt = dq dx, (2) where dt is the time increment in years and dx is the step size (i.e. segment length) in the horizontal direction in meters. In words, equation 2 states that if more soil enters an area than leaves the area, it must pile up, causing the ground surface to rise. It is called a conservation equation because it states that the volume of material (soil, in this case) is conserved, and there are no sources or sinks of material. More specifically, it states that the rate at which the elevation of a given location decreases (dz/dt) is equal to the difference in the rates at which sediment enters from upslope and leaves that location (dq/dx). Formally, we can say that the rate of landscape lowering equals the divergence of the soil flux. Importantly, this is a universal idea, and the expression is valid for many processes. Combine these equations If we take the derivative of equation 1 with respect to x we find that dq dx = κ d2 z dx 2, (3) and we can then insert this result into the right-hand side of equation 2 to get dz dt = κ d2 z dx 2. (4) This equation is known as the diffusion equation. The left-hand-side is the rate of change in surface elevation with time. Because the right-hand side is a second derivative of space (e.g. dx 2 in the denominator), we know that the rate of change of surface elevation is proportional to hill-slope curvature. We are going to use equation 4 to model how the height (z) of a hill-slope evolves (i.e. changes) with time. That means we are going to solve equation 4 numerically for the value of topography z(x, t) at any time and space. Part 1: The finite difference approximation (30 pts.) The first step in solving equation 4 numerically is to write each derivative in terms of a finite difference approximation. We will do this together. Step 1: Taylor Series expansion First we need the Taylor Series expansion of the function f(x + h, t). f(x, t) f(x + h, t) = f(x, t) + h + h2 2 f(x, t) x 2 x 2 + h3 3 f(x, t) 6 x 3 +... (Haberman, 2013; Snieder & van Wijk, 2015). Notice that this is a function of two variables f(x, t), but that we are only computing the derivatives with respect to x. We can write a similar Taylor Series expansion with respect to time t using the variable k. Write the expansion for f(x, t + k) below (10 pts.). 2

Step 2: The forward difference operator for first derivatives Recall from Lecture 05 that we can rearrange the terms in these expansions so that the desired derivative is by itself on the left-hand side of the equation. f(x, t) x = f(x + h, t) f(x, t) h + h 2 2 f(x, t) x 2 + h2 6 What does the term O(h) represent in the equation above? (4 pts.) 3 f(x, t) f(x + h, t) f(x, t) x 3 +... = + O(h), h Write the first order time derivative ( f(x,t) t ) using the forward difference operator. (6 pts.) Step 3: The centered difference operator for second derivatives Go back to the Lecture 05 notes (README.html) and look at the derivation of the second derivative with respect to x. Write the centered difference operator for 2 f(x,t) x. (5 pts.) 2 Step 4: Approximate the derivatives The next step is to approximate the first order time and second order space derivatives. The approximation for the second order space derivative is 2 f(x, t) f(x + h, t) 2f(x, t) + f(x h, t) x 2 h 2. Note the approximation symbol instead of the equal sign. This is because we have truncated the O(h 2 ) terms. Write the approximation for the first order time derivative f(x,t) t. (5 pts.) 3

Part 2: The finite difference solution to the diffusion equation (20 pts.) Step 1: Approximate the partial differential equation Now that we have an approximation for the first order time derivative f(x,t) t and the second order space derivative 2 f(x,t) x, we can insert these into the diffusion equation. Rewrite equation 4 in terms of the finite 2 difference approximations. (Hint: Notice that we just did the derivation in the previous section using a generic function f. When writing your answers in this part, make sure to replace f with z because in our diffusion equation we are computing the elevation z(x, t).) (10 pts.) Step 2: Solve for the value of the function at time t + k Now solve this equation for z(x, t + k). (Hint: Remember that k and κ are different!) (5 pts.) Reflection: It is important to stop here and reflect on what we have just done. Ask yourself, what does the equation you just derived actually represent? That is a good question. Basically you have now derived the finite difference solution to the diffusion equation. This analysis is very general and can be applied to any diffusion equation (e.g. temperature, fluid flow in porous media, etc.). You just need the (partial) differential equation; then you approximate derivatives and insert into the (partial) differential equation. In particular though, you have just solved for the value of the function at the next time step t + k. Let s look at what we need in order to solve the function at the next time step. We need z(x, t), which is the value of the topography at the current time step t and at the observation location x. That makes sense right? You can t compute the elevation in the future if you do not know the elevation now. What else? Well, you need to know the value of the topography to the left (z(x h, t)) and to the right (z(x + h, t)) at time t. This also makes sense. We are computing derivatives so we should expect that we need to know the local slope of the topography around observation point x. Finally, we need to know κ, h and k. We haven t discussed h and k yet, but we will in the next section. Draw a diagram of the grid points needed to compute z(x, t + k). Let row 1 be related to time step t and row 2 be related to time step t + k. Let column be x h, column 2 be x, and column 3 be x + h. This grid diagram is often called the finite-difference stencil (5 pts.) 4

Part 3: Implementing the numerical solution (35 pts.) In this last part, we will implement the finite difference solution to the diffusion equation that you just derived. This will allow us to model the evolution of topography given two things: 1. the initial topography profile, 2. the value of topographic diffusivity (κ). Start a new MATLAB script and begin to code based on the following steps. Make sure that you name variables following the MATLAB style guide document MatlabStyle1p5.pdf. Preliminaries A typical computer program usually follows the logical sequence or steps below: 1. Define parameters and constants, 2. Create the model space (includes time if necessary), 3. Compute calculations (using loops if necessary), 4. Plot results. Let s do this now. Step 1: Define parameters and constants In the first section of your MATLAB script define κ, dt and dx. (dt is actually k and dx is h from the previous section. It helps to think in terms of dt and dx though as these are the intervals between points in time and space. For example, when we look at the points to the left and right of us, we will look at x dx and x + dx, respectively.) These are the important parameters that do not change during the numerical modeling of the hill-slope evolution; set dt = 1 [year], dx = 1 [m] and κ = 2e 3 [m 2 /year]. (5 pts.) Step 2: Make the initial model Before we can do anything on a computer involving computations, we need to decide on a model domain. This is the time and/or space where our (partial) differential equation will be solved or studied. This means we have to 1) choose a physical space and discretize that space, 2) choose a time frame and discretize that, and 3) assign some physical properties to this space. For now, we will assume the physical properties are constant everywhere (i.e. κ is a constant.) Therefore, we need to make our initial model z(x, t = 0). This means we need the initial topography model z(x) at time t = 0. For the initial model, let s use the model given in the (Hallet & Putkonen, 1994) paper, which is a triangular moraine. We can build a triangle function z(x) with the following piece of MATLAB code. 5

z = [0 0 0 0 0 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0]; % [m] height nnode = numel( z ); % [No] number of elements in the x-direction xarray = ( 0 : nnode - 1 ).* dx; % [m] make the x-position vector The variable z is the elevation. The variable nnode is number of elements in the z-array, meaning we have sampled the topography evenly nnode times. The variable xarray gives the relative x location of each element in z. Based on dx = 1, at which x location does the maximum elevation occur in our triangular topography model? (4 pts.) Plot the initial topography at time zero. Make sure to include a figure title, axes labels and a legend. Save this as a.png file that has dimensions 600x600 pixels. (6 pts.) Step 3: Loop through time to compute the topography at t + dt Now that we have an initial model and the physical properties of this initial model, we can compute the topography at the next time step t + dt. This is the heart of the finite difference solution. Let s think about how we might do this. First we need to choose an end time. Make another parameter called tmax and set it to 1000 [years]. We want to loop over time from time zero up to time tmax. For generality, we should also make a generic start time as well. Make a variable called t0 and set it equal to dt; this means that the first observation year is 1, or that our initial model occurs at year 1. Make a for loop that runs from t0+dt:dt:tmax. This loop starts at t0+dt and stops at tmax, incrementing by whatever we assign to dt. NOTE: in this current implementation dt must be the integer 1! We will discuss making more general time steps later in lecture. This should remind you of z(x, t + dt), where we are computing the elevation at every dt step. (5 pts.) Now what goes inside of this for loop? Well, it should be the right-hand-side of your equation for z(x, t+dt). The only things left to consider are the (x dx) and (x + dx) terms required to compute z(x, t + dt). It turns out that we need another for loop inside our time loop. The limits of the second for loop should be 2:nNode-1. NOTE: we are not dealing with the edges of the model (i.e. xarray(1) or xarray(nnode)). We will not discuss boundary conditions here; instead we will leave the edges of the model zero with each time step. Inside this second for loop, insert your finite difference equation (10 pts.) Step 4: Plot your results Using the MALTAB hold command, plot your final model at 1000 years on top of your initial model. Make sure everything in your plot is labeled (5 pts.) Part 4: Discussion (15 pts.) 1. Vary the tmax variable and recompute your model. Describe the differences you see when you set tmax equal to 1e2, 1e3, 1e4, 1e5, 1e6. Does this make sense with what you know about erosion and sediment movement? Explain. (5 pts.) 2. Vary the κ value and describe how this parameter changes the model output. (5 pts.) 3. Describe how this model would change if we had tilted rock layers and we were modeling the topography evolution along a direction that crossed these different layers. How might we account for this? (5 pts.) 6

References Haberman, Richard. 2013. Applied Partial Differential Equations with Fourier Series and Boundary Value Problems. 5th edn. Pearson. Hallet, Bernard, & Putkonen, Jaakko. 1994. Surface dating of dynamic landforms: Young boulders on aging moraines. Science (New York, N.Y.), 265(5174), 937 940. Madoff, Risa. Introduction to MATLAB for Geomorphology. http://serc.carleton.edu/nagtworkshops/ data_models/matlab15/activities/115077.html. Accessed: 2016-10-04. Putkonen, Jaakko, Connolly, Jon, & Orloff, Travis. 2008. Landscape evolution degrades the geologic signature of past glaciations. Geomorphology, 97(1-2), 208 217. Snieder, Roel, & van Wijk, Kasper. 2015. A Guided Tour of Mathematical Methods for the Physical Sciences. 3rd edn. Cambridge University Press. This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International license. 7