Presentation is loading. Please wait.

Presentation is loading. Please wait.

Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.

Similar presentations


Presentation on theme: "Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب."— Presentation transcript:

1 Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب الآلى

2 Course Information Lecturer: Dr. Khalid Alhumaizi –Office: 2B29 –Tel: 4676813 - 0505218163 –E-mail: humaizi@ksu.edu.sa Lectures: Monday, 6-9 pm, Unit operation lab PC room

3 Course Objectives To enable you to: 1.model steady and dynamic behaviour of chemical engineering systems 2.understand the underlying mathematical problems, and some awareness of the available analytical and numerical solution techniques.

4 Course Structure I. Mathematical Models in Chemical Engineering (3 weeks) – Fundamentals, Classification,Building a model, Fundamental laws, Model solution and validation, Examples of Chemical processes II. Initial Value Ordinary differential Equations (3 weeks) –Linear Initial value ODE’s –Nonlinear Initial value ODE’s

5 Course structure III. Boundary value ordinary differential equations (5 weeks) Fundamentals, Shooting method, Finite difference method, Collocation method, Applications IV. Partial differential equations (4 weeks) Fundamentals, Classification, Finite difference method for elliptic and parabolic problems

6 Course Marks The course marks will be allocated as follows: Weekly Assignments (30%) Midterm Exams (30%) Final Exam (40%)

7 Course References 1.Alkis Constantinides & Navid Mostoufi “Numerical Methods for Chemical Engineers with MATLAB Applications”, Prentice Hall, 1999. 2.Stanley Walas, “Modeling Differential Equations in Chemical Engineering”, Butterworth-Heinemann, 1991. 3.Steven Chapra & Raymond Canale, “ Numerical Methods for Engineers”, 4 th edition, McGraw Hill, 2002. 4.S. Pushpavanam, “Mathematical Methods in Chemical Engineering”, Prentice Hall, 1998.

8 LECTURE #1

9 What does “Model” mean? Representation of a physical system by mathematical equations (Models at their best are no more than approximation of the real process ) Equations are based on fundamental laws of physics (conservation principle, transport phenomena, thermodynamics and chemical reaction kinetics).

10 What does “Simulation” mean? Solving the model equations analytically or numerically. Modeling & Simulation are valuable tools: safer and cheaper to perform tests on the model using computer simulations rather than carrying repetitive experimentations and observations on the real system.

11 System Classification based on thermodynamic principles · Isolated system. · Closed system. · Open system. Classification based on number of phases · Homogeneous system. · Heterogeneous system.

12 Models · Semi-empiricalTheoretical Empirical based on fundamental principles based on experimental plant data. Steady state VS. dynamic Lumped VS. distributed parameters Linear Vs Non-linear Continuous VS discrete Deterministic VS probabilistic models

13 What does “Steady state and Dynamic” means? In all processes of interest, the operating conditions (e.g., temperature, pressure, composition) inside a process unit will be varying over time. Steady-state: process variables will not be varying with time

14 Why Dynamic Behaviour? A subject of great importance for the: 1.Study of operability and controllability of continuous processes subject to small disturbances 2.Development of start-up and shut-down procedures 3.Study of switching continuous processes from one steady-state to another 4.Analysis of the safety of processes subject to large disturbances 5.Study of the design and operation procedures for intrinsically dynamic processes (batch/periodic/separation)

15 Systematic Model Building 1. Problem definition 2. Identify controlling factors 3. Evaluate the problem data 4. Construct the model 5. Solve the model 6. Verify the solution 7. Validate the model (inputs, outputs, etc.) (chemical reaction, diffusion, fluid flows, etc.) (compare with experiments)

16 Ingredients of Process Models 1.Assumptions –Time, spatial characteristics –Flow conditions 2.Model equations and characterising variables –Mass, energy, momentum 3.Initial conditions 4.Boundary conditions 5.Parameters

17 Process Classification: Batch vs. Continuous Batch:  feedstocks for each processing step (i.e., reaction, distillation) are charged into the equipment at the start of processing; products are removed at the end of processing  transfer of material from one item of equipment to the next occurs discontinuously – often via intermediate storage tanks  batch processes are intrinsically dynamic – conditions within the equipment vary over the duration of the batch

18 Batch Example: Kinetics

19 Variations on Batch Operation Semi-batch (fed-batch): One or more feedstocks to a batch unit operation to be added during the batch Semi-continuous: Some products are removed during the batch

20 Process Classification: Batch vs. Continuous Continuous:  Involve continuous flows of material from one processing unit to the next  Usually designed to operate at steady-state; due to external disturbances, even continuous processes operate dynamically

21 Continuous Example: PFR

