Numerical Integration CE5504 – Surface Water Quality Modeling  non-idealized loading functions  variable parameters  multi-segment systems  non-linear.

Slides:



Advertisements
Similar presentations
Ordinary Differential Equations
Advertisements

Chapter 6 Differential Equations
South China University of Technology Oscillator motions Xiaobao Yang Department of Physics
Modeling Basics: 4. Numerical ODE Solving In Excel 5. Solving ODEs in Mathematica By Peter Woolf University of Michigan Michigan Chemical Process Dynamics.
EULER Code for Helicopter Rotors EROS - European Rotorcraft Software Romuald Morvant March 2001.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
5/19/ Runge 4 th Order Method Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
CE 498/698 and ERS 485 (Spring 2004) Lecture 71 Lecture 7: Computer Methods for Well-Mixed Reactors CE 498/698 and ERS 685 Principles of Water Quality.
CE5504 – Surface Water Quality Modeling CE5504 Surface Water Quality Modeling Lab 1. Numerical Methods and Population Growth Modeling.
CE5504 – Surface Water Quality Modeling CE5504 Surface Water Quality Modeling Lab 2. Numerical Methods and Population Growth Modeling.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
11 September 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 10 – Ordinary Differential Equations 11 September am – 9.00 am.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Initial-Value Problems
CSE 330 : Numerical Methods Lecture 17: Solution of Ordinary Differential Equations (a) Euler’s Method (b) Runge-Kutta Method Dr. S. M. Lutful Kabir Visiting.
PART 7 Ordinary Differential Equations ODEs
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
9/22/ Runge 2 nd Order Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Computational Method in Chemical Engineering (TKK-2109)
10/20/ Runge 2 nd Order Method Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Computer Animation Algorithms and Techniques
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Performance & Stability Analysis.
5/30/ Runge 4 th Order Method Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Scientific Computing Multi-Step and Predictor-Corrector Methods.
Chapter 10 ordinary differential equations (ODEs) Chapter 11 systems of ODEs (6 th edition)
Predicting Landing Solutions for a Rocket in a Two- Body System Spring 2014 · Honors Professor Thorp · C++
Please remember: When you me, do it to Please type “numerical-15” at the beginning of the subject line Do not reply to my gmail,
1/16/ Runge 4 th Order Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
1/19/ Runge 4 th Order Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
PHY 301: MATH AND NUM TECH Contents Chapter 10: Numerical Techniques I. Integration A.Intro B.Euler  Recall basic  Predictor-Corrector C. Runge-Kutta.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Integration Methods Euler Runge-Kutta 2 Runge-Kutta 4.
Numerical Methods for Partial Differential Equations
Part 7 - Chapter 25.
Date of download: 10/19/2017 Copyright © ASME. All rights reserved.
5.4 Runge-Kutta 4 Method.
Ordinary Differential Equations
ECE 576 – Power System Dynamics and Stability
Mechanical Engineering at Virginia Tech
Using local variable without initialization is an error.
525602:Advanced Numerical Methods for ME
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Class Notes 19: Numerical Methods (2/2)
Vector Field Visualization
First-Order Differential Equations
Sec:25.3 RUNGE-KUTTA METHODS.
Ordinary differential equaltions:
Part 7 - Chapter 25.
Industrial Engineering Majors Authors: Autar Kaw, Charlie Barker
WELCOME TO MY CLASS NUMERICAL METHOD Name : Masduki
Scientific Computing Lab
Numerical Solutions of Ordinary Differential Equations
Numerical solution of first-order ordinary differential equations
Figure 9.1.
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L6.
Chapter 18: Elementary Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
Numerical Computation and Optimization
Implicit and Explicit Runge-Kutta methods
Differential equations
MATH 2140 Numerical Methods
Types of Errors And Error Analysis.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L1 KFUPM.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L6 KFUPM.
Presentation transcript:

Numerical Integration CE5504 – Surface Water Quality Modeling  non-idealized loading functions  variable parameters  multi-segment systems  non-linear kinetics

The Euler Method CE5504 – Surface Water Quality Modeling

The Effect of Step Size CE5504 – Surface Water Quality Modeling (Spain 1982, Figure 5.1)

Code CE5504 – Surface Water Quality Modeling

Code (continued) CE5504 – Surface Water Quality Modeling

Code (continued) CE5504 – Surface Water Quality Modeling

Advanced Numerical Techniques The Heun’s Method CE5504 – Surface Water Quality Modeling For i = 0 To tmax For j = 1 To 1 / dt k1 = mu * x X1 = x + dt * k1 k2 = mu * X1 x = x + (k1 + k2) / 2 * dt Next j Next i

CE5504 – Surface Water Quality Modeling Advanced Numerical Techniques The 4 th Order Runge Kutta Method For i = 0 To tmax For j = 1 To 1 / dt k1 = mu * x X1 = x * dt * k1 k2 = mu * X1 X2 = x * dt * k2 k3 = mu * X2 X3 = x + dt * k3 k4 = mu * X3 x = x + (k1 + 2 * k2 + 2 * k3 + k4) / 6 * dt Next j Next i

Advanced Numerical Techniques Error Comparison CE5504 – Surface Water Quality Modeling Error (%) for various values of dt at t = 5 days dtEulerHeun4th RK Error criterion: <=0.01 %