0% found this document useful (0 votes)
89 views57 pages

Process Simulation Lab Manual For Chemical Engineering - Graduate Level

This lab manual is designed for Chemical Engineering B.Tech or B.E. level graduates and includes 10 experiments: 1) Equation of State 2) Phase Equilibrium 3) Chemical Reaction Equilibrium 4) Simulation of Mass Transfer Equipment-I 5) Simulation of Mass Transfer Equipment-II 6) Simulation of Heat Transfer Equipment-I 7) Simulation of Heat Transfer Equipment-II 8) Simulation of Kinetic Reactor 9) Simulation of Processes 10) Dynamic Modeling of Tank with Level Control

Uploaded by

abdul.muneer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views57 pages

Process Simulation Lab Manual For Chemical Engineering - Graduate Level

This lab manual is designed for Chemical Engineering B.Tech or B.E. level graduates and includes 10 experiments: 1) Equation of State 2) Phase Equilibrium 3) Chemical Reaction Equilibrium 4) Simulation of Mass Transfer Equipment-I 5) Simulation of Mass Transfer Equipment-II 6) Simulation of Heat Transfer Equipment-I 7) Simulation of Heat Transfer Equipment-II 8) Simulation of Kinetic Reactor 9) Simulation of Processes 10) Dynamic Modeling of Tank with Level Control

Uploaded by

abdul.muneer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 57

LAB MANUAL

CHL 411

PROCESS SIMULATION LAB

SEMESTER SEVEN

DEPARTMENT OF CHEMICAL ENGINEERING


MANGALAM COLLEGE OF ENGINEERING
ETTUMANOOR, KOTTAYAM
List of Experiments

Sl.No. Title and description Page No.

Equation of state: To study the effect of temperature and pressure on


1 molar volume of a gas using various equation of state with the help of MS 1
Excel, Matlab and DWSIM

Phase equilibrium: Derivation of Raschford-Rice equation. Solution of


2 problems using Raschford-Rice equation with the help of MS Excel, 11
Matlab and DWSIM

Chemical Reaction Equilibrium: Study of various possibilities of


3 finding the product composition in an equilibrium reaction using MS 17
Excel, Matlab and DWSIM

Simulation of Mass Transfer Equipment-I: Steady-state simulation of


4 23
shortcut distillation column using process simulators such as DWSIM

Simulation of Mass Transfer Equipment-II: Steady-state simulation of


5 27
rigorous distillation column using process simulators such as DWSIM

Simulation of Heat Transfer Equipment-I: Steady-state simulation of a


6 32
heat exchanger using process simulators such as DWSIM

Simulation of Heat Transfer Equipment-II: Steady-state simulation of


7 a heat exchanger (rigorous mode) using process simulators such as 34
DWSIM

Simulation of Kinetic Reactor: Steady-state simulation of a Plug Flow


8 36
Reactor using suitable example in process simulators such as DWSIM

Simulation of process: Steady-state simulation of a typical chemical plant


9 involving heat exchangers/ coolers/ heaters using process simulators such 39
as DWSIM

Dynamic Modelling of Water Storage Tank with level control:


10 Dynamic simulation of a water storage tank and controlling the liquid 45
level within the tank at a desired level.
Experiment No.1

Equation of state

Aim: To study the effect of temperature and pressure on molar volume of a gas using various
equation of state with the help of MS Excel, Matlab and DWSIM

Theory: Solving equations of state (EOS) allows us to find the specific volume of a gaseous
mixture of chemicals at a specified temperature and pressure.

The form of (RKS) Redlich–Kwong–Soave EOS is

v3 (p) − v2 (RT ) + v(a − pb2 − RTb) − ab = 0


Where,

TC is the critical temperature, PC is the critical pressure, and Tr is the reduced temperature

Question: Find the specific volume of n-butane at 500 K and 18 atm using the redlich–KwongEOS.

Solution using MS Excel:


Step 1 You must first find the critical temperature and pressure; Perry’s Chemical Engineers’
Handbook gives TC = 425.2 K and PC = 37.5 atm.

Step 2 Calculate values of a and b using the given equation. The value of gas constant in these
units is 0.08206 l atm/g mol K.

