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

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

fixed some samples

File size: 7.0 KB
Line 
1#*----------------------------------------------
2* FlowSheet generated automaticaly by EMSO-GUI
3*----------------------------------------------*#
4
5using "streams.mso";
6using "controllers/PIDs.mso";
7using "mixers_splitters/splitter.mso";
8using "pressure_changers/valve.mso";
9using "pressure_changers/pump.mso";
10using "controllers/heat_flow.mso";
11using "stage_separators/column.mso";
12using "stage_separators/reboiler.mso";
13using "stage_separators/condenser.mso";
14
15FlowSheet Section_Column_Three_Inputs
16        PARAMETERS
17        PP as Plugin(Brief="Physical Properties",
18                Type="PP",
19                Components = ["propylene","propane"],
20                LiquidModel = "PR",
21                VapourModel = "PR"
22        );
23        NComp as Integer;
24        SET
25        NComp = PP.NumberOfComponents;
26
27        DEVICES
28        feed1 as simple_source;
29        LiquidOut as simple_sink;
30        PIDT_condenser as PID;
31        PIDT_reboiler as PID;
32        PIDL_reboiler as PID;
33        splitter_S1 as splitter_column;
34        Valve_Distillate as valve_flow;
35        distillate_stream as sink;
36        pump_P1 as pump2;
37        Valve_Bottom as valve_flow;
38        PIDL_condenser as PID;
39        heat_condenser as heat_flow;
40        heat_reboiler as heat_flow;
41        feed2 as simple_source;
42        feed3 as simple_source;
43        column_T1 as Section_Column3;
44        reboiler_R1 as reboiler;
45        condenser_C1 as condenser;
46        vapour_s1 as simple_sink2;
47
48        CONNECTIONS
49        splitter_S1.Distillate to Valve_Distillate.Inlet;
50        Valve_Distillate.Outlet to distillate_stream.Inlet;
51        splitter_S1.Reflux to pump_P1.Inlet;
52        Valve_Bottom.Outlet to LiquidOut.Inlet;
53        PIDL_reboiler.Output to Valve_Bottom.FlowFraction;
54        PIDL_condenser.Output to Valve_Distillate.FlowFraction;
55        PIDT_condenser.Output to heat_condenser.HeatFlowFraction;
56        PIDT_reboiler.Output to heat_reboiler.HeatFlowFraction;
57        feed3.Outlet to column_T1.FeedTrayThree;
58        feed2.Outlet to column_T1.FeedTrayTwo;
59        feed1.Outlet to column_T1.FeedTrayOne;
60        pump_P1.Outlet to column_T1.LiquidInlet;
61        column_T1.VapourOutlet to condenser_C1.InletVapour;
62        condenser_C1.OutletLiquid to splitter_S1.Inlet;
63        heat_condenser.HeatFlow to condenser_C1.InletQ;
64        condenser_C1.TI to PIDT_condenser.Input;
65        condenser_C1.LI to PIDL_condenser.Input;
66        reboiler_R1.OutletVapour to column_T1.VapourInlet;
67        column_T1.LiquidOutlet to reboiler_R1.InletLiquid;
68        heat_reboiler.HeatFlow to reboiler_R1.InletQ;
69        reboiler_R1.TI to PIDT_reboiler.Input;
70        reboiler_R1.OutletLiquid to Valve_Bottom.Inlet;
71        reboiler_R1.LI to PIDL_reboiler.Input;
72        condenser_C1.OutletVapour to vapour_s1.Inlet;
73
74        SET
75        feed1.ValidPhases = "Vapour-Liquid" ;
76        PIDT_condenser.PID_Select = "Ideal_AW" ;
77        PIDT_condenser.Action = "Reverse" ;
78        PIDT_condenser.Mode = "Automatic" ;
79        PIDT_condenser.Clip = "Clipped" ;
80        PIDT_condenser.alpha = 0.2 ;
81        PIDT_condenser.beta = 1 ;
82        PIDT_condenser.bias = 0.5 ;
83        PIDT_condenser.derivTime = 10 * 's' ;
84        PIDT_condenser.intTime = 100 * 's' ;
85        PIDT_condenser.gain = 5 ;
86        PIDT_condenser.gamma = 1 ;
87        PIDT_condenser.tau = 1 * 's' ;
88        PIDT_condenser.tauSet = 1 * 's' ;
89        PIDT_condenser.MinInput = 250 ;
90        PIDT_condenser.MaxInput = 380 ;
91        PIDT_condenser.MinOutput = 0 ;
92        PIDT_condenser.MaxOutput = 1 ;
93        PIDT_reboiler.PID_Select = "Ideal_AW" ;
94        PIDT_reboiler.Action = "Reverse" ;
95        PIDT_reboiler.Mode = "Automatic" ;
96        PIDT_reboiler.Clip = "Clipped" ;
97        PIDT_reboiler.alpha = 0.2 ;
98        PIDT_reboiler.beta = 1 ;
99        PIDT_reboiler.bias = 0.2 ;
100        PIDT_reboiler.derivTime = 1 * 's' ;
101        PIDT_reboiler.intTime = 10 * 's' ;
102        PIDT_reboiler.gain = 3 ;
103        PIDT_reboiler.gamma = 1 ;
104        PIDT_reboiler.tau = 1 * 's' ;
105        PIDT_reboiler.tauSet = 1 * 's' ;
106        PIDT_reboiler.MinInput = 200 ;
107        PIDT_reboiler.MaxInput = 400 ;
108        PIDT_reboiler.MinOutput = 0 ;
109        PIDT_reboiler.MaxOutput = 1 ;
110        PIDL_reboiler.PID_Select = "Ideal_AW" ;
111        PIDL_reboiler.Action = "Direct" ;
112        PIDL_reboiler.Mode = "Automatic" ;
113        PIDL_reboiler.Clip = "Clipped" ;
114        PIDL_reboiler.alpha = 1 ;
115        PIDL_reboiler.beta = 1 ;
116        PIDL_reboiler.bias = 0 ;
117        PIDL_reboiler.derivTime = 0 * 's' ;
118        PIDL_reboiler.intTime = 20 * 's' ;
119        PIDL_reboiler.gain = 5 ;
120        PIDL_reboiler.gamma = 1 ;
121        PIDL_reboiler.tau = 1 * 's' ;
122        PIDL_reboiler.tauSet = 1 * 's' ;
123        PIDL_reboiler.MinInput = 0.1 ;
124        PIDL_reboiler.MaxInput = 0.8 ;
125        PIDL_reboiler.MinOutput = 0 ;
126        PIDL_reboiler.MaxOutput = 1 ;
127        Valve_Distillate.MinFlow = 0 * 'kmol/h' ;
128        Valve_Distillate.MaxFlow = 400 * 'kmol/h' ;
129        Valve_Bottom.MinFlow = 0 * 'kmol/h' ;
130        Valve_Bottom.MaxFlow = 1000 * 'kmol/h' ;
131        PIDL_condenser.PID_Select = "Ideal_AW" ;
132        PIDL_condenser.Action = "Direct" ;
133        PIDL_condenser.Mode = "Automatic" ;
134        PIDL_condenser.Clip = "Clipped" ;
135        PIDL_condenser.alpha = 1 ;
136        PIDL_condenser.beta = 1 ;
137        PIDL_condenser.bias = 0 ;
138        PIDL_condenser.derivTime = 0 * 's' ;
139        PIDL_condenser.intTime = 20 * 's' ;
140        PIDL_condenser.gain = 2 ;
141        PIDL_condenser.gamma = 1 ;
142        PIDL_condenser.tau = 1 * 's' ;
143        PIDL_condenser.tauSet = 1 * 's' ;
144        PIDL_condenser.MinInput = 0.1 ;
145        PIDL_condenser.MaxInput = 0.8 ;
146        PIDL_condenser.MinOutput = 0 ;
147        PIDL_condenser.MaxOutput = 1 ;
148        heat_condenser.MinHeatFlow = -300 * 'kW' ;
149        heat_condenser.MaxHeatFlow = 0 * 'kW' ;
150        heat_reboiler.MinHeatFlow = 0 * 'kW' ;
151        heat_reboiler.MaxHeatFlow = 450 * 'kW' ;
152        feed2.ValidPhases = "Vapour-Liquid" ;
153        feed3.ValidPhases = "Vapour-Liquid" ;
154        column_T1.INITIALIZATION.TopTemperature = 321 * 'K' ;
155        column_T1.INITIALIZATION.BottomTemperature = 328 * 'K' ;
156        column_T1.INITIALIZATION.LevelFraction = 0.8 ;
157        column_T1.FeedTrayLocation(1) = 5 ;
158        column_T1.FeedTrayLocation(2) = 11 ;
159        column_T1.FeedTrayLocation(3) = 22 ;
160        column_T1.NumberOfTrays = 30 ;
161        column_T1.LiquidSideStreamLocation = 2 ;
162        column_T1.VapourSideStreamLocation = 2 ;
163        column_T1.WeirLength = 20.95 * 'in' ;
164        column_T1.WeirHeight = 0.125 * 'ft' ;
165        column_T1.TrayLiquidPasses = 1 ;
166        column_T1.HeatSupply = 0 * 'kW' ;
167        column_T1.AerationFraction = 0.4 ;
168        column_T1.DryPdropCoeff = 6 ;
169        column_T1.MurphreeEff = 1 ;
170        reboiler_R1.Initial_Temperature = 335 * 'K' ;
171        reboiler_R1.Initial_Composition(1) = 0.01 ;
172        reboiler_R1.Initial_Composition(2) = 0.99 ;
173        condenser_C1.Initial_Temperature = 320 * 'K' ;
174        condenser_C1.Initial_Composition(1) = 0.7 ;
175        condenser_C1.Initial_Composition(2) = 0.3 ;
176
177        SPECIFY
178        feed1.MolarComposition(1) = 0.4 ;
179        feed1.MolarComposition(2) = 0.6 ;
180        feed1.F = 612.4 * 'kmol/h' ;
181        feed1.T_Cdeg = 50 * 'K' ;
182        feed1.P = 2068 * 'kPa' ;
183        PIDT_condenser.SetPoint = (273+45) ;
184        PIDT_reboiler.SetPoint = (58+273) ;
185        PIDL_reboiler.SetPoint = 0.5 ;
186        splitter_S1.RefluxRatio = 20 ;
187        pump_P1.Pincrease = 14 * 'kPa' ;
188        PIDL_condenser.SetPoint = 0.5 ;
189        feed2.MolarComposition(1) = 0.4 ;
190        feed2.MolarComposition(2) = 0.6 ;
191        feed2.F = 6.4 * 'kmol/h' ;
192        feed2.T_Cdeg = 30 * 'K' ;
193        feed2.P = 2018 * 'kPa' ;
194        feed3.MolarComposition(1) = 0.1 ;
195        feed3.MolarComposition(2) = 0.9 ;
196        feed3.F = 0.64 * 'kmol/h' ;
197        feed3.T_Cdeg = 30 * 'K' ;
198        feed3.P = 2018 * 'kPa' ;
199        column_T1.VapourDrawOffFlow = 0 * 'kmol/h' ;
200        column_T1.LiquidDrawOffFlow = 0 * 'kmol/h' ;
201        condenser_C1.OutletVapour.F = 0 * 'kmol/h' ;
202
203        INITIAL
204
205        GUESS
206
207        OPTIONS
208        Dynamic = true;
209        TimeStep = 0.1;
210        TimeEnd = 12;
211        TimeUnit = 'h';
212        Integration = "original";
213        NLASolver(
214                File = "sundials",
215                RelativeAccuracy = 1e-2,
216                AbsoluteAccuracy = 1e-6,
217                MaxIterations = 100
218        );
219        DAESolver(
220                File = "dassl",
221                RelativeAccuracy = 1e-2,
222                AbsoluteAccuracy = 1e-6,
223                EventAccuracy = 1e-2
224        );
225end
Note: See TracBrowser for help on using the repository browser.