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

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

updates

  • Property svn:keywords set to Id
File size: 2.4 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 616 2008-09-06 00:42:00Z 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.OutletWork to C1.WorkIn;
47       
48       
49        SET
50        NComp = PP.NumberOfComponents;
51       
52
53        C1.CompressorType = "Isentropic Operation";
54
55        SPECIFY
56        C1.EfficiencyOperation  = 1;
57        C1.MechanicalEff        = 1;
58        S1.Outlet.F = 41.05             * 'kmol/h';
59        S1.Outlet.P = 1                 * 'atm';
60        S1.Outlet.T = 298                       * 'K' ;
61        S1.Outlet.z = [0.79,0.21];
62       
63        C1.Outlet.P = 3 * 'atm';
64end
65
66FlowSheet compressor_C2
67
68        PARAMETERS
69        PP              as Plugin       (Brief="External Physical Properties",
70                Type="PP",
71                Components = ["propane"],
72                LiquidModel = "PR",
73                VapourModel = "PR"
74        );
75        NComp   as Integer              (Default= 1);
76       
77        DEVICES
78        S1 as source;
79        W1 as work_source;
80        C1 as centrifugal_compressor;
81       
82        CONNECTIONS
83        S1.Outlet to C1.Inlet;
84        W1.OutletWork to C1.WorkIn;
85       
86       
87        SET
88        NComp = PP.NumberOfComponents;
89       
90        C1.CompressorType = "Polytropic Operation";
91        #C1.CompressorType = "Isentropic Operation";
92
93        SPECIFY
94        C1.EfficiencyOperation  = 0.75;
95        C1.MechanicalEff        = 0.80;
96       
97        S1.Outlet.F = 4                 * 'kmol/h';
98        S1.Outlet.P = 100                       * 'kPa';
99        S1.Outlet.T = 298                       * 'K' ;
100        S1.Outlet.z = [1];
101       
102        C1.Outlet.P = 1500      * 'kPa';
103end
Note: See TracBrowser for help on using the repository browser.