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

Last change on this file since 233 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: 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 215 2007-03-15 20:46:35Z 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        NOutlet as Integer;
35       
36        DEVICES
37        Stream as source;
38        Splitter as splitter_n;
39       
40        CONNECTIONS
41        Stream.Outlet to Splitter.Inlet;
42       
43        SET
44       
45        NComp = PP.NumberOfComponents;
46        Splitter.NOutlet = 3;
47
48        SPECIFY
49        Stream.Outlet.F = 153 * 'kmol/h';
50        Stream.Outlet.P = 150 * 'kPa';
51        Stream.Outlet.T = 298.6 * 'K';
52        Stream.Outlet.z = [0.6, 0.4];
53       
54        Splitter.frac(1) = 0.4;
55        Splitter.frac(2) = 0.1;
56
57        OPTIONS
58        RelativeAccuracy = 1e-7;
59       
60end
Note: See TracBrowser for help on using the repository browser.