Last change
on this file since 42 was
1,
checked in by Rafael de Pelegrini Soares, 17 years ago
|
Initial import of the library
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
848 bytes
|
Rev | Line | |
---|
[1] | 1 | #*------------------------------------------------------------------- |
---|
| 2 | * Model of a pump |
---|
| 3 | *-------------------------------------------------------------------- |
---|
| 4 | * |
---|
| 5 | * Streams: |
---|
| 6 | * * an inlet stream |
---|
| 7 | * * an outlet stream |
---|
| 8 | * |
---|
| 9 | * Specify: |
---|
| 10 | * * the inlet stream |
---|
| 11 | * * the pump press delta |
---|
| 12 | * |
---|
| 13 | *---------------------------------------------------------------------- |
---|
| 14 | * Author: Paula B. Staudt |
---|
| 15 | * $Id: pump.mso 1 2006-06-20 17:33:53Z rafael $ |
---|
| 16 | *--------------------------------------------------------------------*# |
---|
| 17 | using "streams"; |
---|
| 18 | |
---|
| 19 | Model pump |
---|
| 20 | PARAMETERS |
---|
| 21 | ext PP as CalcObject; |
---|
| 22 | ext NComp as Integer; |
---|
| 23 | |
---|
| 24 | VARIABLES |
---|
| 25 | in Inlet as stream; |
---|
| 26 | out Outlet as stream_therm; |
---|
| 27 | |
---|
| 28 | dP as press_delta (Brief="Pump head"); |
---|
| 29 | |
---|
| 30 | EQUATIONS |
---|
| 31 | "Molar Balance" |
---|
| 32 | Inlet.F = Outlet.F; |
---|
| 33 | Inlet.z = Outlet.z; |
---|
| 34 | |
---|
| 35 | "Pump head" |
---|
| 36 | Outlet.P = Inlet.P + dP; |
---|
| 37 | |
---|
| 38 | "Temperature" |
---|
| 39 | Outlet.T = Inlet.T; |
---|
| 40 | |
---|
| 41 | "Vapourisation Fraction" |
---|
| 42 | Outlet.v = Inlet.v; |
---|
| 43 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.