CHE 412 Process Dynamics and Control BSc Engg
CHE 412 Process Dynamics and Control BSc (Engg) Chemical Engineering (7 th Semester) Week 2/3 Mathematical Modeling Luyben (1996) Chapter 2 -3 Stephanopoulos (1984) Chapter 4, 5 Seborg et al (2006) Chapter 2 Dr Waheed Afzal Associate Professor of Chemical Engineering Institute of Chemical Engineering and Technology University of the Punjab, Lahore wa. icet@pu. edu. pk 1
Test yourself (and Define): • Dynamics (of openloop and closedloop) systems • Manipulated Variables • Controlled/ Uncontrolled Variables • Load/Disturbances • Feedback, Feedforward and Inferential controls • Error • Offset (steady-state value of error) • Set-point Stability Block diagram Transducer Final control element Mathematical model Input-out model, transfer function • Deterministic and stochastic models • Optimization • Types of Feedback Controllers (P, PID) Hint: Consult recommended books (and google!) Luyben (1996), Coughanower and Le. Blanc (2008) • • • 2
• Types of Feedback Controllers (Stephanopoulos, 1984) 3
Mathematical Modeling • Mathematical representation of a process (chemical or physical) intended to promote qualitative and quantitative understanding • Set of equations • Steady state, unsteady state (transient) behavior Inputs Experimental Setup Outputs Compare Set of Equations (process model) Outputs • Model should be in good agreement with experiments 4
Systematic Approach for Modelling (Seborg et al 2004) 1. Determine objectives, end-use, required details and accuracy 2. Draw schematic diagram and label all variables, parameters 3. Develop basis and list all assumptions; simplicity Vs reality 4. If spatial variables are important (partial or ordinary DEs) 5. Write conservation equations, introduce auxiliary equations 6. Never forget dimensional analysis while developing equations 7. Perform degree of freedom analysis to ensure solution 8. Simplify model by re-arranging equations 9. Classify variables (disturbances, controlled and manipulated variables, etc. ) 5
Need of a Mathematical Model • To understand the transient behavior, how inputs influence outputs, effects of recycles, bottlenecks • To train the operating personnel (what will happen if…, ‘emergency situations’, no/smaller than required reflux in distillation column, pump is not providing feed, etc. ) • Selection of control pairs (controlled v. / manipulated v. ) and control configurations (process -based models) • To troubleshoot • Optimizing process conditions (most profitable scenarios) 6
Classification of Process Models based on how they are developed • Theoretical Models based on principal of conservation- mass, energy, momentum and auxiliary relationships, ρ, enthalpy, cp, phase equilibria, Arrhenius equation, etc) • Empirical model based on large quantity of experimental data) • Semi-empirical model (combination of theoretical and empirical models) Any available combination of theoretical principles and empirical correlations 7
Advantages of Different Models § § § § Theoretical Models Physical insight into the process Applicable over a wide range of conditions Time consuming (actual models consist of large number of equations) Availability of model parameters e. g. reaction rate coefficient, over-all heart transfer coefficient, etc. Empirical model Easier to develop but needs experimental data Applicable to narrow range of conditions 8
State Variables and State Equations § State variables describe natural state of a process § Fundamental quantities (mass, energy, momentum) are readily measurable in a process are described by measurable variables (T, P, x, F, V) § State equations are derived from conservation principle (relates state variables with other variables) (Rate of accumulation) = (rate of input) – (rate of output) + (rate of generation) - (rate of consumption) 9
Modeling Examples Jacketed CSTR § Basis Fi, CAi, Ti Flow rates are volumetric Compositions are molar A → B, exothermic, first order § Assumptions Coolant Perfect mixing ρ, c. P are constant Perfect insulation Coolant is perfectly mixed No thermal resistance of jacket F, CA, T 10
Modeling of a Jacketed CSTR (Contd. ) § Overall Mass Balance Fi, CAi, Ti (Rate of accumulation) = (rate of input) – (rate of output) § Component Mass Balance (Rate of accumulation of A) = (rate of input of A) – (rate of output of A) + (rate Coolant Fci, Tci of generation of A) – (rate of consumption of A) V CA T Coolant Fco, Tco F, CA, T §Energy Balance (Rate of energy accumulation) = (rate of energy input) – (rate of energy output) - (rate of energy removal by coolant) + (rate of energy added by the exothermic reaction) 11
Modeling of a Jacketed CSTR (Contd. ) • Fi, CAi, Ti V CA T Coolant Fci, Tci Coolant Fco, Tco F, CA, T Input variables: CAi, Fi, Ti, Q, (F) Output variables: V, CA, T 12
Degrees of Freedom (Nf) Analysis Nf = N v - N E Case (1): Nf = 0 i. e. Nv = NE (exactly specified system) We can solve the model without difficulty Case (2): f > 0 i. e. Nv > NE (under specified system), infinite number of solutions because Nf process variables can be fixed arbitrarily. either specify variables (by measuring disturbances) or add controller equation/s Case (3): Nf < 0 i. e. Nv < NE (over specified system) set of equations has no solution remove Nf equation/s We must achieve Nf = 0 in order to simulate (solve) the model 13
Stirred Tank Heater: Modeling and Degree of Freedom Analysis Basis/ Assumptions § Perfectly mixed, Perfectly insulated § ρ, c. P are constant A Steam Fst § Degree of Freedom Analysis § Independent Equations: 2 Variables: 6 (h, Fi, F, Ti, T, Q) § Nf = 6 -2 (= 4) Underspecified 14
Stirred Tank Heater: Modeling and Degree of Freedom Analysis Nf = 4 § Specify load variables (or disturbance) Measure Fi, Ti (Nf = 4 - 2 = 2) § Include controller equations (not studied yet); specify CV-MV pairs: CV MV h F T Q A Steam Fst Can you draw these control loops? 15
Modeling an Ideal Binary Distillation Column Basis/ Assumptions 1. Saturated feed 2. Perfect insulation of column 3. Trays are ideal 4. Vapor hold-up is negligible F 5. Molar heats of vaporization of A and B are similar Z 6. Perfect mixing on each tray 7. Relative volatility (α) is constant 8. Liquid holdup follows Francis weir formulae 9. Condenser and Reboiler dynamics are neglected 10. Total 20 trays, feed at 10 2, 4, 5 → V 1 = V 2 = V 3 = … VN (not valid for high-pressure columns) Condenser = 20 Reflux m. D R x. D Drum D x. D VB m. B Reboiler B x. B (Stephanopoulos, 1984) 16
Modeling Distillation Column V 20 • m. D R x. D D x. D Reflux Drum V 20 N = 20 Top Tray L 20 R V 19 17
Modeling Distillation Column LN+1 v. N • m. N Nth Stage LN v. N-1 L 11 v 10 F Z Feed Stage (10 th) L m. N 10 v 9 18
Modeling Distillation Column 1 st Stage V 1 L 2 VB L 1 VB m. B Column Base B VB 19
Modeling Distillation Column Equilibrium relationships (to determine y) • 20
Modeling Distillation Column Hydraulic relationships (to determine L) • 21
Modeling Distillation Column Degree of Freedom Analysis Total number of independent equations: § Equilibrium relationships (y 1, y 2, …y. N, y. B) → N+1 (21) § Hydraulic relationships (L 1, L 2, …LN) → N (20) (does not work for liquid flow rates D and B) § Total mass balances (1 for each tray, reflux drum and column base) → N+2 (22) § Total component mass balances (1 for each tray, reflux drum and column base) → N+2 (22) § Total Number of equations NE = 4 N + 5 (85) 44 differential and 41 algebraic equations Note the size of model even for a ‘simple’ system with several simplifying assumptions! 22
Modeling Distillation Column Degree of Freedom Analysis Total number of independent variables: § Liquid composition (x 1, x 2, …x. N, x. D, x. B) → N+2 § Liquid holdup (m 1, m 2, …m. N, m. D, m. B) → N+2 § Vapor composition (y 1, y 2, …y. N, y. B) → N+1 § Liquid flow rates (L 1, L 2, …LN) → N § Additional variables → 6 (Feed: F, Z; Reflux: D, R; Bottom: B, VB) § Total Number of independent variables NV = 4 N + 11 Degree of Freedom = (4 N + 11) – (4 N + 5) =6 System is underspecified 23
Modeling Distillation Column Degree of Freedom Analysis (4 N + 11) – (4 N + 5) = 6 § Specify disturbances: F, Z (Nf = 6 -2 = 4) § Include controller equations (Recall our discussion on types of feedback controllers ) § General form, of P-Controller c(t) = cs + Kc Є(t) Controlled Variable Controller Equation Manipulated (Proportional Controller) Variable x. D R x. B VB m. D D m. B B Nf = 4 - 4 = 0 R = Kc (xs - x. D) + Rs VB = Kc (x. Bs-x. B) + VBs D = Kc (m. Ds-m. D) + Ds B = Kc (m. Bs-m. B) + Bs 24 Can you draw these four feedback control loops?
CV x. D MV loop R 1 x. B VB 2 m. D D 3 m. B B 4 Feedback Control on a Binary Distillation Column R (Stephanopoulos, 1984) 25
Week 2/3 Weekly Take-Home Assignment 1. Define all the terms on slide 2 with examples whenever possible. 2. Prepare short answers to ‘things to think about’ (Stephanopoulos, 1984) page 33 -35 3. Prepare short answers to ‘things to think about’ (Stephanopoulos, 1984) page 78 -79 4. Solve the following problems (Chapter 4 and 5 of Stephanopoulos, 1984): II. 1 to II. 14, II. 22, II. 23 (Compulsory) Submit before Friday Curriculum and handouts are posted at: http: //faculty. waheed-afzal 1. pu. edu. pk/ 26
- Slides: 26