source: branches/packed/sample/reactors/sample_stoic.mso @ 674

Last change on this file since 674 was 421, checked in by Rodolfo Rodrigues, 16 years ago

Added symbols

File size: 3.6 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* Samples of a stoichiometric reactor
17*----------------------------------------------------------------------
18*
19* This sample file needs VRTherm (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22*
23* There are three parallel reactions involved:
24*       (1) C4H6(1,3-butadiene) + H2 --> C4H8(1-butene)
25*       (2) C4H6(1,3-butadiene) + H2 --> C4H8(cis-2-butene)
26*       (3) C4H6(1,3-butadiene) + H2 --> C4H8(trans-2-butene)
27*
28*----------------------------------------------------------------------
29* Author: Rodolfo Rodrigues
30* $Id$
31*--------------------------------------------------------------------*#
32
33using "reactors/stoic";
34
35
36#*----------------------------------------------------------------------
37* only vapour phase and
38* the extents of reactions are known
39*---------------------------------------------------------------------*#
40FlowSheet sample_stoic_extent_vap
41        PARAMETERS
42        PP              as Plugin(Brief="External physical properties", Type="PP",
43        Components = ["1,3-butadiene", "hydrogen", "1-butene",
44                                        "cis-2-butene", "trans-2-butene"],
45        LiquidModel = "IdealLiquid",
46        VapourModel = "Ideal");
47        NComp   as Integer;
48       
49        DEVICES
50        Fin                     as source;
51        R                       as stoic_extent_vap;
52
53        CONNECTIONS
54        Fin.Outlet      to R.Inlet;
55       
56        SET
57        NComp = PP.NumberOfComponents;
58       
59        R.NReac = 3;
60       
61        R.stoic(:,1) = [-1, -1, 1, 0, 0]; # (1)
62        R.stoic(:,2) = [-1, -1, 0, 1, 0]; # (2)
63        R.stoic(:,3) = [-1, -1, 0, 0, 1]; # (3)
64       
65        SPECIFY
66        Fin.Outlet.F = 1000*'kmol/h';
67        Fin.Outlet.z = [0.25, 0.75, 0, 0, 0];
68        Fin.Outlet.P = 10*'kgf/cm^2';
69        Fin.Outlet.T = 500*'K';
70
71        R.Outlet.F = 1000*'kmol/h'*sqrt(R.Level/'m');
72        R.Outlet.P = 10*'kgf/cm^2';
73        R.Q = 0*'W';
74       
75        R.extent = [85, 65, 75]*'kmol/h';
76        R.Across = 5*'m^2';
77       
78        INITIAL
79    R.Outletm.T = 500*'K';
80        R.M = [25, 75, 0, 0, 0]*'kmol';
81       
82        OPTIONS
83        TimeStep = 5;
84        TimeEnd = 150;
85end
86
87
88#*----------------------------------------------------------------------
89* only vapour phase and
90* the conversion of a key component is known
91*---------------------------------------------------------------------*#
92FlowSheet sample_stoic_conv_vap
93        PARAMETERS
94        PP              as Plugin(Brief="External physical properties", Type="PP",
95        Components = ["1,3-butadiene", "hydrogen", "1-butene",
96                                                "cis-2-butene", "trans-2-butene"],
97        LiquidModel = "IdealLiquid",
98        VapourModel = "Ideal");
99        NComp   as Integer;
100       
101        DEVICES
102        Fin                     as source;
103        R                       as stoic_conv_vap;
104
105        CONNECTIONS
106        Fin.Outlet      to R.Inlet;
107
108        SET
109        NComp = PP.NumberOfComponents;
110       
111        R.NReac = 3;
112        R.KComp = 1; # 1,3-butadiene
113
114        R.stoic(:,1) = [-1, -1, 1, 0, 0]; # (1)
115        R.stoic(:,2) = [-1, -1, 0, 1, 0]; # (2)
116        R.stoic(:,3) = [-1, -1, 0, 0, 1]; # (3)
117       
118        SPECIFY
119        Fin.Outlet.F = 1000*'kmol/h';
120        Fin.Outlet.z = [0.25, 0.75, 0, 0, 0];
121        Fin.Outlet.P = 10*'kgf/cm^2';
122        Fin.Outlet.T = 500*'K';
123       
124        R.Outlet.F = 1000*'kmol/h'*sqrt(R.Level/'m');
125        R.Outlet.P = 10*'kgf/cm^2';
126        R.Q = 0*'W';
127
128        R.kconv = 0.9;
129        R.Across = 5*'m^2';
130
131        OPTIONS
132        Dynamic = false;
133end
Note: See TracBrowser for help on using the repository browser.