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

Last change on this file since 202 was 202, checked in by Argimiro Resende Secchi, 16 years ago

More newlanguage conversions in sample files.

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