Chapter 4. Modelling and Analysis for Process Control

Slides:



Advertisements
Similar presentations
Copyright © Thomas Marlin 2013
Advertisements

Chapter 3. Mathematical Modelling Principles
Dynamic Behavior of Closed-Loop Control Systems
Lecture 3: Common Simple Dynamic Systems
H(s) x(t)y(t) 8.b Laplace Transform: Y(s)=X(s) H(s) The Laplace transform can be used in the solution of ordinary linear differential equations. Let’s.
Chapter 4 Modelling and Analysis for Process Control
Chapter 10 Stability Analysis and Controller Tuning
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 6. Empirical Model Identification Copyright © Thomas Marlin 2013.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 19. Single-Loop IMC Copyright © Thomas Marlin 2013 The copyright.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 13. Feedback Performance Copyright © Thomas Marlin 2013 The copyright.
CHE 185 – PROCESS CONTROL AND DYNAMICS
Dynamic Behavior Chapter 5
Process dynamic and control Tutorial 2 MO, Shengyong 02/10/2007.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Laplace Transforms 1. Standard notation in dynamics and control (shorthand notation) 2. Converts mathematics to algebraic operations 3. Advantageous for.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Chemical Engineering 3P04 Process Control Tutorial # 2 Learning goals 1.The feedback cause-effect principle 2. Key element in the loop: The control valve.
Chapter 8. The PID Controller Copyright © Thomas Marlin 2013
CHAPTER IV INPUT-OUTPUT MODELS AND TRANSFER FUNCTIONS
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 1. Introduction to Process Control Copyright © Thomas Marlin 2013.
CHAPTER III LAPLACE TRANSFORM
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
Process Operability Class Materials Copyright © Thomas Marlin 2013
Sistem Kontrol I Kuliah II : Transformasi Laplace Imron Rosyadi, ST 1.
Chapter 2. Control Objectives and Benefits
Chapter 20. Multiloop Control: Effects of Interaction
Transfer Functions Chapter 4
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 7. The Feedback Loop Copyright © Thomas Marlin 2013 The copyright.
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
Chapter 13 1 Frequency Response Analysis Sinusoidal Forcing of a First-Order Process For a first-order transfer function with gain K and time constant,
Laplace Transforms 1. Standard notation in dynamics and control (shorthand notation) 2. Converts mathematics to algebraic operations 3. Advantageous for.
(e.g., deviation variables!)
Laplace Transforms 1. Standard notation in dynamics and control (shorthand notation) 2. Converts mathematics to algebraic operations 3. Advantageous for.
Prepared by Mrs. Azduwin Binti Khasri
Chapter 4 Dynamic Systems: Higher Order Processes Prof. Shi-Shang Jang National Tsing-Hua University Chemical Engineering Dept. Hsin Chu, Taiwan April,
10. Laplace TransforM Technique
Chapter 2 Mathematical Background Professor Shi-Shang Jang Chemical Engineering Department National Tsing-Hua University Taiwan March,
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 5. Typical Process Systems Copyright © Thomas Marlin 2013 The copyright.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 10. Stability and Tuning Copyright © Thomas Marlin 2013 The copyright.
Chapter 3 Dynamic Response The Block Diagram Block diagram is a graphical tool to visualize the model of a system and evaluate the mathematical relationships.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Frequency Response Analysis and Stability
CHAPTER VI BLOCK DIAGRAMS AND LINEARIZATION
ERT 210/4 Process Control & Dynamics DYNAMIC BEHAVIOR OF PROCESSES :
TRANSFER FUNCTION Prepared by Mrs. AZDUWIN KHASRI.
Lecture 2: Mathematical Modeling Copyright © Thomas Marlin 2013 The copyright holder provides a royalty-free license for use of this material at non-profit.
Lecture 3: Common Dynamic Systems 1. Identify common dynamic elements:  First order  Integrating (Non self-regulatory)  Second order  Dead time Predict.
Chemical Engineering 3P04 Process Control Tutorial # 7 Learning goals 1.Experience with a single-loop controller 2.Answering some questions from PC-Education.
DYNAMIC BEHAVIOR OF PROCESSES :
ETEC 4501 Chapter 4 Laplace Transforms and Transfer Functions.
EE4262: Digital and Non-Linear Control
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
H(s) 8.b Laplace Transform:
Dynamic Behavior Chapter 5
Workshop for Flipped Class
Laplace Transforms Chapter 3 Standard notation in dynamics and control
CHAPTER III LAPLACE TRANSFORM
Chapter 2. Control Objectives and Benefits
Transfer Functions Chapter 4
CHAPTER IV INPUT-OUTPUT MODELS AND TRANSFER FUNCTIONS
CHAPTER VI BLOCK DIAGRAMS AND LINEARIZATION
G1 and G2 are transfer functions and independent of the
Chapter 3 Example 2: system at rest (s.s.)
Important Properties of Laplace Transforms
Process Operability Class Materials Copyright © Thomas Marlin 2013
Solution of ODEs by Laplace Transforms
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
G1 and G2 are transfer functions and independent of the
Presentation transcript:

Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 4. Modelling and Analysis for Process Control Copyright © Thomas Marlin 2013 The copyright holder provides a royalty-free license for use of this material at non-profit educational institutions

