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

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

updates

  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[578]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
[595]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       
[578]39        DEVICES
40        S1 as source;
[595]41        W1 as work_source;
[578]42        C1 as centrifugal_compressor;
43       
44        CONNECTIONS
45        S1.Outlet to C1.Inlet;
[595]46        W1.Work to C1.WorkIn;
[578]47       
[595]48       
49        SET
50        NComp = PP.NumberOfComponents;
51       
52        S1.ValidPhases = "Vapour-Only";
53        S1.CompositionBasis = "Molar";
[598]54        C1.CompressorType = "Isentropic Operation";
[595]55
56        SPECIFY
[606]57        C1.EfficiencyOperation  = 1;
58        C1.MechanicalEff        = 1;
[595]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
[578]69        PARAMETERS
70        PP              as Plugin       (Brief="External Physical Properties",
71                Type="PP",
[595]72                Components = ["propane"],
[598]73                LiquidModel = "PR",
74                VapourModel = "PR"
[578]75        );
76        NComp   as Integer              (Default= 1);
77       
[595]78        DEVICES
79        S1 as source;
[597]80        W1 as work_source;
[595]81        C1 as centrifugal_compressor;
82       
83        CONNECTIONS
84        S1.Outlet to C1.Inlet;
[597]85        W1.Work to C1.WorkIn;
[595]86       
87       
[578]88        SET
89        NComp = PP.NumberOfComponents;
90       
[595]91        S1.ValidPhases = "Vapour-Only";
[585]92        S1.CompositionBasis = "Molar";
[598]93        C1.CompressorType = "Polytropic Operation";
[606]94        #C1.CompressorType = "Isentropic Operation";
[578]95
96        SPECIFY
[606]97        C1.EfficiencyOperation  = 0.75;
98        C1.MechanicalEff        = 0.80;
[598]99       
100        #W1.Work = 2*'kW';
101       
102        S1.F = 4                * 'kmol/h';
103        S1.P = 100                      * 'kPa';
[578]104        S1.T = 298                      * 'K' ;
[598]105        S1.Composition = [1];
[578]106       
[606]107        C1.Outlet.P = 1500      * 'kPa';
[578]108end
Note: See TracBrowser for help on using the repository browser.