Changeset 823 for branches/gui/eml/stage_separators/flash.mso
- Timestamp:
- Aug 11, 2009, 11:12:13 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/flash.mso
r797 r823 62 62 Mw(NComp) as molweight (Brief="Mol Weight", Hidden=true); 63 63 pi as positive (Brief="Pi value", Default=3.141593,Hidden=true, Symbol="\pi"); 64 g as acceleration (Brief="Gravity Acceleration",Default=9.81,Hidden=true); 64 65 65 66 Orientation as Switcher (Valid=["vertical","horizontal"],Default="vertical"); … … 85 86 Vcylinder = 0.25*(pi*Diameter^2)*Lenght; 86 87 radius = 0.5*Diameter; 88 g = 9.81 * 'm/(s^2)'; 87 89 88 90 VARIABLES … … 109 111 Pdrop as press_delta (Brief = "Pressure Drop", DisplayUnit = 'kPa', Symbol ="\Delta P", Protected=true); 110 112 113 Peq as pressure (Brief="Equilibrium pressure on the liquid surface", Protected=true, DisplayUnit = 'kPa', Symbol="\Delta P_ª{eq}"); 114 Pstatic as pressure (Brief="Static head at the bottom of the tank", Protected = true, DisplayUnit = 'kPa', Symbol="P_{static}^{Liquid}"); 115 111 116 out TI as control_signal (Brief="Temperature Indicator", PosX=1, PosY=0.39, Protected=true); 112 117 out PI as control_signal (Brief="Pressure Indicator", PosX=1, PosY=0.21, Protected=true); … … 236 241 237 242 "Liquid Volume" 238 vL = PP.LiquidVolume(OutletLiquid.T, OutletLiquid.P, OutletLiquid.z);243 vL = PP.LiquidVolume(OutletLiquid.T, Peq, OutletLiquid.z); 239 244 240 245 "Vapour Volume" 241 vV = PP.VapourVolume(OutletVapour.T, OutletVapour.P, OutletVapour.z);246 vV = PP.VapourVolume(OutletVapour.T, Peq, OutletVapour.z); 242 247 243 248 "Chemical Equilibrium" 244 PP.LiquidFugacityCoefficient(OutletLiquid.T, OutletLiquid.P, OutletLiquid.z)*OutletLiquid.z =245 PP.VapourFugacityCoefficient(OutletVapour.T, OutletVapour.P, OutletVapour.z)*OutletVapour.z;249 PP.LiquidFugacityCoefficient(OutletLiquid.T, Peq, OutletLiquid.z)*OutletLiquid.z = 250 PP.VapourFugacityCoefficient(OutletVapour.T, Peq, OutletVapour.z)*OutletVapour.z; 246 251 247 252 "Thermal Equilibrium" 248 253 OutletVapour.T = OutletLiquid.T; 249 250 "Mechanical Equilibrium" 251 OutletVapour.P = OutletLiquid.P; 254 255 "Mechanical Equilibrium for the Vapour Phase" 256 OutletVapour.P = Peq; 257 258 "Static Head" 259 Pstatic = PP.LiquidDensity(OutletLiquid.T, Peq, OutletLiquid.z) * g * Level; 260 261 "Mechanical Equilibrium for the Liquid Phase" 262 OutletLiquid.P = Peq + Pstatic; 252 263 253 264 "Pressure Drop"
Note: See TracChangeset
for help on using the changeset viewer.