CHGFile
CHGFile
GROUP MEMBERS:
190401025
Balogun Khalid
190401002
Problem 1 involved a chemical engineering process with three reactors operating at steady state, under the
assumption that there was neither generation nor consumption of a particular species. Material balance
equations were formulated for each reactor to determine the concentration of the species. The system of
linear equations generated was solved manually using Cramer's rule, matrix inversion, and Gaussian
elimination, as well as programmatically using Excel and MATLAB. The results obtained from all methods
were consistent, with no significant differences observed, confirming the validity of these numerical
methods.
Problem 2 focused on solving nonlinear equations. In the first part, the root of a given equation was found
using both the Newton-Raphson and interval bisection methods. The Newton-Raphson method proved more
efficient, converging within four iterations, while the interval bisection method required 26 iterations to
reach the same accuracy. In the second part, the volume of nitrogen gas was determined using the van der
Waals equation of state with MATLAB’s fsolve function. The results from both approaches were
consistent, demonstrating the efficacy of MATLAB in solving nonlinear equations.
Problem 3 involved modeling a liquid storage tank system with reasonable assumptions, such as perfect
mixing, constant liquid density, and constant cross-sectional area. A mechanistic model was derived for the
height of the liquid, and its dynamic response was determined through linear analysis. Numerical solutions
using Euler’s explicit method and the Runge-Kutta method in MATLAB were compared. As the step size
increased, Euler’s method showed less stability than the Runge-Kutta method, especially for larger flow
coefficients, highlighting the latter's advantages for stability in dynamic systems.
Problem 4 required fitting a function to rate coefficient and temperature data for a reaction using the least
squares method. The system of equations was solved manually and programmatically. While minor
discrepancies were observed between the manual and programmatic results, these were attributed to
rounding errors. Despite these differences, both approaches fitted the data well, confirming the effectiveness
of the least squares method.
Problem 5 used DWSIM to simulate a multi-component stream separation process via flash distillation.
Initially, no separation occurred due to high temperature and pressure. However, by adjusting the
temperature, successful separation was achieved, demonstrating the utility of DWSIM in simulating and
optimizing separation processes.
Problem 6 involved the separation of a five-component stream into pure fractions using DWSIM. Since a
fractional distillation column was unavailable in the software, a sequence of four distillation columns was
employed instead. The simulation successfully separated the components, and the results provided valuable
insights into the separation process.
Problem 7 simulated natural gas absorption using dodecane in a 30-stage tower in DWSIM. The component
fractions in the lean gas were determined, and the simulation effectively modeled the absorption process,
providing insight into the design and optimization of gas absorption systems.
Problem 8 focused on the production of ethyl chloride via a multi-step process in DWSIM. The process
included recycle streams and a purge stream, with an overall material balance evaluation. The simulation
results offered a comprehensive understanding of the process and its optimization, demonstrating DWSIM’s
capability in modeling complex chemical processes with recycle streams.
Throughout this assignment, the differences in results across the methods were generally less than 0.05,
which in practical applications, would be considered negligible. The graph of pressure versus volume in
Problem 2 validated Boyle’s Law, confirming the expected inverse relationship between pressure and
volume. Overall, the application of numerical methods and simulation tools, including MATLAB and
DWSIM, demonstrated their reliability and efficiency in solving complex chemical engineering problems.
This report highlights the successful application of various numerical techniques and simulation tools to
solve real-world chemical engineering problems. The accompanying tables, flowcharts, and results illustrate
the thorough analysis conducted and offer practical solutions to the challenges presented. The integration of
DWSIM simulations further enhanced the understanding of chemical processes and their optimization in a
simulated environment.
Table of Contents
Attestation of Authorship
Contributions
1. Introduction
2. Results
2.1 Section 1
2.1.1 Cramer’s Rule
2.1.2 Matrix Inverse Method
2.1.3 Gaussian Elimination
2.1.4 Spreadsheet Solution
2.1.5 Mathlab Solution
2.2 Question 2
2.2.1 Question 2a
2.2.1.1 Newton-Raphson Method
2.2.1.2 Interval Bisection Method
2.2.1.3 Spreadsheet Solution
2.2.1.4. Mathlab Solution
2.2.2 Section 2b
2.2.2.1 Spreadsheet Solution
2.2.2.2 MathlabSolution
2.3 Section 3
2.3.1 Model Derivation
2.3.2 Explicit Euler’s Method
2.3.3 Runge-Kutta 4th Order Method
2.3.4 Comparison of the two Methods
2.4 Question 4
2.4.1 Manual Solution
2.4.2 Spreadsheet Solution
2.4.3 Mathlab Solution
2.5 Question 5
2.7.2Software analysis
2.8 question 8
2.8.1Analysis description
2.8.2Software analysis
Attestation of Authorship
We hereby attest to the originality of our work and establish that we have not in any way copied or
reproduced the work of other groups or one that was previously submitted in the past years. All
parts of this report, including the solutions to the problems, and the attached spreadsheet and
program files, have been entirely developed by us without direct input (solution approaches were
only discussed with other groups) from any person other than those listed below.
Members
190401025
Balogun Khalid
190401002
Mathematical modelling plays a crucial role in science and engineering by transforming real-world
problems into mathematical frameworks. This enables better understanding, optimization, and
decision-making. For example, in climate science, mathematical models help predict temperature
changes, ice cap melting, and extreme weather patterns using historical and real-time data. In
aerospace engineering, models simulate rocket propulsion dynamics to optimize fuel efficiency
and trajectory planning.
Beyond these fields, modelling is widely applied in chemical engineering, where it contributes
to:
Process Design – Evaluating new plant designs for efficiency and feasibility.
Process Control – Developing automated control systems to regulate processes.
Process Safety – Predicting potential hazards and designing safer operational procedures.
Troubleshooting – Identifying causes of performance deviations and system failures.
Operator Training – Using simulations to train personnel on process handling.
Optimization – Enhancing efficiency and sustainability in industrial operations.
1. Fundamental (Mechanistic) Models – These rely on physical and chemical principles to describe system
behavior without requiring experimental data.
2. Empirical (Black-Box) Models – Built entirely on observed data without prior knowledge of system
mechanics.
3. Semi-Empirical (Hybrid) Models – A combination of theoretical and experimental approaches, often used in
reaction engineering, where rate laws blend empirical data with established physical laws.
The success of a mathematical model depends not only on the depth of knowledge about the
system but also on the precision of the modelling approach. As Hangos (2001) suggests, effective
modelling can significantly improve system performance, risk assessment, and decision-making
across various scientific and engineering disciplines.
2. RESULTS
2.1 SECTION 1
The diagram below illustrates a chemical engineering process featuring three reactors—A, B, and
C—operating under steady-state conditions. With the given volumetric and mass flow rates at both
the inlet and outlet streams, our objective is to determine the concentration of the chemical
species inside each reactor.
volumetric flow rate: QAB = 40 m3/s, QAC = 80 m3/s, QBA = 60 m3/s, QBC = 20 m3/s, QCout = 150 m3/s,
mass flow rates: mCin = 195 mg/s, and mAin = 1320mg/s
Our approach to solving this chemical engineering mass balance problem is based on the
following key details and assumptions:
Steady-State Condition:
The system is in steady state, meaning the accumulation of the species in each reactor is zero.
Mass Conservation:
The species is neither produced nor destroyed in the reactors. The total incoming mass flow rate equals the total
outgoing mass flow rate.
∑(Mass flow rate into reactor i)=∑(Mass flow rate out of reactor i)
Reactor A:
mA,in + XB QBA = XAQAC + XAQAB
1320 + 60XB = 80XA + 40XA
120XA - 60XB = 1320 ---- (1)
Reactor B:
XAQAB = XBQBA + XBQBC
40XA = 60XB + 20XB
40XA - 80XB = 0 ------- (2)
Reactor C:
m c,in + XAQAC + XBQBC = XC QCout
195 + 80XA + 20XB = 150XC
80XA + 20XB - 150XC = -195 ----- (3)
We now present the manual solution to these equations via three different approaches.
�� ��
�� �
y=
�� ��
�� �
z=
Modified Matrices:
�1 �1 �1
Aₓ = �2 �2 �2
�3 �3 �3
�1 �1 �1
Aᵧ = �2 �2 �2
�3 �3 �3
�1 �1 �1
Az�� = �2 �2 �2
�3 �3 �3
Determinant of a 3×3 Matrix:
� � �
For any 3×3 matrix:
M= � �
� � �
1320 −60 0
0 −80 0
DXA −195 20 −150 1.58 � 107
� 120 −60 0 1.08 �106
XA = = = = 14.67 mg/m3
40 −80 0
80 20 −150
120 1320 0
40 0 0
DXB 80 −195 −150 7.92 � 106
� 120 −60 0 1.08 �106
XB = = = = 7.33 mg/m3
40 −80 0
80 20 −150
where A is the matrix of coefficients, X is the vector of unknown variables, and b is the vector of
values on the right side of the equations. Solution of X is obtained by pre-multiplying both sides by
the inverse of the matrix of coefficients, giving
X =A 1 b
1
A 1= �� � × adj( A)
120 −60 0
det A = 40 −80 0 = 1.08 �106
80 20 −150
The adjoint of matrix A is the transpose of the matrix of cofactors of A and is obtained as follows
+ −80 0 − 40 0 + 40 −80
120 150 120 −150 80 20
−60 0 + 120 0 120 −60
adj A = − −
20 −150 80 −150 80 20
T
+ −60 0 −
120 0 + 120 −60
−80 0 40 0 40 −80
12000 −9000 0
Therefore,
6000 −18000 0
1
��
12000 −9000 0 1320
�� = 6000 −18000 0 0
1
1.08� 106
��
7200 −7200 −7200 −195
10.10
1.08� 106
�� 1.58 � 107
2.1.3 Gaussian Elimination
In this approach, we transform the augmented matrix A i nto an upper triangular matrix through
elementary row operations and then obtain the complete solution via back substitution. The
augmented matrix is given below.
The first row operation seeks to turn the first entry in row 2 to zero as shown below
1
R2 - 2 �3 R2
120 −60 0 \ 1320
A= 0 −90 75 \ 97.5
80 20 −150 \− 195
120
80
R3 - R2 R3
R3 + R2 R3
= 10.1
−1515 푚
−150 푚3
XC =
= 7.33
75(10.1) − 97.5 푚
90 푚3
XB =
= 14.67
1320 − 60(7.33) 푚
120 푚3
XA =
Finally, we selected the Simplex LP solving method, as our equations were linear. With these settings in
place, we solved the problem by clicking the Solve command in the dialog box. The final solution is shown
in the last figure.
2.1.5 MathLab Solution
MathLab offers a very quick and easy way to solve this system of linear algebraic equations. In the
snapshots that follow, the coefficient matrix has been assigned to the variable “A” while the vector of values
on the right side of the equations have been assigned to “b”. The solution is found by obtaining the dot
product between the inverse of A and the vector b (note that the order matters, else it would violate the
matrix compatibility rule).
Output
2.2 Question 2
2.2.1 Question 2a
2.2.1.1 Newton-Raphson Method
Given:
RT =Ro (1+ AT +B T 2 +C T 4 + T6 )
R0 (resistance of the detector at 00C )=100 Ω
We desire to determine the temperature of the material at RT using the Newton-Raphson algorithm.
The algorithm requires an initial guess value and is expressed as follows:
Ti = Ti -1 −
f(T)
f ' (T)
We must first express the equation given in the form f (T )=0 after which the derivative of this function, f '
(T ) is computed. On substituting R0and RT into the equation we have:
Noting that the coefficients of T in f (T ) are very small, we could assume that powers of T higher than 1
are negligible. Thus,
g(T) = AT − 2 = 0
5.485 x 10−3 T − 2 = 0
5.485 x 10−3 T = 2
T = 364.630C
This exercise has provided for us a reasonable starting value and we can now employ the algorithm to find
T 1.
�(�0 ) = 5.485 � 10−3 �0 + 6.65 � 10−6 �20 + 2.805 � 10−11 �40 − 2 � 10−17�60 − 2
�( �0 ) = 1.3330
�'(�0 ) = 0.015
�1 = �0 −
�(�0)
�'(�0)
�1 = 364.63 − = 275.7630 �
1.3330
0.015
This process is repeated three times and the results are shown below:
In just 4 iterations, the Newton-Raphson method converges to a root with an error of about 10-8.
Compared to the next method we will see, this is much faster.
Because f(c) > f(a), a now takes on the value of c while b remains the same. Then we repeat the process
above. With 16 iterations, the final value of T is 260.21881°C with an error of 10-6.
a+b
a = 250, b = 300, c = = 275
2
f(a) =− 0.10844, f(b) = 0.45663, f(c) = 0.16305
With just 4 iterations, the Newton-Raphson method converged to a solution with an error of the order 10-8
which is quite impressive. On the other hand, with 16 iterations, the interval bisection method is still unable
to find a solution as close as possible to that obtained via Newton-Raphson.
Infact, in order to get as close, we would require 26 iterations. We have paused at the fifteenth iteration for
the interval bisection method because we expect that in all practicality, the results obtained via the two
methods would not make that much of a difference in application.
2.2.1.3 Spreadsheet Solution
We assigned the value of T and RT to the cells B11 and B14 respectively. We also assigned cells B6, B7,
B8, B9 and B10 to the given fixed values of R, A, B, C, and D respectively. Using Excel’s “goal seek”, we
obtained the value of T = 260.19747 o C that made Eq. equal to 300.
2.2.1.4.MathLab solution
Three functions were created, one to determine the residue, and another, which was an implementation of
the interval bisection algorithm that has been discussed earlier. The tolerance was set to 10-6 and the
program was run. After 18 iterations, the algorithm converged to a solution.
output:
for a resistance of 300ohms the output temperature is 260.216. resukt obtained with a tolerance
level of 0.000001.
2.2.2 Section 2b
In this problem, we are required to determine the volume of Nitrogen gas at 298 Kelvin and at
specified pressures using the van der Waals equation of state given by:
nRT n2 a
P = −
V − nb V
15
13.5 atm, 15% above this pressure would be
(13.5) + 13.5 = 15.525atm
100
The formula for this can be seen in the text box (follow the arrow that emanates from cell C10).
Also note the use of absolute references because the formulas would be copied to other cells. In the range
A11:I11, the ideal gas volume was calculated, and the values obtained were passed down to the range
A12:I12 which were to be used as the starting values for the “goal seek” approach.
To use the goal seek functionality, we navigated to the What-if Analysis button on the Data tab and
selected goal seek. In the dialog box that was opened, we set the cell B13 to 0 by changing cell B12. This
was done repeatedly for each cell from B13 to I13, remembering to input the cells accordingly in the goal
seek dialog.
The final solution as well as the plot we generated are presented below.
The known parameters were instantiated, and using the equation above, a custom function was created to
return the residue obtained for a given pressure and volume. We want this residue to be equal to zero as
seen in the previous equation.
Below, we present the output on the Mathlab console and the plot that was generated.
2.3 Section 3
The schematic diagram below represents a liquid tank system where the inlet and outlet flows are
volumetric quantities.
Since the system involves no reactions, the generation and consumption terms are zero. Therefore
the material balance equation reduces to:
Accumulation=Input – Output
The mass of liquid is a product of its volume and its density. Thus, the flow of liquid in and out can
be represented by ρ qi ∧ ρq. Substituting these into the material balance equation, we have
Noting that V = A h and that the liquid density and the cross sectional area are constant terms
which can be brought out of the derivative, we have
= 0
�ℎ
�
(c). Assuming A = 100cm2, and the steady state inflow, q =10 c m3/ s. At steady state,
i
Therefore,
Taking Cv, the flow coefficient, as 10, then the steady state height becomes h=1 cm.
(d). If the operator of the tank suddenly changes the inlet flow from the initial steady state by 50%
and maintains it at the new value, then the liquid level is subjected to a dynamic response.
Assuming this change represents an increase in inlet flow, then q i =1.5∗10=15 c m3 / s . To obtain
the system transfer function, we must now linearize the differential equation about the steady-state
conditions (h , q i )
The deviation variables are h ' = h− h∧qi '=qi−qi. Applying taylor series linearization method
presented below where f (h , qi)is the right hand side of Eq.2.3.1, the linearized differential
equation is given by Eq.2.3.3.
qi ' =qi−qi=15−10=5 c m3/ s , h ' =h−h=h−1. Substituting all known parameters into Eq.2.3.3, we have
Using Laplace transform to solve the ODE, we get
Using partial fractions to decompose the second term on the right side of the equation and then
taking inverse laplace transforms, the solution to the differential equation becomes
The above equation is a closed form expression for the dynamic response of the liquid level to the
operator’s command. . `
It can be observed that as the step size decreases, the discrepancies between the two results
increases. And indeed, if we toggle around with the flow coefficient, we observe that for high
values, the explicit euler method becomes less stable. Thus, the runge-kutta method is more
accurate than the explicit euler method.
2.4 Question 4
Given the following data
T(K) 595 623 761 849 989 1076 1146 1202 1382 1445 1562
Kx 2.12 3.12 14.4 30.6 80.3 131 186 240 489 604 868
1020(m3/s)
We wish to use the method of least squares to best fit the following function to the data:
The coefficients C, b, and D are found by differentiating the sum of square residuals with respect to
each variable and setting the values equal to zero to obtain:
K*E^ -20 In(T) 1/T In(K) (InT)^ 2 (1/ I/Tin(K) In(T)In( K) In(T)1/
T(K) T)^ 2*1 T
0^-6
595 2.12 6.3886 0.00168 -45.3003 40.8142 2.8224 -0.0761 -289.406 0.0107
623 3.12 6.4345 0.00161 -44.9139 41.4028 2.5921 -0.0723 -288.999 0.0103
761 14.4 6.6346 0.00131 -43.3845 44.0179 1.7161 -0.0568 -287.839 0.00869
849 30.6 6.7441 0.00118 -42.6307 45.4829 1.3924 -0.0503 -287.506 0.00796
989 80.3 6.8967 0.00101 -41.6659 47.5645 1.0201 -0.0421 - 287.357 0.00697
1076 131 6.9810 0.00093 -41.1765 48.7344 0.8649 -0.0383 - 287.453 0.00649
1146 186 7.0440 0.00087 -40.8260 49.6179 0.7569 -0.0355 - 287.578 0.00613
1202 240 7.0917 0.00083 -40.5710 50.2922 0.6889 -0.0337 -287.717 0.00589
1382 489 7.2313 0.00072 -39.8593 52.2917 0.5184 -0.0287 - 288.235 0.00521
1445 604 7.2759 0.00069 -39.6481 52.9387 0.4761 -0.0274 - 288.476 0.00502
1562 868 7.3537 0.00064 -39.2855 54.0769 0.4096 -0.0251 -288.894 0.00471
- 3169.459
❑ 76.0761 0.01147 -459.262 527.2341 13.2579 -0.4863 0.07816
∑❑
❑
Entering these equations directly into the calculator, we obtain the following solution:
Having determined C, b, and D, the next task is to find the values of A and EA from the Arrhenius
equation. From the problem this has been provided as
Comparing this equation with equation with the equation of best fit we get that:
We tabulated the given values of K and T in our spreadsheet, then evaluated the values of ln(k),
1/T and ln(T) using Excel built-in functions.
K*10^ 20 T(K) K In(K) 1/T In(T)
2.12 595 2.12E-20 -45.3003 0.001681 6.388561
3.12 623 3.12E-20 -44.9139 0.001605 6.434547
14.4 761 1.44E-19 -43.3845 0.001314 6.634633
30.6 849 3.06E-19 -42.6307 0.001178 6.744059
80.3 989 8.03E-19 -41.6695 0.001101 6.896694
131 1076 1.31E-18 -41.1765 0.000929 6.981006
186 1146 1.86E-18 -40.8260 0.000873 7.044033
240 1202 2.40E-18 -40.5711 0.000832 7.091742
489 1382 4.89E-18 -39.8593 0.000724 7.231287
604 1445 6.04E-18 -39.6481 0.000692 7.275865
868 1562 8.68E-18 -39.2855 0.00064 7.353722
We then added an add in called analysis Toolpak, which contains the regression analysis function
then we selected the regression function in the data analysis tools.
From the snapshot above, the intercept, X variable 1, and X variable 2, represent the parameters
C, b, and D. Therefore, C=−52.4427 , b=2.121598 ,
��
� =
�
Ea = RD
D = 2836.0617
Three distinct thermodynamic/property packages were employed to solve this problem in DWSIM.
16
This is because the heaviest component has a boiling point below 270°F at 10atm.
Instead, changing the temperature was taken into consideration because pressure vessels are
typically stated.
Trials revealed that separation was only possible at temperatures below 263°F and above 243°F. This
is to be expected, as the compounds' boiling points fall within this range at the pressure specified.
A temperature of 260°F was chosen and calculated using the three property packages in order to
achieve separation. The outcomes are listed below:
17
2.3 Section 6
A refinery stream with the following conditions is at 75°F and 100 psia:
Propane 100
i-Butane 300
n-Butane 500
i-Pentane 400
n-Pentane 500
TOTAL 1800
The objective was to identify the unit operation that would do the separation the most effectively and to
divide this stream into five streams, each of which would be a relatively pure stream of a single
component. The separation trains were used to tabulate the mass fluxes for each stream.
2.6.1 Description of the Analysis
The DWSIM program was used to model the issue. The necessary substances for separation were
chosen, and a new process modeling flow sheet was constructed. To calculate a solution for the
flowsheet, the Peng-Robinson/Lee-Kesler Thermodynamic property program was utilized.
Fractional distillation is the unit operation that would most effectively carry out the separation of the
light hydrocarbons, according to the knowledge gained from the Separation Techniques 1 and 2
courses. The components' relative volatility is to blame for this. Nevertheless, a column for fractional
distillation is absent from the software.
By using four distillation shortcut columns in sequence, the solution was improvised. The column for
shortcuts was chosen in order to prevent assuming details about the design challenge, such as the
quantity of plates and other attributes.
The first distillation column was tasked with separating the propane into a rather pure stream into the
top product after the feed parameters specified in the question were set. The remaining compounds
were to remain in the bottom stream. This was accomplished by setting the mole fractions of the
"heavy key compound" (isobutane, the next most volatile component) in the top stream and the "light
key compound" (propane) in the bottom stream to 0.01. In this manner, the vapour stream's maximum
propane percentage was more than 98%.
The next most volatile chemical was separated by feeding the bottom stream into a second distillation
column.
18
To obtain relatively pure streams of isobutane, n-butane, and isopentane in the vapour streams of
columns 2, 3, and 4, respectively, as well as n-pentane in the liquid stream of column 4, the
aforementioned step was repeated.
Lastly, a Master Property Table was included that included the phases in each stream, the molar
fractions of each component, and the mass and molar flow rates.
2.6.2 Software
Analysis
19
2.3 SECTION 7
Natural gas contains mostly methane but also small amounts of other chemicals that are
240oF at 865 psia and sent to an absorber, which uses dodecane as the absorbing media,
with a flow rate of 10,000 lb mol/h. The task in this section was to determine the fraction of
After setting up the process flowsheet, the necessary compounds were added, and
an appropriate thermodynamic property package and unit system were selected. Two
feed streams were introduced: one containing pure dodecane as the absorbing
medium and the other representing the natural gas stream. An absorption column
was integrated, ensuring all material streams were correctly connected. The molar
flow rates of each component were specified according to the problem statement,
and the column was configured with 30 stages as required. The natural gas feed
conditions were set to 24°F and 865 psi. With all parameters defined, the simulation
was executed to obtain the results.
20
2.7.2 Software Analysis
21
2.3 SECTION 8
Ethane reacts with chlorine to make ethyl chloride and hydrogen chloride, and ethylene
reacts with hydrogen chloride to form ethyl chloride according to the equation below.
The process is fed with three streams: ethane, ethylene, and chlorine. The feed stream
contains 100 mol/h of each: ethane, ethylene, and chlorine. The ethane/ethylene stream also
contains 1.0% acetylene and carbon dioxide. (For this problem, just use 1% carbon dioxide.)
The feed streams are mixed with an ethylene recycle stream and go to the first reactor
(chlorination reactor), where the ethane reacts with chlorine with a 95% conversion per pass.
The product stream is cooled, and ethyl chloride is condensed and separated. It is assumed
that all the ethane and ethyl chloride go out in the condensate stream. The gases go to
another reactor (hydrochlorination reactor) where the reaction with ethylene takes place with
a 50% conversion per pass. The product stream is cooled to condense the ethyl chloride,
and the gases (predominantly ethylene and chlorine) are recycled. A purge or bleed stream
22
This process was simulated on DWSIM, and the complete material balance for this process
was determined.
The simulation utilized the Raoult's Law property package. Two feed streams, each
containing chlorine, ethylene, and ethane at a flow rate of 100 mol/hr per component,
were introduced into a stream mixer. The mole fractions of ethylene, ethane, and a
carbon dioxide impurity in the ethylene-ethane stream were set at 0.495, 0.495, and
0.01, respectively.
The mixed stream (chlorination feed) was then directed into a conversion reactor,
where the first reaction occurred with a 95% per-pass conversion. The chlorination
product was subsequently cooled and routed to Compound Separator CS-01. The top
outlet stream from CS-01 (hydrochlorination feed) was fed into a second conversion
reactor, where ethane reacted with hydrogen chloride, achieving a 50% conversion to
form the hydrochlorination product.
This product was then processed in a second Compound Separator (CS-02). The
bottom stream was cooled and combined in Mixer-02 with the bottom stream from
CS-01, producing the final ethyl chloride product. Meanwhile, the top stream from
CS-02 was split into a purge stream and a chlorine stream, with the latter being
recycled back into Mixer-01. The overall material balance of the process is detailed in
the following section.
23
2.8.2 Software Analysis
24
25
3. Discussion of Results
In this chapter, we describe the events that occurred in each section, the challenges we
encountered, and the strategies we used to overcome them.
We also solved the problem using a spreadsheet and MATLAB. The spreadsheet
method, using the Goal Seek function, gave a temperature of 260.21870°C, differing
by only 0.00011°C from the Newton-Raphson result. Using MATLAB, the
temperature was 260.218811°C, which matched the Newton-Raphson result exactly.
In Section 2b, we worked with the van der Waals equation, which describes the
relationship between the pressure and volume of a gas. Using the constants for
nitrogen gas, we calculated the volume (V) for a base pressure of 13.5 atm, obtaining
a value of 2.6915 L. We repeated the calculations for pressures at 15%, 30%, 45%,
60%, 75%, 90%, and 105% of the base pressure, tabulating the pressure and volume
values. A graph of pressure versus volume was plotted and included in the report,
which confirmed that Boyle’s Law holds (i.e., pressure is inversely proportional to
volume).
In Question 4, we were given a linearized version of the Arrhenius equation and asked
to use the method of least squares to fit a function of the form ln(k) = C + b ln(T) -
D/T to the experimental data. Through manual calculations, we found C = -60.9316, b
= 3.2009, and D = 2836.0617. With these values, we calculated A and Ea numerically.
A was found to be 3.449 × 10⁻²⁷ and Ea was 23,579 J/mol. The results obtained
through the spreadsheet method showed negligible differences.
The remaining four section presents an analysis of the results obtained from
the study. It provides an overview of the achieved outcomes, validation of
results, challenges encountered, solutions applied, and key lessons learned.
The mole fractions of the components after separation for each property
package are summarized in the table below:
Distillate Bottoms
Property Flow Rate
Mole Mole Temperature (°F)
Package (lbmole/hr)
Fractions Fractions
Peng- 0.24 n-B, 0.60 0.12 n-B, 0.59 77.1 (Distillate),
260 (Both)
Robinson n-P, 0.16 n-H n-P, 0.29 n-H 22.9 (Bottoms)
Raoult’s 0.25 n-B, 0.61 0.10 n-B, 0.59 72.5 (Distillate), 257.6 (Distillate),
Law n-P, 0.14 n-H n-P, 0.31 n-H 27.5 (Bottoms) 241.7 (Bottoms)
0.23 n-B, 0.60 0.12 n-B, 0.59 80.1 (Distillate), 263.5 (Distillate),
LKP
n-P, 0.16 n-H n-P, 0.29 n-H 19.86 (Bottoms) 260 (Bottoms)
All three property packages provided similar separation results. However, the
temperature remained constant in the still, feed, bottoms, and distillate for the
Peng-Robinson property package, whereas temperature variations were
observed in the other packages, with Raoult’s Law exhibiting the most
significant temperature change.
Challenges Encountered:
Challenges Encountered:
94% Methane
3.6% Ethane
1.4% Propane
0.4% Isobutane
0.3% n-Butane
0.07% Iso-pentane
0.015% n-Pentane
0.0001% n-Hexane
Remainder: Dodecane
Challenges Encountered:
Challenges Encountered:
The simulation was complex and required significant time to achieve
accurate results.
Validation of Results
The obtained results were reasonable given the available data and problem
constraints. Each simulation aligned with theoretical expectations, confirming
the accuracy and reliability of the methods applied.
Lessons Learned
4. Conclusion
The purpose of this assignment was to apply the numerical methods introduced in this
course to solve real-world chemical engineering problems. From the data derived, it
was evident that the differences in the results were often less than 0.05, which, in real-
world applications, could be considered negligible and would not significantly impact
the problems they are applied to.
One key observation was the graph of pressure versus volume, which validated
Boyle’s Law, confirming that the pressure of a gas is inversely proportional to the
volume it occupies. While some noticeable variations were observed, these
discrepancies can be attributed to errors during approximation for the hand-solved
solutions.
Each problem was systematically analyzed, and reasonable solutions were obtained.
The necessary tables and flowcharts have been included in the report for further
reference.