source: branches/newlanguage/sample/stage_separators/sample_flashPH.mso @ 125

Last change on this file since 125 was 97, checked in by Rafael de Pelegrini Soares, 16 years ago

Added Flash PH model and sample

  • Property svn:Keywords set to Id
  • Property svn:eol-style set to native
  • 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 FlashPHSteady
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Rafael de P. Soares and Paula B. Staudt
23* $Id: sample_flashPH.mso 97 2007-01-03 13:31:49Z rafael $
24*--------------------------------------------------------------------*#
25using "stage_separators/flashPH";
26
27FlowSheet FlashPHTest
28        PARAMETERS
29        PP      as CalcObject(Brief="Physical Properties",File="vrpp");
30        NComp   as Integer;
31
32        VARIABLES
33        Q       as heat_rate (Brief="Heat supplied");
34       
35        SET
36        PP.Components = ["methane", "isobutene", "benzene"];
37        PP.LiquidModel = "IdealLiquid";
38        PP.VapourModel = "Ideal";
39        NComp = PP.NumberOfComponents;
40       
41        DEVICES
42        fl as FlashPHSteady;
43        s1 as stream_therm;
44       
45        CONNECTIONS
46        s1 to fl.Inlet;
47        Q to fl.Q;
48       
49        SPECIFY
50        s1.F = 496.3 * "kmol/h";
51        s1.T = 338 * "K";
52        s1.P = 507.1 * "kPa";
53        s1.v = 0.1380;
54        s1.z = [0.1, 0.7,0.2];
55       
56        fl.OutletL.P = 2.5 * "atm";
57
58        Q = 0 * "kJ/h";
59        #fl.OutletL.T = 315.06 * "K";
60       
61        OPTIONS
62        mode = "steady";
63end
Note: See TracBrowser for help on using the repository browser.