Top Banner
Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical Engineering University of Puerto Rico at Mayaguez
132

Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Dec 26, 2015

Download

Documents

Arlene Ellis
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Advance Process Control I

Carlos VelázquezPharmaceutical Engineering Research Laboratory

ERC on Structured Organic Particulate SystemsDepartment of Chemical Engineering

University of Puerto Rico at Mayaguez

Page 2: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Process Control and Optimization

• Control and optimization are terms that are many times erroneously interchanged.

• Control has to do with adjusting flow rates to maintain the controlled variables of the process at specified setpoints.

• Optimization chooses the values for key setpoints such that the process operates at the “best” economic conditions.

Page 3: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Review of Basic Control

Page 4: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Conservation Equations:Mass, Moles, or Energy Balances

Systemthewithinaction

byGenerationofRate

Systemthe

LeavingRate

Systemthe

EnteringRate

onAccumulati

ofRate

Re

Page 5: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Laplace Transforms and Transfer Functions

• Provide valuable insight into process dynamics and the dynamics of feedback systems.

• Provide a major portion of the terminology of the process control profession.

• Are NOT generally directly used in the practice of process control.

Page 6: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Method for Solving Linear ODE’s using Laplace Transforms

Laplace Domain

Time Domain

dy/dt = f(t,y)

sY(s) - y(0) =F(s,Y)

Y(s) = H(s)

y(t) = h(t)

Page 7: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Transfer Functions

• Defined as G(s) = Y(s)/U(s)

• Represents a normalized model of a process, i.e., can be used with any input.

• Y(s) and U(s) are both written in deviation variable form.

• The form of the transfer function indicates the dynamic behavior of the process.

Page 8: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example of Derivation of a Transfer Function

)()()()()(

212211 tTFFtTFtTFdt

tdTM • Dynamic model of

CST thermal mixer• Apply equation to the

steady state• Substitute deviation

variables• Equation in terms of

deviation variables.

0220110 TTTTTTTTT

)()(

)()()(

21

2211

tTFF

tTFtTFdt

tTdM

)0()()0()0()0(

212211 TFFTFTFdt

dTM

Page 9: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Derivation of a Transfer Function

21

1

1 )(

)()(

FFsM

F

sT

sTsG

• Apply Laplace transform to each term considering that only inlet and outlet temperatures change.

• Determine the transfer function for the effect of inlet temperature changes on the outlet temperature.

• Note that the response is first order.

21

2211 )()()(

FFsM

sTFsTFsT

Page 10: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

What if the Process Model is Nonlinear

• Before transforming to the deviation variables, linearize the nonlinear equation.

• Transform to the deviation variables.

• Apply Laplace transform to each term in the equation.

• Collect terms and form the desired transfer functions.

Page 11: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Use Taylor Series Expansion to Linearize a Nonlinear Equation

...)()()(0

00

xxdx

dyxxxyxy

• This expression provides a linear approximation of y(x) about x=x0.

• The closer x is to x0, the more accurate this equation will be.

• The more nonlinear that the original equation is, the less accurate this approximation will be.

Page 12: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

General form of a Transfer Function

1

0

1

1)(

mp

k

sm

nLp

ss

esKsG

Page 13: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Dynamic Modeling Approach for Process Control Systems

Actuator Process Sensorc y y su

Page 14: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Dynamic Model for Sensors• These equations

assume that the sensors behave as a first order process.

• The dynamic behavior of the sensor is described by the time constant since the gain is unity

• T and L are the actual temperature and level.

sTs

s TTdt

dT

1

sLs

s LLdt

dL

1

Page 15: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Dynamic Model for Sensors• The units of KT

depend on the input to the sensor and the type of signal of the sensor.

• For instance, if input is pressure and the signal from the sensor is in mA, then KT = psig/mA

1)(

s

KsH

T

T

• input : concentration,

level, pressure, temperature, force, velocity

• Signals : mA, mV, %TO

Page 16: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Actuator System

• Control Valve– Valve body– Valve actuator

• I/P converter

• Instrument air system

Page 17: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Dynamic Model for Actuators

FFdt

dFspec

v

1

QQdt

dQspec

H

1

• These equations assume that the actuator behaves as a first order process.

• The dynamic behavior of the actuator is described by the time constant since the gain is unity

Page 18: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Dynamic Response of an Actuator (First Order Process)

0 2 4 6 8 10Time (seconds)

Fspec

F

Page 19: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Parameter Estimation

Page 20: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 21: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Estimation of Transfer Functions

• Factors involved– Sampling time– Signal-to-noise ratio– Input type

Page 22: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

1) Sampling time (T)

