source: branches/newlanguage/sample/mixers_splitters/sample_sepComp.mso @ 215

Last change on this file since 215 was 215, checked in by gerson bicca, 16 years ago

updated more samples to include Type plugin declaration

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
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 215 2007-03-15 20:46:35Z bicca $
24*--------------------------------------------------------------------*#
25
26using "mixers_splitters/sepComp";
27
28FlowSheet Sample_sepComp_n
29       
30PARAMETERS
31       
32        PP                      as Plugin       (Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene"],
33                                                                LiquidModel = "PR",
34                                                                VapourModel = "PR");
35        NComp   as Integer;
36       
37DEVICES
38        Stream  as source;
39        sep             as sepComp_n;
40       
41CONNECTIONS
42        Stream.Outlet to sep.Inlet;
43       
44SET
45       
46        NComp = PP.NumberOfComponents;
47       
48        sep.mainComp = 1;
49        sep.NOutlet = 3;
50
51SPECIFY
52        Stream.Outlet.F = 30 * 'kmol/h';
53        Stream.Outlet.P = 120 * 'kPa';
54        Stream.Outlet.T = 290 * 'K';
55        Stream.Outlet.z = [0.6, 0.4];
56       
57        sep.Outlet(1).z(1) = 0.7;
58        sep.Outlet(2).z(1) = 0.1;
59        sep.frac(1) = 0.4;
60        sep.frac(2) = 0.2;
61#       sep.recovery(1) = 0.533333;
62#       sep.recovery(2) = 0.033333;
63
64OPTIONS
65        RelativeAccuracy = 1e-7;
66       
67end
68
69
70FlowSheet Sample_sepComp
71        PARAMETERS
72        PP      as Plugin(Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene"],
73                                                        LiquidModel = "PR",
74                                                        VapourModel = "PR");
75        NComp as Integer;
76       
77        DEVICES
78        Stream as source;
79        sep as sepComp;
80       
81        CONNECTIONS
82        Stream.Outlet to sep.Inlet;
83       
84        SET
85       
86        NComp = PP.NumberOfComponents;
87        sep.mainComp = 1;
88
89        SPECIFY
90        Stream.Outlet .F = 30 * 'kmol/h';
91        Stream.Outlet .P = 120 * 'kPa';
92        Stream.Outlet .T = 290 * 'K';
93        Stream.Outlet .z = [0.6, 0.4];
94       
95        sep.Outlet1.z(1) = 0.7;
96        sep.frac = 0.4;
97#       sep.recovery = 0.533333;
98
99        OPTIONS
100        RelativeAccuracy = 1e-7;
101       
102end
Note: See TracBrowser for help on using the repository browser.