Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

do the problem in MATLAB i did the VBA portion 1. Data on the liquid phase bromination of xylene at 17C have been reported by

image text in transcribed

image text in transcribed

do the problem in MATLAB i did the VBA portion

1. Data on the liquid phase bromination of xylene at 17C have been reported by Hill [1]. This reaction has been studied by the introduction of iodine (a catalyst) and small quantities of reactant bromine into a batch reactor containing reactant xylene in considerable excess. The concentrations of reactant xylene and the iodine catalyst are approximately constant during the reaction. A material balance on the batch reactor yields: dC Br2 where CBr2 is the concentration of bromine in g-mol/dm3, k is the pseudo rate constant that depends on the iodine and xylene concentrations, and n is the reaction order. Equation (1) can easily be linearized by taking the In of each side of the equation, yielding: dCBr2Ink n ln(CBr2) In This expression can be used in linear regression to determine k and n. a) Write a VBA program that uses numerical differentiation to prepare a table of dCBr2/dt versus CBr2 at the experimental data points. b) Write a VBA program that uses linear regression to find the reaction rate constant and order of reaction for the bromination of xylene. Your program should also calculate the goodness of fit (R or R2). Finally, you should compare the model with the experiment by (i) plotting in (dCpa/dt) vs. ln (CBR2) and (ii) plotting dCBR2/dt versus t. Your graphs should show both the experimental data and the calculated values using your linear regression. c) When you have completed your VBA prog ram, rework this problem using Matlab. Turn in * Your VBA code that can be run to output the results (k, n, and R or R2) to a worksheet. * Graphs of In dCBr2/dt vs. In (Cbr2) and dCBr2/dt versus t depicting both the model and the experimental data Your Matlab code that produces k, n, and R or R * 1. Data on the liquid phase bromination of xylene at 17C have been reported by Hill [1]. This reaction has been studied by the introduction of iodine (a catalyst) and small quantities of reactant bromine into a batch reactor containing reactant xylene in considerable excess. The concentrations of reactant xylene and the iodine catalyst are approximately constant during the reaction. A material balance on the batch reactor yields: dC Br2 where CBr2 is the concentration of bromine in g-mol/dm3, k is the pseudo rate constant that depends on the iodine and xylene concentrations, and n is the reaction order. Equation (1) can easily be linearized by taking the In of each side of the equation, yielding: dCBr2Ink n ln(CBr2) In This expression can be used in linear regression to determine k and n. a) Write a VBA program that uses numerical differentiation to prepare a table of dCBr2/dt versus CBr2 at the experimental data points. b) Write a VBA program that uses linear regression to find the reaction rate constant and order of reaction for the bromination of xylene. Your program should also calculate the goodness of fit (R or R2). Finally, you should compare the model with the experiment by (i) plotting in (dCpa/dt) vs. ln (CBR2) and (ii) plotting dCBR2/dt versus t. Your graphs should show both the experimental data and the calculated values using your linear regression. c) When you have completed your VBA prog ram, rework this problem using Matlab. Turn in * Your VBA code that can be run to output the results (k, n, and R or R2) to a worksheet. * Graphs of In dCBr2/dt vs. In (Cbr2) and dCBr2/dt versus t depicting both the model and the experimental data Your Matlab code that produces k, n, and R or R *

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

=+ a. How does this change affect the incentives for working?

Answered: 1 week ago