source: trunk/eml/heat_exchangers/HEX_Engine.mso @ 336

Last change on this file since 336 was 324, checked in by Argimiro Resende Secchi, 16 years ago

Increasing Upper bound of Pressure Average in HEX_Engine.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 14.4 KB
RevLine 
[78]1#*-------------------------------------------------------------------
2* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
3*
4* This LIBRARY is free software; you can distribute it and/or modify
5* it under the therms of the ALSOC FREE LICENSE as available at
6* http://www.enq.ufrgs.br/alsoc.
7*
8* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
9* from http://www.rps.eng.br Copyright (C) 2002-2004.
10* All rights reserved.
11*
12* EMSO is distributed under the therms of the ALSOC LICENSE as
13* available at http://www.enq.ufrgs.br/alsoc.
[26]14*--------------------------------------------------------------------
[1]15* Author: Gerson Balbueno Bicca
16* $Id: HEX_Engine.mso 324 2007-07-27 20:51:04Z arge $
17*--------------------------------------------------------------------*#
18
19using "streams";
20
21Model Properties_Average
[135]22       
23ATTRIBUTES
24        Pallete = false;
[197]25        Brief = "Average physical properties of the streams.";
[135]26        Info =
[284]27        "to be documented.";
[135]28       
[1]29VARIABLES
[26]30Mw              as molweight            (Brief="Average Mol Weight",Default=75, Lower=1, Upper=1e8);
[135]31T                       as temperature          (Brief="Average  Temperature",Lower=50);
[324]32P                       as pressure                     (Brief="Average  Pressure",Default=1, Lower=1e-10, Upper=2e4, DisplayUnit='kPa');
[26]33rho             as dens_mass            (Brief="Stream Density" ,Default=1000, Lower=1e-3, Upper=5e5);
34Mu              as viscosity            (Brief="Stream Viscosity",Lower=0.0001);
[236]35Cp              as cp_mol                       (Brief="Stream Molar Heat Capacity", Upper=1e10);
[135]36K                       as conductivity         (Brief="Stream Thermal Conductivity", Default=1.0, Lower=1e-5, Upper=500);
[110]37
[1]38end
39
40Model Properties_In_Out
[135]41       
42ATTRIBUTES
43        Pallete = false;
[197]44        Brief = "Inlet and outlet physical properties of the streams.";
[135]45        Info =
[284]46        "to be documented.";
[135]47       
[1]48VARIABLES
[135]49Fw              as flow_mass            (Brief="Stream Mass Flow");
50rho             as dens_mass            (Brief="Stream Density" ,Default=1000, Lower=1e-3, Upper=5e5);
51Mu              as viscosity            (Brief="Stream Viscosity",Default=1, Lower=1e-5, Upper=1e5);
52Cp                      as cp_mol                       (Brief="Stream Molar Heat Capacity", Upper=1e10);
53K                       as conductivity         (Brief="Stream Thermal Conductivity", Default=1.0, Lower=1e-5, Upper=500);
[110]54
[1]55end
56
57Model Properties_Wall
[135]58       
59ATTRIBUTES
60        Pallete = false;
[197]61        Brief = "Physical properties of the streams at wall temperature.";
[135]62        Info =
[284]63        "to be documented.";
[135]64       
[1]65VARIABLES
[168]66
[135]67Mu              as viscosity            (Brief="Stream Viscosity",Default=1, Lower=1e-5, Upper=1e5);
68Twall           as temperature  (Brief="Wall Temperature",Lower=50);
[110]69
[1]70end
71
72Model Physical_Properties
[135]73       
74ATTRIBUTES
75        Pallete = false;
[284]76        Brief = "to be documented";
[135]77        Info =
[284]78        "to be documented";
[135]79       
[1]80VARIABLES
[164]81
[261]82Inlet                   as Properties_In_Out            (Brief="Properties at Inlet Stream");
[135]83Average         as Properties_Average   (Brief="Properties at Average Temperature");
[261]84Outlet          as Properties_In_Out            (Brief="Properties at Outlet Stream");
85Wall                    as Properties_Wall                      (Brief="Properties at Wall Temperature");
[110]86
[1]87end
88
89Model Tube_Pdrop
[135]90       
91ATTRIBUTES
92        Pallete = false;
[284]93        Brief = "to be documented";
[135]94        Info =
[284]95        "to be documented";
[135]96       
[1]97VARIABLES
[223]98PdTube                  as press_delta  (Brief="Tube Pressure Drop",Default=0.01, Lower=1e-10,DisplayUnit='kPa');
99Pdtotal                         as press_delta  (Brief="Total Pressure Drop",Default=0.01, Lower=1e-10,DisplayUnit='kPa');
100Pdnozzle_in     as press_delta  (Brief="Inlet Nozzle Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
101Pdnozzle_out    as press_delta  (Brief="Outlet Nozzle Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
[26]102Vnozzle_in      as velocity             (Brief="Inlet Nozzle Velocity",Default=1, Upper=1e5, Lower=0);
103Vnozzle_out     as velocity             (Brief="Outlet Nozzle Velocity",Default=1, Upper=1e5, Lower=0);
[223]104fi                              as fricfactor   (Brief="Friction Factor", Default=0.05, Lower=1e-10, Upper=2000);
[1]105
106EQUATIONS
[26]107"Total Pressure Drop"
108        Pdtotal = PdTube + Pdnozzle_in + Pdnozzle_out;
[1]109
110end
111
112Model Tube_Heat_Transfer
[135]113       
114ATTRIBUTES
115        Pallete = false;
[284]116        Brief = "to be documented";
[135]117        Info =
[284]118        "to be documented";
[135]119       
[1]120VARIABLES
[135]121Re              as positive                             (Brief="Tube Side Reynolds Number",Default=1000,Lower=1);
[160]122Nu              as positive                             (Brief="Nusselt Number",Default=0.5,Lower=1e-8);
[135]123htube   as heat_trans_coeff (Brief="Tube Side Film Coefficient",Default=1,Lower=1e-12, Upper=1e6);
[160]124fi              as fricfactor                   (Brief="Friction Factor", Default=0.05, Lower=1e-10, Upper=2000);
[135]125PR              as positive                             (Brief="Tube Side Prandtl Number",Default=0.5,Lower=1e-8);
126Phi             as positive                             (Brief="Phi Correction",Default=1,Lower=1e-3);
127Vtube   as velocity                             (Brief="Tube Side Velocity",Lower=1e-8);
[110]128
[1]129end
130
131Model Shell_Pdrop
[135]132       
133ATTRIBUTES
134        Pallete = false;
[284]135        Brief = "to be documented";
[135]136        Info =
[284]137        "to be documented";
[135]138       
[1]139VARIABLES
[223]140Pideal                      as press_delta              (Brief="Ideal Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
141PdCross                         as press_delta          (Brief="Cross Flow Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
142PdEndZones              as press_delta          (Brief="End Zones Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
143Pdwindow                        as press_delta          (Brief="Window Pressure Drop",Default=0.01, Lower=1e-10,DisplayUnit='kPa');
144Pdtotal                                 as press_delta          (Brief="Total Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
145Pdnozzle_in             as press_delta          (Brief="Inlet Nozzle Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
146Pdnozzle_out            as press_delta          (Brief="Outlet Nozzle Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
147fi                                      as fricfactor           (Brief="Friction Factor", Default=0.05, Lower=1e-10, Upper=2000);
[135]148Vnozzle_in              as velocity                     (Brief="Inlet Nozzle Velocity",Default=1, Upper=1e5, Lower=0);
149Vnozzle_out             as velocity                     (Brief="Outlet Nozzle Velocity",Default=1, Upper=1e5, Lower=0);
[157]150RVsquare_out            as positive                     (Brief = "Outlet Nozzle rho-V^2", Default=1, Upper=1e6, Unit = 'kg/s^2/m');
151RVsquare_in             as positive                     (Brief = "Inlet Nozzle rho-V^2", Default=1, Upper=1e6, Unit = 'kg/s^2/m');
[1]152
153EQUATIONS
[26]154"Shell Side Total Pressure Drop"
155        Pdtotal = PdCross + PdEndZones + Pdnozzle_in + Pdnozzle_out + Pdwindow;
[1]156
157end
158
159Model Shell_Heat_Transfer
[135]160       
161ATTRIBUTES
162        Pallete = false;
[284]163        Brief = "to be documented";
[135]164        Info =
[284]165        "to be documented";
[135]166       
[1]167VARIABLES
[135]168Re              as positive                             (Brief="Shell Side Reynolds Number",Default=100,Lower=1);
169PR              as positive                             (Brief="Shell Side Prandtl Number",Default=0.7,Lower=1e-6);
[1]170hshell          as heat_trans_coeff     (Brief="Shell Side Film Coefficient",Default=1,Lower=1e-12, Upper=1e6);
[135]171Phi     as positive                             (Brief="Phi Correction",Default=1,Lower=1e-3);
[1]172Ji                      as constant                     (Brief="Shell Side Ji Factor",Default=0.05);
[135]173Jr                      as positive                             (Brief="Shell Side Jr Factor",Lower=10e-6);
174Jl                      as positive                             (Brief="Shell Side Jl Factor",Lower=10e-6);
175Jb                      as positive                             (Brief="Shell Side Jb Factor",Lower=10e-6);
176Jc                      as positive                             (Brief="Shell Side Jc Factor",Lower=10e-6);
177Js                      as positive                             (Brief="Shell Side Js Factor",Lower=10e-6);
178Jtotal          as positive                             (Brief="Shell Side Jtotal Factor",Lower=10e-6);
179Sm              as area                                 (Brief="Shell Side Cross Flow Area",Default=0.05,Lower=10e-6);
[1]180
181end
182
183Model Baffles_Main
[135]184       
185ATTRIBUTES
186        Pallete = false;
[284]187        Brief = "to be documented";
[135]188        Info =
[284]189        "to be documented";
[135]190       
[1]191VARIABLES
[135]192Ls              as length               (Brief="Central Baffle Spacing",Lower=1e-8);
[1]193Lsi             as length               (Brief="Inlet Baffle Spacing",Lower=1e-8);
194Lso             as length               (Brief="Outlet Baffle Spacing",Lower=1e-8);
195
196end
197
[164]198Model NTU_Basic
199
200ATTRIBUTES
201        Pallete = false;
[197]202        Brief = "Number of Units Transference Method.";
[164]203        Info =
[284]204        "to be documented";
[164]205
206VARIABLES
207
208Ch   as positive        (Brief="Hot Stream Heat Capacity",Lower=1e-3,Default=1e3,Unit='W/K');
209Cc   as positive        (Brief="Cold Stream Heat Capacity",Lower=1e-3,Default=1e3,Unit='W/K');
210Cr      as positive     (Brief="Heat Capacity Ratio",Default=0.5,Lower=1e-6);
211Cmin  as positive       (Brief="Minimum Heat Capacity",Lower=1e-10,Default=1e3,Unit='W/K');
212Cmax as positive        (Brief="Maximum Heat Capacity",Lower=1e-10,Default=1e3,Unit='W/K');
213NTU     as positive     (Brief="Number of Units Transference",Default=0.05,Lower=1e-10);
214Eft     as positive  (Brief="Effectiveness",Default=0.5,Lower=1e-8,Upper=1);
215Eft1    as positive  (Brief="Effectiveness Correction",Lower=1e-8,Default=0.5);
216
217end
218
219Model LMTD_Basic
220
221ATTRIBUTES
222        Pallete = false;
[197]223        Brief = "Log Mean Temperature Difference Method.";
[164]224        Info =
[284]225        "to be documented";
[164]226       
227VARIABLES
228
229DT0             as temp_delta   (Brief="Temperature Difference at Inlet",Lower=1);
230DTL             as temp_delta   (Brief="Temperature Difference at Outlet",Lower=1);
231LMTD            as temp_delta   (Brief="Logarithmic Mean Temperature Difference",Lower=1);
[224]232Fc                      as positive             (Brief="LMTD Correction Factor",Lower=0.1);
[164]233
234EQUATIONS
235
236if abs(DT0 - DTL) > 0.05*max(abs([DT0,DTL]))
237       
238        then
239"Log Mean Temperature Difference"
240        LMTD= (DT0-DTL)/ln(DT0/DTL);
241
242        else
243       
244if DT0*DTL equal 0
245       
246        then
247"Log Mean Temperature Difference"
248        LMTD = 0.5*(DT0+DTL);
249       
250        else
251"Log Mean Temperature Difference"
252        LMTD = 0.5*(DT0+DTL)*(1-(DT0-DTL)^2/(DT0*DTL)*(1+(DT0-DTL)^2/(DT0*DTL)/2)/12);
253       
254end
255       
256end
257
258end
259
[1]260Model Details_Main
[135]261       
262ATTRIBUTES
263        Pallete = false;
[284]264        Brief = "to be documented";
[135]265        Info =
[284]266        "to be documented";
[135]267       
[1]268VARIABLES
[135]269A               as area                                 (Brief="Exchange Surface Area");
270Q               as power                                (Brief="Heat Transfer", Default=7000, Lower=1e-6, Upper=1e10);
271Uc      as heat_trans_coeff (Brief="Overall Heat Transfer Coefficient Clean",Default=1,Lower=1e-6,Upper=1e10);
272Ud      as heat_trans_coeff (Brief="Overall Heat Transfer Coefficient Dirty",Default=1,Lower=1e-6,Upper=1e10);
[1]273
274end
275
[26]276Model Tube_Side_Main
[135]277
278ATTRIBUTES
279        Pallete = false;
[284]280        Brief = "to be documented";
[135]281        Info =
[284]282        "to be documented";
[135]283       
[26]284VARIABLES
[135]285PressureDrop    as Tube_Pdrop                   (Brief="Tube Side Pressure Drop");
286HeatTransfer    as Tube_Heat_Transfer (Brief="Tube Side Heat Transfer");
[164]287Properties      as Physical_Properties   (Brief="Tube Side Properties");
[110]288
[26]289end
290
291Model Shell_Side_Main
[135]292       
293ATTRIBUTES
294        Pallete = false;
[284]295        Brief = "to be documented";
[135]296        Info =
[284]297        "to be documented";
[135]298       
[26]299VARIABLES
[135]300PressureDrop    as Shell_Pdrop                           (Brief="Shell Side Pressure Drop");
301HeatTransfer    as Shell_Heat_Transfer  (Brief= "Shell Side Heat Transfer");
[164]302Properties      as Physical_Properties   (Brief="ShellSide Properties");
[110]303
[26]304end
305
[1]306Model Basic_Pdrop
[135]307       
308ATTRIBUTES
309        Pallete = false;
[284]310        Brief = "to be documented";
[135]311        Info =
[284]312        "to be documented";
[135]313       
[1]314VARIABLES
[166]315
[223]316Pdrop   as press_delta  (Brief="Pressure Drop",Default=0.01, Lower=0,DisplayUnit='kPa');
[26]317FPdrop  as Real                 (Brief="Pressure Drop : Fraction of Inlet",Lower=0,Upper=0.8);
[110]318
[1]319end
320
[68]321Model DoublePipe_HeatTransfer
[135]322       
323ATTRIBUTES
324        Pallete = false;
[284]325        Brief = "to be documented";
[135]326        Info =
[284]327        "to be documented";
[135]328       
[157]329PARAMETERS
[150]330As                      as area                                         (Brief="Cross Sectional Area for Flow",Default=0.05,Lower=1e-8);
331Dh              as length                                       (Brief="Hydraulic Diameter of Pipe for Heat Transfer",Lower=1e-8);
[157]332
333VARIABLES
[135]334Re              as positive                             (Brief="Reynolds Number",Default=100,Lower=1);
[68]335hcoeff  as heat_trans_coeff (Brief="Film Coefficient",Default=1,Lower=1e-12, Upper=1e6);
[150]336fi              as fricfactor                   (Brief="Friction Factor", Default=0.05, Lower=1e-10, Upper=2000);
337Nu              as positive                             (Brief="Nusselt Number",Default=0.5,Lower=1e-8);
[135]338PR              as positive                             (Brief="Prandtl Number",Default=0.5,Lower=1e-8);
339Phi             as positive                             (Brief="Phi Correction",Default=1,Lower=1e-3);
340Vmean   as velocity                             (Brief="Tube Velocity",Lower=1e-8);
[110]341
[68]342end
343
344Model DoublePipe_PressureDrop
[135]345       
346ATTRIBUTES
347        Pallete = false;
[284]348        Brief = "to be documented";
[135]349        Info =
[284]350        "to be documented";
[135]351       
[157]352PARAMETERS
353
354Dh      as length               (Brief="Hydraulic Diameter of Pipe for Pressure Drop",Lower=1e-6);
355
[150]356VARIABLES
357
[223]358Pdrop   as press_delta  (Brief="Pressure Drop",Default=0.01, Lower=1e-10,DisplayUnit='kPa');
[68]359fi      as fricfactor   (Brief="Friction Factor", Default=0.05, Lower=1e-10, Upper=2000);
[135]360Re      as positive             (Brief="Reynolds Number",Default=100,Lower=1);
[110]361
[68]362end     
363
364Model Main_DoublePipe
[135]365       
366ATTRIBUTES
367        Pallete = false;
[284]368        Brief = "to be documented";
[135]369        Info =
[284]370        "to be documented";
[135]371       
[68]372VARIABLES
[110]373
[164]374HeatTransfer    as DoublePipe_HeatTransfer      (Brief="Double Pipe Heat Transfer");
375PressureDrop    as DoublePipe_PressureDrop      (Brief="Double Pipe Pressure Drop");
376Properties      as Physical_Properties                  (Brief="Double Pipe Properties");
377
[68]378end
[166]379
380Model Main_Simplified
381       
382ATTRIBUTES
383        Pallete = false;
[284]384        Brief = "to be documented";
[166]385        Info =
[284]386        "to be documented";
[166]387       
388VARIABLES
389
390PressureDrop    as Basic_Pdrop                  (Brief="Pressure Drop");
391Properties      as Physical_Properties   (Brief="Physical Properties");
392
393end
[253]394
395Model PHE_HeatTransfer
396       
397ATTRIBUTES
398        Pallete = false;
[284]399        Brief = "to be documented";
[253]400        Info =
[284]401        "to be documented";
[253]402       
403VARIABLES
404
405Re                              as positive                                     (Brief="Reynolds Number",Default=100,Lower=1);
406PR                              as positive                                     (Brief="Prandtl Number",Default=0.5,Lower=1e-8);
407NTU                     as positive                                     (Brief="Number of Units Transference",Default=0.05,Lower=1e-10);
408WCp                     as positive                                     (Brief="Stream Heat Capacity",Lower=1e-3,Default=1e3,Unit='W/K');
409hcoeff          as heat_trans_coeff     (Brief="Film Coefficient",Default=1,Lower=1e-12, Upper=1e6);
410Gchannel        as flux_mass                            (Brief ="Channel Mass Flux", Default=1, Lower=1e-6);
411Gports          as flux_mass                            (Brief ="Ports Mass Flux", Default=1, Lower=1e-6);
412Phi                     as positive                                     (Brief="Viscosity Correction",Default=1,Lower=1e-3);
413
414end
415
416Model PHE_PressureDrop
417       
418ATTRIBUTES
419        Pallete = false;
[284]420        Brief = "to be documented";
[253]421        Info =
[284]422        "to be documented";
[253]423       
424VARIABLES
425
426DPchannel                       as press_delta  (Brief="Channel Pressure Drop",Default=0.01, Lower=1e-10,DisplayUnit='kPa');
427DPports                         as press_delta  (Brief="Ports Pressure Drop",Default=0.01, Lower=1e-10,DisplayUnit='kPa');
428Pdrop                           as press_delta  (Brief="Total Pressure Drop",Default=0.01, Lower=1e-10,DisplayUnit='kPa');
429fi                                      as fricfactor           (Brief="Friction Factor", Default=0.05, Lower=1e-10, Upper=2000);
430Vchannel                        as velocity             (Brief="Stream Velocity in Channel",Lower=1e-8);
431Vports                          as velocity             (Brief="Stream Velocity in Ports",Lower=1e-8);
432Npassage                        as Real                                 (Brief="Number of  Channels per Pass");
433end
434
435Model Main_PHE
436       
437ATTRIBUTES
438        Pallete = false;
[284]439        Brief = "to be documented";
[253]440        Info =
[284]441        "to be documented";
[253]442       
443VARIABLES
444
445HeatTransfer            as PHE_HeatTransfer             (Brief="PHE Heat Transfer");
446PressureDrop    as PHE_PressureDrop             (Brief="PHE Pressure Drop");
447Properties              as Physical_Properties          (Brief="PHE Properties");
448
449end
450
451Model Thermal_PHE as LMTD_Basic
452
453ATTRIBUTES
454        Pallete = false;
[284]455        Brief = "to be documented";
[253]456        Info =
[284]457        "to be documented";
[253]458       
459VARIABLES
460Cr      as positive                                     (Brief="Heat Capacity Ratio",Default=0.5,Lower=1e-6);
461Cmin    as positive                                     (Brief="Minimum Heat Capacity",Lower=1e-10,Default=1e3,Unit='W/K');
462Cmax    as positive                                     (Brief="Maximum Heat Capacity",Lower=1e-10,Default=1e3,Unit='W/K');
463NTU     as positive                                     (Brief="Number of Units Transference",Default=0.05,Lower=1e-10);
464Eft             as positive                             (Brief="Effectiveness",Default=0.5,Lower=1e-8,Upper=1);
465Q                       as power                                        (Brief="Heat Transfer", Default=7000, Lower=1e-6, Upper=1e10);
466Uc              as heat_trans_coeff     (Brief="Overall Heat Transfer Coefficient Clean",Default=1,Lower=1e-6,Upper=1e10);
467Ud              as heat_trans_coeff     (Brief="Overall Heat Transfer Coefficient Dirty",Default=1,Lower=1e-6,Upper=1e10);
468end
Note: See TracBrowser for help on using the repository browser.