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 condenser and condenserSteady |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * |
---|
19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
20 | * |
---|
21 | *---------------------------------------------------------------------- |
---|
22 | * Author: Paula B. Staudt |
---|
23 | * $Id: sample_condenser.mso 86 2006-12-08 20:58:15Z paula $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | using "stage_separators/condenser"; |
---|
26 | using "mixers_splitters/splitter"; |
---|
27 | |
---|
28 | # condenser with splitter dividing liquid outlet |
---|
29 | FlowSheet condenser_Test |
---|
30 | PARAMETERS |
---|
31 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
32 | NComp as Integer; |
---|
33 | |
---|
34 | VARIABLES |
---|
35 | Q as heat_rate (Brief="Heat supplied"); |
---|
36 | |
---|
37 | SET |
---|
38 | PP.Components = [ "isobutane", "benzene"]; |
---|
39 | PP.LiquidModel = "PR"; |
---|
40 | PP.VapourModel = "PR"; |
---|
41 | NComp = PP.NumberOfComponents; |
---|
42 | |
---|
43 | DEVICES |
---|
44 | c1 as condenser; |
---|
45 | sp as splitter; |
---|
46 | s1 as stream_therm; |
---|
47 | |
---|
48 | CONNECTIONS |
---|
49 | s1 to c1.InletV; |
---|
50 | c1.OutletL to sp.Inlet; |
---|
51 | Q to c1.Q; |
---|
52 | |
---|
53 | SPECIFY |
---|
54 | s1.P = 152 * "kPa"; |
---|
55 | s1.T = 298.6 * "K"; |
---|
56 | s1.F = 153 * "kmol/h"; |
---|
57 | s1.z = [0.664, 0.336]; |
---|
58 | s1.v = 1.0; |
---|
59 | |
---|
60 | sp.frac = 0.444445; |
---|
61 | c1.OutletV.F = 0 * "kmol/h"; |
---|
62 | c1.OutletL.F = 153 * "kmol/h"; |
---|
63 | |
---|
64 | Q = -3.71e6 * "kJ/h"; |
---|
65 | |
---|
66 | SET |
---|
67 | c1.V = 2 * "m^3"; |
---|
68 | c1.Across = 1 * "m^2"; |
---|
69 | |
---|
70 | INITIAL |
---|
71 | c1.OutletL.T = 280 *"K"; |
---|
72 | c1.Level = 1 * "m"; |
---|
73 | c1.OutletL.z(1) = 0.65; |
---|
74 | |
---|
75 | OPTIONS |
---|
76 | time = [0:20:1000]; |
---|
77 | end |
---|
78 | |
---|
79 | FlowSheet condenserSteady_Test |
---|
80 | PARAMETERS |
---|
81 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
82 | NComp as Integer; |
---|
83 | |
---|
84 | VARIABLES |
---|
85 | Q as heat_rate (Brief="Heat supplied"); |
---|
86 | |
---|
87 | SET |
---|
88 | PP.Components = [ "isobutane", "benzene"]; |
---|
89 | PP.LiquidModel = "PR"; |
---|
90 | PP.VapourModel = "PR"; |
---|
91 | NComp = PP.NumberOfComponents; |
---|
92 | |
---|
93 | DEVICES |
---|
94 | c1 as condenserSteady; |
---|
95 | s1 as stream_therm; |
---|
96 | |
---|
97 | CONNECTIONS |
---|
98 | s1 to c1.InletV; |
---|
99 | Q to c1.Q; |
---|
100 | |
---|
101 | SPECIFY |
---|
102 | s1.P = 152 * "kPa"; |
---|
103 | s1.T = 298.6 * "K"; |
---|
104 | s1.F = 153 * "kmol/h"; |
---|
105 | s1.z = [0.664, 0.336]; |
---|
106 | s1.v = 1.0; |
---|
107 | Q = 3.71e6 * "kJ/h"; |
---|
108 | c1.DP = 100 * "kPa"; |
---|
109 | |
---|
110 | OPTIONS |
---|
111 | mode = "steady"; |
---|
112 | time = [0:20:1000]; |
---|
113 | end |
---|