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

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

updated compressor model (testing)

  • Property svn:keywords set to Id
File size: 2.3 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 595 2008-08-08 21:55:17Z 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
55        SPECIFY
56        C1.Effs = 0.75;
57        S1.F = 41.05            * 'kmol/h';
58        S1.P = 1                        * 'atm';
59        S1.T = 298                      * 'K' ;
60        S1.Composition = [0.79,0.21];
61       
62        C1.Outlet.P = 3 * 'atm';
63end
64
65FlowSheet compressor_C2
66
67        PARAMETERS
68        PP              as Plugin       (Brief="External Physical Properties",
69                Type="PP",
70                Components = ["propane"],
71                LiquidModel = "IdealLiquid",
72                VapourModel = "Ideal"
73        );
74        NComp   as Integer              (Default= 1);
75       
76        DEVICES
77        S1 as source;
78        C1 as centrifugal_compressor;
79       
80        CONNECTIONS
81        S1.Outlet to C1.Inlet;
82       
83       
84        SET
85        NComp = PP.NumberOfComponents;
86       
87        S1.ValidPhases = "Vapour-Only";
88        S1.CompositionBasis = "Molar";
89
90        SPECIFY
91        C1.Effs = 0.75;
92        S1.F = 41.05            * 'kmol/h';
93        S1.P = 1                        * 'atm';
94        S1.T = 298                      * 'K' ;
95        S1.Composition = [01];
96       
97        C1.Outlet.P = 3 * 'atm';
98end
Note: See TracBrowser for help on using the repository browser.