mathematical modeling of chemical processes · performance specifications of a second-order system...

51
Mathematical Modeling of Chemical Processes Part II

Upload: others

Post on 27-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Mathematical Modeling of

Chemical Processes

Part II

Page 2: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Continuous Stirred-Tank Reactor

(CSTR)

Page 3: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Continuous Stirred-Tank Reactor

(CSTR)

Assumptions

– neglected heat capacity of inner walls of

the reactor, constant density and specific

heat capacity of liquid,

– constant reactor volume, constant overall

heat transfer coefficient, and

– constant and equal input and output

volumetric flow rates.

– the reactor is well-mixed.

Page 4: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Control loop for the Stirred

Heating Tank

Page 5: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Mathematical model of a

thermocouple

q0

qj

qiqi

q0

a) bare thermocouple b) thermocouple with protect jacket

Page 6: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Blending system Control Method

Page 7: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Modeling the pneumatic control

valve

p1

p2

q

Page 8: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Element Time Responses

• first order element

– Transfer function

)()()(

tKxtydt

tdy

1)(

)()(

s

K

sX

sYsG

Page 9: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Element Time Responses

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

– When M =1 (unit step input),

s

M

s

KsXsGsY

1)()()(

t

eKMs

M

s

Kty 1

1)(

1L

632.01)(

t

t

eKty

Page 10: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Element Time Responses

Page 11: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Element Time Responses

• Second order element

)()()(

2)(

2

22 txty

dt

tdy

dt

tydmm

12

1

)(

)()(

22

sssX

sYsG

mm

2

00

2

2

0

2

ss

Page 12: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second order element

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

• Use notations in Chapter 4, and let M=1

(unit step)

s

M

sssXsGsY

2

00

2

2

0

2)()()(

22

2

2)(

nn

n

ssssC

Page 13: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second order element

• Factoring the denominator

• Case A damping ratio equals unity = 1

11)(

22

2

nnnn

n

ssssC

2

2

)(n

n

sssC

Page 14: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second order element

• Partial fraction expansion

• The time domain responses of output

nns

K

s

K

s

KsC

3

2

21)(

nn

n

sss

112

tt

nnn etetc

1)(

Page 15: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second order element

• Case B damping ratio greater than

unity > 1

11)(

2

3

2

21

nnnn s

K

s

K

s

KsC

1

112

1

1121)(

2

122

2

122

nnnn ssssC

Page 16: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second order element

• The time domain responses of output

• Case C damping ratio less than unity < 1

Let

t

t

n

n

e

etc

1122

1122

2

2

112

1121)(

sin1 thereforeand ,cos2

Page 17: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second order element

• Partial fraction expansion

• The time domain responses of output

12

12

1sin2

1sin2

1)(

nn

j

nn

j

jsj

e

jsj

e

ssC

te

tc n

tn

2

21sin

11)(

Page 18: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Step responses of a second

order element over damped ≥1

Page 19: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Step responses of a second order

element under damped <1

Page 20: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second order underdamped

response specifications

Page 21: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Performance specifications of a

second-order system

• Let

• We have

• therefore

0)(

dt

tdc

2 , ,012

tn

2

2max

1exp1

sin1

1)(

tnetc

Page 22: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Performance specifications of a

second-order system

• Peak time Tp, the time required to reach

the first peak

• Percent overshoot, %OS is the amount

that the waveform overshoots the final

steady-state

21

n

pT

21

exp%

OS

Page 23: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Performance specifications of a

second-order system

• Settling time Ts , the time required for damped oscillations to reach and stay within±2% of the steady-state (final) value

• Rise time Tr is the time required for the waveform to go from 0.1 to 0.9 of the final value

n

sT

4

Page 24: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Location of the Roots in the

s-plane and the Transient

Response

s-plane

= 0

0 < < 1

≥ 1

s

s < 0s > 0

Page 25: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Element Time Response

• Proportional element

It is a step with KM as its magnitude

• Integral element

It is a ramp at the slop of KM/i

• Differential element

It is a impulse

• Delay element

It is a step after a time delay of

Page 26: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Development of Empirical

Dynamic Models from Step

Response Data

Higher order system and dead time

Page 27: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Higher order system and dead

time

Page 28: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Approximate using first-order-

plus-time-delay model

• The response attains 63.2% of its final response at one time constant (t = q )

• The line drawn tangent to the response at maximum slope (t = q) intersects the 100% line at (t = q ).

• K is found from the steady state response for an input change magnitude M. The step response is essentially complete at t = 5.

Page 29: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Approximate using first-order-

plus-time-delay model

q

Inflection point

Page 30: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Time Constant

Inflection point

Page 31: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Time Constant

Page 32: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Sundaresan and Krishnaswamy’s

Inflection point of the process reaction

curve is too arbitrary and difficult to

determine when data is noisy

• Step 1 take 35.3% response time t1

• Step 2 take 85.3% response time t2

• Substitute into the equations

12

21

67.0

29.03.1

tt

tt

q

Page 33: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Time Constant

35.3%

85.3%

t1 t2

63.2%

Page 34: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second-order Model

In general, a better approximation to an

experimental step response can be

obtained by fitting a second-order

model to the data

The larger of the two time constants, 1, is called the dominant time constant

11)(

21

ss

KsG

Page 35: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second-order Model

• Two limiting cases:

– 1/ 2 = 0, where the system becomes first order, and,

– 1/ 2 = 1, the critically damped case ( =1)

• Determine t20 and t60 from the step response.

• Findζand t60 / from Figure 14.

• Find t60 / from Figure 14 and then calculate (since t60 is known).

Page 36: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second-order Model

t20 t60

Page 37: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Second-order Model

Page 38: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Modeling Second-order Through

Least Square Fit

• For unit step input

• Assume c(t) takes the form,

where css is the final-value of c(t)

)()(

)(

)()(

1ssC

sC

sR

sCsG

s

btat

ss eKeKctc 21)(

Page 39: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay
Page 40: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay
Page 41: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Modeling Second-order Through

Least Square Fit

• Step 1: Least square fit first term

The intercept is log K1

The slope is 0.4343a

at

ss eKctc 1)(

atK

eatKctc ss

4343.0log

loglog)(log

1

1

Page 42: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Modeling Second-order Through

Least Square Fit

• Step 2: Subtract the line fitted from the

experimental data

The intercept is log K2

The slope is 0.4343b

btKeKctc at

ss 4343.0loglog)(log 21

Page 43: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Modeling Second-order Through

Least Square Fit

• Step 3: Adjustment to have c(0) = 0,

– Let

– Now we have,

adKK

adjustment

2

1 11

adKK

adKK

2

'

2

1

'

1

btat

ss eKeKctc '

2

'

1)(

Page 44: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Time Responses Using State

Variable Method

• For non zero second order system,

• Divide s2 on both numerator and

denominator,

22

2

2)(

)(

nn

n

sssR

sC

221

22

222

22

21

)2()(

)(

ss

s

sss

s

sR

sC

nn

n

nn

n

Page 45: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Time Responses Using State

Variable Method

• Define,

• Therefore,

22121

)()(

ss

sRsE

nn

)()( 22 sEssC n

)()(2)()( 221 sEssEssRsE nn

Page 46: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

Time Responses Using State

Variable Method

The state-variable signal-flow graph,

n2ζω

2

R(s)

X2(s) X1(s)

C(s)2

nωS-1S-11

S-1 S-1

x2(t0) x1(t0)

E(s)

Page 47: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

• Example

• Laplace transform,

• then

)()(3)(4)( trtctctc

21

2

2

341

34

1

)(

)(

ss

s

sssR

sC

21 341

)()(

ss

sRsE

)(3)(4)()(

)()(21

2

sEssEssRsE

sEssC

Page 48: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay
Page 49: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay

4

3

R(s)

X2(s) X1(s)

C(s)2

nωs-1s-11

s-1 s-1

x2(0) x1(0)

E(s)

• Quiz 15 min

• Use Mason’s theory to find X1(s) and X2(s)

Page 50: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay
Page 51: Mathematical Modeling of Chemical Processes · Performance specifications of a second-order system •Settling time T s , the time required for damped oscillations to reach and stay