CHAPTER 3 : MATHEMATICAL MODELLING PRINCIPLES

Similar documents
Solutions for Tutorial 4 Modelling of Non-Linear Systems

Solutions for Tutorial 3 Modelling of Dynamic Systems

CHAPTER 13: FEEDBACK PERFORMANCE

Theoretical Models of Chemical Processes

CONTROL OF MULTIVARIABLE PROCESSES

CHAPTER 10: STABILITY &TUNING

CHAPTER 15: FEEDFORWARD CONTROL

CHEE 222: PROCESS DYNAMICS AND NUMERICAL METHODS

Solutions for Tutorial 10 Stability Analysis

Basic Procedures for Common Problems

CHAPTER 2 CONTINUOUS STIRRED TANK REACTOR PROCESS DESCRIPTION

ChE 344 Winter 2013 Final Exam + Solution. Open Course Textbook Only Closed everything else (i.e., Notes, In-Class Problems and Home Problems

Use of Differential Equations In Modeling and Simulation of CSTR

MATLAB Ordinary Differential Equation (ODE) solver for a simple example 1. Introduction

ChE 344 Winter 2011 Final Exam + Solution. Open Book, Notes, and Web

Development of Dynamic Models. Chapter 2. Illustrative Example: A Blending Process

Chemical Reaction Engineering - Part 14 - intro to CSTRs Richard K. Herz,

IV B.Tech. I Semester Supplementary Examinations, February/March PROCESS MODELING AND SIMULATION (Chemical Engineering)

Chemical Reaction Engineering Lecture 5

Lecture 8. Mole balance: calculations of microreactors, membrane reactors and unsteady state in tank reactors

Related Rates In each related rate problem there can be variations in the details. The problems, however, have the same general structure.

1. Introductory Material

Numerical Solution of Differential Equations

Modelling and linearization. Mathematical Modeling of Chemical Processes

CHEMICAL ENGINEERING KINETICS/REACTOR DESIGN. Tony Feric, Kathir Nalluswami, Manesha Ramanathan, Sejal Vispute, Varun Wadhwa

A First Course on Kinetics and Reaction Engineering Example 13.3

Next, make a stoichiometric table for the flow system (see Table 3-4 in Fogler). This table applies to both a PFR and CSTR reactor.

13 th Aug Chemical Reaction Engineering CH3010. Home work problems

ChE 344 Winter 2013 Mid Term Exam II Tuesday, April 9, 2013

Chemical reactors. H has thermal contribution, pressure contribution (often negligible) and reaction contribution ( source - like)

CBE 142: Chemical Kinetics & Reaction Engineering

Chemical Reaction Engineering Prof. JayantModak Department of Chemical Engineering Indian Institute of Science, Bangalore

(Refer Slide Time: 00:10)

ChE 6303 Advanced Process Control

10.37 Exam 2 25 April, points. = 10 nm. The association rate constant

ChE 344 Winter 2011 Final Exam. Open Book, Notes, and Web

1/r plots: a brief reminder

Midterm II. ChE 142 April 11, (Closed Book and notes, two 8.5 x11 sheet of notes is allowed) Printed Name

Euler s method for solving a differential equation (approximately)

Name. Honor Code: I have neither given nor received unauthorized aid on this examination, nor have I concealed any violations of the Honor Code.

Process Classification

Maths III - Numerical Methods

For a recycle reactor the relationship between the volume and other parameters is given by

CONSIM - MS EXCEL BASED STUDENT FRIENDLY SIMULATOR FOR TEACHING PROCESS CONTROL THEORY

Chemical Reaction Engineering Prof. Jayant Modak Department of Chemical Engineering Indian Institute of Science, Bangalore

Chemical Reaction Engineering - Part 12 - multiple reactions Richard K. Herz,

You may not use your books, notes; calculators are highly recommended.

Chemical Engineering Applications in Scilab

PFR with inter stage cooling: Example 8.6, with some modifications

Modeling Basics: 4. Numerical ODE Solving In Excel 5. Solving ODEs in Mathematica

Dynamic Modeling. For the mechanical translational system shown in Figure 1, determine a set of first order

Chemical Engineering 3P04 Process Control Tutorial # 1 Learning goals

Chemical Reaction Engineering

A First Course on Kinetics and Reaction Engineering. Class 20 on Unit 19

Module 1: Mole Balances, Conversion & Reactor Sizing (Chapters 1 and 2, Fogler)

Lecture 8. Mole balance: calculations of microreactors, membrane reactors and unsteady state in tank reactors

Basic Concepts in Reactor Design

Chemical Reaction Engineering - Part 7 Richard K. Herz,

Introduction to Mass Transfer

Motion in Two Dimensions: Centripetal Acceleration

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Newton s Cooling Model in Matlab and the Cooling Project!

Rate of Heating and Cooling

MATHCAD SOLUTIONS TO THE CHEMICAL ENGINEERING PROBLEM SET

Advanced Chemical Reaction Engineering Prof. H. S. Shankar Department of Chemical Engineering IIT Bombay. Lecture - 03 Design Equations-1

AP PHYSICS C Mechanics - SUMMER ASSIGNMENT FOR

Process Control, 3P4 Assignment 5

BITS-Pilani Dubai, International Academic City, Dubai Second Semester. Academic Year

A First Course on Kinetics and Reaction Engineering Unit 19. Analysis of Batch Reactors

12/21/2014 7:39 PM. Chapter 2. Energy and the 1st Law of Thermodynamics. Dr. Mohammad Suliman Abuhaiba, PE

SCIENCE STUDENT BOOK. 11th Grade Unit 3

Temperature Control of CSTR Using Fuzzy Logic Control and IMC Control

Chemical Reaction Engineering

Chemical Kinetics and Reaction Engineering

Checking the Radioactive Decay Euler Algorithm

Queen s University at Kingston. CHEE Winter Process Dynamics and Control. M. Guay. Quiz 1

Lecture 4. Mole balance: calculation of membrane reactors and unsteady state in tank reactors. Analysis of rate data

3.1 Derivative Formulas for Powers and Polynomials

ENGI 3424 First Order ODEs Page 1-01

A First Course on Kinetics and Reaction Engineering Unit 33. Axial Dispersion Model

The simplified model now consists only of Eq. 5. Degrees of freedom for the simplified model: 2-1

Example 8: CSTR with Multiple Solutions

Mon Jan Improved acceleration models: linear and quadratic drag forces. Announcements: Warm-up Exercise:

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

5. Collection and Analysis of. Rate Data

Experimental Determination of Kinetic Rate Constants Using Batch and CSTR Reactors

Introductory Energy & Motion Lab P4-1350

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

ChE 344 Winter 2011 Mid Term Exam I + Solution. Closed Book, Web, and Notes

A First Course on Kinetics and Reaction Engineering Example 13.2

CHEMICAL ENGINEERING LABORATORY CHEG 4137W/4139W. Reaction Kinetics Saponification of Isopropyl Acetate with Sodium Hydroxide

ME 2322 Thermodynamics I PRE-LECTURE Lesson 23 Complete the items below Name:

Name Date Block LESSON CLUSTER 6: Expansion and Contraction

Chemical Reaction Engineering

AP Calculus BC 1998 Free-Response Questions

Unit #16 : Differential Equations

CHAPTER FIVE REACTION ENGINEERING

First-Order Differential Equations

Thermodynamics revisited

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Transcription:

CHAPTER 3 : MATHEMATICAL MODELLING PRINCIPLES When I complete this chapter, I want to be able to do the following. Formulate dynamic models based on fundamental balances Solve simple first-order linear dynamic models Determine how key aspects of dynamics depend on process design and operation

CHAPTER 3 : MATHEMATICAL MODELLING PRINCIPLES Outline of the lesson. Reasons why we need dynamic models Six (6) - step modelling procedure Many examples - mixing tank -CSTR - draining tank General conclusions about models Workshop

WHY WE NEED DYNAMIC MODELS Do the Bus and bicycle have different dynamics? Which can make a U-turn in 1.5 meter? Which responds better when it hits s bump? Dynamic performance depends more on the vehicle than the driver!

WHY WE NEED DYNAMIC MODELS Do the Bus and bicycle have different dynamics? Which can make a U-turn in 1.5 meter? Which responds better when it hits s bump? Dynamic performance depends more on the vehicle than the driver! The process dynamics are more important than the computer control!

WHY WE NEED DYNAMIC MODELS Feed material is delivered periodically, but the process requires a continuous feed flow. How large should should the tank volume be? Periodic Delivery flow Continuous Feed to process Time

WHY WE NEED DYNAMIC MODELS Feed material is delivered periodically, but the process requires a continuous feed flow. How large should should the tank volume be? Periodic Delivery flow Continuous Feed to process Time We must provide process flexibility for good dynamic performance!

WHY WE NEED DYNAMIC MODELS The cooling water pumps have failed. How long do we have until the exothermic reactor runs away? F Temperature Dangerous T L A time

WHY WE NEED DYNAMIC MODELS The cooling water pumps have failed. How long do we have until the exothermic reactor runs away? F Temperature Dangerous T L A time Process dynamics are important for safety!

WHY WE DEVELOP MATHEMATICAL MODELS? Input change, e.g., step in coolant flow rate Process Effect on output variable T A How does the process influence the response? How far? How fast Shape

WHY WE DEVELOP MATHEMATICAL MODELS? Input change, e.g., step in coolant flow rate Process Effect on output variable T A Math models help us answer these questions! How does the process influence the response? How far? How fast Shape

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model We apply this procedure to many physical systems overall material balance component material balance energy balances T A

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model T A What decision? What variable? Location 4. Determine the solution 5. Analyze Results 6. Validate the model Examples of variable selection liquid level total mass in liquid pressure total moles in vapor temperature energy balance concentration component mass

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model Sketch process Collect data State assumptions Define system T A Key property of a system?

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model Sketch process Collect data State assumptions Define system T A Key property of a system? Variable(s) are the same for any location within the system!

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model CONSERVATION BALANCES Overall Material { Accumulation of mass} = { mass in} { mass out} Component Material Accumulation of component mass Energy* Accumulation = U + PE + KE component = mass in component mass out generation of + component mass { H + PE + KE} { H + PE + KE} + Q - W s in out * Assumes that the system volume does not change

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model What type of equations do we use first? Conservation balances for key variable How many equations do we need? Degrees of freedom = NV - NE = 0 What after conservation balances? Constitutive equations, e.g., Q = h A ( T) r A = k 0 e -E/RT Not fundamental, based on empirical data

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model Our dynamic models will involve differential (and algebraic) equations because of the accumulation terms. V dc dt A = F C ) VkC ( CA0 With initial conditions C A = 3.2 kg-mole/m 3 at t = 0 And some change to an input variable, the forcing function, e.g., C A0 = f(t) = 2.1 t (ramp function) A A

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model We will solve simple models analytically to provide excellent relationship between process and dynamic response, e.g., C A (t) = C (t) + ( C )K( 1 e A t= 0 for t f 0 A0 Many results will have the same form! We want to know how the process influences K and τ, e.g., F K = τ = F + kv F V + Vk t / τ )

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model We will solve complex models numerically, e.g., V dc dt A 2 A0 CA VkCA = F( C ) Using a difference approximation for the derivative, we can derive the Euler method. C A n = C A n 1 F( C + ( t) A0 C V A ) VkC Other methods include Runge-Kutta and Adams. 2 A n 1

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model Check results for correctness - sign and shape as expected - obeys assumptions - negligible numerical errors Plot results Evaluate sensitivity & accuracy Compare with empirical data

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model Let s practice modelling until we are ready for the Modelling Olympics! Please remember that modelling is not a spectator sport! You have to practice (a lot)!

MODELLING EXAMPLE 1. MIXING TANK Textbook Example 3.1: The mixing tank in the figure has been operating for a long time with a feed concentration of 0.925 kg-mole/m 3. The feed composition experiences a step to 1.85 kg-mole/m 3. All other variables are constant. Determine the dynamic response. F C A0 C A V (We ll solve this in class.)

Let s understand this response, because we will see it over and over! 1.8 Output is smooth, monotonic curve tank concentration 1.6 1.4 1.2 1 0.8 2 Maximum slope at t=0 τ 0 20 40 60 80 100 120 time Output changes immediately 63% of steady-state C A At steady state C A = K C A0 inlet concentration 1.5 1 C A0 Step in inlet variable 0.5 0 20 40 60 80 100 120 time

MODELLING EXAMPLE 2. CSTR The isothermal, CSTR in the figure has been operating for a long time with a feed concentration of 0.925 kg-mole/m 3. The feed composition experiences a step to 1.85 kgmole/m 3. All other variables are constant. Determine the dynamic response of C A. Same parameters as textbook Example 3.2 F C A0 A B C A V r A = kc A (We ll solve this in class.)

reactor conc. of A (mol/m3) 1 0.8 0.6 MODELLING EXAMPLE 2. CSTR Annotate with key features similar to Example 1 0.4 0 50 100 150 time (min) 2 Which is faster, mixer or CSTR? Always? inlet conc. of A (mol/m3) 1.5 1 0.5 0 50 100 150 time (min)

MODELLING EXAMPLE 2. TWO CSTRs Two isothermal CSTRs are initially at steady state and experience a step change to the feed composition to the first tank. Formulate the model for C A2. Be especially careful when defining the system! F A C A0 B C A1 V1 C A2 V2 r A = kc A (We ll solve this in class.)

MODELLING EXAMPLE 3. TWO CSTRs Annotate with key features similar to Example 1 1.2 1.2 tank 1 concentration 1 0.8 0.6 0.4 tank 2 concentration 1 0.8 0.6 0.4 0 10 20 30 40 50 60 time 0 10 20 30 40 50 60 2 inlet concentration 1.5 1 0.5 0 10 20 30 40 50 60 time

SIX-STEP MODELLING PROCEDURE 1. Define Goals 2. Prepare information 3. Formulate the model 4. Determine the solution 5. Analyze Results 6. Validate the model We can solve only a few models analytically - those that are linear (except for a few exceptions). We could solve numerically. We want to gain the INSIGHT from learning how K (s-s gain) and τ s (time constants) depend on the process design and operation. Therefore, we linearize the models, even though we will not achieve an exact solution!

LINEARIZATION Expand in Taylor Series and retain only constant and linear terms. We have an approximation. This is the only variable F( x) = F( x s ) + df dx x s ( x x s ) + 1 2! d 2 dx F 2 x s ( x x s ) 2 + R Remember that these terms are constant because they are evaluated at x s We define the deviation variable: x = (x - x s )

LINEARIZATION We must evaluate the approximation. It depends on non-linearity y =1.5 x 2 + 3 about x = 1 exact approximate distance of x from x s Because process control maintains variables near desired values, the linearized analysis is often (but, not always) valid.

MODELLING EXAMPLE 4. N-L CSTR Textbook Example 3.5: The isothermal, CSTR in the figure has been operating for a long time with a constant feed concentration. The feed composition experiences a step. All other variables are constant. Determine the dynamic response of C A. Non-linear! F C A0 A B C A V 2 r A = kc A (We ll solve this in class.)

MODELLING EXAMPLE 4. N-L CSTR We solve the linearized model analytically and the non-linear numerically. Deviation variables do not change the answer, just translate the values In this case, the linearized approximation is close to the exact non-linear solution.

MODELLING EXAMPLE 4. DRAINING TANK The tank with a drain has a continuous flow in and out. It has achieved initial steady state when a step decrease occurs to the flow in. Determine the level as a function of time. Solve the non-linear and linearized models.

MODELLING EXAMPLE 4. DRAINING TANK Small flow change: linearized approximation is good Large flow change: linearized model is poor the answer is physically impossible! (Why?)

DYNAMIC MODELLING We learned first-order systems have the same output shape. dy τ dt + Y = K[f (t))] with f(t) the input or forcing 1.8 Output is smooth, monotonic curve Sample response to a step input tank concentration 1.6 1.4 1.2 1 0.8 2 Maximum slope at t=0 τ 0 20 40 60 80 100 120 time Output changes immediately 63% of steady-state At steady state = K δ inlet concentration 1.5 1 δ = Step in inlet variable 0.5 0 20 40 60 80 100 120 time

