Solving Engineering Problems by Using Computer A Case Study on Fed-Batch Bioreactor.

Slides:



Advertisements
Similar presentations
Chapter 6 Differential Equations
Advertisements

Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Indira Gandhi National Open University presents. Course: System Constructs and Tools By NEERJA PAHWA SARDANA A Video Lecture.
Numerical modeling example A simple s teel reheat furnace model – pg Reheat furnace Hot steel slabRolling mill Final product.
Chapter 6 Multiple Reactions.
Programming in Visual Basic
Chapter 18 Interpolation The Islamic University of Gaza
Module F: Simulation. Introduction What: Simulation Where: To duplicate the features, appearance, and characteristics of a real system Why: To estimate.
Lecture 7: Linear Programming in Excel AGEC 352 Spring 2011 – February 9, 2011 R. Keeney.
VBA Macros for Solving Problems in Water Chemistry Chad Jafvert Purdue University The Educational Objectives of the Tools: Students will: Design and create.
1 Derivatives Difference quotients are used in many business situations, other than marginal analysis (as in the previous section)
Governing equation for concentration as a function of x and t for a pulse input for an “open” reactor.
Converting a Chemical Engineering Problem into Excel VBA Program
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Data Structures and Programming.  John Edgar2.
Section 6.1: Euler’s Method. Local Linearity and Differential Equations Slope at (2,0): Tangent line at (2,0): Not a good approximation. Consider smaller.
ALGORITHMS AND FLOWCHARTS
Slope Fields and Euler’s Method. When taking an antiderivative that is not dealing with a definite integral, be sure to add the constant at the end. Given:find.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Numerical Integration Methods
A First Course on Kinetics and Reaction Engineering
Financial Statement Modeling & Spreadsheet Engineering “Training in spreadsheet modeling improves both the efficiency and effectiveness with which analysts.
Erin Catto Blizzard Entertainment Numerical Integration.
Chapter 2.6 Comparison of Algorithms modified from Clifford A. Shaffer and George Bebis.
Week 2 CS 361: Advanced Data Structures and Algorithms
Introduction to Management Science
Chapter 1 Introduction to VBA Development in Excel.
HCDC of E. coli under Fed- Batch conditions High cell density cultures Chemostat and Batch culture have different advantages and problems Productivity.
Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary.
1 CSC 221: Introduction to Programming Fall 2012 Functions & Modules  standard modules: math, random  Python documentation, help  user-defined functions,
L8-1 Slides courtesy of Prof M L Kraft, Chemical & Biomolecular Engr Dept, University of Illinois, Urbana-Champaign. Review: Pressure Drop in PBRs A →
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 31.
BeginningQuiz 1. Excel is: A. Part of Microsoft Office B. Application Software C. Spreadsheet Software D. None of the above E. A, B, and C.
Selected Differential System Examples from Lectures
Testing Methods Carl Smith National Certificate Year 2 – Unit 4.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 26.
Collection and Analysis of Rate Data
© 2015 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 31.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
Statistical / empirical models Model ‘validation’ –should obtain biomass/NDVI measurements over wide range of conditions –R 2 quoted relates only to conditions.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #5: Programming Structures IE 212: Computational Methods for Industrial Engineering.
© 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
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 30.
Instrumentation and control
AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………..
07 Oct 2011Prof. R. Shanthini1 Cellular kinetics and associated reactor design: Reactor Design for Cell Growth CP504 – Lecture 7.
Chapter 3 – Exponentials FORMULAE FROM THE FORMULA BOOKLET. KNOW HOW TO USE THESE AND KNOW WHICH ONES THAT ARE NOT IN THE BOOKLET. The Questions in this.
Lecture – 3 The Kinetics Of Enzyme-Catalyzed Reactions Dr. AKM Shafiqul Islam
1 6.1 Slope Fields and Euler's Method Objective: Solve differential equations graphically and numerically.
Ch 8.2: Improvements on the Euler Method Consider the initial value problem y' = f (t, y), y(t 0 ) = y 0, with solution  (t). For many problems, Euler’s.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 30.
HCDC of E. coli under Fed- Batch conditions Whiffin Cooney Cord-Ruwisch High cell density cultures Chemostat and Batch culture have different advantages.
1 6.1 Slope Fields and Euler's Method Objective: Solve differential equations graphically and numerically.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Solving Ordinary Differential Equations
Interpolation - Introduction
Multi-stage Chemostat System
SLOPE FIELDS & EULER’S METHOD
SLOPE FIELDS & EULER’S METHOD
Chapter 18.
Unit 9 – Spreadsheet Development
Section Euler’s Method
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Bioreactors What two type of bioreactors have we discussed in Chapter Six? Batch and Chemostat (CSTR). What are the characteristics of each type of these.
CHAPTER Five: Collection & Analysis of Rate Data
Reading Between the Lines!
Recapitulation of Lecture 12
Presentation transcript:

Solving Engineering Problems by Using Computer A Case Study on Fed-Batch Bioreactor

Fed-Batch Bioreactor (1) A fed-batch reactor is a reactor that initially runs as a batch reactor, with volume V 0. As the substrate level drops, cell growth rate and product formation rates decrease. A feed stream is introduced to input substrate and now it is maintained at low cell growth rate. As the feed stream ia introduced, the reactor volume changes from V 0 to V t with time.

