source: trunk/sample/mixers_splitters/sample_sepComp.mso @ 674

Last change on this file since 674 was 632, checked in by gerson bicca, 15 years ago

updates

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