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 models valve_simplified and valve |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * |
---|
19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
20 | * |
---|
21 | *---------------------------------------------------------------------- |
---|
22 | * Author: Paula B. Staudt, Estefane Horn, Núbia do Carmo Ferreira |
---|
23 | * $Id: sample_valve.mso 213 2007-03-15 19:40:55Z rafael $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | |
---|
26 | using "pressure_changers/valve"; |
---|
27 | |
---|
28 | FlowSheet valve_Test_V |
---|
29 | # with vapour conditions |
---|
30 | PARAMETERS |
---|
31 | PP as Plugin(Brief="Physical Properties", |
---|
32 | Type="PP", |
---|
33 | Components = [ "isobutane", "benzene"], |
---|
34 | LiquidModel = "PR", |
---|
35 | VapourModel = "PR" |
---|
36 | ); |
---|
37 | NComp as Integer; |
---|
38 | |
---|
39 | SET |
---|
40 | NComp = PP.NumberOfComponents; |
---|
41 | |
---|
42 | DEVICES |
---|
43 | v1 as valve_simplified; |
---|
44 | s1 as source; |
---|
45 | |
---|
46 | CONNECTIONS |
---|
47 | s1.Outlet to v1.Inlet; |
---|
48 | |
---|
49 | SPECIFY |
---|
50 | s1.Outlet.P = 150 * 'kPa'; |
---|
51 | s1.Outlet.T = 281.75 * 'K'; |
---|
52 | s1.Outlet.z = [0.664, 0.336]; |
---|
53 | |
---|
54 | v1.x = 0.866; |
---|
55 | v1.Outlet.P = 148 * 'kPa'; |
---|
56 | |
---|
57 | SET |
---|
58 | v1.k = 20 * 'gal/min/psi^0.5'; |
---|
59 | |
---|
60 | OPTIONS |
---|
61 | RelativeAccuracy = 1e-6; |
---|
62 | Dynamic = false; |
---|
63 | end |
---|
64 | |
---|
65 | FlowSheet valve_Test_L |
---|
66 | #with liquid conditions |
---|
67 | PARAMETERS |
---|
68 | PP as Plugin(Brief="Physical Properties", |
---|
69 | Type="PP", |
---|
70 | Components = [ "isobutane", "benzene"], |
---|
71 | LiquidModel = "PR", |
---|
72 | VapourModel = "PR" |
---|
73 | ); |
---|
74 | NComp as Integer; |
---|
75 | |
---|
76 | SET |
---|
77 | NComp = PP.NumberOfComponents; |
---|
78 | |
---|
79 | DEVICES |
---|
80 | v1 as valve_simplified; |
---|
81 | s1 as source; |
---|
82 | |
---|
83 | CONNECTIONS |
---|
84 | s1.Outlet to v1.Inlet; |
---|
85 | |
---|
86 | SPECIFY |
---|
87 | s1.Outlet.P = 185 * 'kPa'; |
---|
88 | s1.Outlet.T = 328.12 * 'K'; |
---|
89 | s1.Outlet.z = [0.001848, 0.9982]; |
---|
90 | |
---|
91 | v1.x = 0.3363; |
---|
92 | v1.Outlet.P = 183 * 'kPa'; |
---|
93 | |
---|
94 | SET |
---|
95 | v1.k = 20 * 'gal/min/psi^0.5'; |
---|
96 | |
---|
97 | OPTIONS |
---|
98 | RelativeAccuracy = 1e-6; |
---|
99 | Dynamic = false; |
---|
100 | end |
---|
101 | |
---|
102 | FlowSheet valve_linear_Test |
---|
103 | |
---|
104 | DEVICES |
---|
105 | S1 as source; |
---|
106 | V1 as valve; |
---|
107 | |
---|
108 | CONNECTIONS |
---|
109 | S1.Outlet to V1.Inlet; |
---|
110 | |
---|
111 | PARAMETERS |
---|
112 | PP as Plugin(Brief="Physical Properties", |
---|
113 | Type="PP", |
---|
114 | Components = [ "isobutane", "benzene"], |
---|
115 | LiquidModel = "PR", |
---|
116 | VapourModel = "PR" |
---|
117 | ); |
---|
118 | NComp as Integer (Default= 1); |
---|
119 | |
---|
120 | SET |
---|
121 | NComp = PP.NumberOfComponents; |
---|
122 | V1.valve_type = "linear"; #"parabolic", "equal", "quick", "hyperbolic" |
---|
123 | |
---|
124 | SPECIFY |
---|
125 | S1.Outlet.P = 2169.78 * 'kPa'; |
---|
126 | S1.Outlet.T = 394.26 * 'K' ; |
---|
127 | S1.Outlet.z = [1]; |
---|
128 | |
---|
129 | V1.Qv = 113.56 * 'm^3/h'; |
---|
130 | V1.x = 0.5; |
---|
131 | V1.cv = 10 * 'm^3/h/kPa^0.5'; |
---|
132 | |
---|
133 | OPTIONS |
---|
134 | RelativeAccuracy = 1e-6; |
---|
135 | Dynamic = false; |
---|
136 | end |
---|