Chapter 2 Mathematical Modeling of Chemical Processes Mathematical Model (Eykhoff, 1974) “a representation of the essential aspects of an existing system.

Slides:



Advertisements
Similar presentations
Lect.3 Modeling in The Time Domain Basil Hamed
Advertisements

Distillation Modeling and Dynamics Distillation Part 2.
CHEMICAL AND PHASE EQUILIBRIUM (1)
ORDINARY DIFFERENTIAL EQUATIONS (ODE)
Modelling & Simulation of Chemical Engineering Systems
For a closed system consists of n moles, eq. (1.14) becomes: (2.1) This equation may be applied to a single-phase fluid in a closed system wherein no.
Solution thermodynamics theory—Part I
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 15.
Chapter 16 Chemical and Phase Equilibrium Study Guide in PowerPoint to accompany Thermodynamics: An Engineering Approach, 5th edition by Yunus.
Chapter 12 Gas-Liquid Equilibrium
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 3.
Mathematical Modeling of Chemical Processes. Mathematical Model “a representation of the essential aspects of an existing system (or a system to be constructed)
Development of Dynamic Models Illustrative Example: A Blending Process
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Development of Dynamic Models Illustrative Example: A Blending Process
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors in which they.
Mathematical Modeling of Chemical Processes
THEORETICAL MODELS OF CHEMICAL PROCESSES
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 22.
CHAPTER II PROCESS DYNAMICS AND MATHEMATICAL MODELING
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013.
MMJ 1113 Computational Methods for Engineers Mohsin Mohd Sies Fakulti Kejuruteraan Mekanikal, Universiti Teknologi Malaysia.
Transfer Functions Chapter 4
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 23.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 19.
Prepared by Mrs. Azduwin Binti Khasri
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 26.
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 31.
Part II Process Dynamics.  Process model types 1.Mathematical model 2.Fundamental and empirical model 3.Steady-state and dynamic model 4.Lumped (ODE)
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 23.
Chemical Reactions in Ideal Gases. Non-reacting ideal gas mixture Consider a binary mixture of molecules of types A and B. The canonical partition function.
1. (1.3) (1.8) (1.11) (1.14) Fundamental equations for homogeneous closed system consisting of 1 mole:
Computational fluid dynamics Authors: A. Ghavrish, Ass. Prof. of NMU, M. Packer, President of LDI inc.
Chapter 8: The Thermodynamics of Multicomponent Mixtures
DYNAMIC BEHAVIOR OF PROCESSES :
Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.
Chapter 2 Modeling Approaches  Physical/chemical (fundamental, global) Model structure by theoretical analysis  Material/energy balances  Heat, mass,
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Power Plant Engineering
Thermodynamics and kinetics of transformation reactions Chapter 12.
PROCESS MODELLING AND MODEL ANALYSIS © CAPE Centre, The University of Queensland Hungarian Academy of Sciences Modelling Lumped Parameter Systems C5A.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 17.
CHAPTER VI BLOCK DIAGRAMS AND LINEARIZATION
ERT 210/4 Process Control & Dynamics DYNAMIC BEHAVIOR OF PROCESSES :
Chapter 7: Equilibrium and Stability in One-Component Systems
TRANSFER FUNCTION Prepared by Mrs. AZDUWIN KHASRI.
President UniversityErwin SitompulSMI 1/1 Dr.-Ing. Erwin Sitompul President University Lecture 1 System Modeling and Identification
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 37.
Chapter 2 Development of Dynamic Models 1. Chapter 2 The Rationale for Dynamic Process Models The dynamic model of a process can be used to 1.Improve.
Lecture 2: Mathematical Modeling Copyright © Thomas Marlin 2013 The copyright holder provides a royalty-free license for use of this material at non-profit.
DYNAMIC BEHAVIOR OF PROCESSES :
Thermodynamics Thermodynamics Thermodynamics Way to calculate if a reaction will occur Way to calculate if a reaction will occur Kinetics Kinetics Way.
Chapter 3: Conservation of Energy. Important Notation 2.
Mathematical Modeling of Chemical Processes
Solving Engineering Problems
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 1 qi h1 h2 q1 qo a1 a2 v1 v2
Transfer Functions Chapter 4
Solution of Thermodynamics: Theory and applications
CHAPTER VI BLOCK DIAGRAMS AND LINEARIZATION
A First Course on Kinetics and Reaction Engineering
A First Course on Kinetics and Reaction Engineering
Don’t be in a such a hurry to condemn a person because he doesn’t do what you do, or think as you think. There was a time when you didn’t know what you.
Solving Engineering Problems
Linearization of Nonlinear Models
Modeling Approaches Chapter 2 Physical/chemical (fundamental, global)
13. Reactor Engineering: Reactor Design
Presentation transcript:

