source: mso/template/flowsheet.mso @ 1

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

Initial import of the library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1#* EMSO template file for new flowsheets.
2*
3* The user should edit the contents of this file in order
4* to develop a new flowsheet.
5*
6* $ID$
7*#
8
9#* The using command makes available entities declared in another files.
10*
11* With this command the user can make use of the EML models
12*#
13using "stage_separators/flash";
14
15#*
16* A new flowsheet is declared with the FlowSheet keyword and a name.
17* A flowhseet can have several sections presented above:
18*#
19FlowSheet MyFlowSheet
20        #*
21        * In the PARAMETERS section we can define the constants of the
22        * FlowSheet. When the model requires thermodynamic calculations
23        * we should create an special parameter called PP and select
24        * the model and components of the mixture, as follows:
25        *#
26        PARAMETERS
27        PP      as CalcObject(Brief="Physical Properties", File="vrpp");
28        NComp   as Integer;
29        SET
30        PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene"];
31        PP.LiquidModel = "PR";
32        PP.VapourModel = "PR";
33        NComp = PP.NumberOfComponents;
34       
35        #*
36        * In the DEVICES section the components of the process are declared.
37        * Each device is based in a previously defined mathematical model, coming
38        * from the EML or developed by the user.
39        *#
40        DEVICES
41        STR101   as stream_therm;
42        FLASH101 as flash;
43
44        #*
45        * Once the devices of the process were declared we can connect them
46        * in the CONNECTIONS section
47        *#
48        CONNECTIONS
49        STR101     to   FLASH101.Feed;
50
51        #*
52        * In order to simulate the process the user should specify some variables
53        *#
54        SPECIFY
55        STR101.F = 496.3 * "kmol/h";
56        STR101.T = 338 * "K";
57        STR101.P = 507.1 * "kPa";
58        STR101.v = 0.1380;
59        STR101.z = [0.2379, 0.3082, 0.09959, 0.35431];
60
61        FLASH101.OutletV.F = 68.5 * "kmol/h";
62        FLASH101.OutletL.F = 400*sqrt(fl.Level) * "kmol/h";
63
64        #*
65        * We can adjust the parameters of the devices in any point after
66        * its declaration.
67        *#
68        SET
69        FLASH101.Q = 1 * "kJ/h";
70        FLASH101.V = 2000 * "m^3";
71        FLASH101.Across = 1 * "m^2";     
72         
73        #*
74        * Besides the usual specifications, dynamic models require the specification
75        * of initial conditions.
76        *#
77        INITIAL
78        FLASH101.OutletL.T = 330 *"K";
79        FLASH101.Level = 1 * "m";
80        FLASH101.OutletL.z(1) = 0.1;
81        FLASH101.OutletL.z(2) = 0.1;
82        FLASH101.OutletL.z(3) = 0.1;
83end
84# The end keyword informs that the flowsheet declaration have ended.
85
86
87
Note: See TracBrowser for help on using the repository browser.