source: branches/gui/sample/stage_separators/ColumnPacked_Diagram.mso @ 905

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

added samples in mso version

File size: 3.5 KB
Line 
1#*----------------------------------------------
2* FlowSheet generated automaticaly by EMSO-GUI
3*----------------------------------------------*#
4
5using "streams";
6using "stage_separators/column";
7
8FlowSheet ColumnPacked_Diagram
9        PARAMETERS
10        PP as Plugin(Brief="Physical Properties",
11                Type="PP",
12                Components = ["isobutane","n-pentane","propylene","benzene","isobutene"],
13                LiquidModel = "PR",
14                VapourModel = "PR"
15        );
16        NComp as Integer;
17
18DEVICES
19        feed                            as simple_source;
20        Packed_Section          as Packed_Section_Column;
21        Vapour_Out                      as simple_sink;
22        Liquid_Out                      as simple_sink;
23        condenser_device        as simple_source;
24        reboiler_device         as simple_source;
25       
26SET
27        NComp = PP.NumberOfComponents;
28        feed.ValidPhases = "Liquid-Only";
29
30SPECIFY
31        feed.MolarComposition(1) = 0.2;
32        feed.MolarComposition(2) = 0.2;
33        feed.MolarComposition(3) = 0.2;
34        feed.MolarComposition(4) = 0.2;
35        feed.MolarComposition(5) = 0.2;
36        feed.F = 113.4 * 'kmol/h';
37        feed.T = 291 * 'K';
38        feed.P = 1.66 * 'atm';
39
40SET
41        Packed_Section.NumberOfStages = 8;
42        Packed_Section.FeedStageLocation = 5;
43        Packed_Section.PackingHeight = 4 * 'm';
44        Packed_Section.HeatSupply = 0 * 'kW';
45        Packed_Section.ColumnDiameter = 1.009 * 'm';
46        Packed_Section.VoidFraction = 0.951;
47        Packed_Section.ResistanceCoeff = 0.1;
48        Packed_Section.AreaPerPackingVol = 112.6 * 'm^2/m^3';
49        Packed_Section.INITIALIZATION.TopStageTemperature = 300 * 'K';
50        Packed_Section.INITIALIZATION.BottomStageTemperature = 300 * 'K';
51        Packed_Section.INITIALIZATION.TopStageComposition(1) = 0.2;
52        Packed_Section.INITIALIZATION.TopStageComposition(2) = 0.2;
53        Packed_Section.INITIALIZATION.TopStageComposition(3) = 0.2;
54        Packed_Section.INITIALIZATION.TopStageComposition(4) = 0.2;
55        Packed_Section.INITIALIZATION.TopStageComposition(5) = 0.2;
56        Packed_Section.INITIALIZATION.BottomStageComposition(1) = 0.2;
57        Packed_Section.INITIALIZATION.BottomStageComposition(2) = 0.2;
58        Packed_Section.INITIALIZATION.BottomStageComposition(3) = 0.2;
59        Packed_Section.INITIALIZATION.BottomStageComposition(4) = 0.2;
60        Packed_Section.INITIALIZATION.BottomStageComposition(5) = 0.2;
61        Packed_Section.INITIALIZATION.LiquidMolarHoldup = 0.01 * 'kmol';
62
63        SPECIFY
64        Packed_Section.PressureDrop = 0.008 * 'atm';
65
66
67SET
68        condenser_device.ValidPhases = "Liquid-Only";
69
70SPECIFY
71        condenser_device.MolarComposition(1) = 0.599;
72        condenser_device.MolarComposition(2) = 0.044;
73        condenser_device.MolarComposition(3) = 0.035;
74        condenser_device.MolarComposition(4) = 0.007;
75        condenser_device.MolarComposition(5) = 0.315;
76        condenser_device.F = 85 * 'kmol/h';
77        condenser_device.T = 283.5 * 'K';
78        condenser_device.P = 2.33 * 'atm';
79
80SET
81        reboiler_device.ValidPhases = "Vapour-Only";
82
83SPECIFY
84        reboiler_device.MolarComposition(1) = 0.16;
85        reboiler_device.MolarComposition(2) = 0.542;
86        reboiler_device.MolarComposition(3) = 0.013;
87        reboiler_device.MolarComposition(4) = 0.008;
88        reboiler_device.MolarComposition(5) = 0.277;
89        reboiler_device.F = 137.57 * 'kmol/h';
90        reboiler_device.T = 325 * 'K';
91        reboiler_device.P = 2.46 * 'atm';
92
93CONNECTIONS
94        feed.Outlet to Packed_Section.FeedStage;
95        Packed_Section.VapourOutlet to Vapour_Out.Inlet;
96        Packed_Section.LiquidOutlet to Liquid_Out.Inlet;
97        condenser_device.Outlet to Packed_Section.LiquidInlet;
98        reboiler_device.Outlet to Packed_Section.VapourInlet;
99
100OPTIONS
101        Dynamic = true;
102        TimeStep = 0.1;
103        TimeEnd = 1;
104        TimeUnit = 'h';
105        Integration = "original";
106        NLASolver(
107                File = "sundials",
108                RelativeAccuracy = 1e-3,
109                AbsoluteAccuracy = 1e-6,
110                MaxIterations = 100
111        );
112        DAESolver(
113                File = "sundials",
114                RelativeAccuracy = 1e-3,
115                AbsoluteAccuracy = 1e-6,
116                EventAccuracy = 1e-2
117        );
118end
Note: See TracBrowser for help on using the repository browser.