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

Last change on this file since 215 was 215, checked in by gerson bicca, 17 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.8 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 mixer
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_mixer.mso 215 2007-03-15 20:46:35Z bicca $
24*--------------------------------------------------------------------*#
25using "mixers_splitters/mixer";
26
27FlowSheet SampleMixer
28       
29        PARAMETERS
30        PP              as Plugin(Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene", "methane" ],
31                                                        LiquidModel = "PR",
32                                                        VapourModel = "PR");
33       
34        NComp   as Integer;
35        Ninlet as Integer;
36       
37        DEVICES
38        stream1 as source;
39        stream2 as source;
40        mixer1  as mixer;
41
42       
43        SET
44       
45        NComp = PP.NumberOfComponents;
46        mixer1.Ninlet = 2;
47       
48        CONNECTIONS
49        stream1.Outlet to mixer1.Inlet_mixer(1);
50        stream2.Outlet to mixer1.Inlet_mixer(2);
51       
52        SPECIFY
53       
54        stream1.Outlet.F = 20 * 'kmol/h';
55        stream1.Outlet.P = 120 * 'kPa';
56        stream1.Outlet.T = 400  * 'K';
57        stream1.Outlet.z = [0.5, 0.1, 0.4];
58       
59       
60        stream2.Outlet.F = 10 * 'kmol/h';
61        stream2.Outlet.P = 120 * 'kPa';
62        stream2.Outlet.T = 290 * 'K';   
63        stream2.Outlet.z = [0.5, 0.1, 0.4];
64       
65        OPTIONS
66        Dynamic = false;
67        RelativeAccuracy = 1e-6;
68end
69
Note: See TracBrowser for help on using the repository browser.