source: branches/gui/sample/pressure_changers/sample_compressor.mso @ 578

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

starting to update the EML (new gui)

  • Property svn:keywords set to Id
File size: 1.7 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 centrifugal_compressor
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Marcos L. Alencastro, Estefane da S. Horn
23* $Id: sample_compressor.mso 578 2008-07-25 22:24:26Z bicca $
24*--------------------------------------------------------------------*#
25
26using "pressure_changers/compressor";
27
28FlowSheet compressor_C1
29
30        DEVICES
31        S1 as source;
32        C1 as centrifugal_compressor;
33       
34        CONNECTIONS
35        S1.Outlet to C1.Inlet;
36       
37        PARAMETERS
38        PP              as Plugin       (Brief="External Physical Properties",
39                Type="PP",
40                Components = ["nitrogen", "oxygen"],
41                LiquidModel = "IdealLiquid",
42                VapourModel = "Ideal"
43        );
44        NComp   as Integer              (Default= 1);
45       
46        SET
47        NComp = PP.NumberOfComponents;
48       
49        S1.ValidPhases = "Liquid-Only";
50        S1.CompostionBasis = "Molar";
51
52        SPECIFY
53        C1.Effs = 0.75;
54        S1.F = 41.05            * 'kmol/h';
55        S1.P = 1                        * 'atm';
56        S1.T = 298                      * 'K' ;
57        S1.Composition = [0.79,0.21];
58       
59        C1.Outlet.P = 3 * 'atm';
60end
Note: See TracBrowser for help on using the repository browser.