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.

Slides:



Advertisements
Similar presentations
CE 498/698 and ERS 685 (Spring 2004) Lecture 61 Lecture 6: Feedback Systems of Reactors CE 498/698 and ERS 685 Principles of Water Quality Modeling.
Advertisements

Unit 6 – Fundamentals of Calculus Section 6
ORDINARY DIFFERENTIAL EQUATIONS (ODE)
Stone media TF design Example 1
Kinetic and Thermodynamic Studies in Batch Reactor
Lecture 6 – Materials Balances Introduction to Environmental Engineering February 8, 2000.
Ordinary Differential Equations
Solving Engineering Problems by Using Computer A Case Study on Fed-Batch Bioreactor.
CE5504 – Surface Water Quality Modeling CE5504 Surface Water Quality Modeling Spring Semester 2011 Lab 2. Loads.
CE5504 – Surface Water Quality Modeling CE5504 Surface Water Quality Modeling Lab 3. Modeling Loads – The C/Q Approach Applied to Onondaga Lake.
CE 498/698 and ERS 685 (Spring 2004) Lecture 111 Lecture 11: Control-Volume Approach (steady-state) CE 498/698 and ERS 685 Principles of Water Quality.
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Initial-Value Problems
Numerical Integration CE5504 – Surface Water Quality Modeling  non-idealized loading functions  variable parameters  multi-segment systems  non-linear.
CE 498/698 and ERS 685 (Spring 2004) Lecture 121 Lecture 12: Control-Volume Approach (time-variable) CE 498/698 and ERS 685 Principles of Water Quality.
CE 498/698 and ERS 685 (Spring 2004) Lecture 181 Lecture 18: The Modeling Environment CE 498/698 and ERS 485 Principles of Water Quality Modeling.
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
CE5504 – Surface Water Quality Modeling CE5504 Surface Water Quality Modeling Lab 1. Modeling 101.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Extravascular administration: monitoring drug in urine.
Numerical Solutions of Ordinary Differential Equations
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Converting a Chemical Engineering Problem into Excel VBA Program
CISE301_Topic8L31 SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Ordinary Differential Equations (ODEs)
Numerical Solution of Ordinary Differential Equation
Section 6.1: Euler’s Method. Local Linearity and Differential Equations Slope at (2,0): Tangent line at (2,0): Not a good approximation. Consider smaller.
Lecture Objectives: Review discretization methods for advection diffusion equation Accuracy Numerical Stability Unsteady-state CFD Explicit vs. Implicit.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
Flood Routing 2 Review of Energy Conservation Energy Grade Line Gradually Varied Flows, Head Loss Runge-Kutta Routing.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
L8-1 Slides courtesy of Prof M L Kraft, Chemical & Biomolecular Engr Dept, University of Illinois, Urbana-Champaign. Review: Pressure Drop in PBRs A →
Selected Differential System Examples from Lectures
SAMPLE EXERCISE 14.7 Using the Integrated First-Order Rate Law
Integrated Rate Law. Rate laws can be converted into equations that tell us what the concentration of the reactants or products are at any time Calculus.
Soil Physics 2010 Outline Announcements Where were we? Measuring unsaturated flow Soil water diffusivity.
Numerical Analysis – Differential Equation
Introduction to the Runge-Kutta algorithm for approximating derivatives PHYS 361 Spring, 2011.
CE 3372 Water Systems Design
Computational Biology, Part 14 Recursion Relations Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
10.1 Definition of differential equation, its order, degree,
 Rate laws can be converted into equations that tell us what the concentration of the reactants or products are at any time  Calculus required to derive.
Warm Up. Equations of Tangent Lines September 10 th, 2015.
The mathematics behind STELLA Global population model reservoir converter flow connector This system represents a simple differential equation this is.
Ordinary Differential Equations
Sec 21: Generalizations of the Euler Method Consider a differential equation n = 10 estimate x = 0.5 n = 10 estimate x =50 Initial Value Problem Euler.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
NOTES 14-3 obj ) Using calculus to integrate the rate law for a first-order process gives us A.) INTEGRATED RATE LAWS ln [A] t [A] 0 = −kt Where.
Dissolved oxygen (DO) in the streams
CISE301_Topic8L71 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Lesson 9-2 Direction (Slope) Fields and Euler’s Method.
Chap. 4 Process Analysis and Selection  Type of Reactors Batch Reactor. Flow is neither entering nor leaving the reactor Complete-Mix Reactor Complete.
Reactor Models for Ventilation Modeling Solve differential equation Manipulate terms Ventilation rate Set up and solve generic problem.
Fall 2011 PHYS 172: Modern Mechanics Lecture 4 – Physical Models, Fundamental Interactions Read 2.7–2.8,
Find Slope Given Two Points and an Equation. Objectives Find the slope of a line given two points. Find the slope of a line given an equation.
ــــــــــــــ February 17 th, PHT - PRACTICAL Pharmacokinetic Basic Calculations Dr. Ahmed Alalaiwe.
CE Introduction to Environmental Engineering and Science
Integrated Rate Law.
CE 3372 Water Systems Design
Section Euler’s Method
Section 11.3 Euler’s Method
Numerical Solutions of Ordinary Differential Equations
Integrated Rate Law.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
Integrated Rate Law.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L7 KFUPM.
Presentation transcript:

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 Modeling

CE 498/698 and ERS 485 (Spring 2004) Lecture 72 Modeling Tradeoff

CE 498/698 and ERS 485 (Spring 2004) Lecture 73 Simplifying Assumptions Idealized loading curves Q, k, V are constant First-order reactions What if these don’t apply???? Computers and numerical methods

CE 498/698 and ERS 485 (Spring 2004) Lecture 74 Completely Mixed Lake Model where

