source: branches/gui/sample/miscellaneous/sample_vrtherm.mso

Last change on this file was 958, checked in by Argimiro Resende Secchi, 7 years ago

relative path to *.vrtherm

File size: 2.3 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 flash with external components
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Paula B. Staudt
23* $Id: sample_flash.mso 313 2007-07-14 16:45:55Z arge $
24*--------------------------------------------------------------------*#
25using "stage_separators/flash";
26
27# exemplo baseado nos dados do artigo do Gani 1985.
28FlowSheet flash_vrtherm
29        PARAMETERS
30        PP as Plugin(Brief="Physical Properties",
31                Type="PP",
32                Project="sample.vrtherm",
33                #Components = ["ethane", "isobutene", "n-pentane",
34                #       "1-pentene", "1-hexene", "benzene"],
35                LiquidModel = "PR",
36                VapourModel = "PR"
37        );
38        NComp as Integer;
39
40        VARIABLES
41        Q       as energy_source (Brief="Heat supplied");
42
43        SET
44        NComp = PP.NumberOfComponents;
45       
46        DEVICES
47        fl as flash;
48        s1 as source;
49       
50        CONNECTIONS
51        s1.Outlet to fl.Inlet;
52        Q.OutletQ to fl.InletQ;
53       
54        EQUATIONS
55        fl.OutletLiquid.F = 400*sqrt(fl.Level/'m') * 'kmol/h';
56       
57        SPECIFY
58        s1.F = 496.3 * 'kmol/h';
59        s1.T = 338 * 'K';
60        s1.P = 507.1 * 'kPa';
61        s1.Composition = [0.2379,0.3082,0.09958,0.1373,0.08872,0.1283];
62
63        fl.OutletVapour.F = 68.5 * 'kmol/h';
64        Q.OutletQ = 0 * 'kJ/h';
65       
66        SET
67        fl.Lenght = 10 * 'm';
68        fl.Diameter = 2 * 'm';
69        fl.Orientation = "vertical";
70#       fl.Orientation = "horizontal";
71
72        INITIAL
73        fl.OutletLiquid.T = 338 * 'K';
74        fl.Level = 0.4 * 'm';
75        fl.OutletLiquid.z([1:5]) = 0.1;
76       
77        OPTIONS
78        Dynamic = true;
79        TimeStep = 0.1;
80        TimeEnd = 5;
81        TimeUnit = 'h';
82        NLASolver (File = "nlasolver");
83        DAESolver (File = "dassl");
84end
Note: See TracBrowser for help on using the repository browser.