Title: Process Simulation
1Introduction
2Classification 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 lt??gt known
and described by system of equations
3Classification 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
4Classification of the models
- Microscopic- macroscopic
- Microscopic includes part of process or
apparatus - Macroscopic includes whole process or apparatus
5Elements of the model
- 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
6Elements of the model
- Constitutive equations
- Newton eq. for viscous friction
- Fourier eq. for heat conduction
- Fick eq. for mass diffusion
7Elements of the model
- Phase equilibrium equations important for mass
transfer - Physical properties equations for calculation
parameters as functions of temperature, pressure
and concentrations. - Geometrical dependences involve influence of
apparatus geometry on transfer coefficients
convectional streams.
8Structure of the simulation model
- Structure corresponds to type of model equations
- Structure depends on
- Type of object work
- Continuous, steady running
- Periodic, unsteady running
- Distribution of parameters in space
- Equal in every point of apparatus aggregated
parameters (butch reactor with ideal mixing) - Parameters are space dependent displaced
parameters
9Structure of the model
Steady state Unsteady state
Aggregated parameters Algebraic eq. Ordinary differential eq.
Displaced parameters Differential eq. Ordinary for 1-dimensional case Partial for 23-dimensional case (without time derivative, usually elliptic) Partial differential eq. (with time derivative, usually parabolic)
10Process simulation
- the act of representing some aspects of the
industry process (in the real world) by numbers
or symbols (in the virtual world) which may be
manipulated to facilitate their study.
11Process simulation (steady state)
- Flowsheeting problem
- Specification (design) problem
- Optimization problem
- Synthesis problem
by Rafiqul Gani
12Flowsheeting problem
- Given
- All of the input information
- All of the operating condition
- All of the equipment parameters
- To calculate
- All of the outputs
13R.Gani
14Specyfication problem
- Given
- Some input some output information
- Some operating condition
- Some equipment parameters
- To calculate
- Undefined inputsoutputs
- Undefined operating condition
- Undefined equipment parameters
15Specyfication problem
- NOTE degree of freedom is the same as in
flowsheeting problem.
16(No Transcript)
17Given feed composition and flowrates, target
product composition
Assume value to be guessed D, Qr
Find product flowrates, heating duties
Solve the flowsheeting problem
Adjust D, Qr
Is target product composition satisfied ?
STOP
18Process optimisation
- the act of finding the best solution (minimize
capital costs, energy... maximize yield) to
manage the process (by changing some parameters,
not apparatus)
19(No Transcript)
20Given feed composition and flowrates, target
product composition
Assume value to be guessed D, Qr
Find product flowrate, heating duty
Solve the flowsheeting problem
Adjust D, Qr
Is target product composition satisfied AND
?min.
STOP
21Process 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
22Process synthesis/design problem
flowsheet undefined
INPUT
OUTPUT
23(No Transcript)
24Given feed composition and flowrates, target
product composition
Assume value to be guessed D, Qr, N, NF, R/D
etc.
Find product flowrate, heating duty, column
param. etc.
Solve the flowsheeting problem
Adjust D, Qr As well as N, NF, R/D etc.
Is target product composition satisfied AND
?min.
STOP
25Process simulation - why?
- COSTS
- Material easy to measure
- Time could be estimated
- Risc hard to measure and estimate
26Modelling objects in chemical and process
engineering
- Unit operation
- Process build-up on a few unit operations
27Software 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
28Software process simulators (flawsheeting
programs)
- Started in early 70
- At the beginning dedicated to special processes
- Progress toward universality
- Some actual process simulators
- ASPEN Tech /HYSYS
- ChemCAD
- PRO/II
- ProSim
- Design II for Windows
29Chemical 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)
30Chemical plant system
- characteristic parameters can be specified for
every system separately according to - Material streams
- Apparatus
31Apparatus-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?
- Its make calculations easier
32Streams parameters
- Flow rate (mass, volume, mol per time unit)
- Composition (mass, volume, molar fraction)
- Temperature
- Pressure
- Vapor fraction
- Enthalpy
33Streams degrees of freedom
- e.g. NC2 -gt DFs4
- Assumed F1, F2, T, P
- Calculated
- enthalpy
- vapor fraction
34Apparatus parameters DF
- Characteristics for each apparatus type. E.g.
heat exchanger - Heat exchange area, A m2
- Overall heat-transfer coefficient, U (k)
Wm-2K-1 - Log Mean Temperature Difference, LMTD K
- degrees of freedom are unique to equipment type
35Types of flowsheeting calculation
- Steady state calculation
- Dynamic calculation
36Calculation subject
- Number of equations of mass and energy balance
for entire system - Can be solved in two ways
37(No Transcript)
38Types of balance calculation
- Overall balance (without use of apparatus
mathematical model) - Detailed balance on the base of apparatus model
39Overall balance
- Apparatus is considered as a black box
- Needs more stream data
- User could not be informed about if the process
is physically possible to realize.
40Overall balance Example
Countercurrent, tube-shell heat exchanger Given
three streams data 1, 2, 3 hence parameters of
stream 4 can be easily calculated from the
balance equation.
DF5
There is possibility that calculated temp. of
stream 4 can be higher then inlet temp. of
heating medium (stream 1).
41Overall balance Example
- Given
- mA10kg/s
- mB20kg/s
- t1 70C
- t240C
- t320C
- cpAcpBidem
42Apparatus 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
43Loops 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.
44Loops and cut streams
45Simulation of system with heat exchanger using
MathCAD
46I.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. Find such a
valves resistance to satisfy condition both
streams output pressures equal 1bar.
47II. Flawsheet
48Numerical data
Stream s1 Ps1 200kPa, ts1 85C, f1s1
10000kg/h Stream s6 Ps6 200kPa, ts6 20C,
f2s6 10000kg/h
49Equipment parameters
- L17m d10,025m
- L25m d20,16m, s0,0016m, n31...
- L36m, d30,05m
- z450
- L57m d50,05m
- L610m, d60,05m
- z740
50III. Stream summary table
- UknownTs2, Ts3, Ts4, Ts5, Ts7, Ts8, Ts9, Ts10,
Ps2, Ps3, Ps4, Ps5, Ps7, Ps8, Ps9, Ps10, f1s2,
f1s3, f1s4, f1s5, f2s7, f2s8, f2s9, f2s10 - number of unknown variables 26
- WE NEED 26 INDEPENDENT EQUATIONS.
51Equations from equipment information
- f1s2 f1s1 f1s7 f1s6
- f1s3 f1s2 f1s8 f1s7
- f1s4 f1s3 f1s9 f1s8
- f1s5 f1s4 f1s10 f1s9
14 equations. Still do define 26-1412 equations
52Heat balance equations
New variable Q Still to define 121-211
equations
53Heat exchange equations
New variables k, DTm number of equations to
find 112-211
54Heat exchange equations
Two new variables aT and aS number of equations
to find 112-112
55Heat exchange equations
Three new variables NuT, NuS, deq, number of
equations to find 123-312
56Heat exchange equations
57Heat exchange equations
Two new variables ReT and ReS, number of
equations to find 122-410
58Pressure drop
59Pressure drop
Two new variables Re1 and l1, number of
equations to find 102-39
60Pressure drop
One new variables and l2T, number of equations
to find 91-37
61Pressure drop
Two new variables Re3 and l3, number of
equations to find 72-36
62Pressure drop
Number of equations to find 6-15
63Pressure drop
Two new variables Re5 and l5, number of
equations to find 62-34
64Pressure drop
One new variables and l2S, number of equations
to find 41-32
65Pressure drop
Two new variables Re6 and l6, number of
equations to find 22-31
66Pressure drop
Number of equations to find 1-10 !!!!!!!!!!!!!!
67Agents parameters
Temperatures are not constant Liquid properties
are functions of temperature
68Agents parameters
Data are usually published in the tables
69Agents parameters
Data in tables are difficult to use
Solution
Approximate discrete data by the continuous
functions.
70Approximation
- Approximating function
- Polynomial
- Approximation target find optimal parameters of
approximating function - Approximation type
- Mean-square sum of square of differences
between discrete (from tables) and calculated
values is minimum.
71Polynomial approximation
72The end as of yet.