CHEM-E7130 Process Modeling Lecture 3

Slides:



Advertisements
Similar presentations
Dynamic Energy Balance. Last time: well-mixed CSTR w/flow & reaction for multiple reactions: rxn #
Advertisements

Introduction Process Simulation.
ORDINARY DIFFERENTIAL EQUATIONS (ODE)
Modelling & Simulation of Chemical Engineering Systems
Lecture 15: Capillary motion
Chapter 12 Gas-Liquid Equilibrium
Real Reactors Fixed Bed Reactor – 1
Development of Dynamic Models Illustrative Example: A Blending Process
Thermal Development of Internal Flows P M V Subbarao Associate Professor Mechanical Engineering Department IIT Delhi Concept for Precise Design ……
Joshua Condon, Richard Graver, Joseph Saah, Shekhar Shah
SABIC Chair in Catalysis at KAU Chemical Reaction Engineering Dr. Yahia Alhamed.
Chapter 3.1: Heat Exchanger Analysis Using LMTD method
Fixed Bed Reactor Quak Foo Lee Chemical and Biological Engineering
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 32.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 22.
Selected Differential System Examples from Lectures.
CHAPTER II PROCESS DYNAMICS AND MATHEMATICAL MODELING
A First Course on Kinetics and Reaction Engineering
Tarek Moustafa1 Chemical Reaction Engineering An Introduction to Industrial Catalytic Reactors Tarek Moustafa, Ph.D. November 2011.
1 - 12/09/2015 Department of Chemical Engineering Lecture 6 Kjemisk reaksjonsteknikk Chemical Reaction Engineering  Review of previous lectures  Pressure.
BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 23.
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 31.
Slides courtesy of Prof M L Kraft, Chemical & Biomolecular Engr Dept, University of Illinois at Urbana-Champaign. L21-1 Review: Heterogeneous Catalyst.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 19.
Selected Differential System Examples from Lectures
Review: Simultaneous Internal Diffusion & External Diffusion
Non Isothermal CSTR Chemical Reaction Engineering I Aug Dec 2011 Dept. Chem. Engg., IIT-Madras.
© 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 33.
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 31.
Lecture 1: Kinetics of Substrate Utilization and Product Formation
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 34.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 12.
© 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 30.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 25.
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 34.
1 CHEM-E7130 Process Modeling Exercise. 2 Exercises 1&2, 3&4 and 5&6 are related. Start with one of the packages and then continue to the others. You.
Lecture 8 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 33.
Kinetics and Reactor Design Kinetics and Reactor Design CHE-402 INSTRUCTOR: Dr. Nabeel Salim Abo-Ghander Chemical Reactions and Rate of Reactions Chapter.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 30.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 25.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 24.
© 2016 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 38.
© 2016 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 40.
CHEM-E7130 Process Modeling Lecture 5
Review/Theory on Kinetics and Reactors
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
CHEM-E7130 Process Modeling Lecture 6
ChE 402: Chemical Reaction Engineering
Review: What size reactor(s) to use?
L2b: Reactor Molar Balance Example Problems
ChE 402: Chemical Reaction Engineering
A First Course on Kinetics and Reaction Engineering
ChE 402: Chemical Reaction Engineering
Transfer Functions Chapter 4
A First Course on Kinetics and Reaction Engineering
A First Course on Kinetics and Reaction Engineering
Steady-state Nonisothermal reactor Design Part I
Steady-state Nonisothermal reactor Design Part I
A First Course on Kinetics and Reaction Engineering
Review: Steps in a Heterogeneous Catalytic Reaction
Aspen Reactors Amanda Hamilton, Jonathan Kalman, Harrison Kraus, Jenny Lam, Sophie Levy, Jacob Salem.
Chapter One: Mole Balances
Story Behind HW2 Powerball, LLC.
Steady-state Nonisothermal reactor Design Part I
Kinetics and Reactor Design
13. Reactor Engineering: Reactor Design
Presentation transcript:

CHEM-E7130 Process Modeling Lecture 3

Lecutre 3 outline Physical models vs. mathematical similarity Numerical methods and tools to solve initial value ordinary differential equations Programming and modeling with Matlab Stiff ordinary differential equations

One model from the previous lecture What did this describe? How molar flux along the reactor was modeled? What happens at steady state? What happens if Peclet number is very high? High Pe, negligible axial dispersion: Steady state

A dynamic stirred tank reactor Initially, a batch is set Reactor is stirred vigorously so that it is uniform in composition No feed or heat transfer during the batch, let’s assume isothermal operation Write a material balance for this kind of reactor

A dynamic stirred tank reactor Integral form Differential form Negligible volume change

Comparison Dynamic stirred tank Constant volume Plug-flow reactor Steady state Constant velocity No axial dispersion

Comparison Residence time in the plug flow reactor Plug-flow reactor

Comparison Dynamic stirred tank Plug-flow reactor Mathematically the problem is the same  The same numerical solution!

Some solutions Model Initial condition Closure: first order reaction

Separable form, analytical solution possible

How would you solve this numerically with e.g. Excel? Euler’s method Explicit Euler if is calculated at tn Implicit Euler if is calculated at tn+1

Numerical solution: Euler’s method For the test problem: Explicit Euler Implicit Euler

Numerical solution: Euler’s method Implicit Euler For this linear test problem we have an explicit formulation Usually implicit methods require solution of a nonlinear set of equations at each time step For example, pth order reaction

