Changeset 834 for branches/gui/eml/stage_separators
- Timestamp:
- Aug 19, 2009, 9:55:54 PM (13 years ago)
- Location:
- branches/gui/eml/stage_separators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/condenser.mso
r831 r834 48 48 outer NComp as Integer (Brief = "Number of Components"); 49 49 50 Mw(NComp) as molweight (Brief = "Component Mol Weight",Hidden=true);51 50 Pdrop as press_delta (Brief="Pressure Drop in the condenser",Default=0, Symbol="\Delta _P"); 52 53 SET54 55 Mw = PP.MolecularWeight();56 51 57 52 VARIABLES … … 59 54 out OutletLiquid as liquid_stream (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}"); 60 55 in InletQ as power (Brief="Heat Duty", PosX=1, PosY=0.08, Symbol="Q_{in}",Protected=true); 61 62 rho as dens_mass (Brief ="Inlet Vapour Mass Density",Hidden=true, Symbol ="\rho"); 56 63 57 Tbubble as temperature (Brief ="Bubble Temperature",Protected=true, Symbol ="T_{bubble}"); 64 58 Deg_Subcooled as temp_delta (Brief ="Degrees subcooled",Symbol ="\Delta T_{subcooled}"); 65 59 66 60 out TI as control_signal (Brief="Temperature Indicator of Condenser", Protected = true, PosX=0.50, PosY=0); 67 61 out PI as control_signal (Brief="Pressure Indicator of Condenser", Protected = true, PosX=0.32, PosY=0); 68 62 69 63 EQUATIONS 70 64 … … 78 72 InletVapour.F*InletVapour.h + InletQ = OutletLiquid.F*OutletLiquid.h; 79 73 80 "Inlet Vapour Density"81 rho = PP.VapourDensity(InletVapour.T, InletVapour.P, InletVapour.z);82 83 74 "Pressure Drop" 84 75 OutletLiquid.P = InletVapour.P - Pdrop; … … 90 81 OutletLiquid.T = Tbubble-Deg_Subcooled; 91 82 83 "Temperature indicator" 84 TI * 'K' = OutletLiquid.T; 85 86 "Pressure indicator" 87 PI * 'atm' = OutletLiquid.P; 88 89 end 90 91 Model condenserSteady_fakeH 92 93 ATTRIBUTES 94 Pallete = true; 95 Icon = "icon/CondenserSteady"; 96 Brief = "Model of a Steady State condenser with fake calculation of outlet conditions."; 97 Info = 98 "Model of a Steady State condenser with fake calculation of output temperature, but with a real 99 calculation of the output stream enthalpy. 100 101 == ASSUMPTIONS == 102 * perfect mixing of both phases; 103 * no thermodynamics equilibrium. 104 105 == SET == 106 * the fake Outlet temperature ; 107 * the pressure drop in the condenser; 108 109 == SPECIFY == 110 * the InletVapour stream; 111 * the InletQ (the model requires an energy stream, also you can use a controller for setting the heat duty using the heat_flow model). 112 113 == OPTIONAL == 114 * the condenser model has two control ports 115 ** TI OutletLiquid Temperature Indicator; 116 ** PI OutletLiquid Pressure Indicator; 117 "; 118 119 PARAMETERS 120 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 121 outer NComp as Integer (Brief = "Number of Components"); 122 123 Pdrop as press_delta (Brief="Pressure Drop in the condenser",Default=0, Symbol="\Delta _P"); 124 Fake_Temperature as temperature (Brief="Fake temperature", Symbol = "T_{fake}"); 125 126 127 VARIABLES 128 in InletVapour as stream (Brief="Vapour inlet stream", PosX=0.16, PosY=0, Symbol="_{in}^{Vapour}"); 129 out OutletLiquid as stream (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}"); 130 in InletQ as power (Brief="Heat Duty", PosX=1, PosY=0.08, Symbol="Q_{in}",Protected=true); 131 132 out TI as control_signal (Brief="Temperature Indicator of Condenser", Protected = true, PosX=0.50, PosY=0); 133 out PI as control_signal (Brief="Pressure Indicator of Condenser", Protected = true, PosX=0.32, PosY=0); 134 135 EQUATIONS 136 137 "Molar Flow Balance" 138 InletVapour.F = OutletLiquid.F; 139 140 "Molar Composition Balance" 141 InletVapour.z = OutletLiquid.z; 142 143 "Energy Balance" 144 InletVapour.F*InletVapour.h + InletQ = OutletLiquid.F*OutletLiquid.h; 145 146 "Pressure Drop" 147 OutletLiquid.P = InletVapour.P - Pdrop; 148 149 "Fake Temperature" 150 OutletLiquid.T = Fake_Temperature; 151 152 "Vapourisation Fraction" 153 OutletLiquid.v = 0; 154 92 155 "Temperature indicator" 93 156 TI * 'K' = OutletLiquid.T; -
branches/gui/eml/stage_separators/tank.mso
r831 r834 760 760 761 761 "Temperature indicator" 762 TI * 'K' = Outlet Liquid.T;762 TI * 'K' = OutletVapour.T; 763 763 764 764 "Liquid Level"
Note: See TracChangeset
for help on using the changeset viewer.