DYNAMIC MODELLING The emphasis on analytical relationships is directed to understanding the key parameters. In the examples, you learned what affected the gain and time constant. sign K: Steady-state Gain magnitude (don t forget the units) how depends on design (e.g., V) and operation (e.g., F) τ:time Constant sign (positive is stable) magnitude (don t forget the units) how depends on design (e.g., V) and operation (e.g., F)

DYNAMIC MODELLING: WORKSHOP 1 For each of the three processes we modelled, determine how the gain and time constant depend on V, F, T and C A0. Mixing tank linear CSTR CSTR with second order reaction F C A0 C A V

DYNAMIC MODELLING: WORKSHOP 2 Describe three different level sensors for measuring liquid height in the draining tank. For each, determine whether the measurement can be converted to an electronic signal and transmitted to a computer for display and control. I m getting tired of monitoring the level. I wish this could be automated. L

DYNAMIC MODELLING: WORKSHOP 3 Model the dynamic response of component A (CA) for a step change in the inlet flow rate with inlet concentration constant. Consider two systems separately. Mixing tank CSTR with first order reaction F C A0 C A V

DYNAMIC MODELLING: WORKSHOP 4 The parameters we use in mathematical models are never known exactly. For several models solved in the textbook, evaluate the effect of the solution of errors in parameters. ± 20% in reaction rate constant k ± 20% in heat transfer coefficient ± 5% in flow rate and tank volume How would you consider errors in several parameters in the same problem? Check your responses by simulating using the MATLAB m- files in the Software Laboratory.