Step 3 Prepare the spreadsheet shown in Figure. The title, name, and data will be useful when
you come back to the problem at a future date.
Step 4 You enter the parameters in the parameter box. The cells containing the critical
parameters and the temperature and pressure can be named TC , PC, T, and p, respectively. That
way, the equation for f(v) will be easier to understand.

Step 5 The lower box gives the equations actually used as well as the results. Use the Goal Seek
command to make f(v) (cell E14) equal to zero by changing cell v (C13).

Step 7 How can you check this result? First, you have to be sure you have put the correct
formulas into the spreadsheet, and that the units are consistent. That can only be determined by
reference to the original equations and critical properties.

Result

Figure 1: Sample Excel file EOS


Solution using MATLAB:
Step 1 First, you need to prepare an m-file that will calculate the f(x), or here f(v), given the
temperature, pressure, and thermodynamic properties. The file is shown below.

Figure 2: Sample first MATLAB function file EOS

This function, called ‘specvol’, defines the problem you wish to solve.

Step 2 To test the function ‘specvol’ you issue either of the following commands:
feval(‘specvol’,2) ans=specvol(2)
The feval function causes MATLAB to compute the value of y (the output defined in specvol)
using the m-file named specvol when v = 2. The output you get is:
Figure 3: Sample MATLAB first output file EOS

You should check these results line by line, especially the calculation of aRK, bRK, and y.

Step 3 Next change the function “specvol” by adding a semicolon (;) at the end of each line. This
suppresses the output. Do this and save the m-file, “specvol”.

Step 4 Next you issue the command:


v=fzero(@specvol,2)

In feval, the 2 was the v to be used in the calculation, whereas in fzero 2 is an initial guess of the
answer.
Result

Figure 4: Sample second MATLAB output file EOS

Step 5 To check, you might evaluate the function to find how close to zero, f(v) is.

Next rearrange the MATLAB code to compute the compressibility factor for a number of
pressure values. The compressibility factor is defined as

For low pressures, where the gas is ideal, the compressibility factor will be close to 1.0. As the
pressure increases, it will change. There are two new features illustrated: the use of global and
plotting.
Step 6 The code called ‘EOS’ computes the specific volume for pressures from 1 to 50
atmospheres and then calculates the corresponding compressibility factor.

Step 7 Finally, a plot is made with pressure along the x-axis and Z along the y-axis.

Figure 5: EOS with Pressure-Z plot

Step 8 The m-file specvol is changed to use the global command.Now the parameters are
available to specvol because they are defined as global variables and have been set in the
program ‘EOS’.
Figure 6: Modified Specvol file

Step 9 Run the file for different temperatures 430 K, 450 K and 600 K to obtain the plot.

Figure 7: EOS with Pressure-Z plot

Solution using DWSIM:


Step 1 Start DWSIM and click on ‘Create New’.

Step 2 Click ‘Next’ to continue and add component ‘n-butane’ from the list and again click
‘Next’.

Step 3 Add ‘Soave-Redlich-Kwong(SRK)’ property package and click ‘Next’.

Step 4 Select custom unit C5, change unit of temperature to K, that of pressure to atm,
volumetric flowrate to L/s and molar flow rate to mol/s, then click ‘Finish’.

Step 5 Drag and drop a material stream from the Object Pallette window.

Step 6 Click on the added stream and rename it as ‘Feed’ and press ‘Enter’

Step 7 Select Input Data > Stream Conditions, change Temperature as 500 K and Pressure as 18
atm. Press ‘Enter’ after each entry. Select ‘Compound Amounts’ tab and make sure Basis is
selected as ‘Mole Fractions’ and N-butane has a value equal to 1.

Figure 8: DWSIM EOS


Step 8 If there are no errors then ‘The flowsheet was calculated successfully.’ message will be
displayed. Check Results tab within Feed property window. Check the values of Volumetric
Flow Rate and Molar Flow Rate, the values are 35.271 L/s and 17.2051 mol/s respectively. The
ratio of these two is the specific volume, which is 2.05 L/mol.

Figure 9: DWSIM EOS result

Step 9 Click on Insert > Master Property Table. Double click on the table and select Object as
‘Feed’ and select ‘Default Properties Only’ and close the ‘Configure Master Property Table’
window.

Step 10 Right click anywhere on the Flowsheet and select ‘Copy As Image’, this has to presented
as Result along with Report generated by clicking ‘Results’ > Create Report. From ‘Available
Items, select ‘Material Streams’ and click ‘View Report’.
Results

