- Timestamp:
- Mar 15, 2007, 2:17:35 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eml/reactors/cstr.mso
r77 r207 41 41 42 42 EQUATIONS 43 "Molar concentration" 44 Outlet.z * M = C * Vr; 45 43 46 "Molar fraction" 44 Outlet.z * M = C * Vr; 47 sum(Outlet.z) = 1; 48 45 49 "Vapourisation Fraction" 46 50 Outlet.v = Inlet.v; … … 65 69 EQUATIONS 66 70 "Component Molar Balance" 67 diff(Outlet.z*M) = (Inlet.F*Inlet.z - Outlet.F*Outlet.z) + sumt(stoic*r)*Vr; 71 diff(Outlet.z*M) = (Inlet.F*Inlet.z - Outlet.F*Outlet.z) + sumt(stoic*r)*Vr; #FIXME sumt() 68 72 69 73 "Reactor Energy Balance" 70 74 diff(M*Outlet.h) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + 71 sum(Hr*sum(stoic*r))*Vr - q; 75 sum(Hr*sum(stoic*r))*Vr - q; # FIXME sum() 72 76 end -
trunk/sample/reactors/sample_cstr.mso
r82 r207 38 38 SET 39 39 PP.Components = ["1,2-propylene oxide", "methanol", 40 "water", " sulfuric acid", "1,2-propylene glycol" ];40 "water", "1,2-propylene glycol" ]; 41 41 PP.LiquidModel = "PR"; 42 42 PP.VapourModel = "PR"; … … 44 44 NComp = PP.NumberOfComponents; 45 45 Reac.NReac = 1; 46 Reac.stoic = [-1, 0, -1, 0,1];46 Reac.stoic = [-1, 0, -1, 1]; 47 47 48 48 EQUATIONS 49 # Reac.Hr = -36400 * "Btu/lbmol" - 7 * "Btu/lbmol/degR" * (Reac.Fout.T - 528 * "degR"); 50 # Reac.r = 16.96e12 / "h" * exp(- 32400 * "Btu/lbmol"/R/Reac.Fout.T) 51 # * Reac.C(1); 52 Reac.Hr = 0 * "Btu/lbmol"; 53 Reac.r = 0 * "mol/l/s"; 49 Reac.Hr = -36400 * "Btu/lbmol" - 7 * "Btu/lbmol/degR" * (Reac.Outlet.T - 528 * "degR"); 50 Reac.r = 16.96e12 / "h" * exp(- 32400 * "Btu/lbmol"/R/Reac.Outlet.T) 51 * Reac.C(1); 54 52 55 53 SPECIFY … … 57 55 s1.P = 1 * "atm"; 58 56 s1.T = 534.67* "degR"; 59 s1.z = [0.0468, 0.0783, 0.874, 0 .0009, 0];57 s1.z = [0.0468, 0.0783, 0.874, 0]; 60 58 s1.v = 0.0; 61 59 … … 70 68 71 69 INITIAL 72 Reac.Outlet.T = Reac.Inlet.T; 73 Reac.Outlet.z = Reac.Inlet.z; 70 Reac.Outlet.T = 500*"degR"; 71 Reac.M = 100 * "kmol"; 72 Reac.Outlet.z(1:3) = [0.0468, 0.0783, 0.874]; 74 73 75 74 OPTIONS
Note: See TracChangeset
for help on using the changeset viewer.