Example c0=1 k=0.1 t=1

Example c0=1 k=0.5 t=1

Example c0=1 k=1 t=1

Example c0=1 k=1.5 t=1

Example c0=1 k=2 t=1

Example c0=1 k=2.5 t=1

Shorter time steps c0=1 k=2.5 t=0.2

Other options Calculate at average of tn and tn+1

Crank-Nicolson method

Crank-Nicolson method Stable, but oscillates!

ODE solvers available in Matlab Solves These Kinds of Problems Method ode45 Nonstiff differential equations Runge-Kutta ode23 ode113 Adams ode15s Stiff differential equations and DAEs NDFs (BDFs) ode23s Stiff differential equations Rosenbrock ode23t Moderately stiff differential equations and DAEs Trapezoidal rule ode23tb TR-BDF2 ode15i Fully implicit differential equations BDFs

A catalyst particle model We want to study dynamical behavior of a single catalyst particle. Some assumptions: Spherical particle One phase outside the particle (vapor or liquid) Uniform and constant (time invariant) conditions (concentrations, temperature, pressure) around the particle Uniform conditions inside the particle (but different from those outside) Catalytic reaction inside the particle Heat and mass transfer resistance outside the particle

A sketch Particle is assumed to be spherical (this assumption needs to be stated since we need the surface area Outside region (”box”) shape is irrelevant

Model equations Material balance Spherical porous particle Particle properties time invariant

Model equations Enthalpy balance Catalyst particle enthalpy Guess all these If we want to reduce the number of guessed parameters, average heat capacity Guess only these

Model equations Review: What assumptions so far? One fluid phase Constant heat capacity Apparent density and heat capacity Be careful with the heat of reaction convention! For multiple phases, it is advisable to use formation enthalpies

Model equations Material balance Enthalpy balance Reaction rate

General programming scheme for these models Main program, initialization User model giving source terms or errors in the balances Solver Colors indicate how much a user needs to do/know about various blocks. Solver is typically coded already, but user model needs to be given. Initialization means initial values or initial guesses for the variables, initialization of paramters etc. Source terms typically for differential equations, errors in the balances for algebraic set of equations (e.g. CSTR) In the previous example, parameters were given in the user model, but very often they are given in the initialization and then transferred to the user model Post-processing results (graphs etc.)

Matlab code Explain what happens here to a person sitting next to you! function catparticle(tint) % initial variables c0=100; % concentration (mol/m3) T0=600; % temperature (K) % tighten integration tolerances options = odeset('RelTol',1e-10,'AbsTol',1e-10); [t,st] = ode15s(@dsdt, [0,tint], [c0,T0], options); figure(1) plot(t,st(:,1)) title('concentration (mol/m3)','FontSize',12) xlabel('time (s)','FontSize',12) figure(2) plot(t,st(:,2)) title('temperature (K)','FontSize',12)

Matlab code A person sitting next to you will explain this to you! function dx=dsdt(t,x) c=x(1); % first variable is concentration (mol/m3) T=x(2); % second is temperature (K) eps=0.5; % void fraction kr=2e9; % kinetic pre-exponential factor E=100000; % activation energy (J/mol) R=8.3144; % gas constant (J/Kmol) DHr=-100000; % heat of reaction (J/mol) cp=1000; % average heat capacity (J/kgK) rho=2000; % average density (kg/m3) k=0.02; % mass transfer coefficient (m/s) h=600; % heat transfer coefficient (W/m2K) d=0.001; % particle diameter (m) cout=100; % outside fluid concentration same than initial Tout=600; % outside temperature rate=kr*exp(-E/(R*T))*c; dcdt=1/eps* (-rate+6*k/d*(cout-c)); dTdt=1/(cp*rho)* (-rate*DHr+6*h/d*(Tout-T)); dx(1,1)=dcdt; dx(2,1)=dTdt;

Some results kr=1e9

Some results kr=2e9

Some results kr=2.37580398417e9

Some results one hour kr=2.37580398417e9

Some results one day kr=2.37580398417e9

Some results one week kr=2.37580398417e9

Some results a ten second period at 6 days, 13 h, 1 min and 10 s after start kr=2.37580398417e9

Some results kr=2.4e9

Stiff differential equations Formally ratio of eigenvalues In practice, if there are simultaneously very fast phenomena dictating step sizes, and very slow phenomena dictating simulation time, system is stiff. E.g. reaction: slow reaction between molecular species, perhaps mass transfer limitations... very rapid reaction approaching equilibrium, e.g. ion reactions

kf kr in batch reactor kf determines step size in numerical solution but kr the total simulation (reaction batch etc.) time. This case leads to ”pseudo-steady state” for cA, but sometimes this kind of simplification is not so easy.

kf kr in batch reactor How many variables you would need to solve this in a) isothermal case, b) adiabatic case? List some other assumptions that are needed to be done / checked Is this linear model? Can it be solved analytically? Note! Nothing is said if there are other than these three components! How many phases, if mixing is ideal etc... Yes it is, yes it can! d(c)/dt=[A](c)

Summary Dimensionless numbers can be obtained from traditional dimensional analysis ratios of two dimensionally similar objects by non-dimensionalizing model equations Models can be classified in mathematical or physical point of view. There are numerous ways to classify models. Model classification helps to choose the best numerical methods for solution Simulation, design, and optimization problems are different ways of looking at the same physical process