Atms 4320 Lab 2 Anthony R. Lupo. Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Recall that.

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Finite Difference Discretization of Elliptic Equations: 1D Problem Lectures 2 and 3.
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Finite differences Finite differences.
Formal Computational Skills
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Computational Modeling for Engineering MECN 6040
Chapter 8 Elliptic Equation.
Numerical Computation
Numerical Uncertainty Assessment Reference: P.J. Roache, Verification and Validation in Computational Science and Engineering, Hermosa Press, Albuquerque.
Lecture 18 - Numerical Differentiation
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
PART 7 Ordinary Differential Equations ODEs
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Ordinary Differential Equations Equations which are.
1 Part 3 Truncation Errors (Supplement). 2 Error Propagation How errors in numbers can propagate through mathematical functions? That is, what's the effect.
Lecture 2: Numerical Differentiation. Derivative as a gradient
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
Introduction to Numerical Methods I
Second Term 05/061 Part 3 Truncation Errors (Supplement)
Numerical Methods for Partial Differential Equations
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
PART 7 Ordinary Differential Equations ODEs
Basic Concepts of Numerical Weather Prediction 6 September 2012.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 6 Various Finite Difference Discretizations for the Advection Equations.
1 The Spectral Method. 2 Definition where (e m,e n )=δ m,n e n = basis of a Hilbert space (.,.): scalar product in this space In L 2 space where f * :
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
Hyperbolic PDEs Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Lecture 16: Convection and Diffusion (Cont’d). Last Time … We l Looked at CDS/UDS schemes to unstructured meshes l Look at accuracy of CDS and UDS schemes.
R. Kass/W03P416/Lecture 7 1 Lecture 7 Some Advanced Topics using Propagation of Errors and Least Squares Fitting Error on the mean (review from Lecture.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.
Boyce/DiPrima 9 th ed, Ch 8.5: More on Errors; Stability Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter.
Finite Difference Methods Definitions. Finite Difference Methods Approximate derivatives ** difference between exact derivative and its approximation.
Engineering Analysis – Computational Fluid Dynamics –
CIS888.11V/EE894R/ME894V A Case Study in Computational Science & Engineering We will apply several numerical methods to find a steady state solution of.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
1 Approximation. 2 Taylor Series 3 Truncation Error  In general, the nth order Taylor series expansion will be exact for an nth order polynomial  In.
Ch 3.4: Complex Roots of Characteristic Equation Recall our discussion of the equation where a, b and c are constants. Assuming an exponential soln leads.
Introduction to Integration Methods. Types of Methods causal method employs values at prior computation instants. non-causal method if in addition to.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Ordinary Differential Equations
The story so far… ATM 562 Fovell Fall, Convergence We will deploy finite difference (FD) approximations to our model partial differential equations.
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
1 LECTURE 6 Stability of Parabolic PDEs. 2 Aim of Lecture Last week we discussed Parabolic PDEs –Looked at Explicit and Implicit Methods –Advantages and.
Time Integration Schemes Bill Skamarock NCAR/MMM 1.Canonical equations for scheme analyses. 2.Time-integration schemes used in NWP models.
1 EEE 431 Computational Methods in Electrodynamics Lecture 13 By Dr. Rasime Uyguroglu
The Finite-Difference Method Taylor Series Expansion Suppose we have a continuous function f(x), its value in the vicinity of can be approximately expressed.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
EEE 431 Computational Methods in Electrodynamics
Lecture 4: Numerical Stability
Introduction to Numerical Methods I
Scientific Computing Lab
Ordinary Differential Equations
Chapter 23.
Finite Volume Method for Unsteady Flows
Sec:4.3 Total Numerical Error.
Numerical differentiation
5.3 Higher-Order Taylor Methods
Numerical Analysis Lecture 2.
SKTN 2393 Numerical Methods for Nuclear Engineers
Presentation transcript:

Atms 4320 Lab 2 Anthony R. Lupo

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Recall that the total derivative can be exact  “Independent of path”  or path dependent:

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Total derivative composed of the eulerian and advective derivative:  In evaluating the derivative, we estimate the partial derivative by assuming that the function is well behaved, or that the changes are “linear” from point a to point b.

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  For most horizontal fields, that assumption is reasonable, but there are many places where this assumption fails (i.e frontal zones).  How do we estimate the derivative given a field of regularly spaced data?  Given: the following expression:

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  we can “estimate” temperature change in x (foreward differencing) at point 2,2 for example:  or we can estimate using a backward difference:

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Derivative estimates are most accurate when we use more points, so consider a “centered difference”  This can also be represented as the difference of two “Taylor” equations

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics Here they are!

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  With these equations we can also get an expression for the second derivative (just add (1) and (2) above):

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  This is called “finite differencing” since we are estimating derivatives using discrete estimates for the derivative quantities!  More precisely, what we have is second order finite differencing. We can derive higher order differences from Taylor series expansions. (ATMS 4800/7800).

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Laplacian operator:

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Truncation error  typically on order of the highest order term retained in estimate, thus for second order differencing, truncation error is on order of:  For 4th order differencing on order of:

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Truncation Error = Difference equation - differential equation  Stability of Calculations:  Courant - Friedrichs-Levy (CFL) condition for computational stability

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Typically used for evaluating schemes that estimate total derivative (e.g. leapfrog scheme)

Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Where c is phase speed of the upper air wave (propagation speed). Typically on order of 10 m s -1  If CFL = 1 (neutral stability, no growth, but solution propagates with computational error and modes)  If CFL < 1 (stable solutions, solution propagates with computational error and modes)  If CFL > 1 (computational unstable, solution grows exponentially without bound)