Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON QUESITON 3 . Solving a system of ODEs for a series of reactions in a batch reactor. ( 5 0 pts ) The following

PYTHON QUESITON 3. Solving a system of ODEs for a series of reactions in a batch reactor. (50
pts)
The following series of reactions takes place in a batch reactor where our goal is to make product
D, but a side reaction in which one of the reactants (A) creates an undesired product (C) that
reacts with D to make another undesired product (E).
A+Bk12D
2Ak2C
C+Dk3E
The governing equations are:
dCAdt=-k1CACB-2k2CA2
dCBdt=-k1CACB
dCCdt=k2CA2-k3CCCD
dCDdt=2k1CACB-k3CCCD
dCEdt=k3CCCD
The initial concentrations of species is {50;15;0;0;0}(all in mol/L). The reaction time is 10hrs.
The rate constants are k1=510-5Lmolhr,k2=0.009Lmolhr,k3=0.007Lmolhr.
Assume constant volume and isothermal conditions.
a) Solve the system in Python and provide a plot of concentration versus time. The plot can
use symbols or lines but should be labeled, with a legend, and be neat.
b) What is the maximum concentration of D in your reactor and at what time does it reach
this value? Your answer should be correct within 2 decimal places to receive full credit
(i.e. do not guess your number off your plot). Show the Python code you used to determine this.
Please use
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import solve_ivp
image text in transcribed

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

Heat And Mass Transfer Fundamentals & Applications

Authors: Yunus A. Cengel, Afshin J. Ghajar

4th Edition

0073398128, 978-0073398129

More Books

Students also viewed these Chemical Engineering questions

Question

Evaluate Round your answer to the nearest hundredth. 4+ 4-

Answered: 1 week ago

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago