2828from fluids .constants import Btu , degree_Fahrenheit , foot , hour , inch
2929from fluids .numerics import bisect , brenth , factorial , gamma , horner , iv , quad , secant
3030from fluids .numerics import numpy as np
31- from fluids .piping import BWG_SI , BWG_integers
31+ from fluids .piping import BWG_SI , BWG_gauges
3232
3333__all__ : list [str ] = [
3434 "DBundle_for_Ntubes_HEDH" ,
@@ -4309,7 +4309,7 @@ def F_LMTD_Fakheri(Thi: int, Tho: float, Tci: int, Tco: float, shells: int=1) ->
43094309#
43104310#for tup in TEMA_Full_Tubing:
43114311# Do, BWG = tup[0]/1000., tup[1]
4312- # t = BWG_SI[BWG_integers .index(BWG)]
4312+ # t = BWG_SI[BWG_gauges .index(BWG)]
43134313# Di = Do-2*t
43144314# print t*1000, Di*1000
43154315#
@@ -4334,43 +4334,43 @@ def get_tube_TEMA(NPS=None, BWG=None, Do=None, Di=None, tmin=None):
43344334 if not check_tubing_TEMA (NPS , BWG ):
43354335 raise ValueError ("NPS and BWG Specified are not listed in TEMA" )
43364336 Do = 0.0254 * NPS
4337- t = BWG_SI [BWG_integers .index (BWG )]
4337+ t = BWG_SI [BWG_gauges .index (BWG )]
43384338 Di = Do - 2 * t
43394339 elif Do and BWG :
43404340 NPS = Do / .0254
43414341 if not check_tubing_TEMA (NPS , BWG ):
43424342 raise ValueError ("NPS and BWG Specified are not listed in TEMA" )
4343- t = BWG_SI [BWG_integers .index (BWG )]
4343+ t = BWG_SI [BWG_gauges .index (BWG )]
43444344 Di = Do - 2 * t
43454345 elif BWG and Di :
4346- t = BWG_SI [BWG_integers .index (BWG )] # Will fail if BWG not int
4346+ t = BWG_SI [BWG_gauges .index (BWG )] # Will fail if BWG not int
43474347 Do = t * 2 + Di
43484348 NPS = Do / .0254
43494349 if not check_tubing_TEMA (NPS , BWG ):
43504350 raise ValueError ("NPS and BWG Specified are not listed in TEMA" )
43514351 elif NPS and Di :
43524352 Do = 0.0254 * NPS
43534353 t = (Do - Di )/ 2
4354- BWG = [BWG_integers [BWG_SI .index (t )]]
4354+ BWG = [BWG_gauges [BWG_SI .index (t )]]
43554355 if not check_tubing_TEMA (NPS , BWG ):
43564356 raise ValueError ("NPS and BWG Specified are not listed in TEMA" )
43574357 elif Di and Do :
43584358 NPS = Do / .0254
43594359 t = (Do - Di )/ 2
4360- BWG = [BWG_integers [BWG_SI .index (t )]]
4360+ BWG = [BWG_gauges [BWG_SI .index (t )]]
43614361 if not check_tubing_TEMA (NPS , BWG ):
43624362 raise ValueError ("NPS and BWG Specified are not listed in TEMA" )
43634363 # Begin Fuzzy matching
43644364 elif NPS and tmin :
43654365 Do = 0.0254 * NPS
4366- ts = [BWG_SI [BWG_integers .index (BWG )] for BWG in TEMA_tubing [NPS ]]
4366+ ts = [BWG_SI [BWG_gauges .index (BWG )] for BWG in TEMA_tubing [NPS ]]
43674367 ts .reverse () # Small to large
43684368 if tmin > ts [- 1 ]:
43694369 raise ValueError ("Specified minimum thickness is larger than available in TEMA" )
43704370 for t in ts : # Runs if at least 1 of the thicknesses are the right size.
43714371 if tmin <= t :
43724372 break
4373- BWG = [BWG_integers [BWG_SI .index (t )]]
4373+ BWG = [BWG_gauges [BWG_SI .index (t )]]
43744374 Di = Do - 2 * t
43754375 elif Do and tmin :
43764376 NPS = Do / .0254
@@ -4380,7 +4380,7 @@ def get_tube_TEMA(NPS=None, BWG=None, Do=None, Di=None, tmin=None):
43804380 elif NPS :
43814381 BWG = TEMA_tubing [NPS ][0 ] # Pick the first listed size
43824382 Do = 0.0254 * NPS
4383- t = BWG_SI [BWG_integers .index (BWG )]
4383+ t = BWG_SI [BWG_gauges .index (BWG )]
43844384 Di = Do - 2 * t
43854385 else :
43864386 raise ValueError ("Insufficient information provided" )
0 commit comments