source: trunk/sample/stage_separators/sample_reboiler.mso @ 498

Last change on this file since 498 was 313, checked in by Argimiro Resende Secchi, 16 years ago

Change name of outlet energy stream to OutletQ.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[86]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 reboilers model
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Paula B. Staudt
23* $Id: sample_reboiler.mso 313 2007-07-14 16:45:55Z arge $
24*--------------------------------------------------------------------*#
[1]25using "stage_separators/reboiler";
26
27FlowSheet reboiler_Test
28        PARAMETERS
[213]29        PP      as Plugin(Brief="Physical Properties",
30                Type="PP",
31                Components = [ "isobutane", "benzene"],
32                LiquidModel = "PR",
33                VapourModel = "PR"
34        );
[1]35        NComp   as Integer;
36
37        VARIABLES
[310]38        Q       as energy_source (Brief="Heat supplied");
[1]39
40        SET
41        NComp = PP.NumberOfComponents;
42       
43        DEVICES
44        r1 as reboiler;
[202]45        feed as stream;
46        s1 as source;
[1]47
48        CONNECTIONS
49        feed to r1.Inlet;
[208]50        s1.Outlet to r1.InletL;
[313]51        Q.OutletQ to r1.InletQ;
[1]52       
53        SPECIFY
[202]54        feed.F = 0 * 'kmol/h';
55        feed.T = 328 * 'K';
56        feed.P = 180 * 'kPa';
[1]57        feed.z = [0.5, 0.5];
58        feed.v = 0;
[202]59        feed.h = 0 * 'kJ/kmol';
[1]60
[202]61        s1.Outlet.P = 185 * 'kPa';
62        s1.Outlet.T = 327.7 * 'K';
63        s1.Outlet.F = 180 * 'kmol/h';
64        s1.Outlet.z = [0.006061, 0.9939];
[1]65       
[202]66        r1.OutletL.F = 68.4 * 'kmol/h';
67        r1.OutletV.F = 111.6 * 'kmol/h';
[1]68
[313]69        Q.OutletQ.Q = 3.7743e6 * 'kJ/h';
[1]70
71        SET
[202]72        r1.V = 2 * 'm^3';
73        r1.Across = 1 * 'm^2';
[1]74       
75        INITIAL
[202]76        r1.OutletL.T = 320 *'K';
77        r1.Level = 1 * 'm';
[1]78        r1.OutletL.z(2) = 0.9;
79       
80        OPTIONS
[202]81        TimeEnd = 1000;
82        TimeStep = 20;
[1]83end
[42]84
85
86FlowSheet reboilerSteady_Test
87        PARAMETERS
[213]88        PP      as Plugin(Brief="Physical Properties",
89                Type="PP",
90                Components = [ "isobutane", "benzene"],
91                LiquidModel = "PR",
92                VapourModel = "PR"
93        );
[42]94        NComp   as Integer;
95
96        VARIABLES
[310]97        Q       as energy_source (Brief="Heat supplied");
[42]98
99        SET
100        NComp = PP.NumberOfComponents;
101       
102        DEVICES
103        r1 as reboilerSteady;
[202]104        s1 as source;
[42]105
106        CONNECTIONS
[208]107        s1.Outlet to r1.InletL;
[313]108        Q.OutletQ to r1.InletQ;
[42]109       
110        SPECIFY
[202]111        s1.Outlet.P = 185 * 'kPa';
112        s1.Outlet.T = 327.7 * 'K';
113        s1.Outlet.F = 180 * 'kmol/h';
114        s1.Outlet.z = [0.006061, 0.9939];
[42]115       
[313]116#       Q.OutletQ.Q = 3.7743e6 * 'kJ/h';
[202]117        r1.OutletV.T = 350 * 'K';
[42]118
119        SET
[202]120        r1.DP = 10 * 'kPa';
[42]121       
122        OPTIONS
[202]123        Dynamic = false;
[42]124end
Note: See TracBrowser for help on using the repository browser.