Changeset 735 for branches/gui/eml/stage_separators/batch_dist.mso
- Timestamp:
- Feb 26, 2009, 11:00:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/batch_dist.mso
r580 r735 49 49 VARIABLES 50 50 in Inlet as stream (Brief="Feed stream", PosX=0, PosY=0.9385, Symbol="_{in}"); 51 in InletL as stream (Brief="Liquid inlet stream", PosX=0.5, PosY=0.1984, Symbol="_{inL}"); # FIXME52 out OutletV as vapour_stream (Brief="Vapour outlet stream", PosX=1, PosY=0.1984, Symbol="_{outV}");51 in InletLiquid as stream (Brief="Liquid inlet stream", PosX=0.5, PosY=0.1984, Symbol="_{inL}"); # FIXME 52 out OutletVapour as vapour_stream (Brief="Vapour outlet stream", PosX=1, PosY=0.1984, Symbol="_{outV}"); 53 53 in InletQ as power (Brief="Heat supplied", PosX=1, PosY=0.9578, Symbol="_{in}"); 54 54 … … 68 68 69 69 "Component Molar Balance" 70 diff(M)= Inlet.F*Inlet.z + InletL .F*InletL.z - OutletV.F*OutletV.z;70 diff(M)= Inlet.F*Inlet.z + InletLiquid.F*InletLiquid.z - OutletVapour.F*OutletVapour.z; 71 71 72 72 "Energy Balance" 73 diff(E) = Inlet.F*Inlet.h + InletL .F*InletL.h - OutletV.F*OutletV.h + InletQ;73 diff(E) = Inlet.F*Inlet.h + InletLiquid.F*InletLiquid.h - OutletVapour.F*OutletVapour.h + InletQ; 74 74 75 75 "Molar Holdup" 76 M = ML*x + MV*OutletV .z;76 M = ML*x + MV*OutletVapour.z; 77 77 78 78 "Energy Holdup" 79 E = ML*h + MV*OutletV .h - P*V;79 E = ML*h + MV*OutletVapour.h - P*V; 80 80 81 81 "Mol fraction normalisation" 82 82 sum(x)=1.0; 83 sum(x)=sum(OutletV .z);83 sum(x)=sum(OutletVapour.z); 84 84 85 85 "Liquid Volume" … … 87 87 88 88 "Vapour Volume" 89 volV = PP.VapourVolume(OutletV .T, OutletV.P, OutletV.z);89 volV = PP.VapourVolume(OutletVapour.T, OutletVapour.P, OutletVapour.z); 90 90 91 91 "Chemical Equilibrium" 92 92 PP.LiquidFugacityCoefficient(T, P, x)*x = 93 PP.VapourFugacityCoefficient(OutletV .T, OutletV.P, OutletV.z)*OutletV.z;93 PP.VapourFugacityCoefficient(OutletVapour.T, OutletVapour.P, OutletVapour.z)*OutletVapour.z; 94 94 95 95 "Mechanical Equilibrium" 96 P = OutletV .P;96 P = OutletVapour.P; 97 97 98 98 "Thermal Equilibrium" 99 T = OutletV .T;99 T = OutletVapour.T; 100 100 101 101 "Geometry Constraint"
Note: See TracChangeset
for help on using the changeset viewer.