source: trunk/sample/stage_separators/sample_batch_dist.mso @ 623

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

Adjust icones.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 Diff_Dist
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Maurício Carvalho Maciel
23* $Id: sample_batch_dist.mso 318 2007-07-19 04:23:31Z arge $
24*--------------------------------------------------------------------*#
25
26using "stage_separators/batch_dist";
27
28FlowSheet TesteBatch
29       
30        PARAMETERS
31        PP      as Plugin(Brief="Physical Properties",
32                Type="PP",
33                Components = [ "isobutane", "benzene" ],
34                LiquidModel = "PR",
35                VapourModel = "PR"
36        );
37        NComp   as Integer;
38
39        SET
40        NComp = PP.NumberOfComponents;
41       
42        DEVICES
43        batch   as Diff_Dist;
44        reflux  as liquid_stream;
45        feed    as source;
46        Q               as energy_source;
47       
48        CONNECTIONS
49        reflux to batch.InletL;
50        feed.Outlet to batch.Inlet;
51        Q.OutletQ to batch.InletQ;
52
53        EQUATIONS
54        if batch.Level > 1E-3 then
55                batch.OutletV.F = 150 * 'kmol/h';
56                Q.OutletQ.Q = 3.7743e6 * 'kJ/h';
57        else
58                batch.OutletV.F = 0 * 'kmol/h';
59                Q.OutletQ.Q = 0 * 'kJ/h';
60        end
61       
62        SPECIFY
63        reflux.F = 0 * 'kmol/h';
64        reflux.T = 328 * 'K';
65        reflux.P = 180 * 'kPa';
66        reflux.z = [0.5, 0.5];
67       
68        feed.Outlet.F = 0 * 'kmol/h';
69        feed.Outlet.T = 328 * 'K';
70        feed.Outlet.P = 180 * 'kPa';
71        feed.Outlet.z = [0.5, 0.5];
72       
73        SET
74        batch.V = 3 * 'm^3';
75        batch.Across = 1 * 'm^2';
76       
77        INITIAL
78        batch.T = 298 *'K';
79        batch.Level = 2.5 * 'm';
80        batch.x(2) = 0.2;
81       
82        OPTIONS
83        TimeEnd = 20;
84        TimeStep = 0.1;
85        TimeUnit = 'min';
86end
Note: See TracBrowser for help on using the repository browser.