Changeset 864 for branches/gui
- Timestamp:
- Oct 19, 2009, 5:41:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/pressure_changers/compressor.mso
r739 r864 42 42 outer NComp as Integer (Brief = "Number of chemical components", Lower = 1); 43 43 Rgas as positive (Brief = "Constant of Gases", Unit= 'kJ/kmol/K', Default = 8.31451,Hidden=true); 44 Mw(NComp) as molweight (Brief = "Molar Weight"); 45 CompressorType as Switcher (Brief = "Compressor Model Type",Valid=["Polytropic With GPSA Method","Isentropic With GPSA Method","Isentropic With ASME Method","Polytropic With ASME Method"], Default="Isentropic With GPSA Method"); 44 Mw(NComp) as molweight (Brief = "Molar Weight",Hidden=true); 45 CompressorOperation as Switcher (Brief = "Compressor Operation Model",Valid=["Polytropic","Isentropic"], Default="Isentropic"); 46 Method as Switcher (Brief = "Method of Calculation",Valid=["GPSA Method","ASME Method"], Default="GPSA Method"); 46 47 47 48 VARIABLES … … 148 149 FluidPower = Head*Mwm*Inlet.F; 149 150 150 switch CompressorType 151 152 case "Isentropic With GPSA Method": 151 switch CompressorOperation 152 153 case "Isentropic": 154 155 switch Method 156 157 case "ASME Method": 158 159 "Efficiency" 160 EfficiencyOperation = IsentropicEff; 161 162 "Isentropic Coefficient" 163 IseCoeff*ln(rho_ise/rho_in) = ln(Outlet.P/Inlet.P); 164 165 "Polytropic Coefficient" 166 PolyCoeff*ln(rho_out/rho_in) = ln(Outlet.P/Inlet.P); 167 168 "Isentropic Head" 169 HeadIsentropic*rho_in = (IseCoeff/(IseCoeff-1.001))*Inlet.P*HeadCorrection*((Pratio)^((IseCoeff-1.001)/IseCoeff) - 1); 170 171 "Polytropic Head" 172 HeadPolytropic*rho_in = (PolyCoeff/(PolyCoeff-1.001))*Inlet.P*HeadCorrection*((Pratio)^((PolyCoeff-1.001)/PolyCoeff) - 1); 173 174 "Schultz Polytropic Head Correction" 175 HeadCorrection*Mwm*(IseCoeff/(IseCoeff-1.001))*(Outlet.P/rho_ise -Inlet.P/rho_in) = (hise-Inlet.h); 176 177 case "GPSA Method": 153 178 154 179 "Efficiency" … … 169 194 "Isentropic Head" 170 195 HeadIsentropic = Head*IsentropicEff; 171 172 case "Polytropic With GPSA Method": 196 197 end 198 199 case "Polytropic": 200 201 switch Method 202 203 case "GPSA Method": 173 204 174 205 "Efficiency" … … 190 221 HeadIsentropic = Head*IsentropicEff; 191 222 192 case " Isentropic WithASME Method":193 194 "Efficiency" 195 EfficiencyOperation = IsentropicEff;223 case "ASME Method": 224 225 "Efficiency" 226 EfficiencyOperation = PolytropicEff; 196 227 197 228 "Isentropic Coefficient" … … 206 237 "Polytropic Head" 207 238 HeadPolytropic*rho_in = (PolyCoeff/(PolyCoeff-1.001))*Inlet.P*HeadCorrection*((Pratio)^((PolyCoeff-1.001)/PolyCoeff) - 1); 208 209 "Schultz Polytropic Head Correction"210 HeadCorrection*Mwm*(IseCoeff/(IseCoeff-1.001))*(Outlet.P/rho_ise -Inlet.P/rho_in) = (hise-Inlet.h);211 212 case "Polytropic With ASME Method":213 214 "Efficiency"215 EfficiencyOperation = PolytropicEff;216 217 "Isentropic Coefficient"218 IseCoeff*ln(rho_ise/rho_in) = ln(Outlet.P/Inlet.P);219 220 "Polytropic Coefficient"221 PolyCoeff*ln(rho_out/rho_in) = ln(Outlet.P/Inlet.P);222 223 "Isentropic Head"224 HeadIsentropic*rho_in = (IseCoeff/(IseCoeff-1.001))*Inlet.P*HeadCorrection*((Pratio)^((IseCoeff-1.001)/IseCoeff) - 1);225 226 "Polytropic Head"227 HeadPolytropic*rho_in = (PolyCoeff/(PolyCoeff-1.001))*Inlet.P*HeadCorrection*((Pratio)^((PolyCoeff-1.001)/PolyCoeff) - 1);228 239 229 240 "Schultz Polytropic Head Correction" … … 232 243 233 244 end 245 246 end
Note: See TracChangeset
for help on using the changeset viewer.