Changeset 784 for branches/gui/eml/stage_separators/condenser.mso
- Timestamp:
- Jul 3, 2009, 6:29:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/condenser.mso
r768 r784 24 24 Pallete = true; 25 25 Icon = "icon/Condenser"; 26 Brief 26 Brief = "Model of a dynamic condenser."; 27 27 Info = 28 28 "== Assumptions == … … 33 33 * the inlet stream; 34 34 * the outlet flows: OutletVapour.F and OutletLiquid.F; 35 * the heat supply.35 * the InletQ (the model requires an energy stream). 36 36 37 37 == Initial Conditions == 38 * the condenser temperature (OutletLiquid.T);39 * the condenser liquid level (Level);40 * (NoComps - 1) OutletLiquid (OR OutletVapour)compositions.38 * Initial_Temperature : the condenser temperature (OutletLiquid.T); 39 * Initial_Level : the condenser liquid level (Level); 40 * Initial_Composition : (NoComps) OutletLiquid compositions. 41 41 "; 42 42 43 43 PARAMETERS 44 44 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 45 outer NComp as Integer ;45 outer NComp as Integer(Brief = "Number of Components"); 46 46 47 47 V as volume (Brief="Condenser total volume"); 48 Across as area (Brief="Cross Section Area of reboiler");48 Across as area (Brief="Cross Section Area of condenser"); 49 49 50 50 Initial_Level as length (Brief="Initial Level of liquid phase"); … … 56 56 out OutletLiquid as liquid_stream (Brief="Liquid outlet stream", PosX=0.4513, PosY=1, Symbol="_{outL}"); 57 57 out OutletVapour as vapour_stream (Brief="Vapour outlet stream", PosX=0.4723, PosY=0, Symbol="_{outV}"); 58 in InletQ as power (Brief="Cold supplied", PosX=1, PosY=0, Symbol="_{in}" );59 60 M(NComp) as mol (Brief=" Molar Holdup in the tray");61 ML as mol (Brief="Molar liquid holdup" );62 MV as mol (Brief="Molar vapour holdup" );63 E as energy (Brief="Total Energy Holdup on tray");64 vL as volume_mol (Brief="Liquid Molar Volume" );65 vV as volume_mol (Brief="Vapour Molar volume" );66 Level as length (Brief="Level of liquid phase" );58 in InletQ as power (Brief="Cold supplied", PosX=1, PosY=0, Symbol="_{in}",Protected=true); 59 60 M(NComp) as mol (Brief="Condenser Total Molar Holdup",Protected=true); 61 ML as mol (Brief="Molar liquid holdup",Protected=true); 62 MV as mol (Brief="Molar vapour holdup",Protected=true); 63 E as energy (Brief="Total Energy Holdup",Protected=true); 64 vL as volume_mol (Brief="Liquid Molar Volume",Protected=true); 65 vV as volume_mol (Brief="Vapour Molar volume",Protected=true); 66 Level as length (Brief="Level of liquid phase",Protected=true); 67 67 68 68 INITIAL … … 85 85 E = ML*OutletLiquid.h + MV*OutletVapour.h - OutletVapour.P*V; 86 86 87 " Mol fraction normalisation"87 "Liquid Mol fraction normalisation" 88 88 sum(OutletLiquid.z)=1.0; 89 90 "Mol fraction constraint" 89 91 sum(OutletLiquid.z)=sum(OutletVapour.z); 90 92 … … 113 115 end 114 116 115 116 #*----------------------------------------------------------------------117 * Model of a Steady State condenser with no thermodynamics equilibrium118 *---------------------------------------------------------------------*#119 117 Model condenserSteady 120 118 ATTRIBUTES … … 130 128 * the inlet stream; 131 129 * the pressure drop in the condenser; 132 * the heat supply.130 * the InletQ (the model requires an energy stream). 133 131 "; 134 132 135 133 PARAMETERS 136 134 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 137 outer NComp as Integer ;135 outer NComp as Integer (Brief = "Number of Components"); 138 136 139 137 VARIABLES 140 138 in InletVapour as stream (Brief="Vapour inlet stream", PosX=0.3431, PosY=0, Symbol="_{inV}"); 141 139 out OutletLiquid as liquid_stream (Brief="Liquid outlet stream", PosX=0.34375, PosY=1, Symbol="_{outL}"); 142 in InletQ as power (Brief="Cold supplied", PosX=1, PosY=0.5974, Symbol="_{in}" );143 DPas press_delta (Brief="Pressure Drop in the condenser",Default=0);140 in InletQ as power (Brief="Cold supplied", PosX=1, PosY=0.5974, Symbol="_{in}",Protected=true); 141 Pdrop as press_delta (Brief="Pressure Drop in the condenser",Default=0); 144 142 145 143 EQUATIONS 146 144 147 "Molar Balance"145 "Molar Flow Balance" 148 146 InletVapour.F = OutletLiquid.F; 147 148 "Molar Composition Balance" 149 149 InletVapour.z = OutletLiquid.z; 150 150 … … 152 152 InletVapour.F*InletVapour.h = OutletLiquid.F*OutletLiquid.h + InletQ; 153 153 154 "Pressure "155 DP = InletVapour.P - OutletLiquid.P;154 "Pressure Drop" 155 OutletLiquid.P = InletVapour.P - Pdrop; 156 156 157 157 end 158 158 159 #*-------------------------------------------------------------------160 * Condenser with reaction in liquid phase161 *--------------------------------------------------------------------*#162 159 Model condenserReact 163 160 ATTRIBUTES … … 283 280 * the inlet stream; 284 281 * the outlet flows: OutletVapour.F and OutletLiquid.F; 285 * the model requires an energy stream.282 * the InletQ (the model requires an energy stream). 286 283 287 284 == Initial Conditions ==
Note: See TracChangeset
for help on using the changeset viewer.