22 Variations on Continuous Operation Periodic: Continuous processes subjected to a periodic (e.g., sinusoidal or square wave) variation of one or more of the material/energy input streams Industrially Important Examples Periodic adsorption – periodic conditions (pressure/temperature) regulates preferential adsorption and desorption of different species over different parts of the cycle Periodic catalytic reaction – involves variation of feed composition; under certain conditions the average performance of the reactor is improved

23 Lumped vs. Distributed Lumped Operations: (Almost) perfect mixing – at any particular time instant, the values of operating conditions are (approximately) the same at all points within the unit Distributed Operations: Imperfect mixing will result in different operating conditions at different points even at the same time  existence of distributions of conditions over spatial domains

24 Lumped vs. Distributed: Mathematical Considerations Lumped Operations: Characterised by a single independent variable (time) Their modelling can be effected in terms of ordinary differential equations (ODEs) Distributed Operations: Introduce additional independent variables (e.g., one or more spatial co-ordinates, particle size, molecular weight, etc.) Involves partial differential equations (PDEs) in time

25 Lumped vs. Distributed: How do I decide? Deciding on whether to model a system as lumped or distributed operations is a matter of judgement for the modeller. Must Consider: Objectives of the model being constructed (control, optimisation, operating procedures) Required predictive accuracy Information available for model validation

26 Conservation Laws Mathematical Modelling: –Encoding physical behaviour as a set of mathematical relations –Involves application of fundamental physical laws –Consider a subset of the universe as a system of interest – the position of the boundary separating the system and its surroundings may vary with time

27 Conservation Laws: General Form Conservation laws describe the variation of the amount of a “conserved quantity” within the system over time: (1.1)

28 Conserved Quantities Typical conserved quantities: Total mass (kg) Mass of an individual species (kg) Number of molecules/atoms (mol) Energy (J) Momentum (kg.m/s)

29 Conservation Laws: Comments Conservation laws provide a simple and systematic “balance” With a generation term, conservation laws may be written for any physical quantity The usefulness of a particular law depends on whether or not we possess the necessary physical knowledge to quantify each term Often, the rate of generation of one quantity is related to the rate of generation (or consumption) of another – this may affect the quantities to which we can apply a conservation law –e.g., –If we cannot characterise the either rate, a conservation law will not prove to be useful –A conservation law on (A+B) will since it does not involve a generation term

30 Distributed Systems:Microscopic balance The balance equation is written over a differential element within the system to account for the variation of the state variables from point to point in the system, besides its variation with time. Each state variable V of the system is assumed to depend on the three coordinates x,y and z plus the time. i.e. V = V(x,y,z,t). The selection of the appropriate coordinates depends on the geometry of the system under study. It is possible to convert from one coordinate system to an other.

31 Perfect Mixing Assumption All intensive properties of the stream(s) leaving a perfectly mixed system are identical to those inside the system.

32 Macroscopic balance For lumped parameter systems the process state variables are uniform over the entire system, that is each state variable V do not depend on the spatial variables, i.e. x,y and z in cartesian coordinates but only on time t. In this case the balance equation is written over the whole system using macroscopic modeling.

33 Accumulation Terms in Conservation Laws Extensive variables: mass, volume Intensive variables: mass fraction, temperature, pressure, specific volume Accumulation terms should be formulated in terms of a single extensive variable, with use of additional algebraic relations used to express relationships between the extensive variables used and the intensive properties

34 Model Completeness A dynamic model of a process will be deemed complete if, given the time variation of all extensive/intensive properties associated with the process inlets, it can determine unique time trajectories for all other variables in the model.

35 Conservation Laws: Energy Accumulation: takes account of all forms of energy Internal energyrandom movement of molecules/atoms of fluid; intermolecular/interatomic forces Kinetic energybulk motion of the liquid (e.g., agitation) Potential energyby virtue of its position in a gravitational force field Inlet/Outlet: make contributions proportional to their flowrate Specific enthalpy (rather than internal energy) is used – the difference between them accounts for the energy (work) required to force an element of fluid in the inlet stream into the fluid in the system.

36 Conservation Laws: Energy Interaction with Surroundings: account for mechanical work (i)Mechanical agitation device rate of energy addition  power output of device (ii)Work done on the system by the atmosphere (open systems) +ve if level moves downwards (atmosphere carries out work on the system) -veif level moves upwards (system is pushing back the atmosphere)

37 Assumptions in Modelling Assumptions should be introduced only when not introducing them results in: 1.Substantial increase in computational complexity (i.e., perfect mixing  CFD) 2.Need to characterise phenomena which are not well understood and/or cannot easily be quantified

38 Next Lecture Elements of conservations laws: –Transport rates:bulk and diffusion flow; –Thermodynamic relations; –Phase equilibria –Chemical kinetics –Control laws Degree of freedom Modeling of lumped parameter chemical systems


Download ppt "Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب."

Similar presentations


Ads by Google