CHAPTER 4 : MODELLING & ANALYSIS FOR PROCESS CONTROL When I complete this chapter, I want to be able to do the following. Analytically solve linear dynamic models of first and second order Express dynamic models as transfer functions Predict important features of dynamic behavior from model without solving

CHAPTER 4 : MODELLING & ANALYSIS FOR PROCESS CONTROL Outline of the lesson. Laplace transform Solve linear dynamic models Transfer function model structure Qualitative features directly from model Frequency response Workshop

WHY WE NEED MORE DYNAMIC MODELLING T A I can model this; what more do I need? I would like to model elements individually combine as needed determine key dynamic features w/o solving T A

WHY WE NEED MORE DYNAMIC MODELLING I would like to model elements individually This will be a “transfer function” T A Now, I can combine elements to model many process structures

WHY WE NEED MORE DYNAMIC MODELLING Now, I can combine elements to model many process structures Even more amazing, I can combine to derive a simplified model!

THE FIRST STEP: LAPLACE TRANSFORM Step Change at t=0: Same as constant for t=0 to t= f(t)=0 t=0

THE FIRST STEP: LAPLACE TRANSFORM We have seen this term often! It’s the step response to a first order dynamic system.

THE FIRST STEP: LAPLACE TRANSFORM Let’s learn a new dynamic response & its Laplace Transform Let’s consider plug flow through a pipe. Plug flow has no backmixing; we can think of this a a hockey puck traveling in a pipe. What is the dynamic response of the outlet fluid property (e.g., concentration) to a step change in the inlet fluid property?

THE FIRST STEP: LAPLACE TRANSFORM Let’s learn a new dynamic response & its Laplace Transform  = dead time  What is the value of dead time for plug flow? Xout Xin time

THE FIRST STEP: LAPLACE TRANSFORM Let’s learn a new dynamic response & its Laplace Transform Is this a dead time? What is the value? 1 2 3 4 5 6 7 8 9 10 -0.5 0.5 time Y, outlet from dead time X, inlet to dead time

THE FIRST STEP: LAPLACE TRANSFORM Let’s learn a new dynamic response & its Laplace Transform Our plants have pipes. We will use this a lot! The dynamic model for dead time is The Laplace transform for a variable after dead time is

THE FIRST STEP: LAPLACE TRANSFORM I am in desperate need of examples! We need the Laplace transform of derivatives for solving dynamic models. constant First derivative: General: constant

SOLVING MODELS USING THE LAPLACE TRANSFORM Textbook Example 3.1: The CSTR (or mixing tank) experiences a step in feed composition with all other variables are constant. Determine the dynamic response. F CA0 V CA I hope we get the same answer as with the integrating factor! (We’ll solve this in class.)

SOLVING MODELS USING THE LAPLACE TRANSFORM Textbook Example 3.2Two isothermal CSTRs are initially at steady state and experience a step change to the feed composition to the first tank. Formulate the model for CA2. F CA0 V1 CA1 V2 CA2 Much easier than integrating factor! (We’ll solve this in class.)

