Changeset 913
- Timestamp:
- Feb 20, 2010, 4:16:49 AM (12 years ago)
- Location:
- branches/gui
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/tank.mso
r883 r913 689 689 end 690 690 691 Model tank_simplified 692 ATTRIBUTES 693 Pallete = true; 694 Icon = "icon/Tank"; 695 Brief = "Model of a simplified tank."; 696 Info = 697 "== Specify == 698 * the Inlet flow rate; 699 700 == Initial Conditions == 701 * the tank initial level (Level); 702 "; 703 704 PARAMETERS 705 k as Real (Brief="Valve Constant", Unit = 'm^2.5/h', Default=4); 706 A as area (Brief="Tank area", Default=2); 707 708 VARIABLES 709 Level as length(Brief="Tank level"); 710 in Fin as flow_vol(Brief="Input flow", PosX=0.3037, PosY=0); 711 out Fout as flow_vol(Brief="Output flow", PosX=1, PosY=1); 712 713 EQUATIONS 714 "Mass balance" 715 diff(A*Level) = Fin - Fout; 716 717 "Valve equation" 718 Fout = k*sqrt(Level); 719 end -
branches/gui/eml/streams.mso
r903 r913 883 883 end 884 884 885 Model energy_sink 886 ATTRIBUTES 887 Pallete = true; 888 Icon = "icon/Sink"; 889 Brief = "Energy stream sink"; 890 891 VARIABLES 892 in InletQ as power(Brief = "Inlet energy stream", PosX=0, PosY=0.5308, Symbol="_{in}"); 893 894 end 895 885 896 Model work_source 886 897 ATTRIBUTES -
branches/gui/sample/miscellaneous/sample_gibbs_reactor_simple.mso
r410 r913 84 84 85 85 # Ethane decomposition to produce ethylene and hydrogen at 1000 degC 86 FlowSheet gibbs_reactor_simple_sample as gibbs_reactor_simple86 FlowSheet gibbs_reactor_simple_sample 87 87 PARAMETERS 88 88 PP as Plugin(Brief="Physical Properties", … … 94 94 NComp as Integer; 95 95 96 SET 97 NComp = PP.NumberOfComponents; 98 nu = [-1, 1, 1]; 99 100 SPECIFY 101 T = (1000 + 273.15) * 'K'; 102 P = 1 * 'atm'; 103 n0 = [1, 0, 0] * 'mol'; 96 DEVICES 97 R as gibbs_reactor_simple; 98 99 SET 100 NComp = PP.NumberOfComponents; 101 R.nu = [-1, 1, 1]; 102 103 SPECIFY 104 R.T = (1000 + 273.15) * 'K'; 105 R.P = 1 * 'atm'; 106 R.n0 = [1, 0, 0] * 'mol'; 104 107 105 108 # Expected results: … … 113 116 114 117 # Ethanol production by ethylene hydratation at 250 degC and 35 bar 115 FlowSheet gibbs_reactor_simple_sample2 as gibbs_reactor_simple118 FlowSheet gibbs_reactor_simple_sample2 116 119 PARAMETERS 117 120 PP as Plugin(Brief="Physical Properties", … … 123 126 NComp as Integer; 124 127 125 SET 126 NComp = PP.NumberOfComponents; 127 nu = [-1, -1, 1]; 128 129 SPECIFY 130 T = (250 + 273.15) * 'K'; 131 P = 35 * 'atm'; 132 n0 = [1, 5, 0] * 'mol'; 128 DEVICES 129 R as gibbs_reactor_simple; 130 131 SET 132 NComp = PP.NumberOfComponents; 133 R.nu = [-1, -1, 1]; 134 135 SPECIFY 136 R.T = (250 + 273.15) * 'K'; 137 R.P = 35 * 'atm'; 138 R.n0 = [1, 5, 0] * 'mol'; 133 139 134 140 # Expected results: … … 140 146 141 147 # Water-gas-shift T = 1100 K, P = 1 bar 142 FlowSheet gibbs_reactor_simple_sample3 as gibbs_reactor_simple148 FlowSheet gibbs_reactor_simple_sample3 143 149 PARAMETERS 144 150 PP as Plugin(Brief="Physical Properties", … … 150 156 NComp as Integer; 151 157 152 SET 153 NComp = PP.NumberOfComponents; 154 nu = [-1, -1, 1, 1]; 155 156 SPECIFY 157 T = 1100 * 'K'; 158 P = 1 * 'bar'; 159 n0 = [1, 1, 0, 0] * 'mol'; 158 DEVICES 159 R as gibbs_reactor_simple; 160 161 SET 162 NComp = PP.NumberOfComponents; 163 R.nu = [-1, -1, 1, 1]; 164 165 SPECIFY 166 R.T = 1100 * 'K'; 167 R.P = 1 * 'bar'; 168 R.n0 = [1, 1, 0, 0] * 'mol'; 160 169 161 170 # Expected results: … … 168 177 169 178 # Water-gas-shift T = 1100 K, P = 10 bar 170 FlowSheet gibbs_reactor_simple_sample4 as gibbs_reactor_simple179 FlowSheet gibbs_reactor_simple_sample4 171 180 PARAMETERS 172 181 PP as Plugin(Brief="Physical Properties", … … 178 187 NComp as Integer; 179 188 180 SET 181 NComp = PP.NumberOfComponents; 182 nu = [-1, -1, 1, 1]; 183 184 SPECIFY 185 T = 1100 * 'K'; 186 P = 1 * 'bar'; 187 n0 = [1, 1, 0, 0] * 'mol'; 189 DEVICES 190 R as gibbs_reactor_simple; 191 192 SET 193 NComp = PP.NumberOfComponents; 194 R.nu = [-1, -1, 1, 1]; 195 196 SPECIFY 197 R.T = 1100 * 'K'; 198 R.P = 1 * 'bar'; 199 R.n0 = [1, 1, 0, 0] * 'mol'; 188 200 189 201 # Expected results: … … 196 208 197 209 # Water-gas-shift T = 1100 K, P = 1 bar excess of water 198 FlowSheet gibbs_reactor_simple_sample5 as gibbs_reactor_simple210 FlowSheet gibbs_reactor_simple_sample5 199 211 PARAMETERS 200 212 PP as Plugin(Brief="Physical Properties", … … 205 217 ); 206 218 NComp as Integer; 207 208 SET 209 NComp = PP.NumberOfComponents; 210 nu = [-1, -1, 1, 1]; 211 212 SPECIFY 213 T = 1100 * 'K'; 214 P = 1 * 'bar'; 215 n0 = [1, 2, 0, 0] * 'mol'; 219 220 DEVICES 221 R as gibbs_reactor_simple; 222 223 SET 224 NComp = PP.NumberOfComponents; 225 R.nu = [-1, -1, 1, 1]; 226 227 SPECIFY 228 R.T = 1100 * 'K'; 229 R.P = 1 * 'bar'; 230 R.n0 = [1, 2, 0, 0] * 'mol'; 216 231 217 232 # Expected results: … … 223 238 224 239 # Ammonia synthesis from nitrogen and hydrogen T = 500 degC, P = 1 bar 225 FlowSheet gibbs_reactor_simple_sample6 as gibbs_reactor_simple240 FlowSheet gibbs_reactor_simple_sample6 226 241 PARAMETERS 227 242 PP as Plugin(Brief="Physical Properties", … … 233 248 NComp as Integer; 234 249 235 SET 236 NComp = PP.NumberOfComponents; 237 nu = [-1, -1, 2]; 238 239 SPECIFY 240 T = (500 + 273.15) * 'K'; 241 P = 1 * 'bar'; 242 n0 = [1, 3, 0] * 'mol'; 250 DEVICES 251 R as gibbs_reactor_simple; 252 253 SET 254 NComp = PP.NumberOfComponents; 255 R.nu = [-1, -1, 2]; 256 257 SPECIFY 258 R.T = (500 + 273.15) * 'K'; 259 R.P = 1 * 'bar'; 260 R.n0 = [1, 3, 0] * 'mol'; 243 261 244 262 # Expected results: … … 250 268 251 269 # Ammonia synthesis from nitrogen and hydrogen T = 500 degC, P = 300 bar 252 FlowSheet gibbs_reactor_simple_sample7 as gibbs_reactor_simple270 FlowSheet gibbs_reactor_simple_sample7 253 271 PARAMETERS 254 272 PP as Plugin(Brief="Physical Properties", … … 260 278 NComp as Integer; 261 279 262 SET 263 NComp = PP.NumberOfComponents; 264 nu = [-1, -3, 2]; 265 266 SPECIFY 267 T = (500 + 273.15) * 'K'; 268 P = 300 * 'bar'; 269 n0 = [1, 3, 0] * 'mol'; 280 DEVICES 281 R as gibbs_reactor_simple; 282 283 SET 284 NComp = PP.NumberOfComponents; 285 R.nu = [-1, -3, 2]; 286 287 SPECIFY 288 R.T = (500 + 273.15) * 'K'; 289 R.P = 300 * 'bar'; 290 R.n0 = [1, 3, 0] * 'mol'; 270 291 271 292 # Expected results: -
branches/gui/sample/miscellaneous/sample_high_index_optimal.mso
r697 r913 69 69 E = nt*Cv*T; 70 70 71 "Raoult 'sLaw"71 "Raoult Law" 72 72 P*y = Psat*x; 73 73 … … 148 148 #DAESolver(File="dasslc"); # slow integration 149 149 DAESolver(File="mebdf"); # much faster 150 151 150 Dynamic = true; 152 151 end -
branches/gui/sample/miscellaneous/sample_manipulation.mso
r466 r913 49 49 minimum(2) as Real (Brief ="min function"); 50 50 signal(2) as Real (Brief ="sign function"); 51 rounds(2) as Real (Brief ="round function");51 # rounds(2) as Real (Brief ="round function"); 52 52 53 53 SET … … 61 61 minimum = min(Number); 62 62 signal = sign(Number); 63 rounds = round(Number);63 # rounds = round(Number); 64 64 65 65 OPTIONS -
branches/gui/sample/miscellaneous/sample_vrtherm.mso
r582 r913 30 30 PP as Plugin(Brief="Physical Properties", 31 31 Type="PP", 32 Project=" ../mso/sample/miscellaneous/sample.vrtherm",32 Project="sample.vrtherm", 33 33 #Components = ["ethane", "isobutene", "n-pentane", 34 34 # "1-pentene", "1-hexene", "benzene"], … … 53 53 54 54 EQUATIONS 55 fl.OutletL .F = 400*sqrt(fl.Level/'m') * 'kmol/h';55 fl.OutletLiquid.F = 400*sqrt(fl.Geometry.Level/'m') * 'kmol/h'; 56 56 57 57 SPECIFY … … 61 61 s1.Composition = [0.2379,0.3082,0.09958,0.1373,0.08872,0.1283]; 62 62 63 fl.OutletV .F = 68.5 * 'kmol/h';63 fl.OutletVapour.F = 68.5 * 'kmol/h'; 64 64 Q.OutletQ = 0 * 'kJ/h'; 65 65 66 66 SET 67 fl. V = 50 * 'm^3';68 fl. diameter = 2 * 'm';69 fl. orientation = "vertical";70 # fl. orientation = "horizontal";67 fl.Geometry.Lenght = 10 * 'm'; 68 fl.Geometry.Diameter = 2 * 'm'; 69 fl.Geometry.Orientation = "vertical"; 70 # fl.Geometry.Orientation = "horizontal"; 71 71 72 72 INITIAL 73 fl.OutletL.T = 328 * 'K'; 74 fl.Level = 0.4 * 'm'; 75 76 fl.OutletL.z(1) = 0.1; 77 fl.OutletL.z(2) = 0.1; 78 fl.OutletL.z(3) = 0.1; 79 fl.OutletL.z(4) = 0.1; 80 fl.OutletL.z(5) = 0.1; 73 fl.OutletLiquid.T = 338 * 'K'; 74 fl.Geometry.Level = 0.4 * 'm'; 75 fl.OutletLiquid.z([1:5]) = 0.1; 81 76 82 77 OPTIONS -
branches/gui/sample/miscellaneous/tenprobs/prob03.mso
r530 r913 168 168 OPTIONS 169 169 NLPSolver( 170 #File = "ipopt_emso",171 File = "complex", 170 #File = "ipopt_emso", 171 File = "complex", MaxIterations = 500, 172 172 ObjTol = 1e-6); 173 173 Dynamic = false; -
branches/gui/sample/miscellaneous/tenprobs/prob06.pfd
r443 r913 1 <?xml version='1.0' encoding='ascii'?> 2 <Diagram> 3 <Options> 4 <Dynamic>1</Dynamic> 5 <Time_Step>1</Time_Step> 6 <Time_End>90</Time_End> 7 <Time_Unit_Index>1</Time_Unit_Index> 8 <Time_Unit_Text>min</Time_Unit_Text> 9 <Sparse_Algebra>1</Sparse_Algebra> 10 <Integration_Index>0</Integration_Index> 11 <Integration_Text>original</Integration_Text> 12 <NLASolver_File_Index>0</NLASolver_File_Index> 13 <NLASolver_File_Text>sundials</NLASolver_File_Text> 14 <DAESolver_File_Index>0</DAESolver_File_Index> 15 <DAESolver_File_Text>sundials</DAESolver_File_Text> 16 </Options> 17 <Width>2000</Width> 18 <Height>1000</Height> 19 <Grid_Spacing>20</Grid_Spacing> 20 <View> 21 <Zoom_Level>1</Zoom_Level> 22 <Show_Grid>1</Show_Grid> 23 <Snap_to_Grid>1</Snap_to_Grid> 24 <Width>827</Width> 25 <Height>424</Height> 26 <X>0</X> 27 <Y>0</Y> 28 </View> 29 <View> 30 <Zoom_Level>1</Zoom_Level> 31 <Show_Grid>1</Show_Grid> 32 <Snap_to_Grid>1</Snap_to_Grid> 33 <Width>827</Width> 34 <Height>0</Height> 35 <X>0</X> 36 <Y>0</Y> 37 </View> 38 <Block> 39 <Type>steam</Type> 40 <Id_String>steam_1</Id_String> 41 <Block_Name>steam_1</Block_Name> 42 <Image_File_Name>icon/tank_source.png</Image_File_Name> 43 <X>30</X> 44 <Y>254</Y> 45 <Z>0</Z> 46 <Width>40</Width> 47 <Height>21</Height> 48 <Block_Properties> 49 <Sub_Models> 50 <Block_Properties> 51 <Base_Models> 52 <Block_Properties> 53 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 54 <Instance_Id>Outlet.</Instance_Id> 55 <Model_Name>energy_oil_stream</Model_Name> 56 <T_Connection>2</T_Connection> 57 <Variables> 58 <Desc>Outlet.T</Desc> 59 <Index>0</Index> 60 <Values>523.15</Values> 61 <Status>1</Status> 62 <Unit>K</Unit> 63 </Variables> 64 </Block_Properties> 65 </Base_Models> 66 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 67 <Instance_Id>Outlet.</Instance_Id> 68 <Model_Name>Outlet</Model_Name> 69 <T_Connection>2</T_Connection> 70 </Block_Properties> 71 </Sub_Models> 72 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 73 <Instance_Id></Instance_Id> 74 <Model_Name>steam</Model_Name> 75 <T_Connection>0</T_Connection> 76 </Block_Properties> 77 </Block> 78 <Block> 79 <Type>heated_tank</Type> 80 <Id_String>heated_tank_1</Id_String> 81 <Block_Name>heated_tank_1</Block_Name> 82 <Image_File_Name>icon/heated_tank.png</Image_File_Name> 83 <X>91</X> 84 <Y>65</Y> 85 <Z>0</Z> 86 <Width>146</Width> 87 <Height>281</Height> 88 <Block_Properties> 89 <Sub_Models> 90 <Block_Properties> 91 <Base_Models> 92 <Block_Properties> 93 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 94 <Instance_Id>Inlet.</Instance_Id> 95 <Model_Name>oil_stream</Model_Name> 96 <T_Connection>1</T_Connection> 97 </Block_Properties> 98 </Base_Models> 99 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 100 <Instance_Id>Inlet.</Instance_Id> 101 <Model_Name>Inlet</Model_Name> 102 <T_Connection>1</T_Connection> 103 </Block_Properties> 104 </Sub_Models> 105 <Sub_Models> 106 <Block_Properties> 107 <Base_Models> 108 <Block_Properties> 109 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 110 <Instance_Id>Outlet.</Instance_Id> 111 <Model_Name>oil_stream</Model_Name> 112 <T_Connection>2</T_Connection> 113 <Variables> 114 <Desc>Outlet.T</Desc> 115 <Index>0</Index> 116 <Values>293.15</Values> 117 <Status>2</Status> 118 <Unit>K</Unit> 119 </Variables> 120 </Block_Properties> 121 </Base_Models> 122 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 123 <Instance_Id>Outlet.</Instance_Id> 124 <Model_Name>Outlet</Model_Name> 125 <T_Connection>2</T_Connection> 126 </Block_Properties> 127 </Sub_Models> 128 <Sub_Models> 129 <Block_Properties> 130 <Base_Models> 131 <Block_Properties> 132 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 133 <Instance_Id>InletQ.</Instance_Id> 134 <Model_Name>energy_oil_stream</Model_Name> 135 <T_Connection>1</T_Connection> 136 </Block_Properties> 137 </Base_Models> 138 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 139 <Instance_Id>InletQ.</Instance_Id> 140 <Model_Name>InletQ</Model_Name> 141 <T_Connection>1</T_Connection> 142 </Block_Properties> 143 </Sub_Models> 144 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 145 <Instance_Id></Instance_Id> 146 <Model_Name>heated_tank</Model_Name> 147 <T_Connection>0</T_Connection> 148 <Parameters> 149 <Desc>UA</Desc> 150 <Index>0</Index> 151 <Values>10</Values> 152 <Status>4</Status> 153 <Unit>kJ/min/K</Unit> 154 </Parameters> 155 <Variables> 156 <Desc>M</Desc> 157 <Index>0</Index> 158 <Values>1000</Values> 159 <Status>1</Status> 160 <Unit>kg</Unit> 161 </Variables> 162 </Block_Properties> 163 </Block> 164 <Block> 165 <Type>tank_source</Type> 166 <Id_String>tank_source_1</Id_String> 167 <Block_Name>tank_source_1</Block_Name> 168 <Image_File_Name>icon/tank_source.png</Image_File_Name> 169 <X>24</X> 170 <Y>28</Y> 171 <Z>0</Z> 172 <Width>72.5</Width> 173 <Height>37</Height> 174 <Block_Properties> 175 <Sub_Models> 176 <Block_Properties> 177 <Base_Models> 178 <Block_Properties> 179 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 180 <Instance_Id>Outlet.</Instance_Id> 181 <Model_Name>oil_stream</Model_Name> 182 <T_Connection>2</T_Connection> 183 <Parameters> 184 <Desc>Outlet.W</Desc> 185 <Index>0</Index> 186 <Values>100</Values> 187 <Status>4</Status> 188 <Unit>kg/min</Unit> 189 </Parameters> 190 <Parameters> 191 <Desc>Outlet.cp</Desc> 192 <Index>0</Index> 193 <Values>2</Values> 194 <Status>4</Status> 195 <Unit>kJ/kg/K</Unit> 196 </Parameters> 197 <Variables> 198 <Desc>Outlet.T</Desc> 199 <Index>0</Index> 200 <Values>293.15</Values> 201 <Status>1</Status> 202 <Unit>K</Unit> 203 </Variables> 204 </Block_Properties> 205 </Base_Models> 206 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 207 <Instance_Id>Outlet.</Instance_Id> 208 <Model_Name>Outlet</Model_Name> 209 <T_Connection>2</T_Connection> 210 </Block_Properties> 211 </Sub_Models> 212 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 213 <Instance_Id></Instance_Id> 214 <Model_Name>tank_source</Model_Name> 215 <T_Connection>0</T_Connection> 216 </Block_Properties> 217 </Block> 218 <Block> 219 <Type>heated_tank</Type> 220 <Id_String>heated_tank_2</Id_String> 221 <Block_Name>heated_tank_2</Block_Name> 222 <Image_File_Name>icon/heated_tank.png</Image_File_Name> 223 <X>328</X> 224 <Y>66</Y> 225 <Z>0</Z> 226 <Width>146</Width> 227 <Height>281</Height> 228 <Block_Properties> 229 <Sub_Models> 230 <Block_Properties> 231 <Base_Models> 232 <Block_Properties> 233 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 234 <Instance_Id>Inlet.</Instance_Id> 235 <Model_Name>oil_stream</Model_Name> 236 <T_Connection>1</T_Connection> 237 </Block_Properties> 238 </Base_Models> 239 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 240 <Instance_Id>Inlet.</Instance_Id> 241 <Model_Name>Inlet</Model_Name> 242 <T_Connection>1</T_Connection> 243 </Block_Properties> 244 </Sub_Models> 245 <Sub_Models> 246 <Block_Properties> 247 <Base_Models> 248 <Block_Properties> 249 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 250 <Instance_Id>Outlet.</Instance_Id> 251 <Model_Name>oil_stream</Model_Name> 252 <T_Connection>2</T_Connection> 253 <Variables> 254 <Desc>Outlet.T</Desc> 255 <Index>0</Index> 256 <Values>293.15</Values> 257 <Status>2</Status> 258 <Unit>K</Unit> 259 </Variables> 260 </Block_Properties> 261 </Base_Models> 262 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 263 <Instance_Id>Outlet.</Instance_Id> 264 <Model_Name>Outlet</Model_Name> 265 <T_Connection>2</T_Connection> 266 </Block_Properties> 267 </Sub_Models> 268 <Sub_Models> 269 <Block_Properties> 270 <Base_Models> 271 <Block_Properties> 272 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 273 <Instance_Id>InletQ.</Instance_Id> 274 <Model_Name>energy_oil_stream</Model_Name> 275 <T_Connection>1</T_Connection> 276 </Block_Properties> 277 </Base_Models> 278 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 279 <Instance_Id>InletQ.</Instance_Id> 280 <Model_Name>InletQ</Model_Name> 281 <T_Connection>1</T_Connection> 282 </Block_Properties> 283 </Sub_Models> 284 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 285 <Instance_Id></Instance_Id> 286 <Model_Name>heated_tank</Model_Name> 287 <T_Connection>0</T_Connection> 288 <Parameters> 289 <Desc>UA</Desc> 290 <Index>0</Index> 291 <Values>10</Values> 292 <Status>4</Status> 293 <Unit>kJ/min/K</Unit> 294 </Parameters> 295 <Variables> 296 <Desc>M</Desc> 297 <Index>0</Index> 298 <Values>1000</Values> 299 <Status>1</Status> 300 <Unit>kg</Unit> 301 </Variables> 302 </Block_Properties> 303 </Block> 304 <Block> 305 <Type>heated_tank</Type> 306 <Id_String>heated_tank_3</Id_String> 307 <Block_Name>heated_tank_3</Block_Name> 308 <Image_File_Name>icon/heated_tank.png</Image_File_Name> 309 <X>559</X> 310 <Y>71</Y> 311 <Z>0</Z> 312 <Width>146</Width> 313 <Height>281</Height> 314 <Block_Properties> 315 <Sub_Models> 316 <Block_Properties> 317 <Base_Models> 318 <Block_Properties> 319 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 320 <Instance_Id>Inlet.</Instance_Id> 321 <Model_Name>oil_stream</Model_Name> 322 <T_Connection>1</T_Connection> 323 </Block_Properties> 324 </Base_Models> 325 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 326 <Instance_Id>Inlet.</Instance_Id> 327 <Model_Name>Inlet</Model_Name> 328 <T_Connection>1</T_Connection> 329 </Block_Properties> 330 </Sub_Models> 331 <Sub_Models> 332 <Block_Properties> 333 <Base_Models> 334 <Block_Properties> 335 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 336 <Instance_Id>Outlet.</Instance_Id> 337 <Model_Name>oil_stream</Model_Name> 338 <T_Connection>2</T_Connection> 339 <Variables> 340 <Desc>Outlet.T</Desc> 341 <Index>0</Index> 342 <Values>293.15</Values> 343 <Status>2</Status> 344 <Unit>K</Unit> 345 </Variables> 346 </Block_Properties> 347 </Base_Models> 348 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 349 <Instance_Id>Outlet.</Instance_Id> 350 <Model_Name>Outlet</Model_Name> 351 <T_Connection>2</T_Connection> 352 </Block_Properties> 353 </Sub_Models> 354 <Sub_Models> 355 <Block_Properties> 356 <Base_Models> 357 <Block_Properties> 358 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 359 <Instance_Id>InletQ.</Instance_Id> 360 <Model_Name>energy_oil_stream</Model_Name> 361 <T_Connection>1</T_Connection> 362 </Block_Properties> 363 </Base_Models> 364 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 365 <Instance_Id>InletQ.</Instance_Id> 366 <Model_Name>InletQ</Model_Name> 367 <T_Connection>1</T_Connection> 368 </Block_Properties> 369 </Sub_Models> 370 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 371 <Instance_Id></Instance_Id> 372 <Model_Name>heated_tank</Model_Name> 373 <T_Connection>0</T_Connection> 374 <Parameters> 375 <Desc>UA</Desc> 376 <Index>0</Index> 377 <Values>10</Values> 378 <Status>4</Status> 379 <Unit>kJ/min/K</Unit> 380 </Parameters> 381 <Variables> 382 <Desc>M</Desc> 383 <Index>0</Index> 384 <Values>1000</Values> 385 <Status>1</Status> 386 <Unit>kg</Unit> 387 </Variables> 388 </Block_Properties> 389 </Block> 390 <Block> 391 <Type>tank_sink</Type> 392 <Id_String>tank_sink_1</Id_String> 393 <Block_Name>tank_sink_1</Block_Name> 394 <Image_File_Name>icon/tank_sink.png</Image_File_Name> 395 <X>717</X> 396 <Y>327</Y> 397 <Z>0</Z> 398 <Width>72.5</Width> 399 <Height>37</Height> 400 <Block_Properties> 401 <Sub_Models> 402 <Block_Properties> 403 <Base_Models> 404 <Block_Properties> 405 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 406 <Instance_Id>Inlet.</Instance_Id> 407 <Model_Name>oil_stream</Model_Name> 408 <T_Connection>1</T_Connection> 409 </Block_Properties> 410 </Base_Models> 411 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 412 <Instance_Id>Inlet.</Instance_Id> 413 <Model_Name>Inlet</Model_Name> 414 <T_Connection>1</T_Connection> 415 </Block_Properties> 416 </Sub_Models> 417 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 418 <Instance_Id></Instance_Id> 419 <Model_Name>tank_sink</Model_Name> 420 <T_Connection>0</T_Connection> 421 </Block_Properties> 422 </Block> 423 <Block> 424 <Type>steam</Type> 425 <Id_String>steam_2</Id_String> 426 <Block_Name>steam_2</Block_Name> 427 <Image_File_Name>icon/tank_source.png</Image_File_Name> 428 <X>278</X> 429 <Y>258</Y> 430 <Z>0</Z> 431 <Width>41</Width> 432 <Height>20</Height> 433 <Block_Properties> 434 <Sub_Models> 435 <Block_Properties> 436 <Base_Models> 437 <Block_Properties> 438 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 439 <Instance_Id>Outlet.</Instance_Id> 440 <Model_Name>energy_oil_stream</Model_Name> 441 <T_Connection>2</T_Connection> 442 <Variables> 443 <Desc>Outlet.T</Desc> 444 <Index>0</Index> 445 <Values>523.15</Values> 446 <Status>1</Status> 447 <Unit>K</Unit> 448 </Variables> 449 </Block_Properties> 450 </Base_Models> 451 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 452 <Instance_Id>Outlet.</Instance_Id> 453 <Model_Name>Outlet</Model_Name> 454 <T_Connection>2</T_Connection> 455 </Block_Properties> 456 </Sub_Models> 457 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 458 <Instance_Id></Instance_Id> 459 <Model_Name>steam</Model_Name> 460 <T_Connection>0</T_Connection> 461 </Block_Properties> 462 </Block> 463 <Block> 464 <Type>steam</Type> 465 <Id_String>steam_3</Id_String> 466 <Block_Name>steam_3</Block_Name> 467 <Image_File_Name>icon/tank_source.png</Image_File_Name> 468 <X>506</X> 469 <Y>263</Y> 470 <Z>0</Z> 471 <Width>39</Width> 472 <Height>19</Height> 473 <Block_Properties> 474 <Sub_Models> 475 <Block_Properties> 476 <Base_Models> 477 <Block_Properties> 478 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 479 <Instance_Id>Outlet.</Instance_Id> 480 <Model_Name>energy_oil_stream</Model_Name> 481 <T_Connection>2</T_Connection> 482 <Variables> 483 <Desc>Outlet.T</Desc> 484 <Index>0</Index> 485 <Values>523.15</Values> 486 <Status>1</Status> 487 <Unit>K</Unit> 488 </Variables> 489 </Block_Properties> 490 </Base_Models> 491 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 492 <Instance_Id>Outlet.</Instance_Id> 493 <Model_Name>Outlet</Model_Name> 494 <T_Connection>2</T_Connection> 495 </Block_Properties> 496 </Sub_Models> 497 <Model_File_Path>miscellaneous\tenprobs\prob06</Model_File_Path> 498 <Instance_Id></Instance_Id> 499 <Model_Name>steam</Model_Name> 500 <T_Connection>0</T_Connection> 501 </Block_Properties> 502 </Block> 503 <Line> 504 <Line_Name>line_1</Line_Name> 505 <X1>70</X1> 506 <Y1>264.5</Y1> 507 <X2>91</X2> 508 <Y2>265.915</Y2> 509 <Block_Source>steam_1</Block_Source> 510 <Port_Source>steam_1.Outlet</Port_Source> 511 <Block_Target>heated_tank_1</Block_Target> 512 <Port_Target>heated_tank_1.InletQ</Port_Target> 513 </Line> 514 <Line> 515 <Line_Name>line_2</Line_Name> 516 <X1>237</X1> 517 <Y1>338.975</Y1> 518 <X2>402.46</X2> 519 <Y2>66</Y2> 520 <Block_Source>heated_tank_1</Block_Source> 521 <Port_Source>heated_tank_1.Outlet</Port_Source> 522 <Block_Target>heated_tank_2</Block_Target> 523 <Port_Target>heated_tank_2.Inlet</Port_Target> 524 </Line> 525 <Line> 526 <Line_Name>line_3</Line_Name> 527 <X1>474</X1> 528 <Y1>339.975</Y1> 529 <X2>633.46</X2> 530 <Y2>71</Y2> 531 <Block_Source>heated_tank_2</Block_Source> 532 <Port_Source>heated_tank_2.Outlet</Port_Source> 533 <Block_Target>heated_tank_3</Block_Target> 534 <Port_Target>heated_tank_3.Inlet</Port_Target> 535 </Line> 536 <Line> 537 <Line_Name>line_4</Line_Name> 538 <X1>96.5</X1> 539 <Y1>46.5</Y1> 540 <X2>165.46</X2> 541 <Y2>65</Y2> 542 <Block_Source>tank_source_1</Block_Source> 543 <Port_Source>tank_source_1.Outlet</Port_Source> 544 <Block_Target>heated_tank_1</Block_Target> 545 <Port_Target>heated_tank_1.Inlet</Port_Target> 546 </Line> 547 <Line> 548 <Line_Name>line_5</Line_Name> 549 <X1>705</X1> 550 <Y1>344.975</Y1> 551 <X2>717</X2> 552 <Y2>345.5</Y2> 553 <Block_Source>heated_tank_3</Block_Source> 554 <Port_Source>heated_tank_3.Outlet</Port_Source> 555 <Block_Target>tank_sink_1</Block_Target> 556 <Port_Target>tank_sink_1.Inlet</Port_Target> 557 </Line> 558 <Line> 559 <Line_Name>line_6</Line_Name> 560 <X1>319</X1> 561 <Y1>268</Y1> 562 <X2>328</X2> 563 <Y2>266.915</Y2> 564 <Block_Source>steam_2</Block_Source> 565 <Port_Source>steam_2.Outlet</Port_Source> 566 <Block_Target>heated_tank_2</Block_Target> 567 <Port_Target>heated_tank_2.InletQ</Port_Target> 568 </Line> 569 <Line> 570 <Line_Name>line_7</Line_Name> 571 <X1>545</X1> 572 <Y1>272.5</Y1> 573 <X2>559</X2> 574 <Y2>271.915</Y2> 575 <Block_Source>steam_3</Block_Source> 576 <Port_Source>steam_3.Outlet</Port_Source> 577 <Block_Target>heated_tank_3</Block_Target> 578 <Port_Target>heated_tank_3.InletQ</Port_Target> 579 </Line> 1 <?xml version="1.0"?> 2 <!-- VRTech xml file - http://www.vrtech.com.br --> 3 <Diagram version="1" revision="1"> 4 <Options> 5 <Dynamic>1</Dynamic> 6 <Time_Start></Time_Start> 7 <Time_Step>1</Time_Step> 8 <Time_End>90</Time_End> 9 <Time_Unit></Time_Unit> 10 <Sparse_Algebra>1</Sparse_Algebra> 11 <Integration_Index>0</Integration_Index> 12 <Integration_Text>original</Integration_Text> 13 <NLASolver_File_Index>0</NLASolver_File_Index> 14 <NLASolver_File_Text>sundials</NLASolver_File_Text> 15 <DAESolver_File_Index>0</DAESolver_File_Index> 16 <DAESolver_File_Text>sundials</DAESolver_File_Text> 17 <DAESolver_Relative_Accuracy>1e-3</DAESolver_Relative_Accuracy> 18 <DAESolver_Absolute_Accuracy>1e-6</DAESolver_Absolute_Accuracy> 19 <DAESolver_Evt_Accuracy>1e-2</DAESolver_Evt_Accuracy> 20 </Options> 21 <Width>2000</Width> 22 <Height>1000</Height> 23 <View> 24 <Zoom_Level>1</Zoom_Level> 25 <Width>936</Width> 26 <Height>498</Height> 27 <X>0</X> 28 <Y>-24</Y> 29 </View> 30 <View> 31 <Zoom_Level>1</Zoom_Level> 32 <Width>936</Width> 33 <Height>0</Height> 34 <X>0</X> 35 <Y>0</Y> 36 </View> 37 <Block> 38 <Type>steam</Type> 39 <Id_String>steam_1</Id_String> 40 <X>30</X> 41 <Y>254</Y> 42 <Z>0</Z> 43 <Width>40</Width> 44 <Height>28</Height> 45 <Label_Position> 46 <X>46.5625</X> 47 <Y>321.054</Y> 48 </Label_Position> 49 <Settings> 50 <Value> 51 <Path> 52 <Value>Outlet</Value> 53 <Value>T</Value> 54 </Path> 55 <Unit>'K'</Unit> 56 <Indices> 57 <Value>1</Value> 58 </Indices> 59 <Value>523.15</Value> 60 <Status>1</Status> 61 </Value> 62 </Settings> 63 </Block> 64 <Block> 65 <Type>heated_tank</Type> 66 <Id_String>heated_tank_1</Id_String> 67 <X>91</X> 68 <Y>65</Y> 69 <Z>0</Z> 70 <Width>146</Width> 71 <Height>281</Height> 72 <Label_Position> 73 <X>110.7</X> 74 <Y>375.654</Y> 75 </Label_Position> 76 <Settings> 77 <Value> 78 <Path> 79 <Value>UA</Value> 80 </Path> 81 <Unit>'kJ/min/K'</Unit> 82 <Indices> 83 <Value>1</Value> 84 </Indices> 85 <Value>10</Value> 86 <Status>4</Status> 87 </Value> 88 <Value> 89 <Path> 90 <Value>M</Value> 91 </Path> 92 <Unit>'kg'</Unit> 93 <Indices> 94 <Value>1</Value> 95 </Indices> 96 <Value>1000</Value> 97 <Status>1</Status> 98 </Value> 99 </Settings> 100 </Block> 101 <Block> 102 <Type>tank_source</Type> 103 <Id_String>tank_source_1</Id_String> 104 <X>24</X> 105 <Y>28</Y> 106 <Z>0</Z> 107 <Width>72.5</Width> 108 <Height>37</Height> 109 <Label_Position> 110 <X>2.25</X> 111 <Y>77.0539</Y> 112 </Label_Position> 113 <Settings> 114 <Value> 115 <Path> 116 <Value>Outlet</Value> 117 <Value>T</Value> 118 </Path> 119 <Unit>'K'</Unit> 120 <Indices> 121 <Value>1</Value> 122 </Indices> 123 <Value>293.15</Value> 124 <Status>1</Status> 125 </Value> 126 </Settings> 127 </Block> 128 <Block> 129 <Type>heated_tank</Type> 130 <Id_String>heated_tank_2</Id_String> 131 <X>328</X> 132 <Y>66</Y> 133 <Z>0</Z> 134 <Width>146</Width> 135 <Height>281</Height> 136 <Label_Position> 137 <X>353.7</X> 138 <Y>380.654</Y> 139 </Label_Position> 140 <Settings> 141 <Value> 142 <Path> 143 <Value>UA</Value> 144 </Path> 145 <Unit>'kJ/min/K'</Unit> 146 <Indices> 147 <Value>1</Value> 148 </Indices> 149 <Value>10</Value> 150 <Status>4</Status> 151 </Value> 152 <Value> 153 <Path> 154 <Value>M</Value> 155 </Path> 156 <Unit>'kg'</Unit> 157 <Indices> 158 <Value>1</Value> 159 </Indices> 160 <Value>1000</Value> 161 <Status>1</Status> 162 </Value> 163 </Settings> 164 </Block> 165 <Block> 166 <Type>heated_tank</Type> 167 <Id_String>heated_tank_3</Id_String> 168 <X>559</X> 169 <Y>71</Y> 170 <Z>0</Z> 171 <Width>146</Width> 172 <Height>281</Height> 173 <Label_Position> 174 <X>581.7</X> 175 <Y>390.654</Y> 176 </Label_Position> 177 <Settings> 178 <Value> 179 <Path> 180 <Value>UA</Value> 181 </Path> 182 <Unit>'kJ/min/K'</Unit> 183 <Indices> 184 <Value>1</Value> 185 </Indices> 186 <Value>10</Value> 187 <Status>4</Status> 188 </Value> 189 <Value> 190 <Path> 191 <Value>M</Value> 192 </Path> 193 <Unit>'kg'</Unit> 194 <Indices> 195 <Value>1</Value> 196 </Indices> 197 <Value>1000</Value> 198 <Status>1</Status> 199 </Value> 200 </Settings> 201 </Block> 202 <Block> 203 <Type>tank_sink</Type> 204 <Id_String>tank_sink_1</Id_String> 205 <X>770</X> 206 <Y>325</Y> 207 <Z>0</Z> 208 <Width>72.5</Width> 209 <Height>37</Height> 210 <Label_Position> 211 <X>776.25</X> 212 <Y>392.054</Y> 213 </Label_Position> 214 <Settings> 215 </Settings> 216 </Block> 217 <Block> 218 <Type>steam</Type> 219 <Id_String>steam_2</Id_String> 220 <X>265</X> 221 <Y>253</Y> 222 <Z>0</Z> 223 <Width>41</Width> 224 <Height>28</Height> 225 <Label_Position> 226 <X>280.563</X> 227 <Y>320.054</Y> 228 </Label_Position> 229 <Settings> 230 <Value> 231 <Path> 232 <Value>Outlet</Value> 233 <Value>T</Value> 234 </Path> 235 <Unit>'K'</Unit> 236 <Indices> 237 <Value>1</Value> 238 </Indices> 239 <Value>523.15</Value> 240 <Status>1</Status> 241 </Value> 242 </Settings> 243 </Block> 244 <Block> 245 <Type>steam</Type> 246 <Id_String>steam_3</Id_String> 247 <X>506</X> 248 <Y>263</Y> 249 <Z>0</Z> 250 <Width>39</Width> 251 <Height>28</Height> 252 <Label_Position> 253 <X>521.563</X> 254 <Y>330.054</Y> 255 </Label_Position> 256 <Settings> 257 <Value> 258 <Path> 259 <Value>Outlet</Value> 260 <Value>T</Value> 261 </Path> 262 <Unit>'K'</Unit> 263 <Indices> 264 <Value>1</Value> 265 </Indices> 266 <Value>523.15</Value> 267 <Status>1</Status> 268 </Value> 269 </Settings> 270 </Block> 271 <Line> 272 <Line_Name>S001</Line_Name> 273 <X1>90.5</X1> 274 <Y1>40.5</Y1> 275 <X2>159.46</X2> 276 <Y2>59</Y2> 277 <Block_Source>tank_source_1</Block_Source> 278 <Port_Source>Outlet</Port_Source> 279 <Block_Target>heated_tank_1</Block_Target> 280 <Port_Target>Inlet</Port_Target> 281 </Line> 282 <Line> 283 <Line_Name>S002</Line_Name> 284 <X1>64</X1> 285 <Y1>262</Y1> 286 <X2>85</X2> 287 <Y2>259.915</Y2> 288 <Block_Source>steam_1</Block_Source> 289 <Port_Source>Outlet</Port_Source> 290 <Block_Target>heated_tank_1</Block_Target> 291 <Port_Target>InletQ</Port_Target> 292 </Line> 293 <Line> 294 <Line_Name>S003</Line_Name> 295 <X1>300</X1> 296 <Y1>261</Y1> 297 <X2>322</X2> 298 <Y2>260.915</Y2> 299 <Block_Source>steam_2</Block_Source> 300 <Port_Source>Outlet</Port_Source> 301 <Block_Target>heated_tank_2</Block_Target> 302 <Port_Target>InletQ</Port_Target> 303 </Line> 304 <Line> 305 <Line_Name>S004</Line_Name> 306 <X1>231</X1> 307 <Y1>332.975</Y1> 308 <X2>396.46</X2> 309 <Y2>60</Y2> 310 <Block_Source>heated_tank_1</Block_Source> 311 <Port_Source>Outlet</Port_Source> 312 <Block_Target>heated_tank_2</Block_Target> 313 <Port_Target>Inlet</Port_Target> 314 </Line> 315 <Line> 316 <Line_Name>S005</Line_Name> 317 <X1>539</X1> 318 <Y1>271</Y1> 319 <X2>553</X2> 320 <Y2>265.915</Y2> 321 <Block_Source>steam_3</Block_Source> 322 <Port_Source>Outlet</Port_Source> 323 <Block_Target>heated_tank_3</Block_Target> 324 <Port_Target>InletQ</Port_Target> 325 </Line> 326 <Line> 327 <Line_Name>S006</Line_Name> 328 <X1>468</X1> 329 <Y1>333.975</Y1> 330 <X2>627.46</X2> 331 <Y2>65</Y2> 332 <Block_Source>heated_tank_2</Block_Source> 333 <Port_Source>Outlet</Port_Source> 334 <Block_Target>heated_tank_3</Block_Target> 335 <Port_Target>Inlet</Port_Target> 336 </Line> 337 <Line> 338 <Line_Name>S007</Line_Name> 339 <X1>699</X1> 340 <Y1>338.975</Y1> 341 <X2>764</X2> 342 <Y2>337.5</Y2> 343 <Block_Source>heated_tank_3</Block_Source> 344 <Port_Source>Outlet</Port_Source> 345 <Block_Target>tank_sink_1</Block_Target> 346 <Port_Target>Inlet</Port_Target> 347 </Line> 580 348 </Diagram> -
branches/gui/sample/miscellaneous/tenprobs/prob10.mso
r332 r913 202 202 SET 203 203 Kc = 500*'kJ/min/K'; 204 Integrator = ["off"];204 Integrator = "off"; 205 205 206 206 EQUATIONS … … 283 283 end 284 284 285 if q <0then285 if q < 0*'kW' then 286 286 qlim=0*'kW'; 287 287 else -
branches/gui/sample/processes/Sample_Process.mso
r735 r913 41 41 PP as Plugin (Brief="Physical Properties", 42 42 Type = "PP", 43 Components = ["acetone", " acetic anhydride", "methane"],43 Components = ["acetone", "ketene", "methane"], 44 44 LiquidModel = "PR", 45 45 VapourModel = "PR" … … 56 56 Product as sink; # Product 57 57 Heat_1 as energy_source; # Heat Supplied 58 #Cold_2 as energy_source; # Cold Supplied58 Cold_2 as energy_sink; # Cold Supplied 59 59 SET 60 60 … … 68 68 69 69 Reac.NDisc = 10; 70 Reac.Across = 0. 7 * 'in^2';70 Reac.Across = 0.56 * 'm^2'; 71 71 Reac.L = 2.28 * 'm'; 72 72 Reac.NReac = 1; … … 92 92 SPECIFY 93 93 94 Feed.F = 1 * 'kmol/h';94 Feed.F = 137.9 * 'kmol/h'; 95 95 Feed.T = 350 * 'K'; 96 96 Feed.P = 1.6 * 'atm'; … … 120 120 Cooler.Outlet to Product.Inlet; 121 121 Heat_1.OutletQ to Heater.Heat; 122 #Cold_2.OutletQ to Cooler.Heat;122 Cooler.Heat to Cold_2.InletQ; 123 123 124 124 INITIAL … … 127 127 128 128 Reac.str(z).T = Reac.Inlet.T; 129 Reac.str(z).z(1:NComp -1) = Reac.Inlet.z(1:NComp-1);129 Reac.str(z).z(1:NComp) = Reac.Inlet.z(1:NComp); 130 130 131 131 end -
branches/gui/sample/reactors/fogler/chap2/series_reactors.pfd
r446 r913 1 <?xml version='1.0' encoding='ascii'?> 2 <Diagram> 3 <Options> 4 <Dynamic>0</Dynamic> 5 <Time_Step>10</Time_Step> 6 <Time_End>100</Time_End> 7 <Time_Unit_Index>0</Time_Unit_Index> 8 <Time_Unit_Text>s</Time_Unit_Text> 9 <Sparse_Algebra>1</Sparse_Algebra> 10 <Integration_Index>0</Integration_Index> 11 <Integration_Text>original</Integration_Text> 12 <NLASolver_File_Index>0</NLASolver_File_Index> 13 <NLASolver_File_Text>sundials</NLASolver_File_Text> 14 <DAESolver_File_Index>0</DAESolver_File_Index> 15 </Options> 16 <Width>2000</Width> 17 <Height>1000</Height> 18 <Grid_Spacing>20</Grid_Spacing> 19 <View> 20 <Zoom_Level>1</Zoom_Level> 21 <Show_Grid>1</Show_Grid> 22 <Snap_to_Grid>1</Snap_to_Grid> 23 <Width>754</Width> 24 <Height>494</Height> 25 <X>0</X> 26 <Y>0</Y> 27 </View> 28 <View> 29 <Zoom_Level>1</Zoom_Level> 30 <Show_Grid>1</Show_Grid> 31 <Snap_to_Grid>1</Snap_to_Grid> 32 <Width>754</Width> 33 <Height>0</Height> 34 <X>0</X> 35 <Y>0</Y> 36 </View> 37 <Block> 38 <Type>reactor_source</Type> 39 <Id_String>reactor_source_1</Id_String> 40 <Block_Name>reactor_source_1</Block_Name> 41 <Image_File_Name>icon/inlet.png</Image_File_Name> 42 <X>46</X> 43 <Y>47</Y> 44 <Z>0</Z> 45 <Width>72.5</Width> 46 <Height>37</Height> 47 <Block_Properties> 48 <Sub_Models> 49 <Block_Properties> 50 <Base_Models> 51 <Block_Properties> 52 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 53 <Instance_Id>Outlet.</Instance_Id> 54 <Model_Name>simple_stream</Model_Name> 55 <T_Connection>2</T_Connection> 56 <Variables> 57 <Desc>Outlet.F</Desc> 58 <Index>0</Index> 59 <Values>0.866541</Values> 60 <Status>1</Status> 61 <Unit>mol/s</Unit> 62 </Variables> 63 <Variables> 64 <Desc>Outlet.X</Desc> 65 <Index>0</Index> 66 <Values>0</Values> 67 <Status>1</Status> 68 </Variables> 69 </Block_Properties> 70 </Base_Models> 71 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 72 <Instance_Id>Outlet.</Instance_Id> 73 <Model_Name>Outlet</Model_Name> 74 <T_Connection>2</T_Connection> 75 </Block_Properties> 76 </Sub_Models> 77 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 78 <Instance_Id></Instance_Id> 79 <Model_Name>reactor_source</Model_Name> 80 <T_Connection>0</T_Connection> 81 </Block_Properties> 82 </Block> 83 <Block> 84 <Type>simple_cstr</Type> 85 <Id_String>simple_cstr_1</Id_String> 86 <Block_Name>simple_cstr_1</Block_Name> 87 <Image_File_Name>icon/simple_cstr.png</Image_File_Name> 88 <X>209</X> 89 <Y>158</Y> 90 <Z>0</Z> 91 <Width>84</Width> 92 <Height>109</Height> 93 <Block_Properties> 94 <Sub_Models> 95 <Block_Properties> 96 <Base_Models> 97 <Block_Properties> 98 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 99 <Instance_Id>Inlet.</Instance_Id> 100 <Model_Name>simple_stream</Model_Name> 101 <T_Connection>1</T_Connection> 102 </Block_Properties> 103 </Base_Models> 104 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 105 <Instance_Id>Inlet.</Instance_Id> 106 <Model_Name>Inlet</Model_Name> 107 <T_Connection>1</T_Connection> 108 </Block_Properties> 109 </Sub_Models> 110 <Sub_Models> 111 <Block_Properties> 112 <Base_Models> 113 <Block_Properties> 114 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 115 <Instance_Id>Outlet.</Instance_Id> 116 <Model_Name>simple_stream</Model_Name> 117 <T_Connection>2</T_Connection> 118 <Variables> 119 <Desc>Outlet.X</Desc> 120 <Index>0</Index> 121 <Values>0.5</Values> 122 <Status>1</Status> 123 </Variables> 124 </Block_Properties> 125 </Base_Models> 126 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 127 <Instance_Id>Outlet.</Instance_Id> 128 <Model_Name>Outlet</Model_Name> 129 <T_Connection>2</T_Connection> 130 </Block_Properties> 131 </Sub_Models> 132 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 133 <Instance_Id></Instance_Id> 134 <Model_Name>simple_cstr</Model_Name> 135 <T_Connection>0</T_Connection> 136 </Block_Properties> 137 </Block> 138 <Block> 139 <Type>simple_pfr_d</Type> 140 <Id_String>simple_pfr_d_1</Id_String> 141 <Block_Name>simple_pfr_d_1</Block_Name> 142 <Image_File_Name>icon/simple_pfr.png</Image_File_Name> 143 <X>315</X> 144 <Y>299</Y> 145 <Z>0</Z> 146 <Width>252.5</Width> 147 <Height>63</Height> 148 <Block_Properties> 149 <Sub_Models> 150 <Block_Properties> 151 <Base_Models> 152 <Block_Properties> 153 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 154 <Instance_Id>Inlet.</Instance_Id> 155 <Model_Name>simple_stream</Model_Name> 156 <T_Connection>1</T_Connection> 157 </Block_Properties> 158 </Base_Models> 159 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 160 <Instance_Id>Inlet.</Instance_Id> 161 <Model_Name>Inlet</Model_Name> 162 <T_Connection>1</T_Connection> 163 </Block_Properties> 164 </Sub_Models> 165 <Sub_Models> 166 <Block_Properties> 167 <Base_Models> 168 <Block_Properties> 169 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 170 <Instance_Id>Outlet.</Instance_Id> 171 <Model_Name>simple_stream</Model_Name> 172 <T_Connection>2</T_Connection> 173 <Variables> 174 <Desc>Outlet.X</Desc> 175 <Index>0</Index> 176 <Values>0.8</Values> 177 <Status>1</Status> 178 </Variables> 179 </Block_Properties> 180 </Base_Models> 181 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 182 <Instance_Id>Outlet.</Instance_Id> 183 <Model_Name>Outlet</Model_Name> 184 <T_Connection>2</T_Connection> 185 </Block_Properties> 186 </Sub_Models> 187 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 188 <Instance_Id></Instance_Id> 189 <Model_Name>simple_pfr_d</Model_Name> 190 <T_Connection>0</T_Connection> 191 </Block_Properties> 192 </Block> 193 <Block> 194 <Type>reactor_sink</Type> 195 <Id_String>reactor_sink_1</Id_String> 196 <Block_Name>reactor_sink_1</Block_Name> 197 <Image_File_Name>icon/outlet.png</Image_File_Name> 198 <X>612</X> 199 <Y>333</Y> 200 <Z>0</Z> 201 <Width>72.5</Width> 202 <Height>37</Height> 203 <Block_Properties> 204 <Sub_Models> 205 <Block_Properties> 206 <Base_Models> 207 <Block_Properties> 208 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 209 <Instance_Id>Inlet.</Instance_Id> 210 <Model_Name>simple_stream</Model_Name> 211 <T_Connection>1</T_Connection> 212 </Block_Properties> 213 </Base_Models> 214 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 215 <Instance_Id>Inlet.</Instance_Id> 216 <Model_Name>Inlet</Model_Name> 217 <T_Connection>1</T_Connection> 218 </Block_Properties> 219 </Sub_Models> 220 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 221 <Instance_Id></Instance_Id> 222 <Model_Name>reactor_sink</Model_Name> 223 <T_Connection>0</T_Connection> 224 </Block_Properties> 225 </Block> 226 <Line> 227 <Line_Name>line_1</Line_Name> 228 <X1>118.5</X1> 229 <Y1>65.5</Y1> 230 <X2>214</X2> 231 <Y2>162</Y2> 232 <Block_Source>reactor_source_1</Block_Source> 233 <Port_Source>reactor_source_1.Outlet</Port_Source> 234 <Block_Target>simple_cstr_1</Block_Target> 235 <Port_Target>simple_cstr_1.Inlet</Port_Target> 236 </Line> 237 <Line> 238 <Line_Name>line_2</Line_Name> 239 <X1>293</X1> 240 <Y1>267</Y1> 241 <X2>320</X2> 242 <Y2>336</Y2> 243 <Block_Source>simple_cstr_1</Block_Source> 244 <Port_Source>simple_cstr_1.Outlet</Port_Source> 245 <Block_Target>simple_pfr_d_1</Block_Target> 246 <Port_Target>simple_pfr_d_1.Inlet</Port_Target> 247 </Line> 248 <Line> 249 <Line_Name>line_3</Line_Name> 250 <X1>567.5</X1> 251 <Y1>330.5</Y1> 252 <X2>621</X2> 253 <Y2>354</Y2> 254 <Block_Source>simple_pfr_d_1</Block_Source> 255 <Port_Source>simple_pfr_d_1.Outlet</Port_Source> 256 <Block_Target>reactor_sink_1</Block_Target> 257 <Port_Target>reactor_sink_1.Inlet</Port_Target> 258 </Line> 1 <?xml version="1.0"?> 2 <!-- VRTech xml file - http://www.vrtech.com.br --> 3 <Diagram version="1" revision="1"> 4 <Options> 5 <Dynamic>0</Dynamic> 6 <Time_Start></Time_Start> 7 <Time_Step>10</Time_Step> 8 <Time_End>100</Time_End> 9 <Time_Unit></Time_Unit> 10 <Sparse_Algebra>1</Sparse_Algebra> 11 <Integration_Index>0</Integration_Index> 12 <Integration_Text>original</Integration_Text> 13 <NLASolver_File_Index>0</NLASolver_File_Index> 14 <NLASolver_File_Text>sundials</NLASolver_File_Text> 15 <DAESolver_File_Index>0</DAESolver_File_Index> 16 <DAESolver_Relative_Accuracy>1e-3</DAESolver_Relative_Accuracy> 17 <DAESolver_Absolute_Accuracy>1e-6</DAESolver_Absolute_Accuracy> 18 <DAESolver_Evt_Accuracy>1e-2</DAESolver_Evt_Accuracy> 19 </Options> 20 <Width>2000</Width> 21 <Height>1000</Height> 22 <View> 23 <Zoom_Level>1</Zoom_Level> 24 <Width>936</Width> 25 <Height>498</Height> 26 <X>0</X> 27 <Y>0</Y> 28 </View> 29 <View> 30 <Zoom_Level>1</Zoom_Level> 31 <Width>936</Width> 32 <Height>0</Height> 33 <X>0</X> 34 <Y>0</Y> 35 </View> 36 <Block> 37 <Type>reactor_source</Type> 38 <Id_String>reactor_source_1</Id_String> 39 <X>23</X> 40 <Y>13</Y> 41 <Z>0</Z> 42 <Width>72.5</Width> 43 <Height>37</Height> 44 <Label_Position> 45 <X>6.75</X> 46 <Y>59.0539</Y> 47 </Label_Position> 48 <Settings> 49 <Value> 50 <Path> 51 <Value>Outlet</Value> 52 <Value>F</Value> 53 </Path> 54 <Unit>'mol/s'</Unit> 55 <Indices> 56 <Value>1</Value> 57 </Indices> 58 <Value>0.866541</Value> 59 <Status>1</Status> 60 </Value> 61 <Value> 62 <Path> 63 <Value>Outlet</Value> 64 <Value>X</Value> 65 </Path> 66 <Unit></Unit> 67 <Indices> 68 <Value>1</Value> 69 </Indices> 70 <Value>0</Value> 71 <Status>1</Status> 72 </Value> 73 </Settings> 74 </Block> 75 <Block> 76 <Type>simple_cstr</Type> 77 <Id_String>simple_cstr_1</Id_String> 78 <X>212</X> 79 <Y>149</Y> 80 <Z>0</Z> 81 <Width>84</Width> 82 <Height>109</Height> 83 <Label_Position> 84 <X>164.113</X> 85 <Y>259.854</Y> 86 </Label_Position> 87 <Settings> 88 <Value> 89 <Path> 90 <Value>Outlet</Value> 91 <Value>X</Value> 92 </Path> 93 <Unit></Unit> 94 <Indices> 95 <Value>1</Value> 96 </Indices> 97 <Value>0.5</Value> 98 <Status>1</Status> 99 </Value> 100 </Settings> 101 </Block> 102 <Block> 103 <Type>simple_pfr_d</Type> 104 <Id_String>simple_pfr_d_1</Id_String> 105 <X>310</X> 106 <Y>296</Y> 107 <Z>0</Z> 108 <Width>252.5</Width> 109 <Height>63</Height> 110 <Label_Position> 111 <X>385.063</X> 112 <Y>369.7</Y> 113 </Label_Position> 114 <Settings> 115 <Value> 116 <Path> 117 <Value>Outlet</Value> 118 <Value>X</Value> 119 </Path> 120 <Unit></Unit> 121 <Indices> 122 <Value>1</Value> 123 </Indices> 124 <Value>0.8</Value> 125 <Status>1</Status> 126 </Value> 127 </Settings> 128 </Block> 129 <Block> 130 <Type>reactor_sink</Type> 131 <Id_String>reactor_sink_1</Id_String> 132 <X>662</X> 133 <Y>363</Y> 134 <Z>0</Z> 135 <Width>72.5</Width> 136 <Height>37</Height> 137 <Label_Position> 138 <X>667.75</X> 139 <Y>412.054</Y> 140 </Label_Position> 141 <Settings> 142 </Settings> 143 </Block> 144 <Line> 145 <Line_Name>S001</Line_Name> 146 <X1>89.5</X1> 147 <Y1>25.5</Y1> 148 <X2>206</X2> 149 <Y2>143</Y2> 150 <Block_Source>reactor_source_1</Block_Source> 151 <Port_Source>Outlet</Port_Source> 152 <Block_Target>simple_cstr_1</Block_Target> 153 <Port_Target>Inlet</Port_Target> 154 </Line> 155 <Line> 156 <Line_Name>S002</Line_Name> 157 <X1>290</X1> 158 <Y1>252</Y1> 159 <X2>304</X2> 160 <Y2>321.5</Y2> 161 <Block_Source>simple_cstr_1</Block_Source> 162 <Port_Source>Outlet</Port_Source> 163 <Block_Target>simple_pfr_d_1</Block_Target> 164 <Port_Target>Inlet</Port_Target> 165 </Line> 166 <Line> 167 <Line_Name>S003</Line_Name> 168 <X1>556.5</X1> 169 <Y1>321.5</Y1> 170 <X2>656</X2> 171 <Y2>375.5</Y2> 172 <Block_Source>simple_pfr_d_1</Block_Source> 173 <Port_Source>Outlet</Port_Source> 174 <Block_Target>reactor_sink_1</Block_Target> 175 <Port_Target>Inlet</Port_Target> 176 </Line> 259 177 </Diagram> -
branches/gui/sample/reactors/sample_equil.mso
r426 r913 75 75 76 76 SPECIFY 77 Fin. Outlet.F = 2*'mol/s';78 Fin. Outlet.z= [0.5, 0.5, 0.0, 0.0];79 Fin. Outlet.P = 1*'atm';80 Fin. Outlet.T = 1100*'K';77 Fin.F = 2*'mol/s'; 78 Fin.Composition= [0.5, 0.5, 0.0, 0.0]; 79 Fin.P = 1*'atm'; 80 Fin.T = 1100*'K'; 81 81 82 82 R.Outlet.P = 1*'bar'; -
branches/gui/sample/reactors/sample_gibbs.mso
r426 r913 76 76 77 77 SPECIFY 78 Fin. Outlet.F = 5*'kmol/h';79 Fin. Outlet.z= [0.4, 0.6, 0.0, 0.0, 0.0];80 Fin. Outlet.P = 1*'atm';81 Fin. Outlet.T = 1000*'K';78 Fin.F = 5*'kmol/h'; 79 Fin.Composition = [0.4, 0.6, 0.0, 0.0, 0.0]; 80 Fin.P = 1*'atm'; 81 Fin.T = 1000*'K'; 82 82 83 83 R.Outlet.F = 5*'kmol/h'*sqrt(R.Tank.Level/'m'); -
branches/gui/sample/reactors/sample_stoic.mso
r426 r913 64 64 65 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';66 Fin.F = 1000*'kmol/h'; 67 Fin.Composition = [0.25, 0.75, 0, 0, 0]; 68 Fin.P = 10*'kgf/cm^2'; 69 Fin.T = 500*'K'; 70 70 71 71 R.Outlet.F = 1000*'kmol/h'*sqrt(R.Tank.Level/'m'); … … 118 118 119 119 SPECIFY 120 Fin. Outlet.F = 1000*'kmol/h';121 Fin. Outlet.z= [0.25, 0.75, 0, 0, 0];122 Fin. Outlet.P = 10*'kgf/cm^2';123 Fin. Outlet.T = 500*'K';120 Fin.F = 1000*'kmol/h'; 121 Fin.Composition = [0.25, 0.75, 0, 0, 0]; 122 Fin.P = 10*'kgf/cm^2'; 123 Fin.T = 500*'K'; 124 124 125 125 R.Outlet.F = 1000*'kmol/h'*sqrt(R.Tank.Level/'m'); -
branches/gui/sample/reactors/sample_yield.mso
r426 r913 58 58 59 59 SPECIFY 60 Fin. Outlet.F = 1000*'kmol/h';61 Fin. Outlet.z= [0.25, 0.69, 0.03, 0.02, 0.01];62 Fin. Outlet.P = 10*'kgf/cm^2';63 Fin. Outlet.T = 500*'K';60 Fin.F = 1000*'kmol/h'; 61 Fin.Composition = [0.25, 0.69, 0.03, 0.02, 0.01]; 62 Fin.P = 10*'kgf/cm^2'; 63 Fin.T = 500*'K'; 64 64 65 65 R.Outlet.F = 300*'kmol/h'*sqrt(R.Tank.Level/'m');
Note: See TracChangeset
for help on using the changeset viewer.