source: branches/gui/sample/mixers_splitters/sample_mixer.mso @ 732

Last change on this file since 732 was 585, checked in by gerson bicca, 15 years ago

fixed

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 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 585 2008-07-28 23:31:29Z bicca $
24*--------------------------------------------------------------------*#
[1]25using "mixers_splitters/mixer";
26
27FlowSheet SampleMixer
28       
29        PARAMETERS
[215]30        PP              as Plugin(Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene", "methane" ],
31                                                        LiquidModel = "PR",
32                                                        VapourModel = "PR");
33       
[1]34        NComp   as Integer;
35       
36        DEVICES
[202]37        stream1 as source;
38        stream2 as source;
[578]39        mixer1  as mixer_n;
[202]40
[1]41       
42        SET
[215]43       
[1]44        NComp = PP.NumberOfComponents;
[202]45        mixer1.Ninlet = 2;
[1]46       
[578]47        stream1.ValidPhases = "Vapour-Liquid";
[585]48        stream1.CompositionBasis = "Molar";
[578]49       
50        stream2.ValidPhases = "Vapour-Liquid";
[585]51        stream2.CompositionBasis = "Molar";
[578]52       
[1]53        CONNECTIONS
[400]54        stream1.Outlet to mixer1.Inlet(1);
55        stream2.Outlet to mixer1.Inlet(2);
[1]56       
57        SPECIFY
58       
[578]59        stream1.F = 20 * 'kmol/h';
60        stream1.P = 120 * 'kPa';
61        stream1.T = 400  * 'K';
62        stream1.Composition = [0.5, 0.1, 0.4];
[1]63       
64       
[578]65        stream2.F = 10 * 'kmol/h';
66        stream2.P = 120 * 'kPa';
67        stream2.T = 290 * 'K'; 
68        stream2.Composition = [0.5, 0.1, 0.4];
[1]69       
70        OPTIONS
[202]71        Dynamic = false;
[247]72        NLASolver(
73                RelativeAccuracy = 1e-6
74        );
[1]75end
76
Note: See TracBrowser for help on using the repository browser.