• If proper sampling is not used, the data could be corrupted by too much noise (fast sampling) or could lack of enough dynamic data (too slow sampling)

Figure 3.6 Effect of a double pulse and T= 10.0 in the SSE surface of a FO model

K

p

p

Page 23: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Figure 3.7 Effect of a double pulse and T= 100.0 in the SSE surface of a FO model

Kp

p

Page 24: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

2) Signal-to-Noise ratio

• Measures how big is the signal of the measured variable compared to the signal of the noise

Page 25: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Figure 3.14 Effect of a double pulse and a S/N = 10:1 in the SSE surface of a FO model, T = 1.0

Kp

p

Page 26: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Figure 3.15 Effect of a double pulse and a S/N = 1:1 in the SSE surface of a FO model, T =1.0

Kp

p

Page 27: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

3) Input wave form

• Virtually any type of input can be used. The amplitude of the signal is the key factor for an input to be proper.

0

1

step pulse

0

1

0

1

doublet

-1

0

1

sinusoidal

-1

0

1

PRBS

-1

Page 28: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Figure 3.1 Effect of a step change in the SSE surface of a FO model

Kp

p

Page 29: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Figure 3.2 Effect of a pulse in the SSE surface of a FO model

Kp

p

Page 30: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Figure 3.3 Effect of a double pulse in the SSE surface of a FO model

Kp

p

Page 31: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Figure 3.4 Effect of sinusoid in the SSE surface of a FO model

Kp

p

Page 32: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Figure 3.5 Effect of PRBS in the SSE surface of a FO model

Kp

p

Page 33: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Feedback Controllers

• Direct acting

• Reverse acting

t

DI

c dt

teddtteteKctc

