27.11.2015 Views

Simscape Reference

Pipe (TL)

Pipe (TL)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Constant Volume Chamber (2P)<br />

• ṁA is the mass flow rate into the chamber through port A.<br />

Accompanying a mass flow rate into the chamber is a change in fluid density, associated<br />

with a change in fluid pressure, internal energy, or both. The rate of change of the fluid<br />

mass in the chamber follows from the alternate mass conservation equation<br />

where:<br />

ÈÊ<br />

∂r<br />

ˆ<br />

Á<br />

Ë ∂ ¯<br />

˜ + Ê<br />

Á<br />

∂ r ˆ ˘<br />

Í ṗ Ë ∂ ˜ u̇ ˙ V = ṁ +<br />

ÎÍ<br />

p I<br />

u u I A M .<br />

¯ p ˚˙<br />

•<br />

Ê ∂r<br />

ˆ<br />

Á<br />

Ë ∂p ˜<br />

¯ u is the partial derivative of density with respect to pressure at constant specific<br />

internal energy.<br />

•<br />

Ê ∂r<br />

ˆ<br />

Á ˜<br />

Ë ∂u¯<br />

p<br />

is the partial derivative of density with respect to specific internal energy at<br />

constant pressure.<br />

• V is the chamber volume.<br />

• ∊ M is a correction term.<br />

The density partial derivatives are computed by the finite difference method using the<br />

specific volume lookup tables specified in the Two-Phase Fluid Properties (2P) block. The<br />

block linearly interpolates the computed values to obtain the partial derivatives in the<br />

entire pressure-specific internal energy continuum.<br />

To prevent numerical discontinuities at the phase-transition boundaries, the block<br />

blends the density partial derivatives of the various domains using a cubic polynomial<br />

function. At a vapor quality of 0–0.1, this function blends the partial derivatives of the<br />

subcooled liquid and two-phase mixture domains. At a vapor quality of 0.9–1, it blends<br />

the derivatives of the two-phase mixture and superheated vapor domains.<br />

The smoothing applied to the density partial derivatives introduce numerical errors into<br />

the alternate mass conservation equation. To correct for these errors, the block adds the<br />

correction term<br />

M<br />

=<br />

M - V v I<br />

,<br />

t<br />

1-45

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

Saved successfully!

Ooh no, something went wrong!