source: mso/sample/miscellaneous/sample_flash.mso @ 4

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

Initial import of the library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#*---------------------------------------------------------------------
2* This file is property of the author and cannot be used, copyed
3* or modified without permission.
4*
5* Copyright (C) 2002-2004  the author
6*----------------------------------------------------------------------
7* Author: Rafael de Pelegrini Soares
8* $Id: sample_flash.mso 1 2006-06-20 17:33:53Z rafael $
9*----------------------------------------------------------------------
10*
11* Flash separator sample file.
12*
13* This file requires an compatible thermodynamic package installed.
14*
15*--------------------------------------------------------------------*#
16
17using "separators";
18
19FlowSheet SampleFlash
20        PARAMETERS
21        PP      as CalcObject(Brief="Physical Properties",File="vrpp");
22        NoComps as Integer;
23
24        SET
25        PP.Components = ["n-butane", "benzene", "n-octane"];
26        PP.LiquidModel = "PR";
27        PP.VapourModel = "PR";
28        NoComps = PP.NumberOfComponents;
29
30        DEVICES
31        stream1 as stream_therm;
32        Flash1  as flash_steady_fugacity;
33
34        CONNECTIONS
35        stream1 to Flash1.Inlet;
36
37        SPECIFY
38        stream1.F = 20 * "kmol/h";
39        stream1.T = 320 * "K";
40        stream1.P = 120 * "kPa";
41        stream1.z = [0.3, 0.3, 0.4];
42        stream1.v = 0.0;
43
44        #besides Feed we have to fix 2 variables, for instance:
45        # (T, P), (T, vfrac), (P, vfrac), (T, q), (P, q), (vfrac, q), ...
46       
47        Flash1.OutletV.P = 120 * "kPa";
48        Flash1.OutletV.T = 340 * "K";
49        #Flash1.vfrac = 0.700665;
50        #Flash1.lfrac = 0.299337;
51        #Flash1.q = 113284;
52
53        OPTIONS
54        mode = "steady";
55        outputLevel = "high";
56        relativeAccuracy = 1e-6;
57end
58
Note: See TracBrowser for help on using the repository browser.