Inference Specific volume obtained through MS Excel and MATLAB is 2.037 L/mol and that
through DWSIM is 2.05 L/mol. Pressure-Z graph is also plotted using MATLAB.
Experiment No.2

Phase equilibrium

Aim: To Derive Raschford-Rice equation. Solution of problems using Raschford-Rice equation


with the help of MS Excel, Matlab and DWSIM.

Theory:
Consider the flow sheet shown in Figure. Suppose you know the temperature, pressure, and
overall composition of the inlet stream. The mole fractions of the chemicals in the

inlet are called {zi}. In the phase separator, however, the liquid and vapor are separated. The
mole fraction of the chemicals in the vapor phase are called {yi} and those in the liquid phase are
called {xi}. When the vapor and liquid are in equilibrium, you can relate the mole fractions of
each chemical in the vapor and liquid by the equation:

The members of the set {Ki} are called K-values, and they can be predicted from
thermodynamics, as shown below. For now, though, assume that you know their values.
To derive the equation governing the phenomenon, you first sum the mole fractions of vapor and
liquid over all components.

Then, subtract those two equations:


Next, substitute the equilibrium expression and rearrange to obtain:

Next, make a mass balance for each component over the phase separator. F is the total molar
flow rate, V is the molar flow rate of the vapor, and L is the molar flow rate of the liquid. The
mole balance is then

Divide by F and define v’ as the fraction of the feed that is vapor:

By using the equilibrium expression again, you can write this as

Solve for the mole fractions in the liquid:

Put that expression into previous equation to obtain the final equation:

This is called the Rachford –Rice equation. Notice that, if the K-values and inlet compositions {zi}
are known, this is a nonlinear equation to solve for v’ . Thus, you can apply here the same
methods used with Excel and MATLAB in Experiment 1. Once the value of v’ is known, you
can calculate the value of the liquid compositions, {xi}, and vapor compositions, {yi. The mole
balance is then complete.

Solution using Excel


Suppose you have a mixture of hydrocarbons in the inlet stream. You want to find the fraction of
the stream that is vapor and the mole fraction of each chemical in the vapor and liquid streams.
Table 3.1 shows the flow rates and K-values at 180F and 70 psia, using a basis of one mole per
unit of time. To solve this problem, prepare the spreadsheet.

Table 1: Mole Fractions and K-values for Vapor-Liquid Example

Step 1 Zi and Ki values of different components are entered in column B and column C
respectively

Step 2 Column D calculates the Rachford-Rice formula for different components separately and
sums up it in cell D9.

Step 3 You can then use Goal Seek to make the Rachford –Rice equation (cell C9) zero by
changing the fraction of the feed that is vapor (cell D10), giving the result shown. Once you find
the fraction vapor, the mole fractions in the two phases are easy to calculate using equations, and
these are included in columns E and F.

Step 4 How might you check these results?

Step 5 Rachford –Rice equation to sum to zero, which is evident in the spreadsheet. Check that
the sum of vapor mole fractions equals one, and the sum of liquid mole fractions equals one.
Result

Figure 10 Rachford-Rice Sample Excel file

Solution using MATLAB


You can solve the same problem using MATLAB. First, you define a function that represents the
problem you wish to solve. Then, you check the function to make sure it is correct. Finally, you
use the ‘fzero’ function to find the solution.

Step 1 Program the function and save it in your working directory as vpliq.m.

Figure 11: RR function file using MATLAB


Step 3 Write a code to read Zi and Ki values from the user, store them in arrays, calculate vapour
fraction using fzero command, find xi and yi and check their sum to be equal to 1.

Figure 12: RR main program

Result

Figure 13: RR Result MATLAB


Solution using DWSIM

Step 1 Start DWSIM > add all components > select SRK property package > select a custom unit
and change unit of Temperature to F and that of pressure to psi.

Step 2 Go to Separators/Tanks and add a Gas-Liquid separator to the flowsheet.

Step 3 Rename the input stream as feed, top product as Vapour and bottom product as Liquid.
Give the stream conditions and its compound amounts and change the molar flow rate as 100
kmol/h.

Step 4 Check the Results tab within Feed property window. Vapour fraction comes out to be
42.6 %

Step 5 Add a Master Property Table with mole fractions and display the results.

Results

Inference The values obtained through Excel, MATLAB and DWSIM are agreeing.
Experiment No.3

Chemical Reaction Equilibrium

Aim: Study of various possibilities of finding the product composition in an equilibrium reaction
using MS Excel, Matlab and DWSIM

Theory:
As a specific example, consider the water–gas shift reaction that can be used in a chemical
process to make hydrogen for fuel cell applications:

At equilibrium,

Thermodynamic data give the value of ln K = 5 (or K = 148.4) at 500 K. If you start with a
stoichiometric mixture of carbon monoxide and water, what will the equilibrium composition be?
In this case, the number of moles remains the same when the reaction takes place, and you are
left with

To begin, make a mole balance table (see Table 2), with a basis of 1 mol each of carbon
monoxide and water, which then react to equilibrium. Use x to represent the number of moles
reacting, thus giving the values in the table.
Put the mole fractions into Eq. (4.13) and simplify:

You can easily solve this equation by taking the square root, giving x = 0.924. In more
complicated cases it would not be possible to solve it so easily. Instead, you would have to solve
a nonlinear equation numerically to find the value of x. When there are multiple reactions, which
may also be in equilibrium, there will be several equations to solve simultaneously. Thus, being
able to solve multiple nonlinear equations is useful when dealing with reactions at equilibrium.

Table 2: Solution for Equilibrium of Water-Gas Shift Reaction

Solution using MS Excel


To solve for the equilibrium using Excel, you put the equation in one cell, put a guess of x in
another cell, and use Goal Seek or Solver to make the first cell zero by changing x. Since the
total number of moles does not change, you can change equation to one involving moles:

The calculations are conveniently done in a spreadsheet, and the final results are shown in Table
4.2. Let us see how to construct this spreadsheet.

Step 1 Column C is the initial moles of each species.

Step 2 Column D is computed according to the equation displayed in Column E.

Step 3 Then the equilibrium equation, is calculated in cell B13, according to the formula
displayed in cell E13.

Step 4 Finally, you use Goal Seek to make cell B13 zero by varying cell B12.
Result

Figure 14: Reaction Equilibrium using Excel

Solution using MATLAB

Step 1 Construct an m-file that evaluates the function, given x. The name is ‘equil_eq.m’ and it is
listed below

Figure 15: MATLAB function file Eq. Reaction


Step 2 Prepare the main program as shown below and run it to get the result 0.9241.

Result

Figure 16: Result MATLAB EQ reaction

Solution using DWSIM

The feed stream is considered to be at a temperature of 500K and 1 atm.

Step 1 Start DWSIM > add all components > select Raoult’s Law as property package > select a
custom unit and change unit of Temperature to K and that of pressure to atm.

Step 2 Click on Settings > Reactions > Add equilibrium reaction . Name the reaction as ‘Water
gas shift reaction’, Include all the 4 components, choose base component as Carbon monoxide,
Give ‘-1’ as stoichiometric coefficient for reactants and ‘1’ for products. Check whether the
stoichiometry is displayed as OK and select Phase as Vapor.
Figure 17: Adding Equilibrium reaction in DWSIM

Step 3 Close the above window and add Gibbs Reactor from the Object Palette Window

Step 4 Rename the input stream as Feed, top product as Vapour, bottom product as Liquid and
energy stream as Energy.

Step 5 Change the feed stream conditions as 500 K and 1 atm and molar flow rate as 100 kmol/h.
Change feed stream composition as equimolar mixture of carbon monoxide(0.5) and water(0.5).

Step 6 In reactor select calculation mode as Isothermic and click on ‘Solve Flowsheet’.
Step 7 Insert a Master property table and add default properties of all material streams. Add
another Master property table and select object as Gibbs reactor and add default properties.
Results

Figure 18: Result DWSIM RGIBBS

Figure 19: Result DWSIM RGIBBS property

Inference Conversion Obtained through Excel and MATLAB is 92.4% and 92.1% through
DWSIM
Experiment No.4

Simulation of Mass Transfer Equipment-I

Aim: Steady-state simulation of shortcut distillation column using process simulators such as
DWSIM

Question Using DWSIM find out the minimum reflux ratio, minimum number of stages, actual
number of stages, optimum feed stage location and heat duties for the separation of Benzene (0.4)
and Toluene (0.6) mixture at 1 atm pressure, fully liquid condition having flowrate of 100 kmol/h.
Benzene in distillate is 0.99 and Benzene in bottoms is 0.01. RR is 1.4 times the minimum. Also
plot the T-xy, P-xy, and xy diagrams.

Step 1 Start DWSIM > add components > choose Raoult’s Law as property package > choose
unit of pressure as atm.

Step 2 Add Shortcut Column from Columns tab

Step 3 Rename the input stream as Feed, top product as Distillate, bottom product as Bottoms,
condenser duty as C Duty and reboiler duty as R Duty.

Step 4 Under feed stream conditions select Flash Spec as ‘pressure and vapor fraction’, change
temperature to 1 atm and vapor phase mole fraction as ‘0’. Also change mole fraction of
components as per given question. Molar Flow to 100 kmol/h.

Step 5 Select the column and select light key as Benzene and heavy key as Toluene. Light key
mole fraction in bottom is 0.01 and heavy key mole fraction in distillate is 0.01. Let reflux ratio
be 1.5.

Step 6 Run the simulation. Minimum Reflux Ratio obtained is 1.65509. Now change RR to
1.4*1.65509.

Step 7 Note the actual number of stages and optimal feed stage.

Step 8 Generate stream property table and column property table.


Figure 20: Shortcut column

Step 9 To generate phase envelope diagrams go to utilities > add utility >Material streams >
binary phase envelope > Feed > Add utility.

Step 10 Select the envelope type and click on calculate.

Results

Figure 21: Shortcut column result


Figure 22: Txy diagram

Figure 23: Pxy diagram


Figure 24 (T)xy diagram

Figure 25: (P)xy diagram

Inference A shortcut column was simulated and the required result was obtained. Binary Phase
envelope was generated.
Experiment No.5

Simulation of Mass Transfer Equipment-II

Aim Steady-state simulation of rigorous distillation column using process simulators such as
DWSIM

Question Using the result obtained in the previous simulation (shortcut column) simulate a
distillation column using Rigorous model. Also use sensitivity study and Controller block to
obtain a purity of 99% in Distillate.

Step 1 Start DWSIM > add components > choose Raoult’s Law as property package > choose
unit of pressure as atm.

Step 2 Add Distillation Column from Columns tab.

Step 3 Rename the input stream as Feed, top product as Distillate, bottom product as Bottoms,
condenser duty as C Duty and reboiler duty as R Duty.

Step 4 Under feed stream conditions select Flash Spec as ‘pressure and vapor fraction’, change
temperature to 1 atm and vapor phase mole fraction as ‘0’. Also change mole fraction of
components as per given question. Molar Flow to 100 kmol/h.

Step 5 Select the distillation column, under general tab select Number of Stages as 21. Under
Specifications tab select condenser and specification to Reflux Ratio and its value to 2.31713.
Then select reboiler and change Product molar flow to 60.204 kmol/h. These values were
obtained in experiment 4.

Step 6 Next under connections > stream conditions > Feeds, select column feed port 5 as Feed.
Also check Products, Duties and Side draws.

Step 7 Next select Stream-Stage Associations and select Feed stage location as stage 9

Step 8 Solve the flowsheet. Generate result and profiles.


Figure 26: Rigorous column

Step 9 Click on Flowsheet Analysis > Sensitivity Study

Step 10 Under Independent Variables select object as the column, property as


condenser_specification_value, lower limit as 2.31713, upper limit as 2.4 and number of points as
10.

Step 11 Under Dependent Variables add a new variable, select the object as distillate and
property as Mole Fraction (Mixture)/Benzene.

Step 12 Go to results and click on Start Sensitivity Analysis, We got .99 for a RR of 2.381.

Step 13 Next go to logical blocks and add a controller block, select manipulated object as the
column, property as condenser_specification_value, controlled object as distillate, controlled
property as Molar fraction (Mixture)/Benzene and Set point as 0.9901. Click on Start Adjust.
Figure 27: Sensitivity study

Figure 28: Controller Block


Result

Figure 29: Temperature and Pressure Profile

Figure 30: Component molefraction stage-wise


Figure 31 Sensitivity Study Result

Figure 32: Controller Block Result

Inference Rigorous distillation column was simulated and interstage profiles were obtained. Both
sensitivity study and controller block gave a value of 2.3801 for 99% purity.
Experiment No.6

Simulation of Heat Transfer Equipment-I

Aim Steady-state simulation of a heat exchanger using process simulators such as DWSIM

Question Simulate a heat exchanger, calculate the outlet stream temperature, thermal efficiency
and LMTD. Hot stream is methanol at 80 C, 5 bar, 25000 kg/hand cold stream is water at 10 C, 1
bar and 15000 kg/h. Flow type is counter current, overall heat transfer coefficient is 450 W/m2K,
Heat exchanger area is 250 m2, cold fluid pressure drop is 0.002 bar and hot fluid pressure drop is
0.025 bar. Roult’s Law may be used.

Step 1 Start DWSIM, add components, select property package and choose appropriate units.

Step 2 Add Heat Exchanger model from Exchangers tab. Rename the streams to Hot in, Hot out,
Cold in and Cold out. Change the stream conditions and compound amounts of Hot in stream and
Cold in stream as per the given question.

Step 3 Select the heat exchanger block verify the connections, select calculation type as
‘Calculate outlet temperatures’, flow direction as counter current, cold fluid pressure drop as
0.002 bar, hot fluid pressure drop as 0.025 bar, Global heat transfer coefficient as 450 W/m2K
and heat exchange area s 250 m2.

Figure 33: Simple Heat Exchanger


Step 4 Solve the flowsheet and check the results. Add properties table and present the result.

Result

Figure 34: Result - Simple Heat Exchanger


Inference Simulation were carried out for a heat exchanger in ‘calculate outlet temperatures’
mode and required result was obtained.
Experiment No.7

Simulation of Heat Transfer Equipment-II

Aim Steady-state simulation of a heat exchanger (rigorous mode) using process simulators such
as DWSIM

Question Simulate a Shell & Tube Heat Exchanger and calculate outlet stream temperatures,
overall heat transfer coefficient, heat exchange area, thermal efficiency and LMTD. Hot stream is
methanol at 80 C, 5 bar, 25000 kg/hand cold stream is water at 10 C, 1 bar and 15000 kg/h. Flow
type is counter current. Roult’s Law may be used. Type of Exchanger is 2-8 pass, total number
of tubes is 2048, tubes spacing is 25 mm, tube layout is square, thermal conductivity is 60 W/mK,
tube roughness is 0.05 mm, fouling factor tube is 0.00035 Km2/W and fouling factor shell is
0.00035 Km2/W. External diameter for tube is 20mm, tube thickness is 2.5 mm, tube length is 5m,
shell internal diameter is 1000 mm, baffle spacing is 250 mm, baffle cut is 25% and fluid in shell
is methanol.

Step 1 Start DWSIM, add components, select property package and choose appropriate units.

Step 2 Add Heat Exchanger model from Exchangers tab. Rename the streams to Hot in, Hot out,
Cold in and Cold out. Change the stream conditions and compound amounts of Hot in stream and
Cold in stream as per the given question.

Step 3 Select the heat exchanger block verify the connections, select calculation type as ‘Shell
and tube exchanger rating’, flow direction as counter current and click on ‘Edit shell and tube
heat exchanger profiles’.

Step 4 First we edit the shell properties. Enter shells in series as 1, shell passes as 2, internal
diameter as 1000mm, fouling factor, baffle spacing and baffle cut as given in the question.

Step 5 Next edit the tube properties. Internal diameter as 15mm, external diametr as 20mm,
length as 5m, fouling factor, roughness, thermal conductivity as given in question. Passes per
shell as 4, tubes per shell as 1024, tube spacing as 25 mm, select tube layout as square and select
fluid in tube as cold.

Step 6 Now run the simulation and present the results


Figure 35: Rigorous Heat Exchanger

Results

Figure 36: Result - Rigorous Heat Exchanger

Inference Simulation were carried out for a heat exchanger in ‘shell and tube exchanger rating’
mode and required result was obtained.
Experiment No.8

Simulation of Kinetic Reactor

Aim Steady-state simulation of a Plug Flow Reactor using suitable example in process simulators
such as DWSIM/Unisim etc.

Question Simulate a Plug Flow Reactor (PFR), define a kinetic reaction, calculate conversion
and residence time for an irreversible reaction between Nitrogen and Hydrogen producing
Ammonia. Feed stream is an equimolar mixture (3600 kg/h) of Nitrogen and Hydrogen at 425 C
and 200 bar. Peng Robinson property package may be selected. Reactor is isothermal type with 1
m3 volume and 1.5 m length. Reaction Kinetics: rA = KC an, where K = 0.004 and n=1.

Step 1 Start DWSIM, add components, select property package and choose appropriate system of
unit.

Figure 37: Kinetic Reaction


Step 2 Click on Settings > Reactions > Add Reaction > Kinetic. Add name as AmmoniaSynthesis,
Include all components, select Nitrogen as Base component, add stoichiometric coefficient as -1,
-3, 2 for Nitrogen, Hydrogen and Ammonia respectively. Select DO as 1 for Nitrogen. Under
Kinetic reaction parameters select basis as molar concentration, phase as vapor, Tmin as 500 K.
Under Rate constant for Direct Reaction select A as 0.004 and choose rate unit as kmol/m3s.
Close the window.

Step 2 From Reactors tab add Plug-Flow Reactor (PFR) to the simulation.

Step 3 Rename the input stream to Feed and output stream to Product.

Step 4 Change the stream conditions and compound amounts of input stream as per the question.

Step 5 Next select the PFR and change the calculation mode as isothermic under General tab.
Under Dimensions tab change the volume and length of the reactor as per the question.

Step 6 Now run the simulation and record the results.

Figure 38: Plug Flow Reactor


Results

Figure 39: Flow Sheet PFR

Figure 40: PFR Properties

Inference A PFR was simulated using DWSIM and required result was obtained.
Experiment No.9

Simulation of Process

Aim Steady-state simulation of a typical chemical plant involving heat exchangers/ coolers/
heaters using process simulators such as DWSIM

Question Simulate an ammonia synthesis process. The feed (80 ℉ and 300 psi) to the process is
nitrogen (100 lb mol/h), hydrogen (300 lb mol/h) and a small amount of carbon dioxide (1 lb
mol/h) left over from the process to make hydrogen. The inlet stream is compressed to 4000 psi
with an adiabatic compressor. The stream is mixed with the recycle stream and heated to 900 ℉,
the reactor temperature. The reactor is designed using equilibrium reaction (Gibbs Reactor) and
there is a pressure drop of 30 psi in the reactor. The outlet is cooled to 80 ℉ and the liquid-vapor
phases are separated . The vapor phase goes to recycle, and 0.01 % of it is used as purge. A
recycle compresser then compresses the rest from 3970 to 4000 psi. Raoult’s Law may be
selected as property package.

Step 1 Start DWSIM, add components, select property package and choose appropriate system of
unit.

Figure 41: Equilibrium Reaction


Step 2 Add an equilibrium reaction, name it as Ammonia Synthesis, include Nitrogen, Hydrogen
and Ammonia and select Nitrogen as Base Component. Add -1, -3 and 2 as stoichiometric
coefficient for Nitrogen, Hydrogen and Ammonia respectively. Change Basis as Molar
Concentration, Phase as Vapor and Tmin as 500 K.

Step 3 From Pressure Changers add a Compressor, a Stream Mixer from Mixers/Splitters, a
Heater from Exchangers, a Gibbs Reactor from Reactors, again a heater, a Gas-Liquid Seperator
from Separators/Tanks, a Stream Splitter, a compressor and a Recycle Block from Logical Blocks.
Connect these blocks as shown in the Flowsheet.

Figure 42: Process Flowsheet

Step 4 Change the Feed Stream Conditions and Compound Amounts as per the question.

Step 5 Change the compressor C-1 outlet pressure to 4000 psi.

Step 6 Change Heater HT-1 calculation type to Outlet Temperature and its value to 900 ℉.

Step 7 Next in the Gibbs Reactor select calculation mode as Isothermic and Pressure Drop to 30
psi. Also select all compounds.

Step 8 The top product from the reactor is connected to HT-2, where calculation type is selected
as Outlet Temperature and its value set to 80 ℉.

Step 9 Next in the splitter change the Purge stream split ratio to 0.0001.

Step 10 Next change the compressor C-2 outlet pressure to 4000 psi.
Figure 44: Heater 1
Figure 43: Compressor 1

Figure 46: Gibbs Reactor - compounds

Figure 45: Gibbs Reactor


Figure 47: Heater 2
Figure 48: Stream Splitter

Figure 50: Recycle Block


Figure 49: Compressor
Step 11 Solve the Flowsheet and represent the result using a Master Property Table. Under
Flowsheet Analysis select Mass and Energy Balance Summary and display the Equipments and
Material Streams Summary.

Result

Figure 51: Final Process Flowsheet

Figure 52: Stream Results


Figure 53: Equipments with Energy and Mass Balance

Figure 54: Stream Mass and Energy Flow

Inference Ammonia Synthesis Process was simulated and the product has a composition of 197
lbmol/h of Ammonia. Mass and Energy Balance was also verified.
Experiment No.10

Dynamic Modelling of Water Storage Tank with level control

Aim Dynamic simulation of a water storage tank and controlling the liquid level within the tank
at a desired level.

Question Dynamically model and simulate a water storage tank and control the liquid level
inside the tank around a desired value.
Given
Input Specifications
Property Package: Steam Tables
Inlet
Component Water
Feed Rate 10 Kg/s
Pressure 130 kPa

Valve 1
Kv max 100
Kv / Kvmax 50%

Storage Tank
Volume 2 m3
Available liquid height 2m

Valve 2
Kv / Kvmax 400
Kv / Kvmax 50%

Outlet
Pressure 101.325 kPa

Table 3: Input Specification for implementing the flowsheet


Procedure
Stage I Model Building

Step 1 Start DWSIM, add component, select property package and choose appropriate system of
units as shown below.

Step 2 Build the model as shown in figure below.

Step 3 Enable /Activate Dynamic Mode (Dynamics Tab---- > Dynamic Mode)
Step 4 Set the Inlet stream Pressure to 130 kPa and mass flowrate to 10 Kg/s. Set its Dynamic
Spec to “Flow” as shown below.

Step 5 Set VALVE-1 calculation type to Liquid Kv, Kvmax to 100, check the Opening vs
Kv/Kvmax box and set the valve opening to 50%.
Step 6 Set TANK-1 volume to 2 m3 and available liquid height to 2 meters.

Step 7 Set VALVE-2 calculation type to Liquid Kv, Kvmax to 400, check the Opening vs
Kv/Kvmax box and set the valve opening to 50%.
Step 8 Set the Outlet stream Pressure to 101.325 kPa Set its Dynamic Spec to “Pressure” as
shown below.

Stage II Dynamic Simulation

Step 9 Add a Level Gauge (Indicators Tab - Level Gauge) and associate it with the TANK-1
Liquid Level property. Set maximum value to 3.0 meter.

Step 10 Save the current flowsheet state as NewState1.


Step 11 Go to the dynamics Manager and create a new Integrator (Int1) with Integration Step
equal to 5 seconds and Duration equal to 10 minutes. Add the TANK-1 liquid level and the
openings of the two valves as monitored variables for this integrator.

Step 12 Create a new Schedule (Sch1) and associate the previously created Integrator and
Flowsheet State with it.
Step 13 Open the Integrator Controls Panel and run the dynamic simulation. Note the Liquid
level in the TANK-1 and the time required for stabilization.

Step 14 On the Integrator Control Panel, Click on the View Results button. On the created
Spreadsheet, Select the A and B columns and create a new chart from the selection. View the
generated chart.
Stage III Adding PID Controller

Step 15 Add a PID Controller (Controllers Tab --- PID Controller) to the flowsheet and Set the
VALVE-2 opening as the manipulated variable and TANK-1 liquid level as the controlled
variable. The Set-point should be equal to 1 (m). Set Kp to 100.

Step 16 Add a new Chart to the flowsheet and associate it with the PID’s History item.
Step 17 Open the Integrator Controls Panel and run the dynamic simulation. Note the Liquid
level in the TANK-1 and the time required for stabilization.
Step 18 Now Set the controller’s Ki to 10 and rerun the dynamic simulation. Note the Liquid
level in the TANK-1 and the time required for stabilization.
Results
Record the Liquid level in the TANK-1 and the time required for stabilization without controller,
with P and PI controllers. Record the dynamic simulation plots for each case.

Inference
Dynamic simulation of a water storage tank and controlling the liquid level within the tank was
carried out.

You might also like