DYNAMIC MODELLING: WORKSHOP 5 Determine the equations that are solved for the Euler numerical solution for the dynamic response of draining tank problem. Also, give an estimate of a good initial value for the integration time step, t, and explain your recommendation.

CHAPTER 3 : MATH. MODELLING How are we doing? Formulate dynamic models based on fundamental balances Solve simple first-order linear dynamic models Determine how key aspects of dynamics depend on process design and operation Lot s of improvement, but we need some more study! Read the textbook Review the notes, especially learning goals and workshop Try out the self-study suggestions Naturally, we ll have an assignment!

CHAPTER 3: LEARNING RESOURCES SITE PC-EDUCATION WEB - Instrumentation Notes - Interactive Learning Module (Chapter 3) - Tutorials (Chapter 3) - M-files in the Software Laboratory (Chapter 3) Read the sections on dynamic modelling in previous textbooks - Felder and Rousseau, Fogler, Incropera & Dewitt Other textbooks with solved problems - See the course outline and books on reserve in Thode

CHAPTER 3: SUGGESTIONS FOR SELF-STUDY 1. Discuss why we require that the degrees of freedom for a model must be zero. Are there exceptions? 2. Give examples of constitutive equations from prior chemical engineering courses. For each, describe how we determine the value for the parameter. How accurate is the value? 3. Prepare one question of each type and share with your study group: T/F, multiple choice, and modelling. 4. Using the MATLAB m-files in the Software Laboratory, determine the effect of input step magnitude on linearized model accuracy for the CSTR with second-order reaction.

CHAPTER 3: SUGGESTIONS FOR SELF-STUDY 5. For what combination of physical parameters will a first order dynamic model predict the following? an oscillatory response to a step input an output that increases without limit an output that changes very slowly 6. Prepare a fresh cup of hot coffee or tea. Measure the temperature and record the temperature and time until the temperature approaches ambient. Plot the data. Discuss the shape of the temperature plot. Can you describe it by a response by a key parameter? Derive a mathematical model and compare with your experimental results