Cheg Process Control
Cheg Process Control
SCOPE:
Students will be able to know:-
3 Levels of Diagram
-Block Flow Diagram (BFD)
-Process Flow Diagram (PFD)
-Piping and Instrumentation Diagram (P&ID)
The Block Flow Diagram (BFD)
Example 1:
Mixed Gas
Toluene, C7H8 2610 kg/hr
10,000 kg/hr
75% Conversion of
Toluene
CH2=CH2 + H2 Ni
CH3CH3
Hot water out
Ethanol,
Cold water in Ethane, CH3CH3
C2H5OH CH2CH2
Reactor 1 Reactor 2
H2SO4 H2O Hydrogen, H2
Distillation
column Ni
H2O
The Block Flow Diagram (BFD)
Exercise 1:
Answer 1
Hot water
out
Insoluble
ammonia Ammonia
liquid
Water 5 L/min
Ammonia gas Condenser
Batch
Absorber Distillation
Cold water
in
Ammonia-water
mixture
Ammonia-air mixture
10 L/min
The Block Flow Diagram (BFD)
Exercise 2:
Answer 2
Hot water
out
Ethanol
Condenser liq.
Ethyl
acetate
Reactor
Batch
distillation
Distillate
Cold product tank
water in
Ethanol-water
mixture
Acid feed
tank
The Process Flow Diagram (PFD)
SCOPE:
Heat exchanger
S Steam heater
Cooling coil
The Process Flow Diagram (PFD)
Heater coil
Centrifugal pump
Pressure gauge
The Process Flow Diagram (PFD)
Valve Symbology
Symbol Name
Gate Valve
Globe Valve
Ball Valve
Check Valve
Butterfly Valve
The Process Flow Diagram (PFD)
Valve Symbology
Symbol Name
Relief Valve
Needle Valve
3-Way Valve
Angle Valve
Butterfly Valve
Example 3
Production of Ethane from Ethanol
Ethanol is feed to continuous reactor with presence of Acid Sulphuric
catalyzer to produce ethylene. Distillation process then will be applied to
separate ethylene-H2O mixture. Ethylene as a top product is then
condensate with condenser to perform liquid ethylene. Hydrogenation of
ethylene applies in another reactor with presence of Nickel catalyzer to
produce ethane as a final product. Develop PFD for these processes.
H2SO4
CH3CH2OH CH2=CH2 + H2O
CH2=CH2 + H2 Ni
CH3CH3
V-104
Cold water
in V-106
CV-100 T-100
CV-101
V-105
Ethanol
V-101 V-102
H2SO4 V-100 Hydrogen
V-103 V-107 Ni
R-100 Ethane
R-101
P-100
H2O
P-101
The Process Flow Diagram (PFD)
Exercise 3:
Answer 3
T-100 T-101 E-100
Absorber Column Batch Distillation Column Condenser
Insoluble ammonia
gas Hot water out
Ammonia gas
Ammonia liquid
Water 5 L/min
Cold water in
Ammonia-air
mixture 10 L/min
Ammonia-water mixture
The Process Flow Diagram (PFD)
Y Letter
Area No. 1
Area No. 2
Area No. 3
The Process Flow Diagram (PFD)
A/B Letter
Example
Hot water Hot water
out out
Ethylene Ethylene liq. Ethylene Ethylene liq.
Cold Cold
water in water in
Ethanol
H2SO4
Hydrogen Ethane Hydrogen Ethane
Ni Ni
H2O H2O
P-100 B
Yes No No
Example 4
6
V-104
Cold water in
T-100 CV-101 V-106
CV-100
V-105
Ethanol 5
1 V-101 V-102
H2SO4
4 Hydrogen
V-100 9
V-103 V-107 Ni
R-100
R-101 Ethane
3 8 10
2
H2O
7
P-101
P-100
The Process Flow Diagram (PFD) (cont..)
Stream Information
600 Temperature
300
3 8 24 Pressure
9
6 7 10.3 Mass
1 10
Flowrate
108 Molar
600
Flowrate
24
2 5 12 Gas
Flowrate
11 Liquid
4
Flowrate
13
24
Example 5
6
V-104
Cold water in
T-100 CV-101 V-106
28 25 CV-100
V-105
Ethanol 5
1 V-101 V-102 38 20
H2SO4
4 Hydrogen
V-100 9
V-103 V-107 Ni
R-100
R-101 Ethane
3 8 10
2 35
H2O
31.0
35 7
32.2 P-101
P-100
Stream Information - Full stream data,
Stream 1 2 3 4 5 6 7 8 9 10
Number
Temperature 25.0 35.0 35.0 35.0 35.0 60.3 41 38 54.0 45.1
(oC)
Pressure (psi) 28 32.2 31.0 31.0 30.2 45.1 31.3 24.0 39.0 2.6
Vapor fraction
Mass flow 10.3 13.3 0.82 20.5 6.41 20.5 0.36 9.2 20.9 11.6
(tonne/hr)
Mole flow 108 114.2 301.0 1204.0 758.8 1204.4 42.6 1100.8 142.2 244.0
(kmol/hr)
Example 6
R-100 P-100 T-100 E-100 P-101 R-101
Reactor Pump Distillation Column Condenser Pump Reactor
P-100
Stream Number 1 2 3 4 5 6 7 8 9 10
Temperature (oC) 25.0 35.0 35.0 35.0 35.0 60.3 41 38 54 45.1
Pressure (psi) 28 32.2 31.0 31.0 30.2 45.1 31.3 24.0 39 2.6
Vapor fraction
Mass flow (tonne/hr) 10.3 13.3 0.82 20.5 6.41 20.5 0.36 9.2 20.9 11.6
Mole flow (kmol/hr) 108 114.2 301.0 1204.0 758.8 1204.4 42.6 1100.8 142.2 244.0
The Process Flow Diagram (PFD)
P-100
Stream Number 1 2 3 4 5 6 7 8 9 10
Temperature (oC) 25.0 35.0 35.0 35.0 35.0 60.3 41 38 54 45.1
Pressure (psi) 28 32.2 31.0 31.0 30.2 45.1 31.3 24.0 39 2.6
Vapor fraction
Mass flow (tonne/hr) 10.3 13.3 0.82 20.5 6.41 20.5 0.36 9.2 20.9 11.6
Mole flow (kmol/hr) 108 114.2 301.0 1204.0 758.8 1204.4 42.6 1100.8 142.2 244.0
QUESTIONS?
Chapter 1 - Chemical
Process Diagrams
yes no no
Mole Flow (kmol/h) 108.7 144.2 301.0 758.8 1204.4 42.6 142.2
1204.4 1100.8 1247.0
on liquid level
LE and valve represent a feedback
control loop
R. Turton and J. A. Shaeiwitz -
Copyright 2008
Other Common Diagrams
Plot Plans – plan or map drawn looking
down on plant (drawn to scale with all
major equipment identified)
Elevation Diagrams – show view from
side and give information about
equipments distance from ground
accuracy and complexity on one hand, and the cost and effort
required to develop the model, on the other hand.
• Process modeling is both an art and a science. Creativity is
required to make simplifying assumptions that result in an
appropriate model.
• Dynamic models of chemical processes consist of ordinary
differential equations (ODE) and/or partial differential
equations (PDE), plus related algebraic equations.
Table 2.1. A Systematic Approach for
Developing Dynamic Models
1. State the modeling objectives and the end use of the model.
They determine the required levels of model detail and model
accuracy.
Chapter 2
Conservation of Mass
rate of mass rate of mass rate of mass
Chapter 2
(2-6)
accumulation in out
Conservation of Component i
rate of component i rate of component i
accumulation in
•Dangerous to extrapolate
Semi-empirical
•Compromise of first two approaches
•Model structure may be simpler
•Typically 2 to 10 physical parameters
estimated
(nonlinear regression)
•Good versatility, can be extrapolated
• linear regression
y c0 c1 x c2 x 2
• nonlinear regression
y K 1 e t /
Chapter 2
d Vρx
w1 x1 w2 x2 wx (2-3)
dt
dV
w1 w2 w (2-12)
dt
d Vx
w1x1 w2 x2 wx (2-13)
dt
Equation 2-13 can be simplified by expanding the accumulation
term using the “chain rule” for differentiation of a product:
d Vx dx dV
V x (2-14)
dt dt dt
Substitution of (2-14) into (2-13) gives:
dx dV
Chapter 2
V x w1x1 w2 x2 wx (2-15)
dt dt
Substitution of the mass balance in (2-12) for dV/dt in (2-15)
gives:
dx
V x w1 w2 w w1x1 w2 x2 wx (2-16)
dt
After canceling common terms and rearranging (2-12) and (2-16),
a more convenient model form is obtained:
dV 1
w1 w2 w (2-17)
dt
dx w1 w2
x1 x x2 x (2-18)
dt V V
Chapter 2
Chapter 2 Stirred-Tank Heating Process
Assumptions:
Note that this term appears in the general energy balance of Eq. 2-
10.
Suppose that the liquid in the tank is at a temperature T and has an
enthalpy, Ĥ . Integrating Eq. 2-29 from a reference temperature
Tref to T gives,
Hˆ Hˆ ref C T Tref
(2-32)
where Hˆ ref is the value of Ĥ at Tref. Without loss of generality, we
assume that Hˆ ref 0 (see Appendix B). Thus, (2-32) can be
written as:
Hˆ C T Tref
(2-33)
Model Development - III
For the inlet stream
Hˆ i C Ti Tref
(2-34)
Chapter 2
dT
V C wC (Ti T ) ws H v (1)
dt
dT
V C wC (T T ) ( ws w s )H v
dt
divide by wC
V dT H v
T T ( ws ws )
w dt wC
Define deviation variables (from set point)
C=l cal g o C
w=104 kg hr
=103 kg m3
V=20 m3
V 2 104 kg
V 2 104 kg
2hr
w 104 kg hr
dy
2
dt
= -y + 6 10-5 u dynamic model
y T T
u ws ws
Step 1: t=0 double ws
T(0) = T y(0) = 0
u = +0.83 10 6 g hr
dy
2 = -y + 50
dt
y = 50 l - e -0.5t
Chapter 2
T = y ss + T = 50 + 90 = 140o C
Process Dynamics
Process control is inherently concerned with unsteady
state behavior (i.e., "transient response", "process
dynamics")
Stirred tank heater: assume a "lag" between heating
element temperature Te, and process fluid temp, T.
heat transfer limitation = heA(Te – T)
Energy balances
Chapter 2
dT
wCTi +h e A(Te -T)-wCT=mC
Tank: dt
dTe
Q - h e A(Te - T) = m e C e
Chest: dt
dT dT
0, e 0
dt dt
At s.s.
Specify Q calc. T, Te
2 first order equations 1 second order equation in T
Relate T to Q (Te is an intermediate variable)
y=T-T u=Q-Q Ti fixed
mm e C e d 2 y m e C e m e C e m dy 1
2
y u
wh e A e dt heAe wC w dt wC
Fig. 2.2
Rv
1
q= h Rv: line resistance
Rv
dh 1
A qi h P p gh (2 - 57)
dt Rv
Chapter 2
linear ODE
P p gh
*
If q = Cv P - Pa Pa : ambient pressure
dh *
A qi Cρgh
v q Ci hv (2-61)
dt
nonlinear ODE
Chapter 2
Table 2.2. Degrees of Freedom Analysis
1. List all quantities in the model that are known constants (or
parameters that can be specified) on the basis of equipment
dimensions, known physical properties, etc.
2. Determine the number of equations NE and the number of
Chapter 2
4 variables: T , Ti , w, Q
1 equation: Eq. 2-36
Chapter 2
Monod Equation
Chapter 2
rg X (2-93)
• Cells:
• Product:
• Substrate:
d ( XV )
V rg (2-98)
dt
d PV
Vrp (2-99)
Chapter 2
dt
d( SV ) 1 1
F Sf V rg V rP (2-100)
dt YX / S YP / S
d (V )
F (2-101)
dt
Chapter 2
What is Engineering?
July 25, 2007
Chemical Processes Outline
Motivations
Reactions
Separations
Calculations using Conservation of
Mass and Energy
Distillation
Chemists vs Chemical Engineers
Dyes
Toothpaste Hydrogen
Shampoo
Gasoline
Fertilizer Food
additives
Soap
Decaffeinated
Coffee Cosmetics Polymers
Paint Sugar
Pharmaceuticals
If that isn’t reason enough
http://money.cnn.com/2006/02/13/pf/college/starting_salaries/index.htm
Molecules that Chemicals Engineers
work with
Small and Simple
Helium (He)
Ammonia (NH3)
Hydrogen Flouride (HF)
Trinitrotoluene (C6H2(NO2)3CH3)
Reactor
Products
Raw Materials
Raw Materials
Byproducts
Energy
Energy
Catalysts
Catalysts
Possible Problem with Exothermic
Reactions
L
Energy Produced by
Reactor
reaction is proportional to
reactor volume L3
Energy Removed is
proportional to surface
A+B->C area L2
• Absorption
• Stripping
• Extraction
• Chromatography
Mass and Energy Balances
Balance Equation
Input + generation – Output =
Accumulation
Control
Volume
Mass and Energy Balances
For non-reacting systems
Generation = 0
V moles
40% C2H5OH
100 moles
Magic
10% C2H5OH
Separating
90% H2O
Machine
80 moles
x % C2H5OH
Separation Calculation
V moles
40% C2H5OH
Magic
100 moles Separating
10% C2H5OH Machine
90% H2O
80 moles
x % C2H5OH
Magic
Separating
Machine
Equilibrium Stages
Distillation
Separates liquids based on differences in volatility!
Consider a liquid mixture of A and B:
Boiling point of A: 70 C
Boiling point of B: 100 C
xD
Operating Line
xF
xB
Distillation: McCabe-Thiele
Distillation
Benefits Drawbacks
Batch distillation
apparatus – only one
equilibrium stage!
Conclusions
Batch Distillation
(One equilibrium stage)
Today’s Laboratory: Energy Transfer
* zF
q-line
Nideal = 6 2/3
Process Instrumentation
and Control
• Control valve location can create a need for additional pumps and
compressors, and must be decided in order to size the pumps and
compressors
• More details of process control are usually included in the piping and
instrumentation diagram (P&ID) – see Ch 5
• Process instrumentation
• Reading a P&ID
Actuator
Controller
Process or
utility stream
Final control Sensing
element element
Disturbance
Controller
Input Output
Process
• I: Integral
• Output is proportional to integral of error
• Eliminates offsets from P control, but makes response more sluggish
• D: Derivative
• Output is proportional to rate of change of error
• Damps out instability and allows higher gain to be used
• Example: reactor
temperature (primary
controller) cascades onto
coolant flow controller
(secondary) to control
reactor temperature
• Process instrumentation
• Reading a P&ID
• Pressure • pH
Typical
High T
PD PD
Sensor element
PD
• Process instrumentation
• Reading a P&ID
• The P&ID usually also indicates line sizes and pipe metallurgy
Actuators
S D M
*AH
*AL Shared display device with software alarms (* is measured variable)
• F Flow • R Radiation
• L Level • W Weight
• Process instrumentation
• Reading a P&ID
PV Coolant
• Temperature control
for an exchanger is
usually by
manipulating the flow
through a bypass
FC
temperature to infer
composition and control
bottoms flow rate
TC • Flow control on (constant)
LC
reflux rate could be set in
ratio to feed if feed flow rate
varies
TC
• Flow control on (constant)
reflux rate could be set in
LC
ratio to feed if feed flow rate
varies
FV
FT
FIC
TE
FIC TT FY
FT FV
Intermittent
Steam drain
Intermittent Trap
charge
To vent
system
M
FIC
FV FT
Feed A
FIC TT
TIC FIC
FV FT
LAH LIC
LT
TE LAL
FV
FT
Feed B
Coolant • Temperature
cascade control of
coolant flow
Product
• Independent flow
control of feeds
Chemical Engineering Design
Exercise: Gas Recycle Process
• Liquid feed is mixed with recycle gas, heat exchanged against reactor
effluent, heated to reactor temperature then passed over fixed bed of
catalyst. Product is cooled and liquid product is recovered. Unconverted gas
is recycled with purge to prevent accumulation of inerts
• Process instrumentation
• Reading a P&ID
Automatic
AutomaticSafety
SafetyShutdowns
Shutdowns
Basic
BasicProcess
ProcessControl
Control
• If there are too many alarms then they can become a distraction to
the operators
– Increasing the chance of human error
– Increasing the chance that the operator will ignore the alarm, switch it
off, or acknowledge it without taking action
– Increased chance of an “alarm flood”
• Process instrumentation
• Reading a P&ID
Measured variable 1
Measured variable 2
Measured variable 3
Control Valve 1
Control Valve 2
Control Valve 3
FV
FT PT TT
Manual Control
Pneumatic Analog
Electronic Analog
Digital
?!?!?!?
Source: UOP
Optimizer
User User
Plant DCS
Off-line Optimization
• Users take plant data and run the optimizer then send
instructions to the plant operators to update the DCS
settings
Optimizer Optimizer
Optimizer Optimizer
Plant DCS
Closed Loop On-line Optimization
Chemical Engineering Design
Real Time Optimization Models
• Models and algorithms for RTO have very tough
requirements
– Must be robust, i.e., always find a solution
– Must solve quickly
– Must converge to same solution whatever the starting point
– Must allow for model error
– Must reconcile data and filter out bad data
– Must capture plant constraints
– Must give reasonably good description of plant performance
1
Outline of this lecture
• Introduction and outline of the course
• Need for process modeling
• Statistical and mechanistic models
• Rate laws and adjustable parameters
• Selection of variables
• Model application areas
Learning outcomes for this lecture
• Understand what is mathematical modeling and
how it is related to physical problems
• Recognize the need for modeling, estimate
necessary model complexity
• Understand how models are built from balances
and constitutive equations
• Understand the basis of rate laws and adjustable
parameters in them
3
Teaching
• Lectures each Wednesday from 8.30-10
• Exercises Tuesday and Thursday 8.30-10 at the
computer class. Also exercises with pen and paper!
• There could be some small exercises during the
lectures (be prepared with pen, paper and a
calculator), and theory parts during the exercises.
One full lecture will be given on We 4.11. during
the exercise times.
4
Teaching
• Teachers from various research groups:
– Prof. Ville Alopaeus, chemical engineering
(responsible teacher)
– Kaj Jakobsson, chemical engineering
– Olli Sorvari, chemical engineering
– Reetta Karinen, Yaseen Khan, industrial chemistry
Additional assistants / visitors may participate
5
Workload estimate
work / h Grade weight / %
Pre-exam 15 15
Lectures 16
Home assignments 30 30
Computer exercises 40 15
Other independent study 30
Final exam 3 40
total 134 100
6
Lecture schedule
2.11.2016 1. Introduction and course outline. Need for process modeling. Statistical and
mechanistic models. Rate laws and adjustable parameters
9.11.2016 3. Tubular reactors, CSTR:s. Static and dynamic models. Numerical tools for
initial value ODE:s. Stiff systems
16.11.2016 4. Partial differential equations. Unsteady heat and mass transfer. Finite
differences
23.11.2016 5. Mass transfer, film models. Multicomponent mass transfer. Matrix equations
and their solvers
3.11.2016 2. Pre-exam (45 min). Building of mechanistic models from balances and rate
laws
9
Pre-exam
• 45 min, during the second exercise
14
The idea of a (mathematical) model
1. Reality to mathematics
2. Mathematical solution
3. Interpreting the model outputs
4. Using the results in the real world
15
Model building steps
• Build a sketch and define quantities
xin xout
xout = f(xin)
17
Model building steps
2nd step: assume something related to spatial or
temporal variations.
xin xout
D
18
L
Model building steps
Vapor phase (V) Dry catalyst (D)
• 3rd step: Assume
detailed small scale xD
phenomena and apply kVD
HD
VD
it in the big scale hVD cD
TD
model xV
HV
xVI xLI
VV hDW
TV
• Multiscale modeling
TI
Liquid phase (L) Wet catalyst (W)
19
Box colors
• ”Black box” models:
– Empirical
– Process fundamentals are not necessary
– Based on observed input and output variables
– Purely mathematical (as an opposite to a physical
model) form where some parameters (coefficients)
are identified based on observed variables. These
coefficients typically have no physical meaning
– Often polynomials, could be neural networks etc.
20
Box colors
”White box” models
dc dn
r or rV
dt dt
Ideally mixed
batch reactor
• What are these describing?
• Which one is based on conserved property
(extensive variables)
26
Selection of variables
concentration is not a conserved
property (extensive variable), but
amount of moles is.
dn d cV
rV n=cV rV
dt dt
dc
This reduces to r
dV dc dt
c V rV only if volume does not change
dt dt
(or the first term is negligible)
27
Balances and closures
Physically correct models (not black box) are based on
balances (material, energy, momentum etc...)
dn
Material balance rV
dt
Ideally mixed
batch reactor
dn
Material balance rV
dt
30
Balances and closures
dn
Material balance rV
dt
2D # of variables N2
Then…
• Improve the model if it is not good enough
• Carry out sensitivity analysis
• Carry out optimization
• Test the model at extreme conditions (near the
applicability limits of the variables)
34
Model application areas
35
Model application areas
• Process design
– Feasibility analysis of novel designs
– Technical, economic, environmental assesment
– Effects of process parameter changes on
performance
– Optimization using structural and parametric
changes
– Analysing process interactions
– Waste minimization in design
36
Model application areas
• Process control
– Examining regulatory control strategies
– Analysing dynamics for setpoint changes or
disturbances
– Optimal control strategies for batch operations
– Optimal control for multi-product operations
– Optimal startup and shutdown policies
37
Model application areas
• Trouble-shooting
– Identifying likely causes for quality problems
– Identifying likely causes for process deviations
• Process safety
– Detection of hazardous operating regimes
– Estimation of accidental release events
– Estimation of effects from release scenarios
38
Model application areas
• Operator training
– Startup and shutdown for normal operations
– Emergency response training
– Routine operations training
• Environmental impact
– Quantifying emission rates for a specific design
– Dispersion predictions for air and water releases
– Characterizing social and economic impact
– Estimating acute accident effects (fire, explosion) 39
Summary
• Reality → Mathematical model → Model solution →
Interpretation → Application to reality
• Different box colors exist
• Carefully think about:
– Variables (state) needed in the model
– Independent variables (dimensions) as the model easily
gets too complicated
– Balance equations that the model is based on
– Rate laws and other necessary relations to close the model
• Mathematical models are needed in many parts of
Chemical Engineering 40
George E.P. Box:
41