00

)()(

1)()(

t

DI

c dt

teddtteteKctc

00

)()(

1)()(

Position Form of the PID Algorithm

Page 34: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Definition of Terms

• e(t)- the error from setpoint [e(t)=ysp-ys].

• Kc- the controller gain is a tuning parameter and largely determines the controller aggressiveness.

• I- the reset time is a tuning parameter and determines the amount of integral action.

• D- the derivative time is a tuning parameter and determines the amount of derivative action.

Page 35: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Properties of Proportional Action

11

1

)(

)(

)()( 0

sKK

KK

KK

sY

sY

teKctc

pc

p

pc

pc

sp

c

• Closed loop transfer function base on P-only control applied to a first order process.

• Properties of P control– Does not change order of process

– Closed loop time constant is smaller than open loop p

– Does not eliminate offset.

Page 36: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Offset Resulting from P-only Control

Time

Setpoint1.0

1

2

3

0

Offset

Page 37: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Properties of Integral Action

• Based on first order process

• Properties of I control– Offset is eliminated

– Increases the order by 1

– As integral action is increased, the process becomes faster, but at the expense of more sustained oscillations

pcp

I

pc

pII

pc

I

pc

pIsp

t

I

c

KK

KK

sKK

sKK

sY

sY

dtteK

ctc

2

1

1

1

)(

)(

)()(

2

00

Page 38: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Integral Action for the Response of a PI Controller

Time

ys

ysp

Page 39: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Controller Tuning

• Ziegler-Nichols

• Integral Criteria

• Internal Model Control

• Frequency Techniques

Page 40: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 41: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Stability

• Substitution

• Root Locus

• Frequency techniques

Page 42: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Stability of the Control Loop

• For a feedback control loop to be stable, all the roots of its characteristic equation must be either negative real numbers or complex numbers with negative real parts.

Page 43: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Stability of a Controlled System

• Method 1: Direct Substitution– Select a P-Only controller.

– Write the characteristic equation in a polynomial form of s.

– Substitute s=wui and Kc=Kcu

– Solve for Kcu and wu

01)()()()( sGsGsGsG cTpa

Page 44: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example

skg

C

ssGP /130

50)(

C

TO

ssGT

%

110

1)(

CO

skg

ssGv %

/

13

016.0)(

TO

CKsG cc %

%)(

Exchanger Sensor/Transmitter

Valve P-Only controller

Page 45: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Solution

0)()()()(1 sGsGsGsG cTPv

013

016.0

130

50

110

11

cK

sss

08.0143420900 23 cKsss

08.0143420900 ,23 ucuuu Kiwiwiw

Characteristicequation

SubstitutingcorrespondingTFs

Rearranging

Substituting s=iwu, and Kc=Kcu

Page 46: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Solution

;%

%8.23/2186.0

;%

%25.10

043900

080.01420

;004390080.01420

3

2

32

TO

COKsradwFor

TO

COKwFor

K

iiK

cuu

cuu

uu

cuu

uucuu

ww

w

www

The real and imaginary parts have to be each one equal to zero to make the equation equal to zero.

Page 47: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Solution

• To determine the correct range, first we need to determine the sign of the multiplication of the gain of the process, sensor, and actuator.

• If KpKTKV is (+) then Kc must be +.

• If KpKTKV is (-) then Kc must be -.

• In this case, Kc must be positive, hence Kc = 23.8 is the only physical sound solution

Page 48: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Feedback advance strategies

Page 49: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Cascade

• Main purpose: Reject disturbances that affect an intermediate controlled variable before it hit the main controlled variable.

• Results: Improve performance in rejecting some process disturbances.

Page 50: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Cascade control scheme

Page 51: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Cascade diagram

Gv

GL2

GM1

GM2

Gc2Gc1Km Gp

GL1

+

-

+

-

+

+

+

+

C1C2PE2

R2E1R1Ysp

L2 L1

Page 52: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Cascade design considerations

)()()()()()()()(1

)()(

)(

)(

11222

2

2

1

sGsGsGsGsGsGsGsG

sGsG

sL

sC

MpccvMcv

Lp

)()()()()()()()(1

)()()(1)(

)(

)(

11222

221

1

1

sGsGsGsGsGsGsGsG

sGsGsGsG

sL

sC

MpccvMcv

McvL

)()()()()()()()(1

)()()()(

)(

)(

11222

1121

sGsGsGsGsGsGsGsG

KsGsGsGsG

sY

sC

MpccvMcv

Mpccv

sp

Page 53: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Comparison for load change

Page 54: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Feedforward Controller Design Based on Dynamic Models

• Objective: Measure important load variables and take corrective action before they upset the process.

Page 55: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Feed-forward

• Main purpose: Reject disturbances that would affect directly the main controlled variable before it hit the process.

• Results: Improved performance in rejecting disturbances compared to simple feedback.

Page 56: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Feedforward Controller Design Based on Dynamic Models

Page 57: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Transfer Function

• Relates the process variable to the disturbance (load)

• Permits the design of the feedforward controller.• Stability of the closed loop system.

2517,1)(

)(

mpvc

pvftL

GGGG

GGGGG

sL

sC

Page 58: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Ideal Feedforward Transfer Function

• If the set point is constant, C(s) should be equal to 0 despite the change in L(s).

• The ideal transfer function could not be physically realizable.

pvt

Lf

pvftL

GGG

GG

GGGGG

0

Page 59: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Time-Delay Compensation

• Time delay occurs because of the presence of distance velocity lags, recycle loops, and dead time from composition analysis.

• Limits performance of a conventional feedback control system by adding phase lag.

• Controller gain must be reduced below the value that could be used if dead time were not present, hence sluggish response would be obtained compared to that of no dead time

Page 60: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Block Diagram of Smith Predictor

Page 61: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Block Diagram of Smith Predictor

Page 62: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Set Point TrackingC

ontr

olle

r ou

tput

Con

trol

ler

outp

ut 70

60

50

40

70

60

50

40

Pro

cess

var

iabl

e/se

t poi

ntP

roce

ss v

aria

ble/

set p

oint

60

55

50

60

55

50

Page 63: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Smith Predictor - PI Comparison

Page 64: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Relationships from the block diagram

)~

