Changeset 739 for branches/gui/eml/mixers_splitters/splitter.mso
- Timestamp:
- Feb 27, 2009, 7:18:32 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/mixers_splitters/splitter.mso
r574 r739 23 23 Model splitter_n 24 24 ATTRIBUTES 25 Pallete = true;25 Pallete = false; 26 26 Icon = "icon/splitter_n"; 27 Brief = "Model of a splitter ";27 Brief = "Model of a splitter (NOT Handled by the GUI)"; 28 28 Info = 29 29 "== Assumptions == … … 75 75 end 76 76 77 78 Model splitter 77 Model splitter2 79 78 ATTRIBUTES 80 79 Pallete = true; … … 83 82 Info = 84 83 "== Assumptions == 85 * thermodynamics equilibrium86 * adiabatic84 *Thermodynamics equilibrium 85 *Adiabatic 87 86 88 87 == Specify == 89 * the inlet stream90 * (Noutlet - 1) fractionof split of the outlet streams:91 92 frac(i) = (Mole Flow of the outlet stream i /88 * The inlet stream 89 * One FlowRatios of split of the outlet streams: 90 91 FlowRatios(i) = (Mole Flow of the outlet stream i / 93 92 Mole Flow of the inlet stream) 94 where i = 1, 2 ,...,Noutlet93 where i = 1, 2 95 94 "; 96 95 97 96 VARIABLES 98 97 in Inlet as stream (Brief = "Inlet stream", PosX=0, PosY=0.5069, Symbol="_{in}"); 99 98 out Outlet1 as stream (Brief = "Outlet stream 1", PosX=1, PosY=0.3027, Symbol="_{out1}"); 100 99 out Outlet2 as stream (Brief = "Outlet stream 2", PosX=1, PosY=0.7141, Symbol="_{out2}"); 101 frac as fraction (Brief = "Fraction to Outlet 1", Symbol="\phi"); 102 103 EQUATIONS 104 "Flow" 105 Outlet1.F = Inlet.F * frac; 100 FlowRatios(2) as fraction (Brief = "Distribution of Outlets", Default=0.33, Symbol="\phi"); 101 102 EQUATIONS 103 104 "Normalize Flow Ratios" 105 sum(FlowRatios) = 1; 106 107 "Flow" 108 Outlet1.F = Inlet.F * FlowRatios(1); 106 109 Outlet1.F + Outlet2.F = Inlet.F; 107 "Composition" 110 111 "Composition" 108 112 Outlet1.z = Inlet.z; 109 113 Outlet2.z = Inlet.z; 110 "Pressure" 114 115 "Pressure" 111 116 Outlet1.P = Inlet.P; 112 117 Outlet2.P = Inlet.P; 113 "Enthalpy" 118 119 "Enthalpy" 114 120 Outlet1.h = Inlet.h; 115 121 Outlet2.h = Inlet.h; 116 "Temperature" 122 123 "Temperature" 117 124 Outlet1.T = Inlet.T; 118 125 Outlet2.T = Inlet.T; 119 "Vapourisation Fraction" 126 127 "Vapourisation Fraction" 120 128 Outlet1.v = Inlet.v; 121 129 Outlet2.v = Inlet.v; 130 122 131 end 132 133 Model splitter3 134 ATTRIBUTES 135 Pallete = true; 136 Icon = "icon/splitter"; 137 Brief = "Model of a splitter with 3 outlet streams"; 138 Info = 139 "== Assumptions == 140 * Thermodynamics equilibrium 141 * Adiabatic 142 143 == Specify == 144 *The inlet stream 145 *Two FlowRatios of split of the outlet streams: 146 147 FlowRatios(i) = (Mole Flow of the outlet stream i / 148 Mole Flow of the inlet stream) 149 where i = 1, 2, 3 150 "; 151 152 VARIABLES 153 154 in Inlet as stream (Brief = "Inlet stream", PosX=0, PosY=0.5001, Symbol="_{in}"); 155 out Outlet1 as stream (Brief = "Outlet stream 1", PosX=1, PosY=0.25, Symbol="_{Out1}"); 156 out Outlet2 as stream (Brief = "Outlet stream 2", PosX=1, PosY=0.5059, Symbol="_{Out2}"); 157 out Outlet3 as stream (Brief = "Outlet stream 3", PosX=1, PosY=0.75, Symbol="_{Out3}"); 158 159 FlowRatios(3) as fraction (Brief = "Distribution of Outlets", Default=0.33, Symbol="\phi"); 160 161 EQUATIONS 162 163 "Normalize Flow Ratios" 164 sum(FlowRatios) = 1; 165 166 "Outlet1 Flow" 167 Outlet1.F = Inlet.F*FlowRatios(1); 168 169 "Outlet2 Flow" 170 Outlet2.F = Inlet.F*FlowRatios(2); 171 172 "Outlet3 Flow" 173 Outlet3.F = Inlet.F*FlowRatios(3); 174 175 "Outlet1 Composition" 176 Outlet1.z = Inlet.z; 177 178 "Outlet2 Composition" 179 Outlet2.z = Inlet.z; 180 181 "Outlet3 Composition" 182 Outlet3.z = Inlet.z; 183 184 "Outlet1 Pressure" 185 Outlet1.P = Inlet.P; 186 187 "Outlet2 Pressure" 188 Outlet2.P = Inlet.P; 189 190 "Outlet3 Pressure" 191 Outlet3.P = Inlet.P; 192 193 "Outlet1 Enthalpy" 194 Outlet1.h = Inlet.h; 195 196 "Outlet2 Enthalpy" 197 Outlet2.h = Inlet.h; 198 199 "Outlet3 Enthalpy" 200 Outlet3.h = Inlet.h; 201 202 "Outlet1 Temperature" 203 Outlet1.T = Inlet.T; 204 205 "Outlet2 Temperature" 206 Outlet2.T = Inlet.T; 207 208 "Outlet3 Temperature" 209 Outlet3.T = Inlet.T; 210 211 "Outlet1 Vapourisation Fraction" 212 Outlet1.v = Inlet.v; 213 214 "Outlet2 Vapourisation Fraction" 215 Outlet2.v = Inlet.v; 216 217 "Outlet3 Vapourisation Fraction" 218 Outlet3.v = Inlet.v; 219 220 end
Note: See TracChangeset
for help on using the changeset viewer.