source: trunk/sample/pressure_changers/sample_compressor.mso @ 978

Last change on this file since 978 was 865, checked in by gerson bicca, 13 years ago

updated samples

  • Property svn:keywords set to Id
File size: 2.5 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 865 2009-10-19 19:41:48Z 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.CompressorOperation = "Isentropic";
55        C1.Method = "GPSA Method";
56
57        SPECIFY
58        C1.EfficiencyOperation  = 0.90;
59        C1.MechanicalEff        = 0.8;
60        S1.F = 41.05            * 'kmol/h';
61        S1.P = 1                        * 'atm';
62        S1.T = 298                      * 'K' ;
63        S1.Composition = [0.79,0.21];
64       
65        C1.Outlet.P = 3 * 'atm';
66end
67
68FlowSheet compressor_C2
69
70        PARAMETERS
71        PP              as Plugin       (Brief="External Physical Properties",
72                Type="PP",
73                Components = ["propane"],
74                LiquidModel = "PR",
75                VapourModel = "PR"
76        );
77        NComp   as Integer              (Default= 1);
78       
79        DEVICES
80        S1 as source;
81        W1 as work_source;
82        C1 as centrifugal_compressor;
83       
84        CONNECTIONS
85        S1.Outlet to C1.Inlet;
86        W1.Work to C1.WorkIn;
87       
88       
89        SET
90        NComp = PP.NumberOfComponents;
91       
92        S1.ValidPhases = "Vapour-Only";
93        S1.CompositionBasis = "Molar";
94        C1.CompressorOperation = "Polytropic";
95        C1.Method = "ASME Method";
96
97        SPECIFY
98        C1.EfficiencyOperation  = 0.75;
99        C1.MechanicalEff        = 0.80;
100       
101        #W1.Work = 2*'kW';
102       
103        S1.F = 4                * 'kmol/h';
104        S1.P = 100                      * 'kPa';
105        S1.T = 298                      * 'K' ;
106        S1.Composition = [1];
107       
108        C1.Outlet.P = 1500      * 'kPa';
109end
Note: See TracBrowser for help on using the repository browser.