SOLVING MODELS USING THE LAPLACE TRANSFORM Textbook Example 3.5: The feed composition experiences a step. All other variables are constant. Determine the dynamic response of CA. F CA0 V CA Non-linear! (We’ll solve this in class.)

TRANSFER FUNCTIONS: MODELS VALID FOR ANY INPUT FUNCTION Let’s rearrange the Laplace transform of a dynamic model Y(s) = G(s) X(s) G(s) X(s) Y(s) A TRANSFER FUNCTION is the output variable, Y(s), divided by the input variable, X(s), with all initial conditions zero. G(s) = Y(s)/X(s)

TRANSFER FUNCTIONS: MODELS VALID FOR ANY INPUT FUNCTION G(s) = Y(s)/ X(s) G(s) X(s) Y(s) How do we achieve zero initial conditions for every model? We don’t have “primes” on the variables; why? Is this restricted to a step input? What about non-linear models? How many inputs and outputs?

TRANSFER FUNCTIONS: MODELS VALID FOR ANY INPUT FUNCTION G(s) = Y(s)/ X(s) G(s) X(s) Y(s) Some examples:

TRANSFER FUNCTIONS: MODELS VALID FOR ANY INPUT FUNCTION G(s) = Y(s)/ X(s) G(s) X(s) Y(s) Why are we doing this? I chose the first answer! To torture students. We have individual models that we can combine easily - algebraically. We can determine lots of information about the system without solving the dynamic model.

TRANSFER FUNCTIONS: MODELS VALID FOR ANY INPUT FUNCTION Let’s see how to combine models T (Time in seconds)

TRANSFER FUNCTIONS: MODELS VALID FOR ANY INPUT FUNCTION The BLOCK DIAGRAM v(s) F0(s) T1(s) T2(s) Tmeas(s) Gvalve(s) Gtank1(s) Gtank2(s) Gsensor(s) It’s a picture of the model equations! Individual models can be replaced easily Helpful visualization Cause-effect by arrows

TRANSFER FUNCTIONS: MODELS VALID FOR ANY INPUT FUNCTION Combine using BLOCK DIAGRAM ALGEBRA v(s) F0(s) T1(s) T2(s) Tmeas(s) Gvalve(s) Gtank1(s) Gtank2(s) Gsensor(s) G(s) v(s) Tmeas(s)

TRANSFER FUNCTIONS: MODELS VALID FOR ANY INPUT FUNCTION Key rules for BLOCK DIAGRAM ALGEBRA

QUALITATIVE FEATURES W/O SOLVING FINAL VALUE THEOREM: Evaluate the final valve of the output of a dynamic model without solving for the entire transient response. Example for first order system

QUALITATIVE FEATURES W/O SOLVING What about dynamics can we determine without solving? We can use partial fraction expansion to prove the following key result. Y(s) = G(s)X(s) = [N(s)/D(s)]X(s) = C1/(s-1) + C2/(s-2) + ... With i the solution to the denominator of the transfer function being zero, D(s) = 0. Real, repeated i Real, distinct i Complex i q is Re(i)

QUALITATIVE FEATURES W/O SOLVING With i the solutions to D(s) = 0, which is a polynomial. 1. If all i are ???, Y(t) is stable If any one i is ???, Y(t) is unstable 2. If all i are ???, Y(t) is overdamped (does not oscillate) If one pair of i are ???, Y(t) is underdamped Complete statements based on equation.

QUALITATIVE FEATURES W/O SOLVING With i the solutions to D(s) = 0, which is a polynomial. 1. If all real [i] are < 0, Y(t) is stable If any one real [i] is  0, Y(t) is unstable 2. If all i are real, Y(t) is overdamped (does not oscillate) If one pair of i are complex, Y(t) is underdamped

QUALITATIVE FEATURES W/O SOLVING CA0 V1 CA1 V2 CA2 1. Is this system stable? 2. Is this system over- or underdamped? 3. What is the order of the system? (Order = the number of derivatives between the input and output variables) 4. What is the steady-state gain? Without solving! (We’ll solve this in class.)

