Partial Differential Equations (PDEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE Daniel Baur ETH Zurich, Institut für Chemie-

Slides:



Advertisements
Similar presentations
Programming Tips: While Loops and Comparisons 1Daniel Baur / Numerical Methods for Chemical Engineerse Daniel Baur ETH Zurich, Institut für Chemie- und.
Advertisements

Boundary Value Problems and Partial Differential Equations (PDEs)
Fixed point iterations and solution of non-linear functions
ORDINARY DIFFERENTIAL EQUATIONS (ODE)
Numerical Differentiation and Quadrature (Integration) 1Daniel Baur / Numerical Methods for Chemical Engineers / Numerical Quadrature Daniel Baur ETH Zurich,
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2014 – 35148: Continuous Solution for Boundary Value Problems.
Parabolic Partial Differential Equations
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 15.
Systems of Linear Equations
Response Surface Method Principle Component Analysis
Linear Systems of Equations Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/
ECE602 BME I Partial Differential Equations in Biomedical Engineering.
ECE602 BME I Partial Differential Equations in Biomedical Engineering (Cont’d)
PARTIAL DIFFERENTIAL EQUATIONS
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Attainable Region S,S&L Chapt. 7. Attainable Region Graphical method that is used to determine the entire space feasible concentrations Useful for identifying.
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
Numerical Methods for Partial Differential Equations
Ordinary Differential Equations (ODEs)
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
CISE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM (Term 101) Section 04 Read & CISE301_Topic9.
SE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM Read & CISE301_Topic9 KFUPM.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Matmol Metoda linii Method of lines
Chemical Reaction Engineering Asynchronous Video Series Chapter 2: Conversion and Reactors in Series H. Scott Fogler, Ph.D.
ISOTHERMAL REACTOR DESIGN
1 Numerical Methods and Software for Partial Differential Equations Lecturer:Dr Yvonne Fryer Time:Mondays 10am-1pm Location:QA210 / KW116 (Black)
Systems of Linear Equations Iterative Methods
Hyperbolic PDEs Numerical Methods for PDEs Spring 2007 Jim E. Jones.
BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013.
1 Tips for solving Project 1 Reactor SO 3 SO 2 +O 2.
© 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.
Boundary Value Problems and Least Squares Minimization
Non Isothermal CSTR Chemical Reaction Engineering I Aug Dec 2011 Dept. Chem. Engg., IIT-Madras.
Computational Biology, Part 15 Biochemical Kinetics I Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 14.
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 33.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 13.
© 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 29.
Solution of a Partial Differential Equations using the Method of Lines
Quadrature rules 1Michael Sokolov / Numerical Methods for Chemical Engineers / Numerical Quadrature Michael Sokolov ETH Zurich, Institut für Chemie- und.
Introduction to PDE classification Numerical Methods for PDEs Spring 2007 Jim E. Jones References: Partial Differential Equations of Applied Mathematics,
Numerical Differentiation and Quadrature (Integration)
Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.
Engineering Analysis – Computational Fluid Dynamics –
Solution of Nonlinear Functions
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 30.
Ordinary Differential Equations (ODEs) 1Michael Sokolov / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Michael Sokolov ETH Zurich, Institut.
Introduction to Numerical Methods for ODEs and PDEs Lectures 1 and 2: Some representative problems from engineering science and classification of equation.
Engineering Analysis – Computational Fluid Dynamics –
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 14.
Linear Systems of Equations Iterative and Relaxation Methods Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und.
Boundary-Value Problems in Rectangular Coordinates
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 33.
Solving Partial Differential Equation Numerically Pertemuan 13 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
Department of Mathematics Numerical Solutions to Partial Differential Equations Ch 12. Applied mathematics. Korea University.
Heterogeneous Catalysis: Kinetics in Porous Catalyst Particles
Lecture 32 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
A First Course on Kinetics and Reaction Engineering
A First Course on Kinetics and Reaction Engineering
Introduction to Partial Differential Equations
Finite Difference Method
Zero of a Nonlinear System of Algebraic Equations f(x) = 0
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Tutorials.
Mustafa Nasser, PhD, MSc, BSc Chemical Engineering
Presentation transcript:

Partial Differential Equations (PDEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE Daniel Baur ETH Zurich, Institut für Chemie- und Bioingenieurwissenschaften ETH Hönggerberg / HCI F128 – Zürich

Partial Differential Equations  Problem definition: In a partial differential equation (PDE), the solution depends on more than one independent variable, e.g. space and time  The function is usually subject to both inital conditions and boundary conditions  Examples  Diffusion into semi-infinite slab:  Tubular reactor with dispersion: 2Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE

Characterization of Second Order PDEs  Second order PDEs take the general form where A, B and C are coefficients that may depend on t and z  These PDEs fall in one of the following categories 1.B 2 – AC < 0: Elliptic PDE 2.B 2 – AC = 0: Parabolic PDE 3.B 2 – AC > 0: Hyperbolic PDE  There are specialized solvers for some types of PDEs, hence knowing its category can be useful for solving a PDE 3Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE

Numerical Solution of PDEs  In general, it can be very difficult to solve PDEs numerically  One approach is to discretize all but one dimension of the solution; this way a system of ODEs is obtained that can be solved more easily  Note that these ODE systems are usually very stiff  There are different ways of discretizing a dimension, for example the finite differences method we saw earlier, or using arbitrary functions (polynomials, gaussians)  Sophisticated algorithms refine the discretization in places where the solution is still inaccurate pdepe  Matlab has a built-in solver for parabolic and elliptic PDEs in two dimensions, pdepe 4Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE

Example: Tubular reactor  A tubular reactor with diffusion can be described with the following PDE model: 5Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE c in c out 0L Mass balance: Initial conditions: No discontinuity at outlet: Mass balance over inlet:

Example: Tubular reactor  Let’s take one step back: Local mass balance 6Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE c in c out 0L Convection Diffusion

Example: Tubular reactor 7Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE Convection Diffusion

Initial conditions and boundary conditions  Implementing the initial conditions is straight forward, since every ODE requires an initial value (IVP)  How do we implement the boundary conditions? One solution: Create two pseudo grid points outside the grid that guarantee that the boundary conditions are fulfilled 8Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE

The discretized tubular reactor  We end up with the following system of ODEs:  With the «boundary conditions» 9Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE

Dimensionless tubular reactor  We can cast the model into dimensionless form by defining  Where Pe is the Peclet and Da is the Damköhler number 10Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE The numerical solution of a problem is usually much simpler if it is dimensionless (most variables will range from 0 to 1).

Discretized dimensionless tubular reactor  In dimensionless form, the equations read  With the «boundary conditions» 11Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE

Assignment 1 1.Solve the dimensionless discretized model for the start-up of the tubular reactor for different values of Pe. Plot the concentration of A at the outlet against dimensionless time.  Use Da = 1, N = 100, y start = 0, tSpan = [0,1] and assume a first order reaction n = 1. Plot the profiles for 20 different values of Pe between and 100, looping over Pevec = logspace(- 4, 2, 20); What do you observe? When does the reactor reach steady state, depending on the back-mixing (large Pe = low back- mixing, small Pe = strong back-mixing)?  Use ode23s to solve the ODE system.  In your ODE function, use a for loop going from 2 to N-1; Remember that the ODEs number 1 and N have different forms than the rest due to the «boundary conditions» 12Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE

Assignment 1 (continued) 2.What yields better steady-state conversion (1-y) for a first order reaction, a PFR (no back-mixing, Pe large) or a CSTR (infinite back-mixing, Pe small)?  Assume steady state is reached when the change from one time point to the next is smaller than 0.1% (you might have to extend tSpan). What is the conversion (1-y)? 3.Consider a second order reaction n = 2 and plot the concentration profiles for Pe = and Pe = 100.  How long does it take to reach steady state? What is the conversion?  What is better for a second order reaction, a PFR (no back-mixing, Pe large) or a CSTR (infinite back-mixing, Pe small)?  Which reaction order suffers more from choosing the wrong reactor? Calculate the ratios between the final conversions for the PFR and CSTR for first and second order reactions. 13Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE

Assignment 1 (continued) 4.Now consider a reaction that is fast compared to the residence time, set Da = 5. Which reactor is better? 14Daniel Baur / Numerical Methods for Chemical Engineers / BVP and PDE