source: branches/newlanguage/sample/pressure_changers/sample_pump.mso @ 144

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

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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_pump and pump (simplified)
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Estefane S. Horn, Paula B. Staudt
23* $Id: sample_pump.mso 81 2006-12-08 19:57:14Z paula $
24*--------------------------------------------------------------------*#
25using "pressure_changers/pump";
26
27FlowSheet Pump_P1
28       
29        DEVICES
30        S1 as streamTP;
31        P1 as centrifugal_pump;
32       
33        CONNECTIONS
34        S1 to P1.Inlet;
35       
36        PARAMETERS
37        PP              as CalcObject   (Brief="External Physical Properties", File="vrpp");
38        Mw              as positive     (Brief = "Molar Mass", Unit = "kg/kmol");
39        NComp   as Integer              (Default= 1);
40
41        SET
42        PP.Components = ["water", "benzene"];   
43        PP.LiquidModel = "PR";
44        PP.VapourModel = "PR";
45        NComp = PP.NumberOfComponents;
46        PP.Derivatives = 0;
47        P1.N = 1000                     * "rpm";               
48        P1.Lev = 0                      * "m";
49        P1.Meff = 0.95;
50        P1.Eff = 0.72;
51        P1.Beta = 425e-6        * "1/K";
52       
53        SPECIFY
54        S1.F = 1000             * "kmol/h";
55        S1.P = 10                       * "atm";
56        S1.T = 298                      * "K" ;
57        S1.z = [1,0];   
58        P1.Pdiff = 8            * "kPa";
59        #P1.Outlet.P = 2        * "atm";
60        #P1.BPower = 1          * "kW";
61       
62end
63
64FlowSheet pump_Test
65        PARAMETERS
66        PP      as CalcObject(Brief="Physical Properties",File="vrpp");
67        NComp   as Integer;
68
69        SET
70        PP.Components = ["water", "benzene"];
71        PP.LiquidModel = "PR";
72        PP.VapourModel = "PR";
73        NComp = PP.NumberOfComponents;
74       
75        DEVICES
76        p1 as pump;
77        s1 as stream_therm;
78       
79        CONNECTIONS
80        s1 to p1.Inlet;
81
82        SPECIFY
83        s1.F = 826 * "kmol/h";
84        s1.P = 549 * "kPa";
85        s1.T = 313 * "K";
86        s1.z = 1/NComp;
87        s1.v = 0.68;
88        p1.dP = 90 * "kPa";
89
90        OPTIONS
91        time = [0:20:1000];
92        mode = "steady";
93end
Note: See TracBrowser for help on using the repository browser.