- Timestamp:
- Apr 11, 2007, 10:16:05 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eml/stage_separators/flash.mso
r118 r235 41 41 Model flash 42 42 PARAMETERS 43 outer PP as Plugin (Brief = "External Physical Properties", Type="PP");43 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 44 44 outer NComp as Integer (Brief = "Number of chemical components", Lower = 1); 45 V as volume (Brief="Total Volume of the flash");45 V as volume (Brief="Total Volume of the flash"); 46 46 Mw(NComp) as molweight; 47 Across as area (Brief="Flash Cross section area"); 48 47 orientation as Switcher (Valid=["vertical","horizontal"],Default="vertical"); 48 diameter as length (Brief="Vessel diameter"); 49 49 50 SET 50 51 Mw=PP.MolecularWeight(); 51 52 52 53 VARIABLES 53 54 in Inlet as stream(Brief="Feed Stream"); … … 63 64 vV as volume_mol (Brief="Vapour Molar volume"); 64 65 Level as length (Brief="liquid height"); 65 66 Across as area (Brief="Flash Cross section area"); 67 66 68 EQUATIONS 67 69 "Component Molar Balance" … … 98 100 99 101 "Geometry Constraint" 100 V = ML* vL + MV*vV; 102 V = ML * vL + MV * vV; 103 104 switch orientation 105 case "vertical": 106 "Cross Section Area" 107 Across = 0.5 * asin(1) * diameter^2; 108 101 109 "Liquid Level" 102 ML* vL = Across * Level; 110 ML * vL = Across * Level; 111 112 case "horizontal": 113 "Cylindrical Side Area" 114 Across = 0.25*diameter^2 * (asin(1) - asin((diameter - 2*Level)/diameter)) + 115 (Level - 0.5*diameter)*sqrt(Level*(diameter - Level)); 116 117 "Liquid Level" 118 0.5 * asin(1) * diameter^2 * ML* vL = Across * V; 119 end 103 120 end 104 121 -
trunk/sample/stage_separators/sample_flash.mso
r213 r235 65 65 66 66 SET 67 fl.V = 2000 * 'm^3'; 68 fl.Across = 1 * 'm^2'; 69 67 fl.V = 50 * 'm^3'; 68 fl.diameter = 2 * 'm'; 69 fl.orientation = "vertical"; 70 # fl.orientation = "horizontal"; 71 70 72 INITIAL 71 73 fl.OutletL.T = 338 * 'K'; 72 fl.Level = 1* 'm';74 fl.Level = 0.4 * 'm'; 73 75 74 76 fl.OutletL.z(1) = 0.1; … … 83 85 Dynamic = true; 84 86 TimeStep = 0.1; 85 TimeEnd = 20;87 TimeEnd = 5; 86 88 TimeUnit = 'h'; 87 89 end
Note: See TracChangeset
for help on using the changeset viewer.