Changeset 208
- Timestamp:
- Mar 15, 2007, 2:18:39 AM (17 years ago)
- Location:
- branches/newlanguage
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/reactors/cstr.mso
r169 r208 48 48 EQUATIONS 49 49 50 "Molar Concentration" 51 Outlet.z * M = C * Vr; 52 50 53 "Molar fraction" 51 Outlet.z * M = C * Vr; 52 53 "Vapourisation Fraction" 54 Outlet.v = Inlet.v; 55 54 sum(Outlet.z) = 1; 56 55 end 57 56 … … 85 84 Info = 86 85 "write some information"; 87 86 88 87 VARIABLES 89 88 … … 97 96 98 97 "Reactor Energy Balance" 99 diff(M*Outlet.h) = Inlet.F*Inlet.h - Outlet.F*Outlet.h +sum(Hr*sum(stoic*r))*Vr - q; 98 diff(M*Outlet.h) = Inlet.F*Inlet.h - Outlet.F*Outlet.h +sum(Hr*sum(stoic*r))*Vr - q; #FIXME sum(sum()) 100 99 101 100 end -
branches/newlanguage/eml/stage_separators/condenser.mso
r200 r208 128 128 "Pressure" 129 129 DP = InletV.P - OutletL.P; 130 131 "Vapourisation Fraction"132 OutletL.v = 0.0;133 130 end 134 131 -
branches/newlanguage/eml/stage_separators/flashPH.mso
r176 r208 49 49 vfrac as fraction(Brief="Real vaporization fraction"); 50 50 vsat as Real(Lower=-5, Upper=5, Brief="Vaporization fraction if saturated"); 51 Tsat as temperature(Lower=173, Upper= 473, Brief="Temperature if saturated");51 Tsat as temperature(Lower=173, Upper=1473, Brief="Temperature if saturated"); 52 52 xsat(NComp) as Real(Lower=-5, Upper=5, Brief="Liquid composition if saturated"); 53 53 ysat(NComp) as Real(Lower=-5, Upper=5, Brief="Vapour composition if saturated"); -
branches/newlanguage/sample/heat_exchangers/Sample_Heater.mso
r179 r208 58 58 streamcold1.Outlet.F = 100 * 'kmol/h'; 59 59 streamcold1.Outlet.P = 1 * 'atm'; 60 streamcold1.Outlet.T = 100 * 'K';60 streamcold1.Outlet.T = 300 * 'K'; 61 61 streamcold1.Outlet.z = [1,0]; 62 62 63 63 streamcold2.Outlet.F = 20*'kmol/h'; 64 64 streamcold2.Outlet.P = 1 * 'atm'; 65 streamcold2.Outlet.T = 100 * 'K';65 streamcold2.Outlet.T = 300 * 'K'; 66 66 streamcold2.Outlet.z = [0,1]; 67 67 68 Heater.Outlet.T = 70*'K';68 Heater.Outlet.T = 330*'K'; 69 69 Heater.Outlet.P = 1 * 'atm'; 70 70 -
branches/newlanguage/sample/mixers_splitters/sample_mixer.mso
r202 r208 46 46 47 47 CONNECTIONS 48 stream1 to mixer1.Inlet_mixer(1);49 stream2 to mixer1.Inlet_mixer(2);48 stream1.Outlet to mixer1.Inlet_mixer(1); 49 stream2.Outlet to mixer1.Inlet_mixer(2); 50 50 51 51 SPECIFY -
branches/newlanguage/sample/reactors/sample_cstr.mso
r169 r208 39 39 SET 40 40 41 PP.Components = ["1,2-propylene oxide", "methanol","water"," sulfuric acid", "1,2-propylene glycol" ];41 PP.Components = ["1,2-propylene oxide", "methanol","water","1,2-propylene glycol" ]; 42 42 PP.LiquidModel = "PR"; 43 43 PP.VapourModel = "PR"; … … 45 45 NComp = PP.NumberOfComponents; 46 46 Reac.NReac = 1; 47 Reac.stoic = [-1, 0, -1, 0,1];47 Reac.stoic = [-1, 0, -1, 1]; 48 48 49 49 EQUATIONS 50 50 51 # Reac.Hr = -36400 * "Btu/lbmol" - 7 * "Btu/lbmol/degR" * (Reac.Fout.T - 528 * "degR"); 52 # Reac.r = 16.96e12 / "h" * exp(- 32400 * "Btu/lbmol"/R/Reac.Fout.T) 53 # * Reac.C(1); 54 Reac.Hr = 0 * 'Btu/lbmol'; 55 Reac.r = 0 * 'mol/l/s'; 51 Reac.Hr = -36400 * 'Btu/lbmol' - 7 * 'Btu/lbmol/degR' * (Reac.Outlet.T - 528 * 'degR'); 52 Reac.r = 16.96e12 / 'h' * exp(- 32400 * 'Btu/lbmol'/R/Reac.Outlet.T) 53 * Reac.C(1); 56 54 57 55 SPECIFY 58 56 s1.Outlet.F = 52126 * 'mol/h'; 59 57 s1.Outlet.P = 1 * 'atm'; 60 58 s1.Outlet.T = 534.67* 'degR'; 61 s1.Outlet.z = [0.0468, 0.0783, 0.874, 0.0009, 0]; 62 s1.Outlet.v = 0.0; 59 s1.Outlet.z = [0.0468, 0.0783, 0.8749, 0]; 63 60 64 61 Reac.Vr = 300 * 'gal'; 65 62 Reac.Outlet.F = Reac.Inlet.F; 66 63 67 "Adiabatic"64 "Adiabatic" 68 65 Reac.q = 0 * 'J/s'; 69 66 Reac.Outlet.P = 1 * 'atm'; … … 75 72 INITIAL 76 73 77 Reac.Outlet.T = Reac.Inlet.T; 78 Reac.Outlet.z = Reac.Inlet.z; 74 Reac.Outlet.T = 530 * 'degR'; 75 Reac.M = 100 * 'kmol'; 76 Reac.Outlet.z(1:3) = [0.0468, 0.0783, 0.874]; 79 77 80 78 OPTIONS -
branches/newlanguage/sample/stage_separators/sample_column.mso
r187 r208 105 105 # can be obtained by using the results from that transient: 106 106 107 # guessFile="SectionColumn_Test_with2tray.rlt";108 # mode = "steady";107 #GuessFile="SectionColumn_Test_with2tray.rlt"; 108 #Dynamic = false; 109 109 end 110 110 … … 184 184 TimeStep = 1; 185 185 TimeEnd = 100; 186 # guessFile="SectionColumn_Test_with8tray.rlt";187 # mode = "steady";186 #GuessFile="SectionColumn_Test_with8tray.rlt"; 187 #Dynamic = false; 188 188 end 189 189 … … 277 277 TimeEnd = 50; 278 278 #time = [0:0.01:1, 2:50]; 279 # guessFile="Distillation_kettle_cond_Test.rlt";280 # mode = "steady";279 #GuessFile="Distillation_kettle_cond_Test.rlt"; 280 #Dynamic = false; 281 281 end 282 282 … … 488 488 TimeEnd = 2; 489 489 TimeUnit = 'h'; 490 #time = [0:0.01:0.1, 0.11:0.01:2]*"h"; 491 #initialFile = "Column_ctrl.rlt"; 492 #guessFile = "Column_ctrl.rlt"; 493 #mode = "steady"; 490 #InitialFile = "Column_ctrl.rlt"; 491 #GuessFile = "Column_ctrl.rlt"; 492 #Dynamic = false; 494 493 end 495 494 -
branches/newlanguage/sample/stage_separators/sample_columnReact.mso
r202 r208 62 62 63 63 CONNECTIONS 64 feed to col.trays(5).Inlet;64 feed.Outlet to col.trays(5).Inlet; 65 65 zero to col.reb.Inlet; 66 66 zero to col.trays([1:4]).Inlet; -
branches/newlanguage/sample/stage_separators/sample_condenser.mso
r202 r208 47 47 48 48 CONNECTIONS 49 s1 to c1.InletV;49 s1.Outlet to c1.InletV; 50 50 c1.OutletL to sp.Inlet; 51 51 Q to c1.Q; … … 96 96 97 97 CONNECTIONS 98 s1 to c1.InletV;98 s1.Outlet to c1.InletV; 99 99 Q to c1.Q; 100 100 -
branches/newlanguage/sample/stage_separators/sample_flashPH.mso
r202 r208 44 44 45 45 CONNECTIONS 46 s1 to fl.Inlet;46 s1.Outlet to fl.Inlet; 47 47 Q to fl.Q; 48 48 -
branches/newlanguage/sample/stage_separators/sample_reboiler.mso
r202 r208 46 46 CONNECTIONS 47 47 feed to r1.Inlet; 48 s1 to r1.InletL;48 s1.Outlet to r1.InletL; 49 49 Q to r1.Q; 50 50 … … 102 102 103 103 CONNECTIONS 104 s1 to r1.InletL;104 s1.Outlet to r1.InletL; 105 105 Q to r1.Q; 106 106 -
branches/newlanguage/sample/stage_separators/sample_tray.mso
r202 r208 43 43 44 44 CONNECTIONS 45 feed to t1.Inlet;45 feed.Outlet to t1.Inlet; 46 46 inL to t1.InletL; 47 47 inV to t1.InletV;
Note: See TracChangeset
for help on using the changeset viewer.