Chapter 2 Mathematical Modeling of Chemical Processes Mathematical Model (Eykhoff, 1974) “a representation of the essential aspects of an existing system (or a system to be constructed) which represents knowledge of that system in a usable form” Everything should be made as simple as possible, but no simpler.

General Modeling Principles The model equations are at best an approximation to the real process. Adage: “All models are wrong, but some are useful.” Modeling inherently involves a compromise between model accuracy and complexity on one hand, and the cost and effort required to develop the model, on the other hand. Process modeling is both an art and a science. Creativity is required to make simplifying assumptions that result in an appropriate model. Dynamic models of chemical processes consist of ordinary differential equations (ODE) and/or partial differential equations (PDE), plus related algebraic equations. Chapter 2

This gives what is known as “first principles model” or “physical model” or “nonlinear state space model” For reactions [mol] =0 for mass and energy

Which control volume and which balance?

Conservation Laws Theoretical models of chemical processes are based on conservation laws. Conservation of Mass Chapter 2

Conservation Laws Conservation of Component i Chapter 2

Conservation of Energy The general law of energy conservation is also called the First Law of Thermodynamics. It can be expressed as: The total energy of a thermodynamic system, U=U tot, is the sum of its internal energy, kinetic energy, and potential energy: Chapter 2

Dynamic modeling. Examples You should do many examples! See my book: CHEMICAL AND ENERGY PROCESS ENGINEERING, CRC Press (Taylor & Francis Group), Chapter 11 on dynamics available on itslearning or here: Example 1. Mixing tank (CSTR) Q VcATVcAT qcATqcAT q F c AF T F 8 Task: Formulate mass, component and energy balances to find expressions for dV/dt, dc A /dT, dT/dt Assume: No reaction Constant density Constant heat capacity Single phase (liquid) Do NOT assume constant volume

Example 2. Buffer tank on gas pipeline (Example 11.10) Task: Find residence time, ¿ r Find time constant ¿ for dynamic response Hint: Find expression for dp/dt and rearrange to standard form to find time constant (gives dynamics for effect of changes in p in on p, F in, etc.) Note: Only one mass (mole) balance, so this is a first-order system Assume: ideal gas, pV = nRT Linear valves: F in = c (p in -p), F out = c(p-p out ) Data at steady state: p in =10.1 bar, p=10 bar, p out =9.9 bar, V = 10m 3, F in =F out = 100 mol/s, T=300K Gas dynamics are very fast!

Overall dynamic model Use of the “balance principles” (resulting in differential equations) combined with other equations for equilibrium, heat transfer etc. (resulting in algebraic equations), gives in a “nonlinear state space model” on the general form: The states x 1 are usually the balanced quantities. It is possible to redefine the states, for example, to replace x 1 =U (internal energy) by x 2 =T (temperature), but this requires work (see example), so we often don’t do it.

Linearization (Linear model) What is a linear system? –Satisfies the superposition principle, that is, the total response is the sum of individual responses. Let f(u 1 )=y 1 (t) f(u 2 )=y 2 (t) Then f(k 1 u 1 +k 2 u 2 ) = k 1 y 1 (t) + k 2 y 2 (t) Why linearize? –Much simpler mathematics (transfer functions) –All real systems behave linearly for small deviations from steady state (using control!) How? Linearize nonlinear model (e.g., obtained from balance equations): dx/dt = f(x,u) to get a linear state space model in deviation variables: dΔx/dt = A Δx + B Δu where A and B are constants (matrices).

Linearization

Example linearization: Flash Flash tank with two components (zF,y,x: mole fraction light component) VLE: Assume constant relative volatility ® =21: Model assumptions: Well mixed, neglect vapor mass p and M constant (using Q and L) u = V d = F, zF y = y (output) Nominal data: F * =1 kmol/min, z * F =0.5, y * =0.84, M = 1kmol Task: 1. Derive dynamic model + 2. Find nominal steady- state + 3. Linearize to find model (in deviation variables): dx/dt = A x + Bu + B d d; y = Cx L, x V, y F, zF M Q

Solution x y Slope=c=0.84 VLE

% Using symbolic toolbox in Matlab syms y,x f=21 - (y/x) / ((1-y)/(1-x)) % definition relative volatility y=solve(f,y) dydx(x)=diff(y,x) dydx(0.2) eval(ans) Result: f =21 - (y*(x - 1))/(x*(y - 1)) y =(21*x)/(20*x + 1) dydx(x) =21/(20*x + 1) - (420*x)/(20*x + 1)^2 ans =21/25 ans =0.8400

Solution

Minimum realization Unobservable states x are unintersting for us as they have no effect on the outputs (y) Uncontrollable states x cannot be effacted by our inputs (u) Model from u to y: Eliminate unobsevable and uncontrollable states to get model with fewest number of states («minimal realization»). Saves computation time.