lecture notes ii example 6 continuous stirred-tank reactor (cstr) · 2017-05-15 · lecture notes...

15
Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with mass transfer processes constitute an important part of chemical technologies. From a control point of view, reactors belong to the most difficult processes. This is especially true for fast exothermal processes. We consider CSTR with a simple exothermal reaction A B. For the development of a mathematical model of the CSTR, the following assumptions are made, 1. neglected heat capacity of inner walls of the reactor, constant density and specific heat capacity of liquid, 2. constant reactor volume, constant overall heat transfer coefficient, and 3. constant and equal input and output volumetric flow rates. As the reactor is well-mixed, the outlet stream concentration and temperature are identical with those in the tank. Figure 1. A nonisothermal CSTR. Mass balance of the component A can be expressed as ) , ( ϑ A A Av A c Vr qc qc dt dc V = 1 where t - time variable, c A - molar concentration of A (mole/volume) in the outlet stream, c Av - molar concentration of A (mole/volume) in the inlet stream, V - reactor volume, q - volumetric flow rate, r(c A , ϑ) - rate of reaction per unit volume, ϑ- temperature of reaction mixture. The rate of reaction is a strong function of concentration and temperature (Arrhenius law)

Upload: others

Post on 20-Mar-2020

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR)

Chemical reactors together with mass transfer processes constitute an important part

of chemical technologies. From a control point of view, reactors belong to the most difficult processes. This is especially true for fast exothermal processes.

We consider CSTR with a simple exothermal reaction A B. For the development of a mathematical model of the CSTR, the following assumptions are made, 1. neglected heat capacity of inner walls of the reactor, constant density and specific

heat capacity of liquid, 2. constant reactor volume, constant overall heat transfer coefficient, and 3. constant and equal input and output volumetric flow rates.

As the reactor is well-mixed, the outlet stream concentration and temperature are identical with those in the tank.

Figure 1. A nonisothermal CSTR.

Mass balance of the component A can be expressed as

),( ϑAAAvA cVrqcqc

dtdcV −−= 1

where t - time variable, cA - molar concentration of A (mole/volume) in the outlet stream, cAv - molar concentration of A (mole/volume) in the inlet stream, V - reactor volume, q - volumetric flow rate, r(cA, ϑ) - rate of reaction per unit volume, ϑ- temperature of reaction mixture. The rate of reaction is a strong function of concentration and temperature (Arrhenius law)

Page 2: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

AAA cekkccr REϑϑ 0),( == 2

where k0 is the frequency factor, E is the activation energy, and R is the gas constant. Heat balance gives

),()()( ϑϑϑαϑρϑρϑρ Acpvpp crHVFcqcqdtdcV ∆−+−−−= 3

where ϑv - temperature in the inlet stream, ϑc - cooling temperature, ρ - liquid density, cp - liquid specific heat capacity, α - overall heat transfer coefficient, F - heat transfer area, (-∆H) - heat of reaction. Initial conditions are

cA(0) = 0Ac

ϑ (0) = ϑ0 The process state variables are concentration cA and temperature ϑ. The input variables are ϑc, cAv, ϑv and among them, the cooling temperature can be used as a manipulated variable. The reactor is in the steady-state if derivatives with respect to time in equations (1), (3) are zero. Consider the steady-state input variables s

vsAv

sc c ϑϑ ,,

The steady-state concentration and temperature can be calculated from the equations ),(0 ss

AsA

sAv cVrqcqc ϑ−−= 4

),()()( 0 ssA

sc

ssp

svp crHVFcqcq ϑϑϑαϑρϑρ ∆−+−−−= 5

Please finish the rest as homework. Example 7 Mathematical model of a thermocouple

Figure 2. Control loop for the Stirred Heating Tank

2

Page 3: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

θiθi

θjθ0 θ0

a) bare thermocouple b) thermocouple with protect jacket

Figure 3. Temperature sensor (thermocouple) a) Mathematical model of a bare thermocouple

The energy balance for the bare thermocouple is,

00

1 QQdt

dC i −=

θ 6

