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

Last change on this file since 137 was 80, checked in by Paula Bettio Staudt, 16 years ago

Updated mixers_splitters sample files header and to use with VRTherm DEMO

  • 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 80 2006-12-08 19:46:22Z paula $
24*--------------------------------------------------------------------*#
25using "mixers_splitters/mixer";
26
27FlowSheet SampleMixer
28       
29        PARAMETERS
30        PP      as CalcObject(Brief="Physical Properties",File="vrpp");
31        NComp   as Integer;
32        Ninlet as Integer;
33       
34        DEVICES
35        stream1 as stream_therm;
36        stream2 as stream_therm;
37        mixer   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        mixer.Ninlet = 2;
46       
47        CONNECTIONS
48        stream1 to mixer.Inlet_mixer(1);
49        stream2 to mixer.Inlet_mixer(2);
50       
51        SPECIFY
52       
53        stream1.F = 20 * "kmol/h";
54        stream1.P = 120 * "kPa";
55        stream1.T = 400  * "K";
56        stream1.z = [0.5, 0.1, 0.4];
57        stream1.v = 1;
58       
59       
60        stream2.F = 10 * "kmol/h";
61        stream2.P = 120 * "kPa";
62        stream2.T = 290 * "K"; 
63        stream2.z = [0.5, 0.1, 0.4];
64        stream2.v = 0.0;
65       
66        OPTIONS
67        mode = "steady";
68        relativeAccuracy = 1e-6;
69
70end
71
Note: See TracBrowser for help on using the repository browser.