25.12.2012 Views

Design and Implementation of Object-Oriented ... - Automatic Control

Design and Implementation of Object-Oriented ... - Automatic Control

Design and Implementation of Object-Oriented ... - Automatic Control

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.11 Moving Boundary Models<br />

Integrating the second term <strong>and</strong> differentiating the resulting equation<br />

gives for a constant area pipe:<br />

A d<br />

L1<br />

ρdz − Aρ(L1)<br />

dt 0<br />

dL1<br />

dt + ˙m12 − ˙min = 0.<br />

The density at the interface ρ(L1) is equal to the saturated liquid density<br />

ρl. Pressure <strong>and</strong> mean enthalpy are chosen as the states in the subcooled<br />

region. The mean enthalpy is defined as<br />

¯h1 = 1<br />

2 (hin + hl)<br />

where hin is known from the boundary conditions <strong>and</strong> hl is a function <strong>of</strong><br />

the pressure. The mean density <strong>and</strong> temperature in the subcooled region<br />

is approximated by<br />

¯ρ1 = 1<br />

L1<br />

L1<br />

0<br />

ρdz ρ(p, ¯ h1)<br />

¯ T1 T(p, ¯ h1).<br />

Using the above expressions, the mass balance for the subcooled region<br />

can be written as<br />

dL1<br />

A ¯ρ1 − ρl + L1<br />

dt<br />

The term d ¯<br />

ρ1/dt is calculated using the chain rule:<br />

d<br />

¯ρ1 ¯ρ1 dp ¯ρ1<br />

= +<br />

dt p h dt ¯ <br />

d<br />

<br />

h1 p<br />

¯ h1<br />

dt<br />

<br />

<br />

¯ρ1 <br />

= +<br />

p h<br />

1 ¯ρ1<br />

2 ¯ <br />

dhl dp<br />

<br />

h1 p dp dt<br />

d<br />

¯ρ1<br />

= ˙min − ˙m12. (4.53)<br />

dt<br />

+ 1<br />

2<br />

¯ h1<br />

<br />

¯ρ1 dhin<br />

<br />

p dt<br />

The term dhin/dt is determined from the boundary conditions to the<br />

evaporator model. Inserting this expression into the mass balance (4.53),<br />

gives the final version <strong>of</strong> the mass balance for the subcooled region<br />

<br />

A ( ¯ρ1 − ρl) dL1<br />

<br />

<br />

¯ρ1 <br />

+ L1<br />

dt p<br />

+ 1<br />

2 L1<br />

¯ρ1<br />

¯ <br />

<br />

h1<br />

+<br />

h 1 ¯ρ1<br />

2 ¯ <br />

dhl dp<br />

<br />

h1 p dp dt<br />

<br />

= ˙min − ˙m12.<br />

p<br />

dhin<br />

dt<br />

(4.54)<br />

109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!