CE 498/698 and ERS 485 (Spring 2004) Lecture 75 Euler’s Method Ch. 25 in Chapra and Canale c t h forward difference: + titi cici conc. at present t i + t i+1 c i+1 conc. at future t i+1

CE 498/698 and ERS 485 (Spring 2004) Lecture 76 Euler’s Method Ch. 19 in Chapra and Canale fwd difference: or where

CE 498/698 and ERS 485 (Spring 2004) Lecture 77 Example 7.1 Given: Q = m 3 yr -1 V = 10 6 m 3 Z = 5 m k = 0.2 yr -1 v = 0.25 m yr -1 c 0 = 15 mg L -1 At t = 0, step loading = 50  10 6 g yr -1 Simulate concentration from t = 0 to 20 yr using timestep of 1 year

CE 498/698 and ERS 485 (Spring 2004) Lecture 78 Example 7.1 At t i = 0, c i = 15 mg L -1 and W(t i ) = 50  10 6 g yr -1 c i for next computation

CE 498/698 and ERS 485 (Spring 2004) Lecture 79 Two equations: Euler’s Method

CE 498/698 and ERS 485 (Spring 2004) Lecture 710 Heun’s method Ch. 25 in Chapra and Canale c t + titi cici + t i+1 c i+1 slope 1 (predictor)

CE 498/698 and ERS 485 (Spring 2004) Lecture 711 Heun’s method c t + titi cici + t i+1 c i+1 slope 2 c 0 i+1

CE 498/698 and ERS 485 (Spring 2004) Lecture 712 Heun’s method c t + titi cici + t i+1 c i+1 c 0 i+1

CE 498/698 and ERS 485 (Spring 2004) Lecture 713 Example without iteration From previous calcs: h At t i = 0, c i = 15 mg L -1 and W(t i ) = 50  10 6 g yr -1

CE 498/698 and ERS 485 (Spring 2004) Lecture th -order Runge-Kutta general form of RK methods: slope estimate Euler: Heun: 4 th -order RK:

CE 498/698 and ERS 485 (Spring 2004) Lecture th -order Runge-Kutta where

CE 498/698 and ERS 485 (Spring 2004) Lecture 716 Spreadsheet Applications Example: Euler’s method for Example 7.1 Q =10000m 3 yr -3 V = m3m3 Z =5m v =0.25m yr -1 k =0.2yr -1 h =yr(timestep) =

CE 498/698 and ERS 485 (Spring 2004) Lecture 717 Spreadsheet Applications Example: Euler’s method for Example 7.1 Q =10000m 3 yr -3 V = m3m3 H =5m v =0.25m yr -1 k =0.2yr -1 h =yr(timestep) =

CE 498/698 and ERS 485 (Spring 2004) Lecture 718 Spreadsheet Applications Example: Euler’s method for Example 7.1 Q =10000m 3 yr -3 V = m3m3 Z =5m v =0.25m yr -1 k =0.2yr -1 h =yr(timestep) = titi W(t i )cici Slope (dc/dt)c i+1 0W(t 0 )Initial conc. 1W(t 1 )

CE 498/698 and ERS 485 (Spring 2004) Lecture 719 Spreadsheet Applications Example: Euler’s method for Example 7.1 Q =10000m 3 yr -3 V = m3m3 Z =5m v =0.25m yr -1 k =0.2yr -1 h =yr(timestep) = titi W(t i )cici Slope (dc/dt)c i+1 0W(t 0 )Initial conc.=c i +slope*h 1W(t 1 )

CE 498/698 and ERS 485 (Spring 2004) Lecture 720 Spreadsheet Applications Example: Euler’s method for Example 7.1 Q =10000m 3 yr -3 V = m3m3 Z =5m v =0.25m yr -1 k =0.2yr -1 h =yr(timestep) = titi W(t i )cici Slope (dc/dt)c i+1 0W(t 0 )Initial conc.=c i +slope*h 1W(t 1 )=c i+1

CE 498/698 and ERS 485 (Spring 2004) Lecture 721 Spreadsheet Applications Heun’s method titi W(t i )cici Slope 1 (s1) c 0 i+1 Slope 2 (s2) c i+1 0W(t 0 )Initial conc.=c i +s1*h=c i +0.5(s1+s2)*h 1W(t 1 )=c i+1

CE 498/698 and ERS 485 (Spring 2004) Lecture 722 Spreadsheet Applications Heun’s method titi W(t i )cici Slope 1 (s1) c 0 i+1 Slope 2 (s2) c i+1 0W(t 0 )Initial conc.=c i +s1*h=c i +0.5(s1+s2)*h 1W(t 1 )=c i+1

CE 498/698 and ERS 485 (Spring 2004) Lecture 723 Spreadsheet Applications Heun’s method titi W(t i )cici Slope 1 (s1) c 0 i+1 Slope 2 (s2) c i+1 0W(t 0 )Initial conc.=c i +s1*h=c i +0.5(s1+s2)*h 1W(t 1 )=c i+1

CE 498/698 and ERS 485 (Spring 2004) Lecture 724 Major Homework #1 Parameters from Example 5.3 Eigenvalues Calculations

CE 498/698 and ERS 485 (Spring 2004) Lecture 725 Major Homework #1 Parameters from Example Depth Area Volume Outflow Loading Settling Reaction rate Timestep, h One value for all 5 lakes

CE 498/698 and ERS 485 (Spring 2004) Lecture 726 Major Homework #1 Eigenvalues 11 yr yr -1

CE 498/698 and ERS 485 (Spring 2004) Lecture 727 Major Homework #1 YearTimec i,1 c i,2 c i,3 c i,4 c i,5 k 1,1 k 2,1 k 3,1 k 4,1 c i+1,1 k 1,2 k 2, =prev+h given