source: branches/gui/sample/mixers_splitters/sample_splitter.mso @ 996

Last change on this file since 996 was 739, checked in by gerson bicca, 14 years ago

updates (changes in icons/models/samples)

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