Start Presentation December 13, 2012 12 th Homework - Solution In this homework, we shall model chemical reactions using reaction rate equations only.

Slides:



Advertisements
Similar presentations
Review of Chemical Thermodynamics Combustion MECH 6191 Department of Mechanical and Industrial Engineering Concordia University Lecture #1 Textbook: Introduction.
Advertisements

KINETICS.
SBML2Murphi: a Translator from a Biology Markup Language to Murphy Andrea Romei Ciclo di Seminari su Model Checking Dipartimento di Informatica Università.
Read Sections 5.1 and 5.2 before viewing the slide show.
The activation energy of combined reactions
Equation of Continuity. differential control volume:
ChE 201 Chemical Engineering Calculations I Fall 2005/2006 Course Description: System of units and dimensions. Stoichiometry. Ideal and non-ideal gases,
Basic Chemistry Chapter 11 Gases Chapter 11 Lecture
The Kinetic Theory of Gases
Sample Exercise 15.7 Calculating K When All Equilibrium Concentrations Are Known After a mixture of hydrogen and nitrogen gases in a reaction vessel is.
Chapter 2Stoichiometry Stoichiometry: the science dealing with quantitative relationships involving the mass of substances and the number of particles.
EGR 334 Thermodynamics Chapter 12: Sections 1-4
Department of Mechanical Engineering ME 322 – Mechanical Engineering Thermodynamics Lecture 2 Units and Unit Systems Fundamental Concepts from Chemistry.
Lecture 8 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Chemistry Chemical Reactions – Rearranging Atoms.
The Gas Laws. Introduction Scientists have been studying physical properties of gases for hundreds of years. In 1662, Robert Boyle discovered that gas.
1 CHAPTER 11 Gases and their Properties. 2 Density Comparison The density of gases is much less than that of solids or liquids: compoundSolid density.
Ideal gases and molar volume
Mullis 1. 2 Kinetics Concept of rate of reaction Use of differential rate laws to determine order of reaction and rate constant from experimental data.
1 MAE 5310: COMBUSTION FUNDAMENTALS Introduction to Chemical Kinetics September 24, 2012 Mechanical and Aerospace Engineering Department Florida Institute.
Preview Lesson Starter Objectives Measuring and Comparing the Volumes of Reacting GasesMeasuring and Comparing the Volumes of Reacting Gases Avogadro’s.
1 Tips for solving Project 1 Reactor SO 3 SO 2 +O 2.
Start PresentationSeptember 21, 2009 Modeling Chemical Reactions in Modelica By Use of Chemo-bonds Prof. Dr. François E. Cellier Department of Computer.
Chapter 8 Thermochemistry. Thermodynamics  Study of the changes in energy and transfers of energy that accompany chemical and physical processes.  address.
Chapter 14: Rates of Reaction Chemistry 1062: Principles of Chemistry II Andy Aspaas, Instructor.
CHAPTER 2 Matter and Atoms 2.3 Mixtures and Solutions.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 19.
INTERNAL COMBUSTION ENGINES LECTURER PROF.Dr. DEMIR BAYKA.
Chapter 11 Molecular Composition of Gases. Avogadro’s Law Equal Volumes of Gases at the Same Temperature & Pressure contain the Same Number of “Particles.”
Integrated Science Unit 8, Chapter 23.
Non Isothermal CSTR Chemical Reaction Engineering I Aug Dec 2011 Dept. Chem. Engg., IIT-Madras.
Chemical Reaction Engineering Chapter 4, Part 3: Pressure Drop in a Packed Bed Reactor.
From the Arrhenius equation we have: 301. From the Arrhenius equation we have: 302.
FACSIMILE Arsineh Hecobian Jaemeen Baek. Index Important Functions of Facsimile Model Run Examples Application: HONO Reaction Conclusion.
Today… 1)Addressing Some CURIOUS questions 2)Take-up Homework 2) Minds-On-Making Connections to Charles Law and Gay Lussacs Law 3) Combined Gas law and.
Partial Molar Quantities and the Chemical Potential Lecture 6.
11111 Chemistry 132 NT We are what we repeatedly do. Excellence is, then, not an act, but a habit Aristotle.
 We just discussed statistical mechanical principles which allow us to calculate the properties of a complex macroscopic system from its microscopic characteristics.
