1. Homepage
  2. Programming
  3. Computational Methods in Chemical Engineering CHEE 390 - Project #4 Non-Isothermal Reaction-Diffusion Process

Computational Methods in Chemical Engineering CHEE 390 - Project #4 Non-Isothermal Reaction-Diffusion Process

Engage in a Conversation
McGillCHEE 390Computational Methods in Chemical EngineeringNon-Isothermal Reaction-DiffusionMatlab

Computational Methods in Chemical Engineering CHEE 390 CourseNana.COM

Project #4
Non-Isothermal Reaction-Diffusion Process
CourseNana.COM

Instructions CourseNana.COM

This computer project must be completed using MATLAB®. You must work individually and submit a report electronically as a PDF along with all the m-files required to execute your code. All the files must be contained within 1 zip file. Instructions necessary to execute your code must be imbedded as comments in your m-files. In order to submit your assignment, you will click on the reply to all in the project submission email that I will send out approximately 1 week before the assignment is due. CourseNana.COM

Introduction CourseNana.COM

You are asked to analyze a non-isothermal reaction-diffusion process between 2 reservoirs. The reservoir on the left, RL, is empty and the reservoir on the right, RR, has a concentration of cAo, see figure 1. CourseNana.COM

cA(0)=0 cA(L)=cAo T(0)=To T(L)=To CourseNana.COM

0xL
Figure 1: Schematic of the reaction zone of length L in between 2 reservoirs. CourseNana.COM

The volumetric heat generation, q ̇, and the rate of consumption of A per unit volume, N ̇ A, is also given in the above figure for the process. E is the activation energy, cA is the concentration of the reacting species, T is the temperature, R is the universal gas constant, ΔHrxn is the heat of reaction and ko is the pre-exponential factor for the Arrhenius equation. CourseNana.COM

Problem Statement CourseNana.COM

The two coupled dimensionless differential equations that govern the flow of heat and mass (molar units) in this process are given by the following: CourseNana.COM

d2c*A 2c*e−β/T* (1) dx*2 A CourseNana.COM

d2T* 2 * −β/T*
dx*2 =φγcAe (2) CourseNana.COM

c*A is the dimensionless concentration of species A, T* is the dimensionless temperature, and x* is the dimensionless position. CourseNana.COM

q ̇ = − N ̇ A Δ H r x n N ̇ A = c A k o e E / R T CourseNana.COM

E The parameter β = RT CourseNana.COM

c*A=cA ,T*=T,x*=x cAo To L CourseNana.COM

ko L2 . The Thiele modulus, φ, is given by φ = D CourseNana.COM

o AB CourseNana.COM

(3a,b,c) CourseNana.COM

where DAB is the binary diffusion CourseNana.COM

coefficient. γ = D AB c Ao Δ H rxn and K is the thermal conductivity. KTo CourseNana.COM

For this project you must: CourseNana.COM

1) Plot the dimensionless temperature and concentration of species A vs dimensionless position under the following conditions: CourseNana.COM

a) β = {0.01, 5}, φ = 1 and γ = 15 and discuss the results. Is this case an exothermic or endothermic reaction, explain. CourseNana.COM

b) β = 0.01, φ= 2 and γ = {5, 15} and discuss the results. CourseNana.COM

c) φ = 0 and discuss the results.
2) Find the maximum or minimum, if one exits, and the position at which it occurs. CourseNana.COM

Solution Method CourseNana.COM

  1. Set up a grid of n nodes + 2 for the boundary conditions. CourseNana.COM

  2. Set up a residual vector, rv, which will be a stacked function consisting of n equations for the CourseNana.COM

    mass balance and n equations for the energy balance. These 2n equations will be interlaced into the residual vector which will then have a dimension of 2n x 1, see figure 2. Node [1] is at x*=0 and its value is given by the boundary conditions for each equation at that position, z1 for the concentration and z2 for the temperature. Node [n+2] is at x*=1 and its value is given by the boundary conditions z2n+3 for the concentration and z2n+4 for the temperature. The position of CourseNana.COM

    each node is given by x*j=(j1x* where j is the node number. CourseNana.COM

    Figure 2: Placement of grid points CourseNana.COM

    In order to implement the finite difference method, you must rewrite equation (1) and (2) using CourseNana.COM

the central difference equation as demonstrated in class. HINT: You create the rv in a for loop with the independent variables being the vector of unknowns, z! The creation of rv needs to be in a separate function, rv_fun, with inputs: z =[z3, z4,..., z2n+1,z2n+2], boundary conditions [z1, z2, z2n+3, z2n+4], β, φ, γ, and the number of nodes, n. CourseNana.COM

Report CourseNana.COM

Each student is required to submit one report and the results that you should obtain for case 3 in the problem statement are given in figure 3. In your report you must discuss the following: CourseNana.COM

CourseNana.COM

  • Explain the importance of the initial guess in such a technique and give examples of initial guesses that failed to converge and explain why. CourseNana.COM

  • What is the residual vector and why must it equal 0. CourseNana.COM

  • Why appending the unknown vectors together to make a single vector [c2, c3,...cn+1, T2, T3,..., CourseNana.COM

    Tn+1] is less efficient than interlacing the unknown vectors together to make a single vector [c2, CourseNana.COM

    T2, c3, T3,..., cn+1, Tn+1]. Hint: What does the Jacobian look like in these two scenarios! CourseNana.COM

  • Finally, compare and discuss the results you obtained from each of the 5 cases. CourseNana.COM

  • The format of the report should be as follows: CourseNana.COM

I. II. III. IV. V . VI. CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
McGill代写,CHEE 390代写,Computational Methods in Chemical Engineering代写,Non-Isothermal Reaction-Diffusion代写,Matlab代写,McGill代编,CHEE 390代编,Computational Methods in Chemical Engineering代编,Non-Isothermal Reaction-Diffusion代编,Matlab代编,McGill代考,CHEE 390代考,Computational Methods in Chemical Engineering代考,Non-Isothermal Reaction-Diffusion代考,Matlab代考,McGillhelp,CHEE 390help,Computational Methods in Chemical Engineeringhelp,Non-Isothermal Reaction-Diffusionhelp,Matlabhelp,McGill作业代写,CHEE 390作业代写,Computational Methods in Chemical Engineering作业代写,Non-Isothermal Reaction-Diffusion作业代写,Matlab作业代写,McGill编程代写,CHEE 390编程代写,Computational Methods in Chemical Engineering编程代写,Non-Isothermal Reaction-Diffusion编程代写,Matlab编程代写,McGillprogramming help,CHEE 390programming help,Computational Methods in Chemical Engineeringprogramming help,Non-Isothermal Reaction-Diffusionprogramming help,Matlabprogramming help,McGillassignment help,CHEE 390assignment help,Computational Methods in Chemical Engineeringassignment help,Non-Isothermal Reaction-Diffusionassignment help,Matlabassignment help,McGillsolution,CHEE 390solution,Computational Methods in Chemical Engineeringsolution,Non-Isothermal Reaction-Diffusionsolution,Matlabsolution,