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

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

Adapted some samples to the new Plugin mechanism

  • 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 213 2007-03-15 19:40:55Z rafael $
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 stream;
45        feed    as stream;
46       
47        CONNECTIONS
48        reflux to batch.InletL;
49        feed to batch.Inlet;
50
51        EQUATIONS
52        if batch.Level > 1E-3 then
53                batch.OutletV.F = 150 * 'kmol/h';
54                batch.Q = 3.7743e6 * 'kJ/h';
55        else
56                batch.OutletV.F = 0 * 'kmol/h';
57                batch.Q = 0 * 'kJ/h';
58        end
59       
60        SPECIFY
61        reflux.F = 0 * 'kmol/h';
62        reflux.T = 328 * 'K';
63        reflux.P = 180 * 'kPa';
64        reflux.z = [0.5, 0.5];
65        reflux.v = 0;
66        reflux.h = 0 * 'kJ/kmol';
67       
68        feed.F = 0 * 'kmol/h';
69        feed.T = 328 * 'K';
70        feed.P = 180 * 'kPa';
71        feed.z = [0.5, 0.5];
72        feed.v = 0;
73        feed.h = 0 * 'kJ/kmol';
74       
75        SET
76        batch.V = 3 * 'm^3';
77        batch.Across = 1 * 'm^2';
78       
79        INITIAL
80        batch.T = 298 *'K';
81        batch.Level = 2.5 * 'm';
82        batch.x(2) = 0.2;
83       
84        OPTIONS
85        RelativeAccuracy = 1e-3;
86        TimeEnd = 20;
87        TimeStep = 0.1;
88        TimeUnit = 'min';
89end
Note: See TracBrowser for help on using the repository browser.