SKTN 2393 Numerical Methods for Nuclear Engineers

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

ES 240: Scientific and Engineering Computation. Chapter 17: Numerical IntegrationIntegration  Definition –Total area within a region –In mathematical.
Numerical Methods Lecture 14 Differentiation-Continuous Functions
Computational Modeling for Engineering MECN 6040
CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
Part 5 Chapter 19 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
EE3561_Unit 6(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 6 Numerical Differentiation Dr. Mujahed AlDhaifallah ( Term 342)
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Computation
High Accuracy Differentiation Formulas
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
Lecture 18 - Numerical Differentiation
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Lecture 2: Numerical Differentiation. Derivative as a gradient
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
1 Chapter 6 NUMERICAL DIFFERENTIATION. 2 When we have to differentiate a function given by a set of tabulated values or when a complicated function is.
Dr. Jie Zou PHY Chapter 7 Numerical Differentiation: 1 Lecture (I) 1 Ref: “Applied Numerical Methods with MATLAB for Engineers and Scientists”, Steven.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 23 Numerical Differentiation.
Numerical Differentiation:1* Lecture (II)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Newton-Cotes.
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
8/15/ Differentiation-Continuous Functions Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
Derivatives and Differential Equations
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Numerical Differentiation
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation.
ES 240: Scientific and Engineering Computation. Chapter 4 Chapter 4: Errors Uchechukwu Ofoegbu Temple University.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
10/27/ Differentiation-Continuous Functions Computer Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Engineering Analysis – Computational Fluid Dynamics –
Chap. 11 Numerical Differentiation and Integration
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
Numerical Integration
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
1 Numerical Differentiation. 2  First order derivatives  High order derivatives  Examples.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
NUMERICAL DIFFERENTIATION Forward Difference Formula
High Accuracy Differentiation Formulas
Part 6 - Chapter 21.
Applied Numerical Methods
Interpolation Estimation of intermediate values between precise data points. The most common method is: Although there is one and only one nth-order.
Chapter 18.
Differentiation-Continuous Functions
Numerical Differentiation
Numerical Integration Formulas
The taylor series and Numerical Differentiation
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Differentiation
Interpolation.
Chapter 18.
MATH 2140 Numerical Methods
Chapter 23.
Numerical differentiation
Numerical Differentiation Chapter 23
Numerical Analysis Lecture 26.
MATH 2140 Numerical Methods
The taylor series and Numerical Differentiation
MATH 174: NUMERICAL ANALYSIS I
SKTN 2393 Numerical Methods for Nuclear Engineers
SKTN 2393 Numerical Methods for Nuclear Engineers
9.7 Taylor Polynomials & Approximations
Presentation transcript:

SKTN 2393 Numerical Methods for Nuclear Engineers Chapter 6 Differentiation Mohsin Mohd Sies Nuclear Engineering, School of Chemical and Energy Engineering, Universiti Teknologi Malaysia

Differentiation Most engineering and scientific problems involve derivatives Temperature distribution Response of mass-spring to excitation (gun recoil, shock absorbers, etc.) Many others..

Engineering Application

Engineering Application

Engineering Application

Engineering Application

Differentiation The function to be differentiated will typically be in one of the following three forms: A simple continuous function such as polynomial, an exponential, or a trigonometric function. A complicated continuous function that is difficult or impossible to differentiate or integrate directly. A tabulated function (tabulated data) where values of x and f(x) are given at a number of discrete points, as is often the case with experimental or field data.

Strategy for Continuous Functions Since we already know what the function is, Generate as many function points as needed Use the generated function values to estimate the derivative based on finite difference formulas Finite difference formulas use only function values to give estimates of derivatives

Definition of Derivatives

Derivative approximated as finite differences;

Based on Taylor Series 𝑓 𝑥 𝑖+1 ≃𝑓 𝑥 𝑖 +𝑓′ 𝑥 𝑖 𝑥 𝑖+1 − 𝑥 𝑖 + 𝑓′′ 𝑥 𝑖 2! 𝑥 𝑖+1 − 𝑥 𝑖 2 + 𝑓′′′ 𝑥 𝑖 3! 𝑥 𝑖+1 − 𝑥 𝑖 3 +…+ 𝑓 𝑛 𝑥 𝑖 𝑛! 𝑥 𝑖+1 − 𝑥 𝑖 𝑛 + 𝑅 𝑛

Finite divided difference Truncating 2nd order & higher terms & rearrange, we get the first forward difference (also called the two point forward difference) 𝑓′ 𝑥 𝑖 = 𝑓 𝑥 𝑖+1 −𝑓 𝑥 𝑖 𝑥 𝑖+1 − 𝑥 𝑖 +𝑂 𝑥 𝑖+1 − 𝑥 𝑖 = 𝑓 𝑥 𝑖+1 −𝑓 𝑥 𝑖 ℎ = 𝛥 𝑓 𝑖 ℎ +𝑂 ℎ which is first order accurate

Backward Difference which is also first order accurate Truncating 2nd order & higher terms & rearrange, we get the first backward difference (also called the two point backward difference) 𝑑𝑓 𝑑𝑥 𝑖 ≈ 𝛥𝑓 𝛥𝑥 = 𝑓 𝑖 − 𝑓 𝑖−1 𝑥 𝑖 − 𝑥 𝑖−1 which is also first order accurate

Central Difference which is second order accurate Subtracting the backward Taylor from the forward Taylor gives us the centered difference formula 𝑑𝑓 𝑑𝑥 𝑖 ≈ 𝛥𝑓 𝛥𝑥 = 𝑓 𝑖+1 − 𝑓 𝑖−1 𝑥 𝑖+1 − 𝑥 𝑖−1 which is second order accurate

Increasing the Accuracy Common ways to increase accuracy are: Decrease step size h. Taking more terms in the Taylor series. For example, to get higher accuracy first derivatives, the second order term has to be retained. This term can be evaluated using the centered difference formula for f’’

Increasing the Accuracy Adding the backward to the forward Taylor series gives us the centered difference formula for f’’. This can be substituted into the Taylor series for forward or backward difference derivation.

Forward Difference Formulas

Backward Difference Formulas

Centered Difference Formulas

Strategy for Tabulated Data Tabulated data can be equally spaced or non-equally spaced The strategy is to fit a polynomial to the data and differentiate the polynomial. The polynomial fit can either be Direct fit polynomials Lagrange polynomials Divided difference polynomials

Direct Fit Polynomials

Lagrange Polynomials

Divided Difference Polynomials

Example

Example

Example

Example

Example (Matlab)

Example (Matlab)

Example (Matlab)