source: branches/newlanguage/sample/pressure_changers/sample_compressor.mso @ 188

Last change on this file since 188 was 81, checked in by Paula Bettio Staudt, 17 years ago

Updated pressure_changers sample files header and to use it with VRTherm DEMO

  • Property svn:keywords set to Id
File size: 1.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 81 2006-12-08 19:57:14Z paula $
24*--------------------------------------------------------------------*#
25
26using "pressure_changers/compressor";
27
28FlowSheet compressor_C1
29
30        DEVICES
31        S1 as streamTP;
32        C1 as centrifugal_compressor;
33       
34        CONNECTIONS
35        S1 to C1.Inlet;
36       
37        PARAMETERS
38        PP              as CalcObject   (Brief="External Physical Properties", File="vrpp");
39        NComp   as Integer              (Default= 1);
40       
41        SET
42        PP.Components = ["nitrogen", "oxygen"];
43        PP.LiquidModel = "IdealLiquid";
44        PP.VapourModel = "Ideal";
45        NComp = PP.NumberOfComponents;
46        C1.Effs = 0.75;
47        PP.Derivatives = 0;
48       
49
50        SPECIFY
51        S1.F = 41.05            * "kmol/h";
52        S1.P = 1                        * "atm";
53        S1.T = 298                      * "K" ;
54        S1.z = [0.79,0.21];
55        C1.Outlet.P = 3 * "atm";
56
57end             
Note: See TracBrowser for help on using the repository browser.