CHE412 Process Dynamics and Control BSc (Engg)

Download Report

Transcript CHE412 Process Dynamics and Control BSc (Engg)

CHE412 Process

Dynamics

and Control

BSc (Engg) Chemical Engineering (7 th Semester) Week 3 (contd.) Mathematical Modeling (Contd.)

Luyben (1996) Chapter 3

Stephanopoulos (1984) Chapter 5 Dr Waheed Afzal Associate Professor of Chemical Engineering Institute of Chemical Engineering and Technology University of the Punjab, Lahore [email protected]

1

Modeling CSTRs in Series

constant holdup, isothermal

Basis and Assumptions

A β†’ B (first order reaction) Compositions are molar and flow rates are volumetric Constant V, ρ, T

Overall Mass Balance

𝑑ρ𝑉 𝑑𝑑

= ρ𝐹

0

βˆ’ ρ𝐹

1

= 0

i.e. at constant V, F So overall mass balance is not required! 3 =F 2 =F 1 =F 0 ≑ F

F 0

Luyben (1996) V 1 K 1 T 1

F 1 C A1 V 2 K 2 T 2 F 2 C A2 V 3 K 3 T 3 F 3 C A3

2

Modeling CSTRs in Series constant holdup, isothermal

Component A mass balance on each tank

(A is chosen arbitrarily) 𝑑𝐢 𝐴1 𝑑𝑑 𝑑𝐢 𝐴2 𝑑𝑑 𝑑𝐢 𝐴3 𝑑𝑑 = = = 𝐹 𝑉 1 𝐹 𝑉 2 𝐹 𝑉 3 𝐢 𝐴0 βˆ’ 𝐢 𝐴1 𝐢 𝐴2 𝐢 𝐴1 βˆ’ 𝐢𝐴 2 βˆ’ 𝐢𝐴 3 βˆ’ π‘˜ 1 𝐢 𝐴1 βˆ’ π‘˜ 2 𝐢 𝐴2 βˆ’ π‘˜ 3 𝐢 𝐴3

k n

depends upon temperature k

n = k 0 e -E/RTn where n = 1, 2, 3 Apply degree of freedom analysis!

Parameters/ Constants (to be known): V

1 , V 2 , V 3 , k 1 , k 2 , k 3

Specified variables (or forcing functions): F and C

A0

constant) . Unknown variables are

3

