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 pfr |
---|
17 | * |
---|
18 | * |
---|
19 | * Adiabatic Production of Acetic Anhydride with a PFR |
---|
20 | * |
---|
21 | * Based on Example 8-6 of Elements of Chemical Reaction Engineering |
---|
22 | * Second Edition H. Scott Fogler |
---|
23 | * |
---|
24 | * |
---|
25 | *-------------------------------------------------------------------- |
---|
26 | * |
---|
27 | * This sample file needs VRTherm (www.vrtech.com.br) to run. |
---|
28 | * |
---|
29 | *---------------------------------------------------------------------- |
---|
30 | * Author: Rafael de P. Soares |
---|
31 | * Paula B. Staudt |
---|
32 | * $Id: sample_pfr.mso 578 2008-07-25 22:24:26Z bicca $ |
---|
33 | *--------------------------------------------------------------------*# |
---|
34 | |
---|
35 | using "reactors/pfr"; |
---|
36 | |
---|
37 | FlowSheet PFR_AceticAnhydride |
---|
38 | |
---|
39 | PARAMETERS |
---|
40 | |
---|
41 | PP as Plugin (Brief="Physical Properties", |
---|
42 | Type = "PP", |
---|
43 | Components = ["acetone", "acetic anhydride", "methane" ], |
---|
44 | LiquidModel = "PR", |
---|
45 | VapourModel = "PR" |
---|
46 | ); |
---|
47 | NComp as Integer; |
---|
48 | |
---|
49 | DEVICES |
---|
50 | |
---|
51 | s1 as source; |
---|
52 | Reac as pfr; |
---|
53 | |
---|
54 | SET |
---|
55 | NComp = PP.NumberOfComponents; |
---|
56 | |
---|
57 | s1.ValidPhases = "Vapour-Liquid"; |
---|
58 | s1.CompostionBasis = "Molar"; |
---|
59 | |
---|
60 | Reac.NDisc = 10; |
---|
61 | Reac.Across = 0.7 * 'in^2'; |
---|
62 | Reac.L = 2.28 * 'm'; |
---|
63 | Reac.NReac = 1; |
---|
64 | |
---|
65 | # Reaction 1: A -> B + C |
---|
66 | Reac.stoic(:,1) = [-1, 1, 1]; |
---|
67 | |
---|
68 | EQUATIONS |
---|
69 | |
---|
70 | for z in [1:Reac.NDisc] do |
---|
71 | |
---|
72 | "Reaction Rate = k*C(1)" |
---|
73 | Reac.r(1,z) = exp(34.34 - (34222 * 'K') / Reac.str(z).T)*'1/s' * Reac.C(1,z); |
---|
74 | |
---|
75 | "Heat of reaction" |
---|
76 | Reac.Hr(1,z) = -80.77 * 'kJ/mol'; |
---|
77 | |
---|
78 | "Pressure Drop (no pressure drop)" |
---|
79 | Reac.str(z+1).P = Reac.str(z).P; |
---|
80 | |
---|
81 | end |
---|
82 | |
---|
83 | SPECIFY |
---|
84 | s1.F = 138/1000 * 'kmol/h'; |
---|
85 | s1.T = 1035 * 'K'; |
---|
86 | s1.P = 1.6 * 'atm'; |
---|
87 | s1.Composition = [1, 0, 0]; |
---|
88 | |
---|
89 | Reac.q = 0 * 'J/s'; |
---|
90 | |
---|
91 | CONNECTIONS |
---|
92 | |
---|
93 | s1.Outlet to Reac.Inlet; |
---|
94 | |
---|
95 | INITIAL |
---|
96 | |
---|
97 | for z in [2:Reac.NDisc+1] do |
---|
98 | |
---|
99 | Reac.str(z).T = Reac.Inlet.T; |
---|
100 | Reac.str(z).z(1:NComp-1) = Reac.Inlet.z(1:NComp-1); |
---|
101 | |
---|
102 | end |
---|
103 | |
---|
104 | OPTIONS |
---|
105 | # This model can be solved in both steady or dynamic |
---|
106 | Dynamic = true; |
---|
107 | TimeStep = 0.05; |
---|
108 | TimeEnd = 3; |
---|
109 | #Dynamic = false; |
---|
110 | #DAESolver = "dassl"; |
---|
111 | end |
---|