(~~

')1918( 211 CCCRCEE

11~~

')2018( CRCEE

Assuming ideal model is perfect and disturbance is zero

)1(1)2118( '

sc

cc eGG

G

E

PG

For the inner loop,

For the closed loop servo transfer function,

GG

eGG

R

C

c

sc

1)2218(

For the closed loop servo transfer function,conventional feedback

sc

sc

eGG

eGG

R

C

1)2318(

Page 65: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Control of Multiple-Input, Multiple-Output Processes

Page 66: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Examples

• One input affects two or more outputs, and one output is affected by two or more inputs.

Page 67: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Compact Representation of MIMO Processes

)()()()()(

)()()()()(

2221212

2121111

sMsGpsMsGpsC

sMsGpsMsGpsC

)(

)()(,)(,

)(

)()(

)()()(

2

1

22

12

21

11

2

1

sM

sMs

G

G

G

Gs

sC

sCs

where

sss

p

p

p

pMGpC

MGpC

Page 68: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Block Diagram

Page 69: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Block Diagram

Page 70: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

19.2 Pairing of controlled and manipulated variables

• To determine the best pair of variables to be used within the control strategy.

• Method: Bristol’s Relative gain Array– A measure of process interactions– A recommendation concerning the most

effective pairing of controlled and manipulated variable.

Page 71: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Concept of relative gain

• M means all the M are kept constant except Mj.

• C means all the C are kept constant except Ci.

gainloopclosed

gainloopopen

M

C

M

C

Cj

i

Mj

i

ji

Page 72: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example

)()()(

)()()(

2221212

2121111

sMKsMKsC

sMKsMKsC

?

2

2

1

1

111

1

C

M

M

C

KM

C

Page 73: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example

)()(

)()(

0)(

122

2112111

122

212

2

sMK

KKKsC

sMK

KsM

sC

21122211

221111

22

21122211

1

1

2

KKKK

KK

K

KKKK

M

C

C

Page 74: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example

?

1

1

2

1

122

1

C

M

M

C

KM

C

)()(

)()(

0)(

221

2211121

221

221

2

sMK

KKKsC

sMK

KsM

sC

Page 75: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example

21122211

211221

2111 1

KKKK

KK

21122211

211212

21

22112112

2

1

2

KKKK

KK

K

KKKK

M

C

C

Page 76: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example

21122211

2211

21122211

2112

21122211

2112

21122211

2211

KKKK

KK

KKKK

KK

KKKK

KK

KKKK

KK

Page 77: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Summary• Ci should be paired with Mj

• Ci should be paired with Mk=/j

• Indicates interaction between loops, worst interaction =.5

• Too much interaction, closed loop gain is reduced by closing the other control loops

• Gains have different sign, pairing these two variables causes severe interaction

0

1

10

0

1

ij

ij

ij

ij

ij

Page 78: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example 19.3

110

21

5.1

1

5.1110

2

)(

s

s

s

ssGp

K11

K21

K12

K22

21122211

2211

21122211

2112

21122211

2112

21122211

2211

KKKK

KK

KKKK

KK

KKKK

KK

KKKK

KK

Page 79: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Example 19.3

5.15.122

225.15.122

5.15.1

5.15.122

5.15.15.15.122

22

28.2

28.1

28.1

28.2

Page 80: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

19.4 Decoupling Control Systems

• Benefits– Interactions are eliminated and the stability of

the closed-loop system is determined by the stability characteristics of the individual control loops.

– A set point change for one controlled variable has no effect on the other controlled variable.

Page 81: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Decoupling diagram

Page 82: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Ideal Controller

0)()()()( 2221121 sMsGsMsG pp

)()(0)(

)()()(

21222

21222

sMsMsM

but

sMsMsM

0)()()()()(

)()()(

1121221121

112121

sMsDsGsMsG

sMsDsM

Since

pp

)(

)()(

22

2121 sG

sGsD

p

p

Page 83: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Ideal ControllerIn an analogous fashion

• Careful with unrealizable controllers, specially with transfer functions containing delay times

)(

)()(

11

1212 sG

sGsD

p

p

Page 84: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Controller Design by Direct Synthesis

Page 85: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Controller Design by Direct Synthesis

• Assume the process + measurement device + final control element can be represented by

• Assume also that the closed loop behavior follows an ideal

y(s) ggc

1 ggc

yd (s)

y(s) q(s)yd (s)

Page 86: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Controller Design by Direct Synthesis

• where

• The choice of the reference trajectory q(s) depends on the desired closed loop response and the open loop response of the process.

• Next table presents some typical responses

q(s) ggc

1 ggc

Page 87: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Controller Design by Direct Synthesis

Page 88: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Controller Design by Direct Synthesis

• The key question is what if the form of gc(s) that produces the desired response q(s) given the g(s) of the process.

• This can be achieving manipulating the expression of q(s) to obtain

gc (s) 1

g(s)

q(s)

1 q(s)

Page 89: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Controller Design by Direct Synthesis

• Assume a first order model for g(s) and an underdamped second order for the reference trajectory.

• Therefore, gc(s) is

gc (s) s1

k

1

r2s2 2 r rs1

1 1

r2s2 2 r rs1

Page 90: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Controller Design by Direct Synthesis

• After some algebra

gc (s) s1

k

1

r2s2 2 r rs

Page 91: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Model Predictive Control

Page 92: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

MPC best suited for

• MIMO processes with significant interaction between SISO loops

• Either equal or unequal number of inputs

• Complex and usually problematic dynamics (longtime delays, and inverse response, or unusually large time constant)

• Constraints in inputs and/or outputs

Page 93: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Basic Elements of MPC

1. Trajectory

2. Output Prediction

3. Control Action Sequence

4. Error Prediction

Ogunaike

Page 94: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

MPC Architecture

PredictionControl

Calculations

Set-point Calculations

Process

Model +-Model

Output

Residuals

Inputs

InputsPredicted

Output

Set points

Page 95: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Prediction models• Finite convolution models

– Impulse-Response

– Step-Response

where

y(k) g(i)u(k i)i0

k

y(k) (i)u(k i)i0

k

g(i) (i) (1)

and (i) g( j)j1

i

Page 96: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Prediction models• Discrete State-Space

• Discrete Transfer function

where A(z-1) and B(z-1) are polynomials in z

y(k) a(i)y(k i)i0

k

b(i)u(k i m)i0

k

y(k) z mB(z 1)

A(z 1)u(z)

Page 97: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Dynamic Matrix Control

Page 98: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 99: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 100: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Unconstrained Problem Solution

Page 101: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Unconstrained Problem Solution

Page 102: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Unconstrained Problem solution

Page 103: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Unconstrained Problem solution

Page 104: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Unconstrained Problem solution

• In DMC, it is assumed that there exist disturbances unaccounted for by the model.

• It is further assumed that the best estimate of the values of these disturbances in the future of the elements– w(k+i), i=1,2, …, p of the vector w(k+1) is

estimated as

Page 105: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 106: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 107: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 108: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 109: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 110: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.
Page 111: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Model Algorithmic Control

• Similar to DMC with difference in the coefficients of the model and the reference trajectory– Process representation

– u is the actual input

– Output prediction

ˆ y (k 1) ˆ y 0(k)Gu(k) w(k 1)

ˆ y *(k 1) ˆ y 0(k)Gu(k) w(k 1)

Page 112: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Model Algorithmic Control

• In MAC, ŷ*(k+1) is defined typically as a reference trajectory based on the current measured value, y(k), and the current set point ysetpoint(k) as follows

with subsequent values determined according to

y*(k 1) y(k) (1 )ysetpoint(k); 0 < < 1

y*(k i) y(k i 1) (1 )ysetpoint (k); i > 1

Page 113: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Application of MPC to batchfluid bed drying

Page 114: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Modeling and Optimal Control of a FBDProcess Understanding: Drying theory

114

Drying CurveDrying Curve

Page 115: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Preliminaries Results

Dr. Velazquez, PhERL

4.5

5.5

6.5

7.5

8.5

9.5

10.5

1 2 3 4 5 6 7 8 9 10 11Sample number

% M

C

AF 40 T60

AF 50 T60

AF 60 T60

AF*60 T60

AF 70 T60

AF*80 T60

115

Page 116: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Moisture Content Curve Modeling

)(11.0

45.0)(

11.0

03.0)( sT

ssQ

ssWp

60m³/hr ; 60°C

4

5

6

7

8

9

10

0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5

t (hr)

Wp

Exp

Modelo en Laplace

AF1 Ave

Modelo en tiempo

116

Page 117: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

In-Line NIR Measurements & Optimization

• Experimental design: 18 experimental combinations.

• Factors studied: bulk mass, air flow, and probe axial position.

• Response variable: residual (static – in-line NIR spectra).

• Region: drying equilibrium point (5 - 6 % H2O).

• Constant air’s inlet temperature = 70 °C

(same as in the calibration) 117

Page 118: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Axial Position Comparison

Analysis of Variance

118

Page 119: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Results

119

Page 120: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

120

Results

Page 121: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

121

Results

Page 122: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Rewriting of Transfer Function to fit MPC algorithm

• Can be transformed to describe the drying curve parting from any given point of the curve knowing the starting time and the current time of the process. Equation below describes the step wise function

Page 123: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Rewriting of Transfer Function to fit MPC algorithm

• The low order transfer equation proposed can be turned into the matrix form described by

Page 124: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Rewriting of Transfer

Function to fit MPC

algorithm

Page 125: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Closed loop of FBD

NIR

DCS-MPC

HXBlower

AirFlow

AirTemperature

MoistureMeasurement

125

Page 126: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

FBD performance under MPC

126

Page 127: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

FBD performance under MPC

127

Page 128: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

128

FBD performance under MPC

Page 129: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Robustness test for error in modeling

Dr. Velazquez, PhERL 129

Page 130: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Comparison of performance for base and comparison cases

Page 131: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Comparison of performance for base and comparison cases

Page 132: Advance Process Control I Carlos Velázquez Pharmaceutical Engineering Research Laboratory ERC on Structured Organic Particulate Systems Department of Chemical.

Conclusions of example• The drying curve can be described accurately with a

first order transfer function.

• The position of the sensor probe is critical for meaningful monitoring data.

• The MPC algorithm demonstrated to be capable of handling the model mismatch.

• The MPC application would minimize the energy consumption when compare to the open loop case. In the comparison case, the minimization decreased compare to the base case.