(C A1 , C A2 , C A3 (known but not ) for

3

ODEs Simplify the above ODEs for constant V, T and putting Ο„ = V/F 3

Modeling CSTRs in Series constant holdup, isothermal

If throughput F, temperature T and holdup V are same in all tanks, then for Ο„ = V/F (note its dimension is time)

𝑑𝐢

𝐴1

𝑑𝑑 + 𝐢

𝐴1

π‘˜ + 1

Ο„

= 1

Ο„

𝐢

𝐴0

𝑑𝐢

𝐴2

𝑑𝑑 + 𝐢𝐴

2

𝑑𝐢 𝑑𝑑

𝐴3

+ 𝐢𝐴

3

π‘˜ + π‘˜ + 1

Ο„

1

Ο„

= = 1

Ο„

𝐢

𝐴1

1

Ο„

𝐢

𝐴2 In this way, only forcing function (variable to be specified) is C

A0

. 4

Mass Balances (Reactor 1)

𝑑𝑉 𝑑𝑑 1 = 𝐹 0 βˆ’ 𝐹 1 𝑑(𝑉 1 𝐢 𝐴1 ) 𝑑𝑑 = 𝐹 0 𝐢 𝐴0

Modeling CSTRs in Series

Variable Holdups, n th order βˆ’ 𝐹 1 𝐢 𝐴1 βˆ’π‘‰ 1 π‘˜ 1 (𝐢𝐴 1)

n

Changes from previous case: V of reactors (and F) varies with time, reaction is n th order Parameters to be known:

Mass Balances (Reactor 2)

𝑑𝑉 𝑑𝑑 2 = 𝐹 1 βˆ’ 𝐹 2 𝑑(𝑉 2 𝐢 𝐴2 ) 𝑑𝑑 = 𝐹 1 𝐢 𝐴1 βˆ’ 𝐹 2 𝐢 𝐴2 βˆ’π‘‰ 2 π‘˜ 2 (𝐢 𝐴2 )

n

k 1 , k 2 , k 3 , n

Disturbances to be specified:

C A0

, F

0

Unknown variables:

C A1 , C A2 , C A3 , V 1 , V 2 , V 3 , F 1 , F 2 , F 3

Mass Balances (Reactor 1)

𝑑𝑉 𝑑𝑑 3 = 𝐹 2 βˆ’ 𝐹 3 𝑑(𝑉 3 𝐢 𝐴3 ) 𝑑𝑑 = 𝐹 2 𝐢 𝐴2 βˆ’ 𝐹 3 𝐢 𝐴3 βˆ’π‘‰ 3 π‘˜ 3 (𝐢 𝐴3 )

n

V 1 V 2

CV

(or h

1

) (or h

2

)

MV

F 1 F 2

Include

Controller eqns

F 1 F 2 = f(V 1 ) = f(V 2 ) V 3

(or h

3

)

F 3 F 3 = f(V 3 )

5

Modeling a Mixing Process

Basis and Assumptions

F (volumetric), C

A

(molar); Well Stirred Feed (1, 2) consists of components A and B

Stephanopoulos (1984)

Enthalpy of mixing is significant Process includes heating/ cooling

H 2

ρ is constant

H 1

Overall Mass Balance

𝑑(πœŒπ΄β„Ž) 𝑑𝑑 𝑑(β„Ž) = 𝜌 1 𝐹 1 + 𝜌 2 𝐹 2 βˆ’ 𝜌 3 𝐹 3 𝐴 𝑑𝑑 = (𝐹 1 + 𝐹 2 ) βˆ’ 𝐹 3

Component Mass Balance

𝑑(𝑐𝐴 𝑉) 𝐴 𝑑𝑑 = (𝐹 1 𝑐 𝐴1 + 𝐹 2 𝑐 𝐴2 ) βˆ’ 𝐹 3 𝑐 𝐴 3

H 3

Q in or out

6

Modeling a Mixing Process

Conservation of energy

H 1

(recall first law of thermodynamics) βˆ†πΈ = βˆ†π‘ˆ + βˆ†π‘˜π‘’ + βˆ†π‘π‘’ Β± 𝑄 + π‘Š 𝑠𝑀 βˆ’ π‘βˆ†π‘£ βˆ†π‘ˆ β‰… βˆ†π» (for constant ρ/ liquid systems π‘βˆ†π‘£ is zero)

H 2

Energy Balance

H 3

enthalpy balance (h is energy/mass) 𝑑(πœŒπ‘‰π’‰ πŸ‘ ) 𝑑𝑑 = 𝜌(𝐹 1 𝒉 𝟏 + 𝐹 2 𝒉 𝟐 ) βˆ’ 𝜌𝐹 3 𝒉 πŸ‘ Β± 𝑄 We were familiar with energy π‘šπΆ 𝑃 βˆ†π‘‡ ; how to characterize h (specific enthalpy) into familiar quantities (T, C

A

, parameters, …) H is enthalpy, h is specific enthalpy; C P heat capacity ….

is heat capacity, c P is specific 7

Modeling a Mixing Process

𝑑(πœŒπ‘‰π’‰ 𝑑𝑑 πŸ‘ ) = 𝜌(𝐹 1 𝒉 𝟏 + 𝐹 2 𝒉 𝟐 Since enthalpy depends upon temperature ) βˆ’ 𝜌𝐹 3 𝒉 πŸ‘ so lets replace h with h(T) Β± 𝑄 β„Ž 1 β„Ž 2 𝑇 𝑇 1 2 = 𝒉 𝟏 𝑇 0 + 𝑐𝑃 1 = 𝒉 𝟐 (𝑇 0 ) + 𝑐 𝑃2 𝑇 1 βˆ’ 𝑇 𝑇 2 βˆ’ 𝑇 0 0 β„Ž 3 𝑇 3 = 𝒉 πŸ‘ (𝑇 0 ) + 𝑐 𝑃3 𝑇 3 βˆ’ 𝑇 0 enthalpy associated with Ξ”T was easy to obtain, how to obtain

h(T 0 )

πœŒπ’‰ 𝟏 𝑇 0 = 𝑐𝐴 1 𝐴 + 𝑐𝐡 1 𝐡 + βˆ† (𝑇 0 ) πœŒπ’‰ πœŒπ’‰ 𝟐 πŸ‘ 𝑇 𝑇 0 0 = 𝑐𝐴 2 𝐴 = 𝑐 𝐴3 𝐴 + 𝑐𝐡 2 + 𝑐𝐡 3 𝐡 𝐡 + βˆ† (𝑇 0 + βˆ† (𝑇 0 ) ) 𝐴 and 𝐡 are molar enthalpy of component A and B and solution for stream

i

at

T 0

. βˆ† is heat of Put values of

h

in overall energy balance 8

Modeling a Mixing Process

Re-arranging (and using component mass balance equations) πœŒπ‘π‘ƒ 3 𝑉 𝑑𝑇 3 𝑑𝑑 = 𝑐𝐴 1 𝐹 1 βˆ† 𝑠1 βˆ’ βˆ† 𝐻 𝑠3 + 𝑐 𝐴2 +𝜌𝐹 1 𝑐 𝑝1 𝜌𝐹 2 [𝑐𝑝 2 𝑇 1 βˆ’ 𝑇 𝑇 2 βˆ’ 𝑇 0 0 βˆ’ 𝑐𝑝 βˆ’ 𝑐𝑝 3 3 𝑇 3 βˆ’ 𝑇 𝑇 3 βˆ’ 𝑇 0 0 + ] Β± 𝑄 𝐹 2 βˆ† 𝑠2 βˆ’ βˆ† 𝑠3 If we assume c P1 πœŒπ‘π‘ 𝑉 𝑑𝑇 3 𝑑𝑑 = 𝑐𝐴 1 = c 𝐹 1 P2 = c βˆ† P3 = c 𝑠1 βˆ’ βˆ† 𝐻 P 𝑠3 + 𝑐 𝐴2 𝐹 2 βˆ† 𝑠2 βˆ’ βˆ† 𝑠3 +π‘π‘πœŒπΉ 1 (𝑇 1 βˆ’ 𝑇 3 ) + c p 𝜌𝐹 2 (𝑇 2 βˆ’ 𝑇 3 ) Β± 𝑄   If heats of solutions are strong functions of concentrations then βˆ† 𝑠1 βˆ’ βˆ† 𝐻 𝑠3 and βˆ† 𝑠2 βˆ’ βˆ† 𝐻 𝑠3 are significant Mixing process is generally kept isothermal (how?) 9

Tips For Assessment (Exam)

Introduction + Modeling (week 1-3) In exam, you may be asked short descriptive questions to check your understanding of process control and to prepare a mathematical model for a chemical process or processes and to make the system exactly specified (i.e. N f = 0) 1. Consult your class notes, board proofs, discussions 2. Stephanopoulos (1984) chapters 1-5, examples and end-chapter problems 3. Luyben (1996) chapter 3 page 40 to 74. Practice examples and end-chapter problems for chapter 3.

10

Week 3 Weekly Take-Home Assignment

1. Follow all the example modeling exercises in Luyben (1996) chapter 3 page 40 to 74. Practice these example processes.

2. Solve at least 10 end-chapter problems from Luyben (1996) chapter 3

(Compulsory)

Submit before Friday (Feb 7)

Curriculum and handouts are posted at: http://faculty.waheed-afzal1.pu.edu.pk/

11