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 sepComp_n and sepComp |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * |
---|
19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
20 | * |
---|
21 | *---------------------------------------------------------------------- |
---|
22 | * Author: Maurício Carvalho Maciel |
---|
23 | * $Id: sample_sepComp.mso 80 2006-12-08 19:46:22Z paula $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | |
---|
26 | using "mixers_splitters/sepComp"; |
---|
27 | |
---|
28 | FlowSheet Sample_sepComp_n |
---|
29 | PARAMETERS |
---|
30 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
31 | NComp as Integer; |
---|
32 | |
---|
33 | DEVICES |
---|
34 | stream as stream_therm; |
---|
35 | sep as sepComp_n; |
---|
36 | |
---|
37 | CONNECTIONS |
---|
38 | stream to sep.Inlet; |
---|
39 | |
---|
40 | SET |
---|
41 | PP.Components = [ "isobutane", "benzene"]; |
---|
42 | PP.LiquidModel = "PR"; |
---|
43 | PP.VapourModel = "PR"; |
---|
44 | NComp = PP.NumberOfComponents; |
---|
45 | sep.mainComp = 1; |
---|
46 | sep.NOutlet = 3; |
---|
47 | |
---|
48 | SPECIFY |
---|
49 | stream.F = 30 * "kmol/h"; |
---|
50 | stream.P = 120 * "kPa"; |
---|
51 | stream.T = 290 * "K"; |
---|
52 | stream.z = [0.6, 0.4]; |
---|
53 | stream.v = 0; |
---|
54 | sep.Outlet(1).z(1) = 0.7; |
---|
55 | sep.Outlet(2).z(1) = 0.1; |
---|
56 | sep.frac(1) = 0.4; |
---|
57 | sep.frac(2) = 0.2; |
---|
58 | # sep.recovery(1) = 0.533333; |
---|
59 | # sep.recovery(2) = 0.033333; |
---|
60 | |
---|
61 | OPTIONS |
---|
62 | relativeAccuracy = 1e-7; |
---|
63 | |
---|
64 | end |
---|
65 | |
---|
66 | |
---|
67 | FlowSheet Sample_sepComp |
---|
68 | PARAMETERS |
---|
69 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
70 | NComp as Integer; |
---|
71 | |
---|
72 | DEVICES |
---|
73 | stream as streamTP; |
---|
74 | sep as sepComp; |
---|
75 | |
---|
76 | CONNECTIONS |
---|
77 | stream to sep.Inlet; |
---|
78 | |
---|
79 | SET |
---|
80 | PP.Components = [ "isobutane", "benzene"]; |
---|
81 | PP.LiquidModel = "PR"; |
---|
82 | PP.VapourModel = "PR"; |
---|
83 | NComp = PP.NumberOfComponents; |
---|
84 | sep.mainComp = 1; |
---|
85 | |
---|
86 | SPECIFY |
---|
87 | stream.F = 30 * "kmol/h"; |
---|
88 | stream.P = 120 * "kPa"; |
---|
89 | stream.T = 290 * "K"; |
---|
90 | stream.z = [0.6, 0.4]; |
---|
91 | sep.Outlet1.z(1) = 0.7; |
---|
92 | sep.frac = 0.4; |
---|
93 | # sep.recovery = 0.533333; |
---|
94 | |
---|
95 | OPTIONS |
---|
96 | relativeAccuracy = 1e-7; |
---|
97 | |
---|
98 | end |
---|