source: trunk/sample/mixers_splitters/sample_splitter.mso @ 494

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

fixed sample_mixer and sample_splitter

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 splitter_n
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_splitter.mso 366 2007-09-12 19:41:20Z bicca $
24*--------------------------------------------------------------------*#
25
26using "mixers_splitters/splitter";
27
28FlowSheet TestSplitter
29        PARAMETERS
30        PP      as Plugin (Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene"],
31                                        LiquidModel = "PR",
32                                        VapourModel = "PR");
33        NComp   as Integer;
34       
35        DEVICES
36        Stream as source;
37        Splitter as splitter_n;
38       
39        CONNECTIONS
40        Stream.Outlet to Splitter.Inlet;
41       
42        SET
43       
44        NComp = PP.NumberOfComponents;
45        Splitter.NOutlet = 3;
46
47        SPECIFY
48        Stream.Outlet.F = 153 * 'kmol/h';
49        Stream.Outlet.P = 150 * 'kPa';
50        Stream.Outlet.T = 298.6 * 'K';
51        Stream.Outlet.z = [0.6, 0.4];
52       
53        Splitter.frac(1) = 0.4;
54        Splitter.frac(2) = 0.1;
55
56        OPTIONS
57        Dynamic = false;
58        NLASolver(
59                RelativeAccuracy = 1e-7
60        );
61       
62end
Note: See TracBrowser for help on using the repository browser.