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

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

updates

  • Property svn:keywords set to Id
File size: 2.6 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 606 2008-08-23 20:26:51Z bicca $
24*--------------------------------------------------------------------*#
25
26using "pressure_changers/compressor";
27
28FlowSheet compressor_C1
29
30        PARAMETERS
31        PP              as Plugin       (Brief="External Physical Properties",
32                Type="PP",
33                Components = ["nitrogen", "oxygen"],
34                LiquidModel = "IdealLiquid",
35                VapourModel = "Ideal"
36        );
37        NComp   as Integer              (Default= 1);
38       
39        DEVICES
40        S1 as source;
41        W1 as work_source;
42        C1 as centrifugal_compressor;
43       
44        CONNECTIONS
45        S1.Outlet to C1.Inlet;
46        W1.Work to C1.WorkIn;
47       
48       
49        SET
50        NComp = PP.NumberOfComponents;
51       
52        S1.ValidPhases = "Vapour-Only";
53        S1.CompositionBasis = "Molar";
54        C1.CompressorType = "Isentropic Operation";
55
56        SPECIFY
57        C1.EfficiencyOperation  = 1;
58        C1.MechanicalEff        = 1;
59        S1.F = 41.05            * 'kmol/h';
60        S1.P = 1                        * 'atm';
61        S1.T = 298                      * 'K' ;
62        S1.Composition = [0.79,0.21];
63       
64        C1.Outlet.P = 3 * 'atm';
65end
66
67FlowSheet compressor_C2
68
69        PARAMETERS
70        PP              as Plugin       (Brief="External Physical Properties",
71                Type="PP",
72                Components = ["propane"],
73                LiquidModel = "PR",
74                VapourModel = "PR"
75        );
76        NComp   as Integer              (Default= 1);
77       
78        DEVICES
79        S1 as source;
80        W1 as work_source;
81        C1 as centrifugal_compressor;
82       
83        CONNECTIONS
84        S1.Outlet to C1.Inlet;
85        W1.Work to C1.WorkIn;
86       
87       
88        SET
89        NComp = PP.NumberOfComponents;
90       
91        S1.ValidPhases = "Vapour-Only";
92        S1.CompositionBasis = "Molar";
93        C1.CompressorType = "Polytropic Operation";
94        #C1.CompressorType = "Isentropic Operation";
95
96        SPECIFY
97        C1.EfficiencyOperation  = 0.75;
98        C1.MechanicalEff        = 0.80;
99       
100        #W1.Work = 2*'kW';
101       
102        S1.F = 4                * 'kmol/h';
103        S1.P = 100                      * 'kPa';
104        S1.T = 298                      * 'K' ;
105        S1.Composition = [1];
106       
107        C1.Outlet.P = 1500      * 'kPa';
108end
Note: See TracBrowser for help on using the repository browser.