source: branches/gui/sample/pressure_changers/sample_valve.mso @ 905

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

updated valve model

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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*--------------------------------------------------------------------
[206]16* Sample file for models valve_simplified and valve
[81]17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
[206]22* Author: Paula B. Staudt, Estefane Horn, Núbia do Carmo Ferreira
[81]23* $Id: sample_valve.mso 587 2008-08-04 22:45:14Z bicca $
24*--------------------------------------------------------------------*#
25
[1]26using "pressure_changers/valve";
27
28FlowSheet valve_Test_V
29# with vapour conditions
30        PARAMETERS
[213]31        PP      as Plugin(Brief="Physical Properties",
32                Type="PP",
33                Components = [ "isobutane", "benzene"],
34                LiquidModel = "PR",
35                VapourModel = "PR"
36        );
[1]37        NComp   as Integer;
38
39        SET
40        NComp = PP.NumberOfComponents;
41       
42        DEVICES
[205]43        v1 as valve_simplified;
[196]44        s1 as source;
[1]45       
46        CONNECTIONS
[196]47        s1.Outlet to v1.Inlet;
[1]48
49        SPECIFY
[578]50        s1.P = 150 * 'kPa';
51        s1.T = 281.75 * 'K';
52        s1.Composition = [0.664, 0.336];
[1]53
54        v1.x = 0.866;
[196]55        v1.Outlet.P = 148 * 'kPa';
[1]56
57        SET
[196]58        v1.k = 20 * 'gal/min/psi^0.5';
[1]59       
60        OPTIONS
[196]61        Dynamic = false;
[247]62        NLASolver(
63                RelativeAccuracy = 1e-6
64        );
[1]65end
66
67FlowSheet valve_Test_L
68#with liquid conditions
69        PARAMETERS
[213]70        PP      as Plugin(Brief="Physical Properties",
71                Type="PP",
72                Components = [ "isobutane", "benzene"],
73                LiquidModel = "PR",
74                VapourModel = "PR"
75        );
[1]76        NComp   as Integer;
77
78        SET
79        NComp = PP.NumberOfComponents;
80       
81        DEVICES
[205]82        v1 as valve_simplified;
[196]83        s1 as source;
[1]84       
85        CONNECTIONS
[196]86        s1.Outlet to v1.Inlet;
[1]87
88        SPECIFY
[578]89        s1.P = 185 * 'kPa';
90        s1.T = 328.12 * 'K';
91        s1.Composition = [0.001848, 0.9982];
[1]92
93        v1.x = 0.3363;
[196]94        v1.Outlet.P = 183 * 'kPa';
[1]95
96        SET
[196]97        v1.k = 20 * 'gal/min/psi^0.5';
[1]98       
99        OPTIONS
[196]100        Dynamic = false;
[247]101        NLASolver(
102                RelativeAccuracy = 1e-6
103        );
[1]104end
[57]105
Note: See TracBrowser for help on using the repository browser.