Professional Documents
Culture Documents
Lecture 5
Lecture 5
Process Simulation
Classification of the models
Black box – white box
Black box – know nothing about process in
apparatus, only dependences between
inputs and outputs are established.
Practical realisation of Black box is the
neural network
White box – process mechanism is well
<??> known and described by system of
equations
Classification of the models
Deterministic – Stochastic
Deterministic – for one given set of inputs
only one set of outputs is calculated with
probability equal 1.
Stochastic – random phenomenon affects
on process course (e.g. weather), output
set is given as distribution of random
variables
Classification of the models
Microscopic- macroscopic
Microscopic – includes part of process or
apparatus
Macroscopic – includes whole process or
apparatus
Elements of the model
1. Balance dependences
Based upon basic nature laws
of conservation of mass
of conservation of energy
of conservation of atoms number
of conservation of electric charge, etc.
Balance equation (for mass):
(overall and for specific component without reaction)
Input – Output = Accumulation
or (for specific component if chemical reactions presents)
Input – Output +Source = Accumulation
Elements of the model
2. Constitutive equations
d 2x
Newton eq. – for viscous friction
dx
m 2
dt dt
by Rafiqul Gani
Flowsheeting problem
Given:
All of the input information
All of the operating condition
All of the equipment parameters
To calculate:
All of the outputs INPUT FLOWSHEET PRODUCTS
SCHEME
OPERATING EQUIPMENT
CONDITIONS PARAMETERS
R.Gani
Specyfication problem
INPUT FLOWSHEET PRODUCTS
SCHEME
OPERATING EQUIPMENT
Given: CONDITIONS PARAMETERS
Is target product
composition satisfied
?
STOP
Process optimisation
the act of finding the best solution
(minimize capital costs, energy...
maximize yield) to manage the
process (by changing some
parameters, not apparatus)
Given: feed composition and flowrates,
target product composition
Is target product
composition satisfied
AND =min.
STOP
Process synthesis/design problem
the act of creation of a new process.
Given:
inputs (some feeding streams can be
added/changed latter)
Outputs (some byproducts may be unknown)
To find:
Flowsheet (topology)
equipment parameters
operations conditions
Process synthesis/design problem
INPUT OUTPUT
flowsheet
undefined
Given: feed composition and flowrates,
target product composition
Adjust D, Qr
Solve the flowsheeting
As well as
problem
N, NF, R/D etc.
Is target product
composition satisfied
AND =min.
STOP
Process simulation - why?
COSTS
Material – easy to measure
Time – could be estimated
Risc – hard to measure and estimate
Software for process
simulation
Universal software:
Worksheets – Excel, Calc (Open Office)
Mathematical software – MathCAD, Matlab
Specialized software – process simulators.
Equipped with:
Data base of apparatus models
Data base of components and mixtures properties
Solver engine
User friendly interface
Software process simulators
(flawsheeting programs)
Started in early 70’
At the beginning dedicated to special
processes
Progress toward universality
Some actual process simulators:
1. ASPEN Tech /HYSYS
2. ChemCAD
3. PRO/II
4. ProSim
5. Design II for Windows
Chemical plant system
The apparatus set connected with material
and energy streams.
Most contemporary systems are complex, i.e.
consists of many apparatus and streams.
Simulations can be use during:
Investigation works – new technology
Project step – new plants (technology exists),
Runtime problem identification/solving – existing
systems (technology and plant exists)
Chemical plant system
characteristic parameters can be
specified for every system separately
according to:
1. Material streams
2. Apparatus
Apparatus-streams separation
Assumption:
All processes (chemical reaction, heat
exchange etc.) taking places in the
apparatus and streams are in the chemical
and thermodynamical equilibrium state.
Why separate?
It’s make calculations easier
Streams parameters
Flow rate (mass, volume, mol per time
unit)
Composition (mass, volume, molar
fraction)
Temperature
Pressure
Vapor fraction
Enthalpy
Streams degrees of freedom
DFs=NC+2
4 m Ac pA t 4 t3 m B c pB t1 t 2
DF=5
There is possibility that calculated temp. of stream 4 can be
higher then inlet temp. of heating medium (stream 1).
Overall balance – Example
3, mA Given:
1. mA=10kg/s
2
2. mB=20kg/s
3. t1= 70°C
4. t2=40°C
5. t3=20°C
1, mB
cpA=cpB=idem
4 m Ac pA t 4 t3 m B c pB t1 t 2
m B
t 4 t3 t1 t2
m A
20
t 4 20 70 40 80C
10
Apparatus model involved
Process is being described with use of
modeling equations (differential,
dimensionless etc.)
Only physically acceptable processes taking
place
Less stream data required (smaller DF
number)
Heat exchange example: given data for two
streams, the others can be calculated from a
balance and heat exchange model equations
Loops and cut streams
Loops occur when:
some products are returned and mixed with input
streams
when output stream heating (cooling) inputs
some input (also internal) data are undefined
To solve:
one stream inside the loop has to be cut (tear stream)
initial parameters of cut stream have to be defined
Calculations have to be repeated until cut streams
parameters are converted.
Loops and cut streams
Simulation of system with heat
exchanger using MathCAD
I.Problem definition
Simulate system consists of: Shell-tube heat exchanger, four
pipes and two valves on output pipes. Parameters of input
streams are given as well as pipes, heat exchanger geometry
and valves resistance coefficients. Component 1 and 2 are
water. Pipe flow is adiabatic.
5
s6 s7
2
1 3 4
s1 s2 s3 s4 s5
s8
7
6
s9 s10
Numerical data:
Stream s1
Ps1 =200kPa, ts1 = 85°C, f1s1 = 10000kg/h
Stream s6
Ps6 =200kPa, ts6 = 20°C, f2s6 = 10000kg/h
Equipment parameters:
1. L1=7m d1=0,025m
2. L2=5m d2=0,16m, s=0,0016m, n=31...
3. L3=6m, d3=0,05m
4. 4=50
5. L5=7m d5=0,05m
6. L6=10m, d6=0,05m
7. 7=40
III. Stream summary table
s1 s2 s3 s4 s5 s6 s7 s8 s9 s10
f1 f1s1 X X X X
f2 f2s6 X X X X
T Ts1 X X X X Ts6 X X X X
P Ps1 X x x X Ps6 X X X X
Uknown:Ts2, Ts3, Ts4, Ts5, Ts7, Ts8, Ts9, Ts10, Ps2, Ps3, Ps4, Ps5, Ps7, Ps8, Ps9,
T2
m c dT Q
T p f 1s1 c pT T2 T3 Q
T3
T8
f 2 s 6 c pS T8 T7 Q
m c dT Q
T7
S p
New variable: Q
Still to define: 12+1-2=11 equations
Heat exchange equations
Q kFm Tm
Tm
Ts 5 Ts 6 Ts1 Ts10
T T
ln s 5 s 6
Ts1 Ts10
1
k
1 s 1
T st S
NuT T Nu S S D22 nd 22
T S d eq
d2 d eq. D2 nd 2
1/ 3
NuT d2
1, 62
Re T PrT
1,62 GzT
1/ 3
ReT 2300, Gz 5
l 2
ln NuLT ln NuTuT
exp ln Nu LT ln Re LT ln ReT 2300 ReT 10000
ln Re LT ln ReTuT
wd 2 4 f 1s1
ReT
T d 2 T
Heat exchange equations
0,023 Re 0S,8 PrS0, 4 Re 10000
0,5 Re Pr d HEX 0,5Gz Re 2300, Gz 5
S T
l HEX
S S
1/ 3
NuS d HEX
1,62 Re S PrS l 1,62Gz1S/ 3 Re S 2300, Gz 5
HEX
ln NuLS ln NuTuS
exp ln Nu LS ln Re LS ln Re S 2300 Re S 10000
ln Re LS ln ReTuS
wd eq. f 2 s 6 d eq.
Re S
S
FCSA S
Ps1-Ps2=P1 Ps6-Ps7=P5
Ps2-Ps3=P2T Ps7-Ps8=P2S
Ps3-Ps4=P3 Ps8-Ps9=P6
Ps4-Ps5=P4 Ps9-Ps10=P7
1
64
Re , Re 2300
1
0,3164 4 f 1s1
1 0, 25 ,2300 Re 105 Re1
Re d
0,221
0 ,0032
Re 0, 237
64
Re , Re 2300
0,3164
2T 0, 25 ,2300 Re 105
Re
0,221
0 ,0032
Re 0, 237 2T
64
Re , Re 2300
0,3164 4 f 1s1
3 0, 25 ,2300 Re 105 Re3
Re d 3
0,221
0 , 0032
Re 0, 237 3
2
w2 168 f 12s1
P4 2 4 4
2 4 dd 44
64
Re , Re 2300
0,3164 4 f 2s 2
5 0, 25 ,2300 Re 105
Re Re5
0,221 d 5
0 ,0032
Re 0, 237 5
64
Re , Re 2300
0,3164
2 S 0, 25 ,2300 Re 105
Re
0,221
0 , 0032
Re0, 237 2S
22
w2 168 ff 22s 2
P7 2 44
2 7 dd 77
•Density
•Viscosity
•Thermal conductivity
•Specyfic heat cp
•Prandtl number Pr
Agents parameters
Data are usually published in the tables
t cp Pr
0,00 999,80 17,89 0,551 4237 13,76
10,00 999,60 13,04 0,575 4212 9,55
20,00 998,20 10,00 0,599 4203 7,02
30,00 995,60 8,014 0,618 4199 5,45
40,00 992,20 6,531 0,634 4199 4,33
50,00 988,00 5,495 0,648 4199 3,56
60,00 983,20 4,709 0,659 4203 3,00
70,00 977,70 4,059 0,668 4211 2,56
80,00 971,80 3,559 0,675 4216 2,22
90,00 965,30 3,147 0,68 4224 1,95
100,00 958,30 2,822 0,683 4229 1,75
Agents parameters
Data in tables are difficult to use
Solution:
980
970
960
950
0 20 40 60 80 100
t [°C]
The end as of yet.