source: branches/gui/sample/stage_separators/Section_Column_Diagram.mso @ 749

Last change on this file since 749 was 749, checked in by gerson bicca, 14 years ago

added samples in mso version

File size: 3.9 KB
Line 
1#*----------------------------------------------
2* FlowSheet generated automaticaly by EMSO-GUI
3*----------------------------------------------*#
4
5using "streams";
6using "stage_separators/column";
7using "stage_separators/reboiler";
8
9FlowSheet Section_Column_Diagram
10        PARAMETERS
11        PP as Plugin(Brief="Physical Properties",
12                Type="PP",
13                Components = ["isobutane","benzene"],
14                LiquidModel = "PR",
15                VapourModel = "PR"
16        );
17        NComp as Integer;
18        SET
19        NComp = PP.NumberOfComponents;
20
21        DEVICES
22        feed as simple_source;
23
24        SET
25
26        SPECIFY
27        feed.MolarComposition(1) = 0.5;
28        feed.MolarComposition(2) = 0.5;
29        feed.F = 113.4 * 'kmol/h';
30        feed.T = 291 * 'K';
31        feed.P = 168.30 * 'kPa';
32
33        INITIAL
34
35        GUESS
36
37        DEVICES
38        SectionBottom as Section_Column;
39
40        SET
41        SectionBottom.NumberOfTrays = 8;
42        SectionBottom.FeedTrayLocation = 5;
43        SectionBottom.VolumeOfTray = 4 * 'ft^3';
44        SectionBottom.HeatSupply = 0 * 'kW';
45        SectionBottom.PlateArea = 3.94 * 'ft^2';
46        SectionBottom.HolesArea = 0.394 * 'ft^2';
47        SectionBottom.WeirLength = 20.94 * 'in';
48        SectionBottom.WeirHeight = 0.125 * 'ft';
49        SectionBottom.beta = 0.6;
50        SectionBottom.alfa = 4;
51
52        SPECIFY
53        SectionBottom.VapourDrawOffFlow = 0 * 'kmol/h';
54        SectionBottom.LiquidDrawOffFlow = 0 * 'kmol/h';
55        SectionBottom.MurphreeEff = 1;
56
57        INITIAL
58
59        GUESS
60
61        DEVICES
62        HeatSupplied as energy_source;
63
64        SET
65
66        SPECIFY
67        HeatSupplied.OutletQ = 3.774 * 'kJ/h';
68
69        INITIAL
70
71        GUESS
72
73        DEVICES
74        LiquidOut as simple_sink;
75
76        SET
77
78        SPECIFY
79
80        INITIAL
81
82        GUESS
83
84        DEVICES
85        SectionTop as Section_Column;
86
87        SET
88        SectionTop.NumberOfTrays = 4;
89        SectionTop.VolumeOfTray = 4 * 'ft^3';
90        SectionTop.HeatSupply = 0 * 'kW';
91        SectionTop.PlateArea = 3.94 * 'ft^2';
92        SectionTop.HolesArea = 0.394 * 'ft^2';
93        SectionTop.WeirLength = 21 * 'in';
94        SectionTop.WeirHeight = 0.13 * 'ft';
95        SectionTop.beta = 0.6;
96        SectionTop.alfa = 4;
97        SectionTop.INITIALIZATION.TopTemperature = 300 * 'K';
98        SectionTop.INITIALIZATION.BottomTemperature = 330 * 'K';
99        SectionTop.INITIALIZATION.LevelFraction = 0.5;
100        SectionTop.INITIALIZATION.TopComposition(1) = 0.5;
101        SectionTop.INITIALIZATION.TopComposition(2) = 0.5;
102        SectionTop.INITIALIZATION.BottomComposition(1) = 0.5;
103        SectionTop.INITIALIZATION.BottomComposition(2) = 0.5;
104
105        SPECIFY
106        SectionTop.VapourDrawOffFlow = 0 * 'kmol/h';
107        SectionTop.LiquidDrawOffFlow = 0 * 'kmol/h';
108        SectionTop.MurphreeEff = 1;
109        SectionTop.VapourOutlet.F = 12 * 'kmol/h';
110
111        INITIAL
112
113        GUESS
114
115        DEVICES
116        vaporoutlet as sink;
117
118        SET
119
120        SPECIFY
121
122        INITIAL
123
124        GUESS
125
126        DEVICES
127        CondenserDevice as simple_source;
128
129        SET
130
131        SPECIFY
132        CondenserDevice.MolarComposition(1) = 0.66;
133        CondenserDevice.MolarComposition(2) = 0.33;
134        CondenserDevice.F = 68 * 'kmol/h';
135        CondenserDevice.T = 280 * 'K';
136        CondenserDevice.P = 150 * 'kPa';
137
138        INITIAL
139
140        GUESS
141
142        DEVICES
143        NoFlow as sourceNoFlow;
144
145        SET
146
147        SPECIFY
148
149        INITIAL
150
151        GUESS
152
153        DEVICES
154        reboilerDevice as reboiler;
155
156        SET
157        reboilerDevice.Across = 1 * 'm^2';
158        reboilerDevice.V = 2 * 'm^3';
159        reboilerDevice.Initial_Level = 1 * 'm';
160        reboilerDevice.Initial_Temperature = 350 * 'K';
161        reboilerDevice.Initial_Composition(1) = 0.5;
162        reboilerDevice.Initial_Composition(2) = 0.5;
163
164        SPECIFY
165        reboilerDevice.OutletLiquid.F = 28.4 * 'kmol/h';
166
167        INITIAL
168
169        GUESS
170
171        CONNECTIONS
172        feed.Outlet to SectionBottom.FeedTray;
173        SectionBottom.VapourOutlet to SectionTop.VapourInlet;
174        SectionTop.LiquidOutlet to SectionBottom.LiquidInlet;
175        SectionTop.VapourOutlet to vaporoutlet.Inlet;
176        CondenserDevice.Outlet to SectionTop.LiquidInlet;
177        NoFlow.Outlet to SectionTop.FeedTray;
178        HeatSupplied.OutletQ to reboilerDevice.InletQ;
179        reboilerDevice.OutletVapour to SectionBottom.VapourInlet;
180        SectionBottom.LiquidOutlet to reboilerDevice.InletLiquid;
181        reboilerDevice.OutletLiquid to LiquidOut.Inlet;
182
183        OPTIONS
184        Dynamic = true;
185        TimeStep = 0.1;
186        TimeEnd = 100;
187        TimeUnit = 's';
188        Integration = "original";
189        NLASolver(
190                File = "sundials",
191                RelativeAccuracy = 1e-3,
192                AbsoluteAccuracy = 1e-6,
193                MaxIterations = 100
194        );
195        DAESolver(
196                File = "sundials",
197                RelativeAccuracy = 1e-3,
198                AbsoluteAccuracy = 1e-6,
199                EventAccuracy = 1e-2
200        );
201end
Note: See TracBrowser for help on using the repository browser.