source: branches/new_gui/sample/pressure_changers/sample_compressor.mso @ 891

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

samples for pressure changers

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