Changeset 135 for branches/newlanguage/eml/heat_exchangers/HEX_Engine.mso
- Timestamp:
- Jan 25, 2007, 6:00:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/heat_exchangers/HEX_Engine.mso
r132 r135 63 63 64 64 Model Inlet_Main_Stream 65 #===================================================================== 66 # Inlet Streams 67 #===================================================================== 68 VARIABLES 69 Hot as stream; # Inlet Hot Stream 70 Cold as stream; # Inlet Cold Stream 65 66 ATTRIBUTES 67 Pallete = false; 68 Brief = "write some information"; 69 Info = 70 "write some information"; 71 72 VARIABLES 73 Hot as stream (Brief="Inlet Hot Stream"); 74 Cold as stream (Brief="Inlet Cold Stream"); 71 75 72 76 end 73 77 74 78 Model Outlet_Main_Stream 75 #===================================================================== 76 # Outlet Streams 77 #===================================================================== 78 VARIABLES 79 Hot as liquid_stream; # Outlet Hot Stream 80 Cold as liquid_stream; # Outlet Cold Stream 79 80 ATTRIBUTES 81 Pallete = false; 82 Brief = "write some information"; 83 Info = 84 "write some information"; 85 86 VARIABLES 87 # Must be streamPH 88 Hot as liquid_stream (Brief="Outlet Hot Stream"); 89 Cold as liquid_stream (Brief="Outlet Cold Stream"); 81 90 82 91 end … … 87 96 88 97 Model Properties_Average 89 #===================================================================== 90 # Average Physical Properties 91 #===================================================================== 98 99 ATTRIBUTES 100 Pallete = false; 101 Brief = "write some information"; 102 Info = 103 "write some information"; 104 92 105 VARIABLES 93 106 Mw as molweight (Brief="Average Mol Weight",Default=75, Lower=1, Upper=1e8); 94 T as temperature (Brief="Average Temperature",Lower=50);95 P as pressure (Brief="Average Pressure",Default=1, Lower=1e-10, Upper=30);107 T as temperature (Brief="Average Temperature",Lower=50); 108 P as pressure (Brief="Average Pressure",Default=1, Lower=1e-10, Upper=30); 96 109 rho as dens_mass (Brief="Stream Density" ,Default=1000, Lower=1e-3, Upper=5e5); 97 110 Mu as viscosity (Brief="Stream Viscosity",Lower=0.0001); 98 Cp as cp_mol (Brief="Stream Molar Heat Capacity", Upper=1e10);99 K as conductivity (Brief="Stream Thermal Conductivity", Default=1.0, Lower=1e-5, Upper=500);111 Cp as cp_mol (Brief="Stream Molar Heat Capacity", Upper=1e10); 112 K as conductivity (Brief="Stream Thermal Conductivity", Default=1.0, Lower=1e-5, Upper=500); 100 113 101 114 end 102 115 103 116 Model Properties_In_Out 104 #===================================================================== 105 # Inlet/Outlet Physical Properties 106 #===================================================================== 107 VARIABLES 108 Fw as flow_mass (Brief="Stream Mass Flow"); 109 rho as dens_mass (Brief="Stream Density" ,Default=1000, Lower=1e-3, Upper=5e5); 110 Mu as viscosity (Brief="Stream Viscosity",Default=1, Lower=1e-5, Upper=1e5); 111 Cp as cp_mol (Brief="Stream Molar Heat Capacity", Upper=1e10); 112 K as conductivity (Brief="Stream Thermal Conductivity", Default=1.0, Lower=1e-5, Upper=500); 117 118 ATTRIBUTES 119 Pallete = false; 120 Brief = "write some information"; 121 Info = 122 "write some information"; 123 124 VARIABLES 125 Fw as flow_mass (Brief="Stream Mass Flow"); 126 rho as dens_mass (Brief="Stream Density" ,Default=1000, Lower=1e-3, Upper=5e5); 127 Mu as viscosity (Brief="Stream Viscosity",Default=1, Lower=1e-5, Upper=1e5); 128 Cp as cp_mol (Brief="Stream Molar Heat Capacity", Upper=1e10); 129 K as conductivity (Brief="Stream Thermal Conductivity", Default=1.0, Lower=1e-5, Upper=500); 113 130 114 131 end 115 132 116 133 Model Properties_Wall 117 #===================================================================== 118 # Physical Properties at Wall Temperature 119 #===================================================================== 120 VARIABLES 121 Mu as viscosity (Brief="Stream Viscosity",Default=1, Lower=1e-5, Upper=1e5); 122 Cp as cp_mol (Brief="Stream Molar Heat Capacity", Upper=1e10); 123 K as conductivity (Brief="Stream Thermal Conductivity", Default=1.0, Lower=1e-5, Upper=500); 124 Twall as temperature (Brief="Wall Temperature",Lower=50); 134 135 ATTRIBUTES 136 Pallete = false; 137 Brief = "write some information"; 138 Info = 139 "write some information"; 140 141 VARIABLES 142 Mu as viscosity (Brief="Stream Viscosity",Default=1, Lower=1e-5, Upper=1e5); 143 Cp as cp_mol (Brief="Stream Molar Heat Capacity", Upper=1e10); 144 K as conductivity (Brief="Stream Thermal Conductivity", Default=1.0, Lower=1e-5, Upper=500); 145 Twall as temperature (Brief="Wall Temperature",Lower=50); 125 146 126 147 end 127 148 128 149 Model Physical_Properties 129 #===================================================================== 130 # Physical Properties 131 #===================================================================== 132 VARIABLES 133 Inlet as Properties_In_Out; # Properties at Inlet Stream 134 Average as Properties_Average; # Properties at Average Temperature 135 Outlet as Properties_In_Out; # Properties at Outlet Stream 136 Wall as Properties_Wall; # Properties at Wall Temperature 150 151 ATTRIBUTES 152 Pallete = false; 153 Brief = "write some information"; 154 Info = 155 "write some information"; 156 157 VARIABLES 158 Inlet as Properties_In_Out (Brief="Properties at Inlet Stream"); 159 Average as Properties_Average (Brief="Properties at Average Temperature"); 160 Outlet as Properties_In_Out (Brief="Properties at Outlet Stream"); 161 Wall as Properties_Wall (Brief="Properties at Wall Temperature"); 137 162 138 163 end 139 164 140 165 Model Main_Properties 141 #===================================================================== 142 # Physical Properties for Hot and Cold Side 143 #===================================================================== 144 VARIABLES 145 Hot as Physical_Properties; # Hot Stream 146 Cold as Physical_Properties; # Cold Stream 166 ATTRIBUTES 167 Pallete = false; 168 Brief = "write some information"; 169 Info = 170 "write some information"; 171 172 VARIABLES 173 174 Hot as Physical_Properties (Brief="Hot Stream"); 175 Cold as Physical_Properties (Brief="Cold Stream"); 176 147 177 end 148 178 149 179 Model Tube_Pdrop 150 #===================================================================== 151 # Tube Side Pressure Drop block 152 #===================================================================== 180 181 ATTRIBUTES 182 Pallete = false; 183 Brief = "write some information"; 184 Info = 185 "write some information"; 186 153 187 VARIABLES 154 188 PdTube as press_delta (Brief="Tube Pressure Drop",Default=0.01, Lower=1e-10); 155 Pdtotal as press_delta (Brief="Total Pressure Drop",Default=0.01, Lower=1e-10);189 Pdtotal as press_delta (Brief="Total Pressure Drop",Default=0.01, Lower=1e-10); 156 190 Pdnozzle_in as press_delta (Brief="Inlet Nozzle Pressure Drop",Default=0.01, Lower=0); 157 191 Pdnozzle_out as press_delta (Brief="Outlet Nozzle Pressure Drop",Default=0.01, Lower=0); … … 166 200 167 201 Model Tube_Heat_Transfer 168 #===================================================================== 169 # Tube Side Heat Transfer Block 170 #===================================================================== 171 VARIABLES 172 Re as positive (Brief="Tube Side Reynolds Number",Default=1000,Lower=1); 173 htube as heat_trans_coeff (Brief="Tube Side Film Coefficient",Default=1,Lower=1e-12, Upper=1e6); 174 PR as positive (Brief="Tube Side Prandtl Number",Default=0.5,Lower=1e-8); 175 PRw as positive (Brief="Tube Side Prandtl Number at Wall Temperature",Default=0.5,Lower=1e-8); 176 Phi as positive (Brief="Phi Correction",Default=1,Lower=1e-3); 177 Vtube as velocity (Brief="Tube Side Velocity",Lower=1e-8); 202 203 ATTRIBUTES 204 Pallete = false; 205 Brief = "write some information"; 206 Info = 207 "write some information"; 208 209 VARIABLES 210 Re as positive (Brief="Tube Side Reynolds Number",Default=1000,Lower=1); 211 htube as heat_trans_coeff (Brief="Tube Side Film Coefficient",Default=1,Lower=1e-12, Upper=1e6); 212 PR as positive (Brief="Tube Side Prandtl Number",Default=0.5,Lower=1e-8); 213 PRw as positive (Brief="Tube Side Prandtl Number at Wall Temperature",Default=0.5,Lower=1e-8); 214 Phi as positive (Brief="Phi Correction",Default=1,Lower=1e-3); 215 Vtube as velocity (Brief="Tube Side Velocity",Lower=1e-8); 178 216 179 217 end 180 218 181 219 Model Shell_Pdrop 182 #===================================================================== 183 # Shell Side Pressure Drop block 184 #===================================================================== 185 VARIABLES 186 PdCross as press_delta (Brief="Cross Flow Pressure Drop",Default=0.01, Lower=0); 187 PdEndZones as press_delta (Brief="End Zones Pressure Drop",Default=0.01, Lower=0); 188 Pdwindow as press_delta (Brief="Window Pressure Drop",Default=0.01, Lower=1e-10); 189 Pdtotal as press_delta (Brief="Total Pressure Drop",Default=0.01, Lower=0); 190 Pdnozzle_in as press_delta (Brief="Inlet Nozzle Pressure Drop",Default=0.01, Lower=0); 191 Pdnozzle_out as press_delta (Brief="Outlet Nozzle Pressure Drop",Default=0.01, Lower=0); 192 Vnozzle_in as velocity (Brief="Inlet Nozzle Velocity",Default=1, Upper=1e5, Lower=0); 193 Vnozzle_out as velocity (Brief="Outlet Nozzle Velocity",Default=1, Upper=1e5, Lower=0); 194 RVsquare_out as positive (Brief = "Outlet Nozzle rho-V^2", Default=1, Upper=1e6, Unit = "kg/s^2/m"); 195 RVsquare_in as positive (Brief = "Inlet Nozzle rho-V^2", Default=1, Upper=1e6, Unit = "kg/s^2/m"); 220 221 ATTRIBUTES 222 Pallete = false; 223 Brief = "write some information"; 224 Info = 225 "write some information"; 226 227 VARIABLES 228 PdCross as press_delta (Brief="Cross Flow Pressure Drop",Default=0.01, Lower=0); 229 PdEndZones as press_delta (Brief="End Zones Pressure Drop",Default=0.01, Lower=0); 230 Pdwindow as press_delta (Brief="Window Pressure Drop",Default=0.01, Lower=1e-10); 231 Pdtotal as press_delta (Brief="Total Pressure Drop",Default=0.01, Lower=0); 232 Pdnozzle_in as press_delta (Brief="Inlet Nozzle Pressure Drop",Default=0.01, Lower=0); 233 Pdnozzle_out as press_delta (Brief="Outlet Nozzle Pressure Drop",Default=0.01, Lower=0); 234 Vnozzle_in as velocity (Brief="Inlet Nozzle Velocity",Default=1, Upper=1e5, Lower=0); 235 Vnozzle_out as velocity (Brief="Outlet Nozzle Velocity",Default=1, Upper=1e5, Lower=0); 236 RVsquare_out as positive (Brief = "Outlet Nozzle rho-V^2", Default=1, Upper=1e6, Unit = "kg/s^2/m"); 237 RVsquare_in as positive (Brief = "Inlet Nozzle rho-V^2", Default=1, Upper=1e6, Unit = "kg/s^2/m"); 196 238 197 239 EQUATIONS … … 202 244 203 245 Model Shell_Heat_Transfer 204 #===================================================================== 205 # Shell Side Heat Transfer Block 206 #===================================================================== 207 VARIABLES 208 Re as positive (Brief="Shell Side Reynolds Number",Default=100,Lower=1); 209 PR as positive (Brief="Shell Side Prandtl Number",Default=0.7,Lower=1e-6); 210 PRw as positive (Brief="Shell Side Prandtl Number",Default=0.5,Lower=1e-8); 246 247 ATTRIBUTES 248 Pallete = false; 249 Brief = "write some information"; 250 Info = 251 "write some information"; 252 253 VARIABLES 254 Re as positive (Brief="Shell Side Reynolds Number",Default=100,Lower=1); 255 PR as positive (Brief="Shell Side Prandtl Number",Default=0.7,Lower=1e-6); 256 PRw as positive (Brief="Shell Side Prandtl Number",Default=0.5,Lower=1e-8); 211 257 hshell as heat_trans_coeff (Brief="Shell Side Film Coefficient",Default=1,Lower=1e-12, Upper=1e6); 212 Phi as positive(Brief="Phi Correction",Default=1,Lower=1e-3);258 Phi as positive (Brief="Phi Correction",Default=1,Lower=1e-3); 213 259 Ji as constant (Brief="Shell Side Ji Factor",Default=0.05); 214 Jr as positive (Brief="Shell Side Jr Factor",Lower=10e-6);215 Jl as positive (Brief="Shell Side Jl Factor",Lower=10e-6);216 Jb as positive (Brief="Shell Side Jb Factor",Lower=10e-6);217 Jc as positive (Brief="Shell Side Jc Factor",Lower=10e-6);218 Js as positive (Brief="Shell Side Js Factor",Lower=10e-6);219 Jtotal as positive (Brief="Shell Side Jtotal Factor",Lower=10e-6);220 Sm as area(Brief="Shell Side Cross Flow Area",Default=0.05,Lower=10e-6);260 Jr as positive (Brief="Shell Side Jr Factor",Lower=10e-6); 261 Jl as positive (Brief="Shell Side Jl Factor",Lower=10e-6); 262 Jb as positive (Brief="Shell Side Jb Factor",Lower=10e-6); 263 Jc as positive (Brief="Shell Side Jc Factor",Lower=10e-6); 264 Js as positive (Brief="Shell Side Js Factor",Lower=10e-6); 265 Jtotal as positive (Brief="Shell Side Jtotal Factor",Lower=10e-6); 266 Sm as area (Brief="Shell Side Cross Flow Area",Default=0.05,Lower=10e-6); 221 267 222 268 end 223 269 224 270 Model Baffles_Main 225 #===================================================================== 226 # Baffles Spacing 227 #===================================================================== 228 VARIABLES 229 Ls as length (Brief="Central Baffle Spacing",Lower=1e-8); 271 272 ATTRIBUTES 273 Pallete = false; 274 Brief = "write some information"; 275 Info = 276 "write some information"; 277 278 VARIABLES 279 Ls as length (Brief="Central Baffle Spacing",Lower=1e-8); 230 280 Lsi as length (Brief="Inlet Baffle Spacing",Lower=1e-8); 231 281 Lso as length (Brief="Outlet Baffle Spacing",Lower=1e-8); … … 234 284 235 285 Model Main_Resistances 236 #===================================================================== 237 # Resistances 238 #===================================================================== 286 287 ATTRIBUTES 288 Pallete = false; 289 Brief = "write some information"; 290 Info = 291 "write some information"; 292 239 293 VARIABLES 240 294 241 295 Rtube as positive (Brief="Tube Resistance",Unit="m^2*K/kW",Lower=1e-6); 242 Rwall as positive (Brief="Wall Resistance",Unit="m^2*K/kW",Lower=1e-6);243 Rshell as positive (Brief="Shell Resistance",Unit="m^2*K/kW",Lower=1e-6);244 Rfi as positive (Brief="Inside Fouling Resistance",Unit="m^2*K/kW",Default=1e-6,Lower=0);296 Rwall as positive (Brief="Wall Resistance",Unit="m^2*K/kW",Lower=1e-6); 297 Rshell as positive (Brief="Shell Resistance",Unit="m^2*K/kW",Lower=1e-6); 298 Rfi as positive (Brief="Inside Fouling Resistance",Unit="m^2*K/kW",Default=1e-6,Lower=0); 245 299 Rfo as positive (Brief="Outside Fouling Resistance",Unit="m^2*K/kW",Default=1e-6,Lower=0); 246 300 … … 248 302 249 303 Model Details_Main 250 #===================================================================== 251 # Heat Exchanger Thermal Details 252 #===================================================================== 253 VARIABLES 254 A as area (Brief="Exchange Surface Area"); 255 Q as power (Brief="Heat Transfer", Default=7000, Lower=1e-6, Upper=1e10); 256 Uc as heat_trans_coeff (Brief="Overall Heat Transfer Coefficient Clean",Default=1,Lower=1e-6,Upper=1e10); 257 Ud as heat_trans_coeff (Brief="Overall Heat Transfer Coefficient Dirty",Default=1,Lower=1e-6,Upper=1e10); 258 Ch as positive (Brief="Hot Stream Heat Capacity",Lower=1e-3,Default=1e3,Unit="W/K"); 259 Cc as positive (Brief="Cold Stream Heat Capacity",Lower=1e-3,Default=1e3,Unit="W/K"); 260 Cr as positive (Brief="Heat Capacity Ratio",Default=0.5,Lower=1e-6); 261 Cmin as positive (Brief="Minimum Heat Capacity",Lower=1e-10,Default=1e3,Unit="W/K"); 262 Cmax as positive (Brief="Maximum Heat Capacity",Lower=1e-10,Default=1e3,Unit="W/K"); 263 NTU as positive (Brief="Number of Units Transference",Default=0.05,Lower=1e-10); 304 305 ATTRIBUTES 306 Pallete = false; 307 Brief = "write some information"; 308 Info = 309 "write some information"; 310 311 VARIABLES 312 A as area (Brief="Exchange Surface Area"); 313 Q as power (Brief="Heat Transfer", Default=7000, Lower=1e-6, Upper=1e10); 314 Uc as heat_trans_coeff (Brief="Overall Heat Transfer Coefficient Clean",Default=1,Lower=1e-6,Upper=1e10); 315 Ud as heat_trans_coeff (Brief="Overall Heat Transfer Coefficient Dirty",Default=1,Lower=1e-6,Upper=1e10); 316 Ch as positive (Brief="Hot Stream Heat Capacity",Lower=1e-3,Default=1e3,Unit="W/K"); 317 Cc as positive (Brief="Cold Stream Heat Capacity",Lower=1e-3,Default=1e3,Unit="W/K"); 318 Cr as positive (Brief="Heat Capacity Ratio",Default=0.5,Lower=1e-6); 319 Cmin as positive (Brief="Minimum Heat Capacity",Lower=1e-10,Default=1e3,Unit="W/K"); 320 Cmax as positive (Brief="Maximum Heat Capacity",Lower=1e-10,Default=1e3,Unit="W/K"); 321 NTU as positive (Brief="Number of Units Transference",Default=0.05,Lower=1e-10); 264 322 265 323 EQUATIONS … … 270 328 271 329 Model Tube_Side_Main 272 #===================================================================== 273 # Tube Side Main Variables 274 #===================================================================== 275 VARIABLES 276 PressureDrop as Tube_Pdrop; #Tube Side Pressure Drop 277 HeatTransfer as Tube_Heat_Transfer; #Tube Side Heat Transfer 330 331 ATTRIBUTES 332 Pallete = false; 333 Brief = "write some information"; 334 Info = 335 "write some information"; 336 337 VARIABLES 338 PressureDrop as Tube_Pdrop (Brief="Tube Side Pressure Drop"); 339 HeatTransfer as Tube_Heat_Transfer (Brief="Tube Side Heat Transfer"); 278 340 279 341 end 280 342 281 343 Model Shell_Side_Main 282 #===================================================================== 283 # Shell Side Main Variables 284 #===================================================================== 285 VARIABLES 286 PressureDrop as Shell_Pdrop; # Shell Side Pressure Drop 287 HeatTransfer as Shell_Heat_Transfer; # Shell Side Heat Transfer 344 345 ATTRIBUTES 346 Pallete = false; 347 Brief = "write some information"; 348 Info = 349 "write some information"; 350 351 VARIABLES 352 PressureDrop as Shell_Pdrop (Brief="Shell Side Pressure Drop"); 353 HeatTransfer as Shell_Heat_Transfer (Brief= "Shell Side Heat Transfer"); 288 354 289 355 end 290 356 291 357 Model Basic_Pdrop 292 #===================================================================== 293 # Pressure Drop 294 #===================================================================== 358 359 ATTRIBUTES 360 Pallete = false; 361 Brief = "write some information"; 362 Info = 363 "write some information"; 364 295 365 VARIABLES 296 366 Pdrop as press_delta (Brief="Pressure Drop",Default=0.01, Lower=0); … … 300 370 301 371 Model Main_Pdrop 302 #===================================================================== 303 # Pressure Drop block 304 #===================================================================== 305 VARIABLES 306 Hot as Basic_Pdrop;# Hot Stream 307 Cold as Basic_Pdrop;# Cold Stream 372 373 ATTRIBUTES 374 Pallete = false; 375 Brief = "write some information"; 376 Info = 377 "write some information"; 378 379 VARIABLES 380 Hot as Basic_Pdrop (Brief="Hot Stream"); 381 Cold as Basic_Pdrop (Brief="Cold Stream"); 308 382 309 383 end 310 384 311 385 Model DoublePipe_HeatTransfer 312 #===================================================================== 313 # Double Pipe Heat Transfer Block 314 #===================================================================== 386 387 ATTRIBUTES 388 Pallete = false; 389 Brief = "write some information"; 390 Info = 391 "write some information"; 392 315 393 PARAMETERS 316 As as area 317 Dh as length 318 319 VARIABLES 320 Re as positive (Brief="Reynolds Number",Default=100,Lower=1);394 As as area (Brief="Cross Sectional Area for Flow",Default=0.05,Lower=1e-8); 395 Dh as length (Brief="Hydraulic Diameter of Pipe for Heat Transfer",Lower=1e-8); 396 397 VARIABLES 398 Re as positive (Brief="Reynolds Number",Default=100,Lower=1); 321 399 hcoeff as heat_trans_coeff (Brief="Film Coefficient",Default=1,Lower=1e-12, Upper=1e6); 322 PR as positive (Brief="Prandtl Number",Default=0.5,Lower=1e-8);323 Phi as positive(Brief="Phi Correction",Default=1,Lower=1e-3);324 Vmean as velocity (Brief="Tube Velocity",Lower=1e-8);400 PR as positive (Brief="Prandtl Number",Default=0.5,Lower=1e-8); 401 Phi as positive (Brief="Phi Correction",Default=1,Lower=1e-3); 402 Vmean as velocity (Brief="Tube Velocity",Lower=1e-8); 325 403 326 404 end 327 405 328 406 Model DoublePipe_PressureDrop 329 #===================================================================== 330 # # Double Pipe Pressure Drop Block 331 #===================================================================== 407 408 ATTRIBUTES 409 Pallete = false; 410 Brief = "write some information"; 411 Info = 412 "write some information"; 413 332 414 PARAMETERS 333 415 Dh as length (Brief="Hydraulic Diameter of Pipe for Pressure Drop",Lower=1e-6); … … 336 418 Pdrop as press_delta (Brief="Pressure Drop",Default=0.01, Lower=1e-10); 337 419 fi as fricfactor (Brief="Friction Factor", Default=0.05, Lower=1e-10, Upper=2000); 338 Re 420 Re as positive (Brief="Reynolds Number",Default=100,Lower=1); 339 421 340 422 end 341 423 342 424 Model Main_DoublePipe 343 #===================================================================== 344 # Double Pipe Main Variables 345 #===================================================================== 346 VARIABLES 347 HeatTransfer as DoublePipe_HeatTransfer; 348 PressureDrop as DoublePipe_PressureDrop; 349 350 end 425 426 ATTRIBUTES 427 Pallete = false; 428 Brief = "write some information"; 429 Info = 430 "write some information"; 431 432 VARIABLES 433 HeatTransfer as DoublePipe_HeatTransfer (Brief="Double Pipe Heat Transfer"); 434 PressureDrop as DoublePipe_PressureDrop (Brief="Double Pipe Pressure Drop"); 435 436 end
Note: See TracChangeset
for help on using the changeset viewer.