Fed-Batch Reactor (2) Governing equations: Specific growth rate: Reactor volume: Biomass: Substrate: Product:

Fed-Batch Reactor (3) Governing equations (cont’) Feed rate: Feed substrate conc.:

Fed-Batch Reactor (4) Initial condition: Reactor volume: Biomass level: Substrate conc.: Product conc.:

How to Solve It? (1) This is a typical differential equation problem with initial value(s). We can solve it by using mathematical software packages, such as Polymath, etc. When using the above software packages, the only requirement is to input the governing equations and they can be solved using built-in functions.

How to Solve It? (2) Such differential equation problems are solved by using numerical integration. When a differential equation is difficult or impossible to solve analytically,use numerical integration to find approximate solutions.

How to Solve It? (3) There are many numerical integration methods, the simplest one is called Euler’s method. To integrate a differential equation from time t 0 to time t final, this time period is divided into many small steps: h. E.g. At t 0, x = x 0. At (t 0 + h), x = x 0 + (h x slope t=0 ) Repeat above steps until t = t final

How to Solve It? (4) E.g. Drops in reactant conc. Smaller h will have better approximation. But smaller h will need more computation time.

Using Polymath (1)

Using Polymath (2) Step functions could be done by using the IF-THEN-ELSE statement to change value of constants according to simulation time: F =IF ( time < 3.5 hr ) THEN ( F = 0 L/hr ) ELSE ( F = 0.1 L/hr )

Using Polymath (3) The multiple steps of feed substrate concentration could be done by using multiple IF-THEN-ELSE statements: S Feed =IF ( time < 3.5 hr ) THEN ( S Feed = 0 g/L ) ELSE (IF ( time < 5.5 hr ) THEN ( S Feed = 100 g/L ) ELSE (IF ( time < 7.5 hr ) THEN ( S Feed = 180 g/L ) ELSE (IF ( time < 9.5 hr ) THEN S Feed = 350 g/L ) ELSE ( S Feed = 600 g/L ) ) ) )

Using Polymath (4) Advantages: –Polymath already built-in numerical integration methods; –Users only need to input differential equations, etc. –Step functions could be input by using the IF... THEN... ELSE... statement provided by Polymath.

Using Polymath (5) Disadvantages: –Number of steps in step functions should be known before setting up the equations; –The numbers of IF-THEN-ELSE statements = number of steps - 1 –If user wants to add more steps, he / she needs to modify the IF- THEN-ELSE statement, i.e. no flexibility; –Complicated IF-THEN-ELSE statements are not easy to read when there are many steps. –Polymath has limitation on the number of equations in a problem, for differential equation problems (Polymath version 6.10): VersionEducationalProfessional Max. # of simultaneous differential equations30300 Max. # of simultaneous explicit equations40300 Max. # of intermediate data points

Using Polymath (6)

Using Excel (1) It is possible to set up an Excel worksheet with numerical integration methods. E.g. Reactor volume with feed stream: StepTimeVolFeed 0t 0 = 0 V0V0 IF ( ( Time < 3.5 hr ), ( F = 0 ), ( F = 0.1 ) ) 1t 1 = t 0 + h V 1 = V 0 + F x h IF ( ( Time < 3.5 hr ), ( F = 0 ), ( F = 0.1 ) ) 2t 2 = t 1 + h V 2 = V 1 + F x h IF ( ( Time < 3.5 hr ), ( F = 0 ), ( F = 0.1 ) ) 3t 3 = t 2 + h V 3 = V 2 + F x h IF ( ( Time < 3.5 hr ), ( F = 0 ), ( F = 0.1 ) ) 4t 4 = t 3 + h V 4 = V 3 + F x h IF ( ( Time < 3.5 hr ), ( F = 0 ), ( F = 0.1 ) )

Using Excel (2) Costs: –Users need to set up their own numerical integration. Advantages: –Possible to perform numerical integration when no mathematical software package is available. Disadvantages: –The same style to input step functions as using Polymath, i.e. no flexibility.

Using Excel (3)

Using Excel VBA Programming (1) Numerical integration should be set up by user as VBA code. The program performs loops to estimate the solution until time > end time (t final ).

Using Excel VBA (2) Can include feed stream as a step function by using IF statement. But, how can we handle multiple steps in those step functions?

Using Excel VBA (3) An automatic feed data reading code is introduced; It is possible to handle any number of steps.

Using Excel VBA (4) Costs: –Users need to write their own VBA program code. Advantages: –It is more flexible and can handle various kinds of decisions. Disadvantages: –Need more time to set up the program; –Programming is not easy for novices.

Using Excel VBA (5)

When Do We Need to Write Our Own Program? For example: If it is needed to calculate the effect of various conditions, such as the case of 1 to many steps etc. If it is needed to evaluate different feed strategies.

Useful Reference M. Harris, SAMS Teach Yourself Microsoft Excel 2000 Programming in 21 Days, SAMS, 1999 –Although this book is not for the latest version, it is a good introductory book for Excel VBA programming.