06-623 Mathematical Modeling of Chemical Engineering Processes Solved

$ 24.99
Category:

Description

Homework Assignment #2

Use Matlab to solve these problems. Generate script which is organized and commented.
You can make one m file for the entire assignment or separate m files for each problem. Turn in the m files AND pdf files of the output (using the publish function). Zip files together and turn in one file through blackboard.

Decomposition

k2 D k1
A B

4 C
Reaction scheme. The ki terms are the rate constants for the specific reaction steps.

Write a set of balance equations for the moles of the four components in the reactor as a function of time. Your model should take the form Acss = cI, where css is a vector of the steady state concentrations of components in the reactor and cI is a vector of the feed concentrations of each component.

Write a script that uses LU decomposition. Input the rate constants and residence time as a single vector. Construct the A matrix and then use the lu() function to generate the triangular matrices within the script. For an arbitrary feed vector, have the script perform two steps using the triangular matrices to determine css.

Determine the steady state concentrations in the reactor for the situation that k = [0.1 0.2 0.1 0.8] sec-1 for a 10 L reactor with an inlet/outlet flow rate of 1 L/sec. The feed to the reactor is a mixture of 5M A and 1M D. Your script should output the steady state reactor concentrations and the vector formed as a result of the first multiplication of a triangular matrix by the feed vector.

Eigenvalue Analysis

2. Compute the eigenspace of the following using three different methods as described below.

 3 2 2 1
 2 3 1 2
A =  
1 1 2 0
 
 2 4 3 5

a. Use the eig function in MatLab to determine the eigenspace. Determine the norm of each of the eignevectors calculated; how does Matlab normalize eigenvectors?
b. Matlab has a symbolic function sym that allows symbolic, rather than numerical, calculations to be performed. Use the sym function to create symbolic versions of the matrices and find exact solutions for the eigenspace.

3. There are numerical approaches to finding eigenvalues and the power method is one of them. The power method finds the largest eigenvalues for any self-adjoint matrix with distinct eigenvalues. For a matrix A, start with the vector xo = [ 1 0 0]T and iterate using xi+1 = A xi. Perform this procedure on a real, symmetric 3×3 matrix A. outputting the largest eigenvalue (to within a tolerance that you define) of A and corresponding eigenvector.

Solving Nonlinear Algebraic Equations

4. The nonlinear equation f ( )x  x3 5×2  7x 3has three roots, but these are not distinct roots as there is one double root. To solve these problems, the modified Newton-Raphson method is often used. In this problem, we consider the impact of changing the update function, u x( [ ]k ) , on the speed of convergence of an iterative technique.

x[k1]  x[ ]k u x( [ ]k )

u x( [ ]k )  ff x(1)((x[ ]k[ ]k)) modified to u x( [ ]k )[ f (1)(x[ ]kf x()]2[ ]k)f xf((1)[ ](kx)[ ]kf)(2)(x[ ]k )

a. This is a polynomial, so there are analytical ways to find the roots. Factor the expression for f ( )x and determine the three roots.
b. From the initial guess, x0, calculate the first 5 values of x (i.e., do 5 iterations) and the error between the actual solution and calculated root using the standard update function.
c. From the initial guess, x0, calculate the first 5 values of x (i.e., do 5 iterations) and the error between the actual solution and calculated root using the modified update function.
d. Compare the convergence of the two update functions for the initial guess of x4. Do they approach the same solution?

5. A large tank of water is drained by gravity through a long pipe, L = 5 m, at the bottom of the tank. Assuming that the changes in height of water in the tank do not change the instantaneous velocity, the velocity of fluid leaving the pipe, V(t), is given by:

V t( )  tanh t 2gh
2gh  2L 

Determine the height of water, h, needed to have a velocity out of the pipe of 5 m/s after t = 3 sec. Clearly explain the method that you use.

Solving Systems of Nonlinear Algebraic Equations

6. Find at least one real solution to the coupled set of nonlinear algebraic functions below. Solve this as a set of two equations using the Newton-Raphson method. Calculate and use the analytical form of the Jacobian in your method. Clearly state your criteria for convergence. Generate a plot of x versus y with each of the functions shown as lines and identify your solution (the zero of the system) as a point on the plot.

y x  ( 1)2 0

(y4)2 tan x 0

7. Vapor-liquid equilibrium of mixtures of mixtures requires the calculation of the saturation (or vapor) pressure of the pure components in the mixture. These are tabulated for many components and given as the coefficients (A,B) in Antoine’s equation, where A,B are independent of temperature and pressure:
P Tsat ( )  exp T C( )A273.15 B Pbubble iN1 x Pi isat (T 1/ Pdew iN1 yi Pisat (T 
The values of the Antoine coefficients for typical solvents are well known; for example for compound  (A=-3848.09, B=17.5318) and compound  (A=-4328.12, B=17.913). The bubble point pressure is a function of the liquid composition, in terms of mole fractions in the liquid, xi, for a mixture of N components, and the dew point pressure is a function of the vapor phase composition in terms of mole fractions in the vapor, yi .
Generate a Txy diagram for  mixtures. One line should provide the boiling points (where Pbubble is equal to P) while the other should provide the dew points (where Pdew is equal to P). Indicate the bubble and dew temperatures for equimolar mixtures on the Txy diagram.

8. A batch gas phase reactor is run at 3000 K at 1 atm with two primary reactions:

2CO2  2CO O 2 O N2  2 2NO

An extent of reaction, j, is defined for each reaction with units of moles. When run at equilibrium, the mole fractions of each gas in the reactor, yi, will satisfy:

K1 and 
yCO O2 2y2 2  yOy2NO2yN2 K2 .
yCO

Writing mass balance expressions for the components in the reactor will result in a set of coupled, nonlinear equations in terms of the extents of reaction. This set of equations can be solved to find the solution for the extents of reaction given system parameters and initial feed. Find the solutions for the following sets of conditions using your own iterative approach or a built in function. State the convergence criteria that are used.

a) Solve for the equilibrium extents of reaction for the situation that the feed to the reactor is 1/3 of a mole of CO2, O2 and N2 with values of K1 = 0.1071 and K2 = 0.01493.

b) Solve for the equilibrium extents of reaction for the situation that the feed to the reactor is 2 moles of CO2 and 1/3 of a mole of O2 and N2 with values of K1 = 0.1071 and K2 = 0.01493.

9. The pipe network below involves seven unknown flow rates, qi, through loops and junctions. The flow directions and pipe lengths are given on the figure and the flow is driven by a pump delivering a pressure head of 5.2 x 105 Pa.

For an incompressible liquid, the flow rates into and out of each junction must balance providing four equations relating the flow rates. The sum of the pressure drops around each loop must also balance providing three more equations:

l q3 32  l q4 42 l q2 22 l q4 42 l q5 52  l q6 62
2 l q2
l q1 1  6 6 l q7 72  5.2 10x 5 2(0.2)5
8(0.02)(998)

Develop the appropriate system of seven nonlinear equations and then solve for q, the vector of flow rates in the flow loop. Assume that the units are consistent. Use an initial guess of qi = 0.1 for each flow rate.

Reviews

There are no reviews yet.

Be the first to review “06-623 Mathematical Modeling of Chemical Engineering Processes Solved”

Your email address will not be published. Required fields are marked *