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

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

fixed

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
RevLine 
[81]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 585 2008-07-28 23:31:29Z bicca $
24*--------------------------------------------------------------------*#
[1]25using "pressure_changers/pump";
26
[57]27FlowSheet Pump_P1
28       
29        DEVICES
[196]30        S1 as source;
[57]31        P1 as centrifugal_pump;
32       
33        CONNECTIONS
[196]34        S1.Outlet to P1.Inlet;
[57]35       
36        PARAMETERS
[213]37        PP              as Plugin       (Brief="External Physical Properties",
38                Type="PP",
39                Components = ["water", "benzene"],
40                LiquidModel = "PR",
41                VapourModel = "PR"
42        );
[196]43        Mw              as positive     (Brief = "Molar Mass", Unit = 'kg/kmol');
[57]44        NComp   as Integer              (Default= 1);
45
46        SET
47        NComp = PP.NumberOfComponents;
[196]48        P1.N = 1000                     * 'rpm';               
49        P1.Lev = 0                      * 'm';
[57]50        P1.Meff = 0.95;
51        P1.Eff = 0.72;
[196]52        P1.Beta = 425e-6        * '1/K';
[57]53       
[578]54        S1.ValidPhases = "Vapour-Liquid";
[585]55        S1.CompositionBasis = "Molar";
[578]56       
[57]57        SPECIFY
[578]58        S1.F = 1000             * 'kmol/h';
59        S1.P = 10                       * 'atm';
60        S1.T = 298                      * 'K' ;
61        S1.Composition = [1,0];
[57]62       
[372]63        P1.Pdrop = -8           * 'kPa';
[196]64        #P1.Outlet.P = 2        * 'atm';
65        #P1.BPower = 1          * 'kW';
66       
[57]67end
68
[1]69FlowSheet pump_Test
70        PARAMETERS
[213]71        PP              as Plugin       (Brief="External Physical Properties",
72                Type="PP",
73                Components = ["water", "benzene"],
74                LiquidModel = "PR",
75                VapourModel = "PR"
76        );
[1]77        NComp   as Integer;
78
[578]79DEVICES
80        p1 as pump;
81        s1 as source;
82
[1]83        SET
84        NComp = PP.NumberOfComponents;
85       
[578]86        s1.ValidPhases = "Vapour-Liquid";
[585]87        s1.CompositionBasis = "Molar";
[1]88       
[578]89
90       
[1]91        CONNECTIONS
[196]92        s1.Outlet to p1.Inlet;
[1]93
94        SPECIFY
[578]95        s1.F = 826 * 'kmol/h';
96        s1.P = 549 * 'kPa';
97        s1.T = 313 * 'K';
98        s1.Composition = 1/NComp;
[196]99        #s1.Outlet.v = 0.68;
100       
101        p1.dP = 90 * 'kPa';
[1]102
103        OPTIONS
[196]104        Dynamic = false;
[1]105end
Note: See TracBrowser for help on using the repository browser.