Changeset 781 for branches/gui/eml/stage_separators/tank.mso
- Timestamp:
- Jun 25, 2009, 6:05:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/tank.mso
r721 r781 57 57 outer NComp as Integer; 58 58 Across as area (Brief="Tank cross section area", Default=2); 59 L as length (Brief="Tank length"); 60 Vtotal as volume (Brief="Tank total volume"); 59 61 60 62 Initial_Level as length (Brief="Initial Level of the Tank"); 61 63 Initial_Temperature as temperature (Brief="Initial Temperature of Liquid"); 62 64 Initial_Composition(NComp) as fraction (Brief="Initial Liquid Composition"); 65 66 SET 67 Vtotal =Across*L; 63 68 64 69 VARIABLES … … 66 71 out Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1, Symbol="_{out}"); 67 72 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}"); 73 Vfilled as volume (Brief="Tank volume content"); 68 74 Level as length (Brief="Tank level"); 69 75 M(NComp) as mol (Brief="Molar Holdup in the tank"); … … 100 106 Level = sum(M)*vL/Across; 101 107 108 "Volume Filled of liquid phase" 109 Vfilled = Level*Across; 110 102 111 end 103 112 … … 127 136 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 128 137 outer NComp as Integer; 138 pi as positive (Brief="Pi value", Default=3.141593,Hidden=true); 129 139 radius as length (Brief="Tank radius"); 130 140 L as length (Brief="Tank length"); 141 Vtotal as volume (Brief="Tank total volume"); 131 142 132 143 Initial_Level as length (Brief="Initial Level of the Tank"); 133 144 Initial_Temperature as temperature (Brief="Initial Temperature of Liquid"); 134 145 Initial_Composition(NComp) as fraction (Brief="Initial Liquid Composition"); 135 146 147 SET 148 Vtotal = (0.25*pi*(2*radius)^2)*L; 149 136 150 VARIABLES 137 151 in Inlet as stream (Brief = "Inlet stream", PosX=0.1825, PosY=0, Symbol="_{in}"); … … 139 153 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.6160, Symbol="_{in}"); 140 154 Level as length (Brief="Tank level"); 155 Vfilled as volume (Brief="Tank volume content"); 141 156 Across as area (Brief="Tank cross section area", Default=2); 142 157 M(NComp) as mol (Brief="Molar Holdup in the tank"); … … 171 186 172 187 "Cylindrical Area" 173 Across = radius^2 * (asin(1) - asin((radius-Level)/radius) ) + (Level-radius)*sqrt(Level*(2*radius - Level) );188 Across = radius^2 * (asin(1) - asin((radius-Level)/radius) ) + (Level-radius)*sqrt(Level*(2*radius - Level)+1E-8); 174 189 175 190 "Level of liquid phase" 176 191 L*Across = sum(M)*vL; 192 193 "Volume Filled of liquid phase" 194 Vfilled = L*Across; 177 195 178 196 end
Note: See TracChangeset
for help on using the changeset viewer.