Ignore:
Timestamp:
Aug 30, 2016, 5:50:48 PM (6 years ago)
Author:
Argimiro Resende Secchi
Message:

Fix negative temperature difference in only one terminal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eml/heat_exchangers/HEX_Engine.mso

    r739 r995  
    255255EQUATIONS
    256256
    257 if abs(DT0 - DTL) > 0.05*max(abs([DT0,DTL]))
    258        
    259         then
     257if DT0*DTL <= 0 * 'K^2' then
     258
     259"Log Mean Temperature Difference"
     260        LMTD = 0.5*(DT0+DTL);
     261
     262else if abs(DT0 - DTL) > 0.05*max(abs([DT0,DTL])) then
     263       
    260264"Log Mean Temperature Difference"
    261265        LMTD= (DT0-DTL)/ln(DT0/DTL);
    262266
    263         else
    264        
    265 if DT0*DTL equal 0
    266        
    267         then
    268 "Log Mean Temperature Difference"
    269         LMTD = 0.5*(DT0+DTL);
    270        
    271         else
     267else
     268
    272269"Log Mean Temperature Difference"
    273270        LMTD = 0.5*(DT0+DTL)*(1-(DT0-DTL)^2/(DT0*DTL)*(1+(DT0-DTL)^2/(DT0*DTL)/2)/12);
Note: See TracChangeset for help on using the changeset viewer.