Monte Carlo Integration in Excel

Slides:



Advertisements
Similar presentations
Conversion and Reactor sizing
Advertisements

Chemical Reaction Engineering
Conversion and Reactor Sizing
Lecture 4 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
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.
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.
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.
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.
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.
Lecture 4 Tuesday 1/15/08 Block 1: Mole Balances Size CSTRs and PFRs given –r A =f(X) Block 2: Rate Laws Reaction Orders Arrhenius Equation Block 3: Stoichiometry.
SABIC Chair in Catalysis at KAU Chemical Reaction Engineering Dr. Yahia Alhamed.
Monte Carlo Integration in Excel
Lecture 8 Tuesday 1/29/08 Block 1: Mole Balances on PFRs and PBRs Must Use the Differential Form Block 2: Rate Laws Block 3: Stoichiometry Pressure Drop:
Calculating the Number of Moles in a Solution
For Moles – Grams Conversions 1.Read the problem and find the starting point (the number). 2.Write this starting point down with its units. 3.Draw a “factor”
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.
ISOTHERMAL REACTOR DESIGN
Tutorial 4 solutions Lecturer: Miss Anis Atikah Ahmad
Isothermal Reactor Design – Part 2
Lecture 8 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
1 - 12/09/2015 Department of Chemical Engineering Lecture 6 Kjemisk reaksjonsteknikk Chemical Reaction Engineering  Review of previous lectures  Pressure.
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.
Chemical Reaction Engineering Asynchronous Video Series Chapter 4, Part 1: Applying the Algorithm to a CSTR H. Scott Fogler, Ph.D.
Chemical Reaction Engineering Chapter 4, Part 3: Pressure Drop in a Packed Bed Reactor.
ITK-330 Chemical Reaction Engineering
L4-1 Slides courtesy of Prof M L Kraft, Chemical & Biomolecular Engr Dept, University of Illinois at Urbana-Champaign. Ideal CSTR Design Eq with X A :
Stoichiometry w/ Molar Mass 1. Start with a balanced chemical equation. Na 2 CO 3 + Ca(OH) 2 2 NaOH + CaCO 3.
Review: Logic of Isothermal Reactor Design
Stoichiometry Objectives:
L7-1 Slides courtesy of Prof M L Kraft, Chemical & Biomolecular Engr Dept, University of Illinois at Urbana-Champaign. Review: Liquid Phase Reaction in.
L7b-1 Copyright © 2014, Prof. M. L. Kraft All rights reserved. Review: Fixed-Volume CSTR Start-Up Isothermal (unusual, but simple.
Section 13.2 Using Gas Laws to Solve Problems. Section 13.2 Using Gas Laws to Solve Problems 1.To understand the ideal gas law and use it in calculations.
Chemical Reaction Engineering Asynchronous Video Series Chapter 3, Part 4: Reaction Stoichiometry Measures Other Than Conversion H. Scott Fogler, Ph.D.
Stoichiometry Calculations Section 12.1 Mole to mole calculations.
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.
Isothermal Reactor Design
L15-1 Slides courtesy of Prof M L Kraft, Chemical & Biomolecular Engr Dept, University of Illinois, Urbana-Champaign. L15: Nonisothermal Reactor Example.
1 - 08/12/2015 Department of Chemical Engineering Lecture 5 Kjemisk reaksjonsteknikk Chemical Reaction Engineering  Isothermal reaction design algorithm.
Stoichiometry and the Math of Equations Part 2: Mass-Volume.
Lecture 6 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
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.
Ideal gases and molar volume
Lecture 8 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
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.
Isothermal reactor design
Volume and Moles. Avogadro’s Law  When the number of moles of gas is doubled (at constant temperature and pressure, the volume doubles.  The volume.
E XERCISE 1 SOLUTION Lecturer: Miss Anis Atikah Ahmad Tel:
Isothermal Reactor Design – Part 2
ChE 402: Chemical Reaction Engineering
ChE 402: Chemical Reaction Engineering
A First Course on Kinetics and Reaction Engineering
Review: Design Eq & Conversion
Conversion and reactor sizing
Chemical Reaction Engineering
Lecture 5 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Steady-state Nonisothermal reactor Design Part I
Basic Chemistry Chapter 11 Gases Chapter 11 Lecture
Tutorials.
Lecture 4 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Lecture 7 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Lecture 13 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
ISOTHERMAL REACTOR DESIGN
Lecture 7 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Lecture 5 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Lecture 6 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
#5 of 11-6 LIMITING REAGENT SET
Lecture 6 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Lecture 7 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Chemical Reaction Engineering
Presentation transcript:

Monte Carlo Integration in Excel Sean Gant Jay Lee

Monte Carlo Integration y x B f(x)

Monte Carlo Integration y x B f(x)

Monte Carlo Integration y x B f(x)

Gas-phase elementary reaction: 2A → B Isothermal reaction in a PFR with no pressure drop Only A is fed, P0 = 8.2 atm, T0 = 500K, ε = -0.5 CA0 = 0.2 mol/dm3, k = 10 dm3/mol-s, vo = 25 dm3/s QUESTION What volume is needed to achieve 90% conversion?

Mole Balance: Rate Law: Stoichiometry: Combine: Since, we have an elementary reaction, the rate law for the reaction rate of A is simply: Since the reactor is isothermal and we have no pressure drop, stoichiometry reveals that… Combining the mole balance, rate law, stoichiometry we obtain a definite integral for the volume.

Setting Up Excel Spreadsheet What are your inputs? (Using “Rand()” Function) X: Your independent variable (range you are integrating) Y: Dependent variable ( from 0 to max over X-range) What is your defined area? L x W of “box” (multiply the two ranges) What constitutes a hit? If random point lies below function then “hit”

Setting up Excel Spreadsheet

Setting up Excel Spreadsheet Random Number Generator Rand()*(b-a)+a Generate a number between a and b The “Status” If(X<f(X), “below”, “above”) If value of f(X) > Y then mark “below” The “Count” If(Status=“below”,1,0) If value of status is “below” then count a “hit” Making sense of data Take total number of hits and divide by total number of points to find fraction under function Multiply calculated fraction by area of “box” to find the area under the curve. In this case this value is the volume of your PFR. 44.6 dm3 as compared to 45.3 dm3 found by solving analytically.

Setting up Excel Spreadsheet