QUALITATIVE FEATURES W/O SOLVING FREQUENCY RESPONSE:The response to a sine input of the output variable is of great practical importance. Why? Sine inputs almost never occur. However, many periodic disturbances occur and other inputs can be represented by a combination of sines. For a process without control, we want a sine input to have a small effect on the output.

QUALITATIVE FEATURES W/O SOLVING Amplitude ratio = |Y’(t)| max / |X’(t)| max Phase angle = phase difference between input and output P 1 2 3 4 5 6 -0.4 -0.2 0.2 0.4 time Y, outlet from system -1 -0.5 0.5 X, inlet to system B output P’ A input

QUALITATIVE FEATURES W/O SOLVING Amplitude ratio = |Y’(t)| max / |X’(t)| max Phase angle = phase difference between input and output For linear systems, we can evaluate directly using transfer function! Set s = j, with = frequency and j = complex variable. These calculations are tedious by hand but easily performed in standard programming languages.

QUALITATIVE FEATURES W/O SOLVING Example 4.15 Frequency response of mixing tank. Time-domain behavior. Bode Plot - Shows frequency response for a range of frequencies Log (AR) vs log() Phase angle vs log()

QUALITATIVE FEATURES W/O SOLVING to reduce the variability. CA0 V1 CA1 V2 CA2 CA2 Sine disturbance with amplitude = 1 mol/m3 frequency = 0.20 rad/min Must have fluctuations < 0.050 mol/m3 Data from 2 CSTRs Using equations for the frequency response amplitude ratio Not acceptable. We need to reduce the variability. How about feedback control?

OVERVIEW OF ANALYSIS METHODS Transfer function and block diagram We can determine individual models and combine 1. System order 2. Final Value 3. Stability 4. Damping 5. Frequency response We can determine these features without solving for the entire transient!!

Combining Chapters 3 and 4 We can use a standard modelling procedure to focus our creativity!

Too small to read here - check it out in the textbook!

CHAPTER 4: MODELLING & ANALYSIS WORKSHOP 1 Example 3.6 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 linearized model using Laplace transforms

CHAPTER 4: MODELLING & ANALYSIS WORKSHOP 2 The dynamic model for a non-isothermal CSTR is derived in Appendix C. A specific example has the following transfer function. 1. System order 2. Final Value 3. Stability 4. Damping 5. Frequency response Determine the features in the table for this system.

CHAPTER 4: MODELLING & ANALYSIS WORKSHOP 3 Answer the following using the MATLAB program S_LOOP. Using the transfer function derived in Example 4.9, determine the frequency response for CA0 CA2. Check one point on the plot by hand calculation. F CA0 V1 CA1 V2 CA2

CHAPTER 4: MODELLING & ANALYSIS WORKSHOP 4 We often measure pressure for process monitoring and control. Explain three principles for pressure sensors, select one for P1 and explain your choice. Feed Vapor product Liquid Process fluid Steam F1 F2 F3 T1 T2 T3 T5 T4 T6 P1 L1 A1 L. Key

CHAPTER 4 : MODELLING & ANALYSIS FOR PROCESS CONTROL When I complete this chapter, I want to be able to do the following. Analytically solve linear dynamic models of first and second order Express dynamic models as transfer functions Predict important features of dynamic behavior from model without solving 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!

LEARNING RESOURCES SITE PC-EDUCATION WEB - Instrumentation Notes - Interactive Learning Module (Chapter 4) - Tutorials (Chapter 4) Software Laboratory - S_LOOP program www.pc-education.mcmaster.ca/

SUGGESTIONS FOR SELF-STUDY 1. Why are variables expressed as deviation variables when we develop transfer functions? 2. Discuss the difference between a second order reaction and a second order dynamic model. 3. For a sine input to a process, is the output a sine for a a. Linear plant? b. Non-linear plant? 4. Is the amplitude ratio of a plant always equal to or greater than the steady-state gain?

SUGGESTIONS FOR SELF-STUDY 5. Calculate the frequency response for the model in Workshop 2 using S_LOOP. Discuss the results. 6. Decide whether a linearized model should be used for the fired heater for a. A 3% increase in the fuel flow rate. b. A 2% change in the feed flow rate. c. Start up from ambient temperature. d. Emergency stoppage of fuel flow to 0.0. feed air fuel