Changeset 375 for trunk/sample/reactors
- Timestamp:
- Sep 26, 2007, 5:23:56 PM (16 years ago)
- Location:
- trunk/sample/reactors/fogler/chap2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sample/reactors/fogler/chap2/series_reactors.mso
r374 r375 196 196 # (-r) = sum(a*Outlet.X^[0:(NT-1)]); # NOT CONVERGE 197 197 (-r) = (a(4)*Outlet.X^3 + a(3)*Outlet.X^2 + a(2)*Outlet.X + a(1)); 198 199 INITIAL 200 "Reactor volume" 201 V = 0.0*'l'; 198 202 end 199 203 … … 235 239 "Discrete interval" 236 240 dx = Outlet.X/N; 237 241 242 V(1) = 0 * 'l'; 243 238 244 for i in [2:N] 239 245 "Molar balance" … … 249 255 "Rate of reaction" 250 256 (-r(i)) = sum(a*X(i)^[0:(NT-1)]); 251 end 257 end 258 252 259 end 253 260 … … 317 324 Inlet.X = 0.0; 318 325 319 INITIAL320 "Reactor volume"321 R1.V = 0.0*'l';322 323 326 OPTIONS 324 327 TimeStep = 0.004; … … 347 350 348 351 SET 349 # R1.N = 100;350 352 R1.N = 200; 353 351 354 SPECIFY 352 355 "Inlet molar flow" … … 357 360 "Required conversion" 358 361 R1.Outlet.X = 0.8; 359 "Initial volume"360 R1.V(1) = 0.0*'l';361 362 362 363 OPTIONS … … 391 392 392 393 SET 393 # PFR.N = 100;394 394 PFR.N = 200; 395 395 396 SPECIFY 396 397 "Inlet molar flow" … … 398 399 "Inlet conversion" 399 400 Inlet.X = 0.0; 400 401 401 402 "Required CSTR conversion" 402 403 CSTR.Outlet.X = 0.6; 403 404 "Required PFR conversion" 404 405 PFR.Outlet.X = 0.6; 405 406 "Initial volume in PFR"407 PFR.V(1) = 0.0*'l';408 406 409 407 OPTIONS … … 493 491 R2.Outlet.X = 0.8; 494 492 495 "Initial 1st reactor volume"496 R1.V(1) = 0.0*'l';497 "Initial 2nd reactor volume"498 R2.V(1) = 0.0*'l';499 500 493 OPTIONS 501 494 Dynamic = false; … … 531 524 532 525 SET 533 # R1.N = 100;526 R1.N = 200; 534 527 535 528 SPECIFY … … 543 536 "Required 2nd reactor conversion" 544 537 R2.Outlet.X = 0.8; 545 546 "Initial 1st reactor volume"547 R1.V(1) = 0.0*'l';548 538 549 539 OPTIONS … … 580 570 581 571 SET 582 # R2.N = 100;572 R2.N = 200; 583 573 584 574 SPECIFY … … 593 583 R2.Outlet.X = 0.8; 594 584 595 "Initial 2nd reactor volume" 596 R2.V(1) = 0.0*'l'; 597 598 OPTIONS 599 Dynamic = false; 600 end 585 OPTIONS 586 Dynamic = false; 587 end -
trunk/sample/reactors/fogler/chap2/series_reactors.xml
r374 r375 13 13 <NLASolver_File_Text>sundials</NLASolver_File_Text> 14 14 <DAESolver_File_Index>0</DAESolver_File_Index> 15 <DAESolver_File_Text>sundials</DAESolver_File_Text>16 15 </Options> 17 16 <Width>2000</Width> … … 22 21 <Show_Grid>1</Show_Grid> 23 22 <Snap_to_Grid>1</Snap_to_Grid> 24 <Width>8 22</Width>25 <Height> 419</Height>23 <Width>830</Width> 24 <Height>525</Height> 26 25 <X>-15</X> 27 26 <Y>0</Y> … … 31 30 <Show_Grid>1</Show_Grid> 32 31 <Snap_to_Grid>1</Snap_to_Grid> 33 <Width>8 22</Width>32 <Width>830</Width> 34 33 <Height>0</Height> 35 34 <X>0</X> … … 40 39 <Id_String>sink__1</Id_String> 41 40 <Block_Name>sink__1</Block_Name> 42 <Image_File_Name> D:\Apps\EMSO\mso\sample\reactors\fogler\chap2\icon/outlet.png</Image_File_Name>41 <Image_File_Name>E:\User\Arge\PROJETOS\Alsoc\EMSO\mso\sample\reactors\fogler\chap2\icon/outlet.png</Image_File_Name> 43 42 <X>664</X> 44 43 <Y>194</Y> … … 58 57 </Base_Models> 59 58 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 60 <Instance_Id>Inlet </Instance_Id>59 <Instance_Id>Inlet.</Instance_Id> 61 60 <Model_Name>Inlet</Model_Name> 62 61 <T_Connection>1</T_Connection> … … 73 72 <Id_String>simple_pfr_d_1</Id_String> 74 73 <Block_Name>simple_pfr_d_1</Block_Name> 75 <Image_File_Name> D:\Apps\EMSO\mso\sample\reactors\fogler\chap2\icon/simple_pfr.png</Image_File_Name>74 <Image_File_Name>E:\User\Arge\PROJETOS\Alsoc\EMSO\mso\sample\reactors\fogler\chap2\icon/simple_pfr.png</Image_File_Name> 76 75 <X>370</X> 77 76 <Y>186</Y> … … 91 90 </Base_Models> 92 91 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 93 <Instance_Id>Inlet </Instance_Id>92 <Instance_Id>Inlet.</Instance_Id> 94 93 <Model_Name>Inlet</Model_Name> 95 94 <T_Connection>1</T_Connection> … … 107 106 </Base_Models> 108 107 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 109 <Instance_Id>Outlet </Instance_Id>108 <Instance_Id>Outlet.</Instance_Id> 110 109 <Model_Name>Outlet</Model_Name> 111 110 <T_Connection>2</T_Connection> 111 <Variables> 112 <Desc>Outlet.X</Desc> 113 <Index>0</Index> 114 <Values>0.8</Values> 115 <Status>1</Status> 116 </Variables> 112 117 </Block_Properties> 113 118 </Sub_Models> … … 122 127 <Id_String>simple_cstr_1</Id_String> 123 128 <Block_Name>simple_cstr_1</Block_Name> 124 <Image_File_Name> D:\Apps\EMSO\mso\sample\reactors\fogler\chap2\icon/simple_cstr.png</Image_File_Name>129 <Image_File_Name>E:\User\Arge\PROJETOS\Alsoc\EMSO\mso\sample\reactors\fogler\chap2\icon/simple_cstr.png</Image_File_Name> 125 130 <X>219</X> 126 131 <Y>103</Y> … … 140 145 </Base_Models> 141 146 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 142 <Instance_Id>Inlet </Instance_Id>147 <Instance_Id>Inlet.</Instance_Id> 143 148 <Model_Name>Inlet</Model_Name> 144 149 <T_Connection>1</T_Connection> … … 153 158 <Model_Name>stream</Model_Name> 154 159 <T_Connection>2</T_Connection> 155 </Block_Properties> 156 </Base_Models> 157 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 158 <Instance_Id>Outlet</Instance_Id> 160 <Variables> 161 <Desc>Outlet.X</Desc> 162 <Index>0</Index> 163 <Values>0.5</Values> 164 <Status>1</Status> 165 </Variables> 166 </Block_Properties> 167 </Base_Models> 168 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 169 <Instance_Id>Outlet.</Instance_Id> 159 170 <Model_Name>Outlet</Model_Name> 160 171 <T_Connection>2</T_Connection> … … 171 182 <Id_String>source__1</Id_String> 172 183 <Block_Name>source__1</Block_Name> 173 <Image_File_Name> D:\Apps\EMSO\mso\sample\reactors\fogler\chap2\icon/inlet.png</Image_File_Name>184 <Image_File_Name>E:\User\Arge\PROJETOS\Alsoc\EMSO\mso\sample\reactors\fogler\chap2\icon/inlet.png</Image_File_Name> 174 185 <X>58</X> 175 186 <Y>86</Y> … … 186 197 <Model_Name>stream</Model_Name> 187 198 <T_Connection>2</T_Connection> 188 </Block_Properties> 189 </Base_Models> 190 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 191 <Instance_Id>Outlet</Instance_Id> 199 <Variables> 200 <Desc>Outlet.F</Desc> 201 <Index>0</Index> 202 <Values>0.866541</Values> 203 <Status>1</Status> 204 <Unit>mol/s</Unit> 205 </Variables> 206 <Variables> 207 <Desc>Outlet.X</Desc> 208 <Index>0</Index> 209 <Values>0</Values> 210 <Status>1</Status> 211 </Variables> 212 </Block_Properties> 213 </Base_Models> 214 <Model_File_Path>reactors\fogler\chap2\series_reactors</Model_File_Path> 215 <Instance_Id>Outlet.</Instance_Id> 192 216 <Model_Name>Outlet</Model_Name> 193 217 <T_Connection>2</T_Connection>
Note: See TracChangeset
for help on using the changeset viewer.