where C1 is the molar specific heat capacity of the thermocouple, Qi is the heat flow from the media to the thermocouple, and Q0 is the heat lost by the thermocouple. And,

1

0011 )(

RAQ i

iiθθ

θθα−

=−= 7

where R1 is the heat resistor, 11

11A

= , A1 surface area of the tip of the thermocouple,

α1 is the heat transfer coefficient of the heat transfer between the media and the thermocouple.

Assume Q0 = 0, substitute Eq.7 into Eq.6,

idtd

CR θθθ

=+ 00

11 8

Follow the steps used in the early examples,

idtd

CR θθθ

∆=∆+ 00

11 9

Therefore it is a first order system. b) Mathematical model of a thermocouple with protect jacket 1. The energy balance for the thermocouple with protect jacket is,

002 QQQQdt

dC jjij

j −−−=θ

10

where C2 is the molar specific heat capacity of the thermocouple protect jacket, Qij is the heat flow from the media to the thermocouple protect jacket, Qj0 is the heat flow from the

3

Page 4: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

thermocouple protect jacket to the thermocouple, and Qj, Q0 are the heat lost by the thermocouple jacket and the thermocouple itself respectively. 2. Assume Qj, Q0 are equal zero,

)()( 011222 θθαθθαθ

−−−= jjij AA

dtd

C 11

where A2 is the heat transfer surface area of the thermocouple protect jacket, A1 is the heat transfer surface area of the thermocouple tip, α2 is the heat transfer coefficient of the heat transfer between the media and the thermocouple protect jacket, α1 is the heat transfer coefficient of the heat transfer between the thermocouple protect jacket and the thermocouple. Since A2 >> A1,

)(222 jij A

dtd

C θθαθ

−= 12

we can also arrive at

ijj

dtd

CR θθθ

∆=∆+∆

22 13

where 22

21A

= .

3. The accumulation of the heat in the thermocouple tip is,

)( 0110

1 θθαθ

−= jAdt

dC 14

Similarly we can arrive,

jdtdCR θθ

θ∆=∆+

∆0

011 . 15

4. Now differentiate both sides of Eq.15 with respect to t,

dtd

dtd

dtdCR jθθθ ∆

=∆

+∆ 0

20

2

11 . 16

Substitute Eqs.13 and 15 into 16, and let τ 1 = R1C1, τ 2 = R2C2,

idtd

dtd

θθθ

ττθ

ττ ∆=∆+∆

++∆

00

2120

2

21 )( . 17

It is a second order system.

4

Page 5: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

Figure 4. Blending system and Control Method 1, measure x and adjust w2 Example 8 The pneumatic control valve

Figure 5. The schematic diagram of a pneumatic control valve

p2

p1

q

Mass balance of compress air (signal),

dt

dpCFFi2

0 =− 18

where C is the capacitor, p2 is the pressure in the diaphragm chamber, Fi, F0, are the in and out compress air flow rates.

RppFi

21 −=Since the diaphragm chamber is sealed, F0 = 0, , R is the resistance of the

compress air line, therefore,

5

Page 6: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

122 ppdpRC =+ 19

and dt

)()( 1012

02 pppp ∆+=∆+ 20 )( 2

02

dtppdRC +

∆+

21 when there is no action,

. Let Tv = RC,

01

02 pp =

12 pp ∆=∆+ 22 dt

Tv

23

2pd∆

Assume the effective area of the diaphragm is A0, and let cs be the rigidity coefficient of the spring, according the Hooke's law,

A0∆p2 = cs∆l where ∆l is the displacement of the diaphragm caused by the force acted on by p2. Substitute into Eq.22,

0 pA

lldT ∆=∆+∆ 24

d ragm ∆l,

1cdt sv

Assume a linear relationship between the change of the fluid flow rate ∆q and the isplacement of the diaph

∆q = K∆l 25 Substitute Eq.25 into 24,

0 pKA

qqdT ∆=∆+∆

27

26 1cdt sv

or,

1pKqdt

qdT vv ∆=∆+∆

n of the pneumatic control valve and,

re whe

KcA

Ks

v0=

der system. onstant of the pneumatic control valve is much

is the gai

RC is the time constant of the pneumatic control valve. This is a first or

If the time c smaller than the time

28 It is

em

Tv =

constant of the process it is controlling, Tv→0, ∆q = Kv ∆p1.

a proportional system. Transfer-Function Representation and time domain response of Control-SystElement 1. The general form of the first order element,

(tdyτ 29

Its transfer function,

)()() tKxtydt

=+

6

Page 7: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

)(( =KsYG

1)()

+=

ssXs

τ

s+1

30

Step input x(t) = MU(t),

MsKsXsGsY ⋅== )()()(

τ

W

31

+= −

τ ssty

1)( 1L

−=

−τt

eKMMK 1

33

32

hen M =1 (unit step input),

632.01)( =

−=

=

τ

τ

t

t

eKty .

Figure 6. Step response of a first order system 2. The general form of a second order element,

3)()()(2)(22 txtytdytyd

=++ ζττ 2 dtdt mm 4

ransfer function, T

1)()( ==sYsG 35

12)( 22 ++ sssX mm ζττ

200

20

ωζωω

++ ss 2 2= 36

where mτ

ω 10 = is the undamped natural frequency and ζ is the damping ratio of the

system. Given a step input x(t) = MU(t),

7

Page 8: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

MsXY ⋅=1)(( 22 37

ssssGs

++=

1 2)()

ζττ

W later chapters.

++= −

ssty

2)( 22

1

ζττL

sM

11 38

e will discuss this system in great detail in

Figure 7. Step response of a second order system 3. The general form of the proportional element,

39 y(t) = Kx(t). Its transfer function is,

sY )( KsG ==)(

s

sX )(

40

iven a step input x(t) = MU(t), GM K

nitude.

G(s)X(s) Y(s) == 41

)()( 1 tKMUMKty == −Ls

42

It is a step with KM as its mag 4. The general form of the integral element,

)()( tKxtdyi =τ 43

dt

8

Page 9: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

Its transfer function is,

KsYG =)((

sXs =

)()

ssiτ

siτ 44

Given a step input x(t) = MU(t), MK G(s)X(s) Y(s) ==

.

45

tKMKMty == −2

1)( L s ii ττ

5 ferential element,

46

It is a ramp at the slop of KM/τ i . The general form of the dif

tdyty )()( τ=dtd 47

s transfer function is, It

ssYsG τ=)()(

sX d=)(

s dd

48

Given a step input x(t) = MU(t),

MMs G(s)X(s) Y(s) ττ === 49

50

6. The general form of delay element

[ ] )()( 1 tMMty δττ == −L

51

dd

It is a impulse.

)()( τ−= txty

G x(t) = MU(t),

tion is, Its transfer func

esX

sG ==)(

)( ssY τ−)(

s

52

iven a step input

MesXsGsY sτ−== )()()(

It τ.

53

()( −== tM

sety L )1 ττ −− Ms

Development of Empirical Dynamic Models from Step Response Data

54

is a step after a time delay of

me

ries of first order systems, we can get an infinite number of higher order systems. w tank of time constant τ. If we introduce a step

crease in the inlet temperature or concentration, we will (by the well-mixed assumption)

Higher order system and dead ti Connecting many tanks makes the system correspondingly higher order. Thus by a seSuppose we have a well-mixed overfloin

9

Page 10: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

immediately detect a rise in the outlet stream – the familiar first-order lag response as the Figure 6. If we have instead two tanks in series, each half the volume of the orwe will detect a second-order, sigmoid response at the outlet as in the Figure 7. If we continue to increase the number of tanks in the series, always maintaining the total volume, we observe a slower initial response with a faster rise around the time constant. This behavior is shown in Figure 9.

in iginal,

Figure 8. Well mixed tanks in series.

Figure 9. Time response of well mixed tanks in series.

If taken to the limit of an infinite number of tanks, we finally obtain a pure delay, in which the full step disturbance is not seen at the outlet until time τ has passed. This is the

ho has waited at the faucet for e hot water to arrive. That lead us to consider a simple model of the

first-order-plus-time-delay.

dead time, or transmission delay; it is familiar to anyone wth

10

Page 11: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

Approximate using first-order-plus-time-delay model The transfer function of the first-order-plus-time-delay,

)( =− sKesG

θ

55

1 +sτtep response, S

−=−

τeKMty 1)(

−θt

56

θ

Figure 10. The time response of first-order-plus-time-delay system

For a first-order-plus-time-delay order model, we note the following characteristics (step response) a. The response attains 63.2% of its final response at one time constant (t = + θ ).

intersects the 100% line at (t = τ +θ ). [see Fig. 10]

c. e is essentially complete at t = 5τ. In other words, the settling time is

graphical techniques for determining model

Method 1. Slope-intercept method: First, a slope is drawn through the inflection point

f the process reaction curve in Figure 10. Then t and θ are determined by inspection. Alte

the settling time, τ s. Then set τ = τ s / 5.

two times, t1 and t2, be estimated from a step response curve, corresponding to the 35.3%

τ b. The line drawn tangent to the response at maximum slope (t = θ)

K is found from the steady state response for an input change magnitude M. The step responst = 5τ. s

There are two generally accepted

parameters τ, θ, and K.

o

rnatively, τ can be found from the time that the normalized response is 63.2% complete or from determination of Method 2. Sundaresan and Krishnaswamy’s Method: This method avoids use of the point of inflection construction entirely to estimate the time delay. They proposed that

11

Page 12: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

and 85.3% response times, respectively. The time delay and time constant are theestimated from the following equations,

n

21 29.03.1 tt −=θ 57

( )1267.0 tt −=τ 58

These values of θ and τ approximately minimize the difference between the measured

sponse and the model, based on a correlation for many data sets.

re

Example F-16XL Roll Mode Time Constant

In the early 1980s, two F-16 airplanes were modified to extend the fuselage length and incorporate a large area delta wing planform. These two airplanes, designated the

-16XL, were designed by the General Dynamics Corporation (now Lockheed Martin actical Aircraft Systems) (Fort Worth, Texas) and were prototypes for a derivative

ited States Air Force.

f he

FTfighter evaluation program conducted by the Un

In this method shown in figure 11, t1 is defined as the time when the lateral stick input reaches 50 percent of maximum value. A line representing the maximum slope othe roll rate is plotted; the time at which this line intersects the x-axis is denoted as t2. Troll rate reaches 63 percent of its maximum value at t3. The τeff is the time difference between t2 and t1. The τr is the difference between t2 and t3.

12

Page 13: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

A sample comparison is shown as figure 12. Although the flight data shows a higher orde r roll rate response, the model accurately reproduces the initial delay and roll rateonset.

Figure 11. Time history method for τeff and τr calculation.

Figure 12. Sample result of comparison between model and F-16XL flight data.

13

Page 14: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

Estimating Second-order Model Parameters Using Graphical Analysis

In general, a better approximation to an experimental step response can be obtained by fitting a second-order model to the data. Figure 13 shows the range of shapes that can occur for the step response model,

)( )( 11)(

21 ++=

ssKsG

ττ 59

Figure 13 includes two limiting cases: τ 1/τ 2 = 0, where the system becomes first order, and, τ 1/τ 2 = 1, the critically damped case. The larger of the two time constants, τ 1, is called the dominant time constant. The assumed model is,

)( )( 11)(

21 ++=

ssKesG

s

ττ

θ

60

Parameters are estimated using so called Smith’s Method, 1. Determine t20 and t60 from the step response. 2. Find ζ and t60/τ from Figure 14. 3. Find t60/τ from Figure 14 and then calculate τ (since t60 is known).

Figure 13. Step response for several overdamped second-order systems.

14

Page 15: Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) · 2017-05-15 · Lecture Notes II Example 6 Continuous Stirred-Tank Reactor (CSTR) Chemical reactors together with

15

. Relationship of ζ, τ, t20, and t60 in Smith’s method. Figure 14