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

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

Adapted some samples to the new Plugin mechanism

  • 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 213 2007-03-15 19:40:55Z rafael $
24*--------------------------------------------------------------------*#
25using "stage_separators/flashPH";
26
27FlowSheet FlashPHTest
28        PARAMETERS
29        PP      as Plugin(Brief="Physical Properties",
30                Type="PP",
31                Components = ["methane", "isobutene", "benzene"],
32                LiquidModel = "IdealLiquid",
33                VapourModel = "Ideal"
34        );
35        NComp   as Integer;
36
37        VARIABLES
38        Q       as heat_rate (Brief="Heat supplied");
39       
40        SET
41        NComp = PP.NumberOfComponents;
42       
43        DEVICES
44        fl as FlashPHSteady;
45        s1 as source;
46       
47        CONNECTIONS
48        s1.Outlet to fl.Inlet;
49        Q to fl.Q;
50       
51        SPECIFY
52        s1.Outlet.F = 496.3 * 'kmol/h';
53        s1.Outlet.T = 338 * 'K';
54        s1.Outlet.P = 507.1 * 'kPa';
55        s1.Outlet.z = [0.1, 0.7,0.2];
56       
57        fl.OutletL.P = 2.5 * 'atm';
58
59        Q = 0 * 'kJ/h';
60        #fl.OutletL.T = 315.06 * 'K';
61       
62        OPTIONS
63        Dynamic = false;
64end
Note: See TracBrowser for help on using the repository browser.