Start Presentation December 6, 2012 Chemo-bond Graphs In this lecture, we shall introduce a fourth bond graph library, the ChemBondLib. It is very similar.
Chapter 8: The Thermodynamics of Multicomponent Mixtures
CHAPTER 1 QUANTITATIVE CHEMISTRY LOOK AT EACH LEARNING GOAL AND WATCH THE TUTORIAL VIDEOS FOR THE GOALS YOU NEED WORK ON.
Section 11–2: The Gas Laws Coach Kelsoe Chemistry Pages 369–375.
CHARLES’S LAW The Second Gas Law. Objectives Upon completion of this presentation, you will be able to describe the relationship between the volume and.
Start Presentation November 29, 2012 Chemical Reactions In this lecture, we shall talk about chemical reaction dynamics, and shall attempt a bond- graphic.
Entropy Property Relationships Chapter 7b. The T-ds relations Consider an internally reversible process occurring in a closed system.
Ideal gases and molar volume
© 2013 Pearson Education, Inc. Chapter 7, Section 8 General, Organic, and Biological Chemistry Fourth Edition Karen Timberlake 7.8 The Ideal Gas Law Chapter.
Stoichiometry Simply, the math behind chemistry..
Lecture 8 Chemical Reaction Engineering (CRE) is the field that studies the rates and mechanisms of chemical reactions and the design of the reactors.
Chapter 11: Molecular Composition of Gases. Sect. 11-1: Volume-Mass Relationships of Gases Gay-Lussac’s Law of combining volumes of gases – at constant.
STAAR Chemistry Review Topic: Gas Properties TEKS 9 – The student understands the principles of ideal gas behavior, kinetic molecular theory, and the conditions.
Start Presentation December 6, th Homework In this homework, we shall model chemical reactions using reaction rate equations only. We shall program.
Stoichiometry and cooking with chemicals.  Interpret a balanced equation in terms of moles, mass, and volume of gases.  Solve mole-mole problems given.
Boyle’s Law The First Gas Law. Objectives Upon completion of this presentation, you will be able to describe the relationship between the pressure and.
Introduction to Programming Lecture # 43. Math Library Complex number Matrix Quadratic equation and their solution …………….…
Chemical Equations & The Law of Conservation of Matter.
CHAPTER 17 – CHEMICAL EQUILIBRIUM 8B-1 (of 37) COLLISION THEORY 1 - Molecules must collide to react 2 -Molecules must collide with sufficient energy to.
GAS LAWS ! DALTON, BOYLE, CHARLES, GAY-LUSSAC COMBINED GAS LAWS
General, Organic, and Biological Chemistry
Stoichiometry is the study of quantitative (i. e
Kinetics of chemical reactions: overview
Solution of Thermodynamics: Theory and applications
Basic Chemistry Chapter 11 Gases Chapter 11 Lecture
To Do… Discussion Section tomorrow. OWL: Tomorrow and next Friday
BY JHERUDDEN PGT (CHEMISTRY) KV SECL,NOWROZABAD
Avogadro’s Number: 1 mole = 6.02 x 1023 particles
Chapter 6 Chemical Reactions
Experimental Rate Laws
Kinetics Lesson # 3 Rate Law.
Chain reactions Chain reactions: a reaction intermediate produced in one step generates an intermediate in a subsequent step, then that intermediate generates.
Presentation transcript:

Start Presentation December 13, th Homework - Solution In this homework, we shall model chemical reactions using reaction rate equations only. We shall program the reaction rate equations directly in the equation window and learn to use Modelica’s matrix notation.

Start Presentation December 13, 2012 Hydrogen-Bromine Reaction Oxy-hydrogen Gas Reaction

Start Presentation December 13, 2012 Hydrogen-Bromine Reaction We wish to simulate the hydrogen-bromine reaction described during the lectures. We concentrate on mass flows only, i.e., we only model the reaction rate equations. We wish to plot the molar masses of the five species as functions of time. We shall program the reaction rate equations in the equation window of Dymola, making use of a matrix- vector notation, i.e., the chemical reaction network is described by the corresponding N-matrix.

Start Presentation December 13, 2012 Although the reactions are occurring under isothermic conditions, we still wish to take the Arrhenius’ law into account, and program the reaction rate constants as functions of temperature: where R is the gas constant (R = J K -1 mole -1 ).

Start Presentation December 13, 2012 Reaction k 2 contains a temperature dependence K(T) that was experimentally found: Program K(T) using a table-lookup function.

Start Presentation December 13, 2012 The initial molar masses of Br 2 and H 2 are both equal to The total reaction volume is V = m 3. The temperature is T = 800 K. Simulate the system during 5000 seconds. You need to reduce the tolerance value for the DASSL integration algorithm to Plot on one graph the molar masses of Br 2, H 2, and HBr during the first 0.1 seconds. Plot on a second graph the molar mass of H during the first 0.2 seconds. Plot on a third graph the molar mass of Br during the first 0.3 seconds. · ·

Start Presentation December 13, 2012 We shall need a table look-up function. We can program it manually.

Start Presentation December 13, 2012 We use a function. The colon here means that the array will adjust its dimension upon invocation. Protected variables are hidden from the outside. They are strictly local. The algorithm instruction allows users to encode sequential code. While equations are declarative, algorithms are procedural. Assert is a clean way to ensure proper usage of the function. If the assert clause is not met, the simulation dies with the indicated error message.

Start Presentation December 13, 2012 We can now create the model for the hydrogen-bromine reaction. The problem is modeled entirely in the equation window. The code is a bit long. The declarations and equations shall be explained separately.

Start Presentation December 13, 2012 This is an abbreviation. Whenever I write “Math,” I mean “Modelica.Math.” For convenience, I use the Matlab notation here. Array sizes can be parameter expressions. The Modelica notation is used here to declare this two- dimensional array. The Matlab notation would have worked equally well. Initial conditions for the state vector.

Start Presentation December 13, 2012 Call of interpolation function. Sqrt is an intrinsic Modelica function, whereas exp is a function that is contained in the Modelica.Math library. Comment. Matrix multiplication. Matrix integration.

Start Presentation December 13, 2012 We are now ready to compile the model.

Start Presentation December 13, 2012 We require some simulation control. unmark

Start Presentation December 13, 2012 We can now simulate the model.

Start Presentation December 13, 2012 Simulation results:

Start Presentation December 13, 2012 Oxy-hydrogen Gas Reaction When oxygen and hydrogen gases are mixed in similar proportions, a spark can bring the mixture to explosion. The process can be described by the following set of step reactions: W stands for the wall. At the wall, the unstable atoms H and O, as well as the unstable radical OH can be absorbed. The absorption rates are proportional to the molar masses of the absorbed species: ·· · OH = -a 1 · n OH · ·

Start Presentation December 13, 2012 The reaction rate constants at the given temperature are as follows: Plot the molar masses of H 2, O 2, and H 2 O on one plot. Plot the molar masses of the other four species on separate plots. k 0 = 60.0 k 1 = 2.3 · k 2 = 4.02 · 10 9 k 3 = 2.82 · a 1 = a 2 = 80.0 a 3 = Model the system in the Dymola equation window using a matrix-vector notation. Simulate the system during 0.1 seconds. The initial conditions are n H 2 = 10 -7, and n O 2 = 0.5 · The reaction volume is V = 1.0 m 3. You need to reduce the tolerance value of the DASSL integration algorithm to

Start Presentation December 13, 2012 Let us find the N-matrix: N = k 0 k 1 k 2 k 3 a 1 a 2 a 3 H2H2 O2O2 H2OH2O H O OH HO 2 · · · ·

Start Presentation December 13, 2012 Let us find the reaction rates: 1 = k 0 · n H 2 · n O 2 /V 2 = k 1 · n H 2 · n OH /V 3 = k 2 · n O 2 · n H /V 4 = k 3 · n H 2 · n O /V 5 = a 1 · n OH 6 = a 2 · n H 7 = a 3 · n O · · · · · ·

Start Presentation December 13, 2012 We are now ready to program:

Start Presentation December 13, 2012

Start Presentation December 13, 2012 Translation and simulation control:

Start Presentation December 13, 2012 Translation and simulation control:

Start Presentation December 13, 2012 Simulation results:

Start Presentation December 13, 2012

Start Presentation December 13, 2012 References Tiller, M.M. (2001), Introduction to Physical Modeling with Modelica, Kluwer Academic Publishers, Chapter 6.5: Language Fundamentals.Chapter 6.5: Language Fundamentals