Computer Programming III
Lecture (2) :
Process Modeling /Simulation Basics
By Aspen HYSYS
Chemical and Petrochemical Engineering Department / 7" Semester.
Salahaddin UniversityUNIT OPERATIONS
Hydraulics
+ Moving fluids
+ Pressure change mainly
+ Friction generation > Temperature
+ Contains piping-specific unit ops
+ Pipe Segment (pressure loss)
+ Various fittings
» Decrease Pressure > Valves, expander
* Increase Pressure > Compressor/Pump
= Transport Fluids > Pipings
+ Advanced > Gas Gathering ExamplesUNIT OPERATIONS
Hydraulics - Pumps
+ Used to increase pressure in a liquid
eee
°
+ Increase Pressure mr [ager rtomace ens)
= Inputs are foo ian
= Inlet stream (mass) mee ce
= Outlet stream (mass) uate] mae = -
+ Inlet stream (Work) —
= You can assign 1 fluid package for it!
« GP, Pressure Ratio, Adiabatic Eff.
+ Pump Curves, NPSH Curves, Efficiency CurvesUNIT OPERATIONS
Hydraulics — Exercise # 1
+014 - Pumps
+ Input data:
= Inlet Stream
+ T=25°C, P=1atm
+ Pure water
= P final Required = 10 atm
* Final Data:
+ Outlet Temperature
* Workload required (KW, HP)UNIT OPERATIONS
Hydraulics - Compressor
= Used to increase pressure in a gas
+ Mave a gas
+ Recover loss of pressure z
* Increase Pressure
ae ee Re]
= Inputs are
+ Inlet stream (mass)
+ Outlet stream (mass)
* Inlet stream (Work)
+ dP, Pressure Ratio, Adiabatic/Polytropic Eff.UNIT OPERATIONS |
Hydraulics — Exercise # 2
= 015 - Compressor
= Input data:
= Inlet Stream
+ Enriched Oxygen Air (34% Nitrox)
» T= 30°C, P= 14.7 psia
« P final Required = 3000 psig
« % efficiency = 65%
» Final Data:
= Outlet Temperature ad
+ Workload required (KW, HP)UNIT OPERATIONS
Reactors
= “Common”
« Continuous Stirred Tank Reactor (CSTR)
« Plug Flow Reactor (PFR)
= “Column”
+ Gibbs Reactor
= Equilibrium Reactor
» Conversion Reactor
+ Yield Shift ReactorUNIT OPERATIONS
Reactors - Reactions
» You must add and specify the type of reaction
= Types:
= Conversion
» Equilibrium
» Kinetic
« RateUNIT OPERATIONS
Reactors - Reactions
= C+02=C02
=C+%02=CO
« H20 = H2 + 02
»H20 =2H+0
oe
AS oReactors - Conversion
« It is based on Conversion of a reactant (X)
= Requires Reaction
« Stoichiometry!
» All other calculations are based upon this
+ Enthalpy of reaction
« Final T, P
« Requires exact Stoichiometry
= Final CompositionUNIT OPERATIONS
Reactors - Equilibrium
» Requires Reaction
* Stoichiometry!
+ Forward-Reverse reactions
« Based on activity coefficients > Keq
» Keq given
« Keq calculated via Gibbs Free energy
= Keq tabulated
- All other calculations are based upor this
= Reaction extent
= Temperature, Pressure changes
= Final CompositionUNTT OPERATIONS
Reactors - Exercise
014 - Reactors (Conversion)
Reactors Specs
= Conversion if 95%
- Adiabatic (Q- 0)
= Methane Combustion (15% excess oxidant) > CH4 + 202 = CO2 + 2H20
Via pure oxygen
Inlet Fuel = 100 mol of CH4
= Inlet Oxidant = 230 mol of OZ
- Final T
= Final flowrates + composition
Via air (21% O2, 79% N2)
Inlet Fuel = 100 mol of CHa
Inlet Oxidant = 1095 mol of Air (230 mol of OZ, 865 mol of N2)
al T
al flowrates + composiFile > Options >
* Simulation
» Reports
* Equipment
+ Units of MeasurementThe Workbook
= All info regarding:
+ Material Streams
+ Compositions
+ Energy Streams
+ Unit OperationsThe Workbook
= Workbook “Menu”
= Save/Export Workbook« Export to Excel!
« Engineers love Excel!Reports
* Printable Version of Workbooks
« Add multiple datasheet of interest
« Can be formatted and fitted to many page-sizes
i feo
omnes temenoty fama
Piessnmey
ao,
* Ona tas
Fh reso1. Statement (Case Study I)
« We have a stream containing 15% ethane, 20% propane, 60% i-butane and 5% n-butane at T =
50°F and P = 1 atm. Flow rate is 100 kg/h
+ It will be compressed to P = 50 psia and cooled down to 32°F.
« The chiller has a pressure loss of 10 kPa.
« The resulting mixture must be splitted into liquid (valuable product for our client) and a gas
(must be burnt with air)1. Statement (Case Study 1)
« A) How much mass is lost in flare?
= B) How much product is recovered?
+ C) Specifications of liquid product.
« C) Compressor Workload
« D) Chiller Heat Duty requirements3. Data Input (Case Study ip
+ Material Streams Sas"
+ Feed @ Feed Flash
+ Warm
+ Cool lg ) Cool
* Stack Gas empress Crier
+ Product
Wark Product
+ Energy Streams + Unit Operations
+ Compressor Workload + Compressor
+ Chiller Heat Load + Cooler
* Separator3. Data Input (Case Study wD
= Input: Material
« Feed
+ Composition = 15% ethane, 20% propane, 60% i-butane and 5% n-butane (molar)
+ FlowRate = 100 kg/h
+ Temperature = 50°F
+ Pressure = 1 atm
= Warm
+ P= 50 psia
= Cool
T= 32°F
+ Stack Gas
+ Not required
+ Product
+ Not required3. Data Input (Case Study i»
« Input: Energy
= Compressor Workload
« Not required
« Chiller Heat Duty
+ Not required3. Data Input (Case Study II)
+ Input: Unit Operations
« Compressor
+ Efficency: 75% Adiahatic
» Cooler
= dP =10 kPa
« Flash Separator
« Not required5. Results & Reporting (Case Study I)6. Analysis & Conclusion(Case Study ID
+ A) How much mass is lost in flare?
= B) How much product is recovered?
= C) Specifications of liquid product.
= C) Compressor Workload
= D) Chiller Heat Duty requirements