Question: 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
 PYTHON QUESITON 3. Solving a system of ODEs for a series

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemical Engineering Questions!