Lecture 2: Mathematical Modeling Copyright © Thomas Marlin 2013 The copyright holder provides a royalty-free license for use of this material at non-profit.

Slides:



Advertisements
Similar presentations
Chapter 3. Mathematical Modelling Principles
Advertisements

Dynamic Behavior of Closed-Loop Control Systems
Chapter 10 Stability Analysis and Controller Tuning
Ratio Control Chapter 15.
ERT 210 Process Control & dynamics
CHAPTER V CONTROL SYSTEMS
Development of Dynamic Models Illustrative Example: A Blending Process
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.
Chapter Summer 2. Comparator 3. Block Blocks in Series
Dynamic Behavior and Stability of Closed-Loop Control Systems
Transient and steady state response (cont.)
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Dynamic Behavior and Stability of Closed-Loop Control Systems
Chapter 11 1 Closed-Loop Responses of Simple Control Systems In this section we consider the dynamic behavior of several elementary control problems for.
More General Transfer Function Models
Introduction to Process Control
THEORETICAL MODELS OF CHEMICAL PROCESSES
CSE 425: Industrial Process Control 1. About the course Lect.TuLabTotal Semester work 80Final 125Total Grading Scheme Course webpage:
CHAPTER IV INPUT-OUTPUT MODELS AND TRANSFER FUNCTIONS
CHAPTER II PROCESS DYNAMICS AND MATHEMATICAL MODELING
Process Operability Class Materials Copyright © Thomas Marlin 2013
Control Loop Interaction
1 Dynamic Behavior Chapter 5 In analyzing process dynamic and process control systems, it is important to know how the process responds to changes in the.
Transfer Functions Chapter 4
Cascade and Ratio Control
Control Engineering Application
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
Control System Instrumentation
DYNAMIC BEHAVIOR OF PROCESSES :
بسم الله الرحمن الرحيم Advanced Control Lecture one Mohammad Ali Fanaei Dept. of Chemical Engineering Ferdowsi University of Mashhad Reference: Smith &
Interacting vs. Noninteracting Systems
Chapter 4. Modelling and Analysis for Process Control
Prof. Wahied Gharieb Ali Abdelaal CSE 502: Control Systems (1) Topic# 3 Representation and Sensitivity Analysis Faculty of Engineering Computer and Systems.
DYNAMIC BEHAVIOR OF PROCESSES :
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 5. Typical Process Systems Copyright © Thomas Marlin 2013 The copyright.
Chapter 2 Modeling Approaches  Physical/chemical (fundamental, global) Model structure by theoretical analysis  Material/energy balances  Heat, mass,
Nonlinear Control: Local Linearization: This involves linearizing the modeling equations around a steady-state operating condition and applying linear.
Chapter 6 Analysis of Feedback Control Systems Prof. Shi-Shang Jang Chemical Engineering Department National Tsing-Hua University Hsin Chu, Taiwan June,
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
CHAPTER VI BLOCK DIAGRAMS AND LINEARIZATION
ERT 210/4 Process Control & Dynamics DYNAMIC BEHAVIOR OF PROCESSES :
TRANSFER FUNCTION Prepared by Mrs. AZDUWIN KHASRI.
President UniversityErwin SitompulSMI 1/1 Dr.-Ing. Erwin Sitompul President University Lecture 1 System Modeling and Identification
Lecture 3: Common Dynamic Systems 1. Identify common dynamic elements:  First order  Integrating (Non self-regulatory)  Second order  Dead time Predict.
1 Chapter 6 Time Delays Time delays occur due to: 1.Fluid flow in a pipe 2.Transport of solid material (e.g., conveyor belt) 3.Chemical analysis -Sampling.
Nonlinear balanced model residualization via neural networks Juergen Hahn.
Anis Atikah Ahmad CHAPTER 11: Dynamic Behaviour & Stability of Closed-Loop Control Systems Anis Atikah Ahmad
Chapter 11 1 ERT 210/4 Process Control CHAPTER 11 DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS.
DYNAMIC BEHAVIOR OF PROCESSES :
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Solution to Homework 2 Chapter 2
Control System Instrumentation
Chapter 1: Overview of Control
Workshop for Flipped Class
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Teknik kendali.
Transfer Functions Chapter 4
CHAPTER VI BLOCK DIAGRAMS AND LINEARIZATION
Time Delays Chapter 6 Time delays occur due to: Fluid flow in a pipe
Control System Instrumentation
Control System Instrumentation
G1 and G2 are transfer functions and independent of the
Important Properties of Laplace Transforms
Digital and Non-Linear Control
Homework 9 Refer to the last example.
Linearization of Nonlinear Models
Modeling Approaches Chapter 2 Physical/chemical (fundamental, global)
Interacting vs. Noninteracting Systems
G1 and G2 are transfer functions and independent of the
Presentation transcript:

Lecture 2: Mathematical Modeling Copyright © Thomas Marlin 2013 The copyright holder provides a royalty-free license for use of this material at non-profit educational institutions 1

Why we need dynamic models? Dynamic models give insight on the process to be controlled. This enables us to determine what performance issues we can improve and what we can not. Dynamic models can be used to simulate and study different scenarios without damaging the real system. 2

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

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

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

CONSERVATION BALANCES are the bases for Mathematical Modeling Overall Material Component Material Energy 6

Modeling procedure 1.Identify relevant variables. 2.Apply suitable conservation balances and formulate the model. Examples of variable selection liquid level  total mass in liquid temperature  energy balance concentration  component mass 7

Example: the stirred-tank heater Temperature control in a stirred-tank heater is a common process example. Let us deduce the basic model equation. 8

Stirred-tank heater The heat balance, in standard heat transfer notation, is heat transferred into the tank from the inlet liquid in a time interval dt heat transferred into the tank from the heater in a time interval dt heat accumulated in the tank in a time interval dt 9 Dividing by dt and grouping variables together:

10 We do some manipulations: Taking Laplace transform gives: The process is described by two first-order transfer functions. Recall the step response of a first-order model.

The key parameters for a first-order system are the gain and time constant. K: Steady-state Gain sign magnitude (don’t forget the units)  :Time Constant sign (positive is stable) magnitude (don’t forget the units) 11

The feedback loop 12 The following is a possible feedback loop for the stirred tank heater. Try to identify the main variables and blocks in the loop.

The closed loop transfer functions relating the output Y to the set pint R and the disturbance L are given by: The dynamics and stability of the closed-loop system are governed by the characteristic polynomial: 1+G m G c G a G p which is the same whether we are looking at set-point or disturbance changes. Closed-Loop Transfer Functions 13 accounts for the effect of changes in disturbance (regulator problem). accounts for the effect of a set- point change (servo problem).

Servo vs. Regulatory Control When we change a specific operating condition, meaning the set point, we would like, for example, the outlet temperature to follow our command. This is what we call servocontrol. The outlet temperature of the tank is subjected to external disturbances (also called load changes), and the task of suppressing or rejecting the effects of disturbances is called regulatory control. 14

Linearization The previous model of stirred-tank heater is linear. This enables us to write a transfer function of the system. However, for nonlinear systems, we can not write a transfer function. Fortunately, for nonlinear model, if we keep the changes around the operating point small, the nonlinear model can be approximated by linear model. This is called linearization. 15

LINEARIZATION y =1.5 x about x = 1 We are looking for a straight line approximation to the nonlinear function about some point x= x s The accuracy of the approximation depends on  non-linearity  distance of x from x s Because process control maintains variables near desired values, the linearized analysis is often (but, not always) valid. 16

LINEARIZATION To obtain the required approximation, expand in Taylor Series and retain only constant and linear terms. Remember that these terms are constant because they are evaluated at x s This is the only variable We define the deviation variable: x’ = (x - x s ) 17

Example With the aid of linearization, draw the approximate unit step response of the following nonlinear system at u = 25, Show the initial and final values of the exact and approximate responses on the graph. Comment on the results. 18

Answer Let us define y s to be the steady state output corresponding to the input u s = 25. Also define the deviation variables y’ = y – y s and u’ = u – u s around the steady state point (u s, y s ). Now we need to find y s. To do so, substitute in the model by u = u s = 25 and set the derivatives to zero Using Taylor series expansion, the nonlinear term can be approximated around u = u s as: 19

Answer Substituting in the model yields Noting that: We can write: This a first order ordinary differential equation and hence, we can find the transfer function as 20

Comparison Let us compare the output of the linearized model to the original nonlinear model, assuming that the input u changes from 25 to 26 (unit step input). 21

% This program shows how well the linear approximation is to a nonlinear model ydot + y = sqrt(u) % The linear model (around the operating point us=25, ys=5) has the following transfer function: % 0.1 % Y'/U'= % s + 1 % where y’ and u’ are deviation around the operating point: us = 25; ys = 5; % Time range of simulation dt=0.01; t=0:dt:10; % Simulating the nonlinear model for a step change du in the input around us = 25 du = 1; % Try other values (e.g 2.0, 5.0, 10.0) to see how well the approximation is y(1)=ys; for i=1:length(t)-1 ydot= -y(i)+sqrt(us+du); y(i+1) = y(i)+ydot*dt; end plot(t,y), hold on % Simulating the linear approximation y_sim=du*step(0.1,[1 1],t) plot(t,y_sim+5,'--r') 22

Linearization: general formula Consider an ordinary differential equation: with y(0) = y s. Then the corresponding linearized model is: 23