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 631 2008-09-23 20:23:00Z bicca $ |
---|
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 | S1.ValidPhases = "Vapour-Liquid"; |
---|
55 | S1.CompositionBasis = "Molar"; |
---|
56 | |
---|
57 | SPECIFY |
---|
58 | S1.F = 1000 * 'kmol/h'; |
---|
59 | S1.P = 10 * 'atm'; |
---|
60 | S1.T = 298 * 'K' ; |
---|
61 | S1.Composition = [1,0]; |
---|
62 | |
---|
63 | P1.Pdrop = -8 * 'kPa'; |
---|
64 | #P1.Outlet.P = 2 * 'atm'; |
---|
65 | #P1.BPower = 1 * 'kW'; |
---|
66 | |
---|
67 | end |
---|
68 | |
---|
69 | FlowSheet pump_Test |
---|
70 | PARAMETERS |
---|
71 | PP as Plugin (Brief="External Physical Properties", |
---|
72 | Type="PP", |
---|
73 | Components = ["water", "benzene"], |
---|
74 | LiquidModel = "PR", |
---|
75 | VapourModel = "PR" |
---|
76 | ); |
---|
77 | NComp as Integer; |
---|
78 | |
---|
79 | DEVICES |
---|
80 | p1 as pump; |
---|
81 | s1 as source; |
---|
82 | |
---|
83 | SET |
---|
84 | NComp = PP.NumberOfComponents; |
---|
85 | |
---|
86 | s1.ValidPhases = "Vapour-Liquid"; |
---|
87 | s1.CompositionBasis = "Molar"; |
---|
88 | |
---|
89 | |
---|
90 | |
---|
91 | CONNECTIONS |
---|
92 | s1.Outlet to p1.Inlet; |
---|
93 | |
---|
94 | SPECIFY |
---|
95 | s1.F = 826 * 'kmol/h'; |
---|
96 | s1.P = 549 * 'kPa'; |
---|
97 | s1.T = 313 * 'K'; |
---|
98 | s1.Composition = 1/NComp; |
---|
99 | #s1.Outlet.v = 0.68; |
---|
100 | |
---|
101 | p1.dP = 90 * 'kPa'; |
---|
102 | |
---|
103 | OPTIONS |
---|
104 | Dynamic = false; |
---|
105 | end |
---|