1 | #*------------------------------------------------------------------- |
---|
2 | * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. |
---|
3 | * |
---|
4 | * This LIBRARY is free software; you can distribute it and/or modify |
---|
5 | * it under the therms of the ALSOC FREE LICENSE as available at |
---|
6 | * http://www.enq.ufrgs.br/alsoc. |
---|
7 | * |
---|
8 | * EMSO Copyright (C) 2004 - 2007 ALSOC, original code |
---|
9 | * from http://www.rps.eng.br Copyright (C) 2002-2004. |
---|
10 | * All rights reserved. |
---|
11 | * |
---|
12 | * EMSO is distributed under the therms of the ALSOC LICENSE as |
---|
13 | * available at http://www.enq.ufrgs.br/alsoc. |
---|
14 | * |
---|
15 | *-------------------------------------------------------------------- |
---|
16 | * Sample file for model centrifugal_pump and pump (simplified) |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * |
---|
19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
20 | * |
---|
21 | *---------------------------------------------------------------------- |
---|
22 | * Author: Estefane S. Horn, Paula B. Staudt |
---|
23 | * $Id: sample_pump.mso 372 2007-09-21 22:17:36Z arge $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | using "pressure_changers/pump"; |
---|
26 | |
---|
27 | FlowSheet Pump_P1 |
---|
28 | |
---|
29 | DEVICES |
---|
30 | S1 as source; |
---|
31 | P1 as centrifugal_pump; |
---|
32 | |
---|
33 | CONNECTIONS |
---|
34 | S1.Outlet to P1.Inlet; |
---|
35 | |
---|
36 | PARAMETERS |
---|
37 | PP as Plugin (Brief="External Physical Properties", |
---|
38 | Type="PP", |
---|
39 | Components = ["water", "benzene"], |
---|
40 | LiquidModel = "PR", |
---|
41 | VapourModel = "PR" |
---|
42 | ); |
---|
43 | Mw as positive (Brief = "Molar Mass", Unit = 'kg/kmol'); |
---|
44 | NComp as Integer (Default= 1); |
---|
45 | |
---|
46 | SET |
---|
47 | NComp = PP.NumberOfComponents; |
---|
48 | P1.N = 1000 * 'rpm'; |
---|
49 | P1.Lev = 0 * 'm'; |
---|
50 | P1.Meff = 0.95; |
---|
51 | P1.Eff = 0.72; |
---|
52 | P1.Beta = 425e-6 * '1/K'; |
---|
53 | |
---|
54 | SPECIFY |
---|
55 | S1.Outlet.F = 1000 * 'kmol/h'; |
---|
56 | S1.Outlet.P = 10 * 'atm'; |
---|
57 | S1.Outlet.T = 298 * 'K' ; |
---|
58 | S1.Outlet.z = [1,0]; |
---|
59 | |
---|
60 | P1.Pdrop = -8 * 'kPa'; |
---|
61 | #P1.Outlet.P = 2 * 'atm'; |
---|
62 | #P1.BPower = 1 * 'kW'; |
---|
63 | |
---|
64 | end |
---|
65 | |
---|
66 | FlowSheet pump_Test |
---|
67 | PARAMETERS |
---|
68 | PP as Plugin (Brief="External Physical Properties", |
---|
69 | Type="PP", |
---|
70 | Components = ["water", "benzene"], |
---|
71 | LiquidModel = "PR", |
---|
72 | VapourModel = "PR" |
---|
73 | ); |
---|
74 | NComp as Integer; |
---|
75 | |
---|
76 | SET |
---|
77 | NComp = PP.NumberOfComponents; |
---|
78 | |
---|
79 | DEVICES |
---|
80 | p1 as pump; |
---|
81 | s1 as source; |
---|
82 | |
---|
83 | CONNECTIONS |
---|
84 | s1.Outlet to p1.Inlet; |
---|
85 | |
---|
86 | SPECIFY |
---|
87 | s1.Outlet.F = 826 * 'kmol/h'; |
---|
88 | s1.Outlet.P = 549 * 'kPa'; |
---|
89 | s1.Outlet.T = 313 * 'K'; |
---|
90 | s1.Outlet.z = 1/NComp; |
---|
91 | #s1.Outlet.v = 0.68; |
---|
92 | |
---|
93 | p1.dP = 90 * 'kPa'; |
---|
94 | |
---|
95 | OPTIONS |
---|
96 | Dynamic = false; |
---|
97 | end |
---|