# Path: ht/conduction.py
# def R_to_k(R, t, A=1.):
#     r'''Returns the thermal conductivity of a substance given its thickness
#     and thermal resistance.
# 
#     .. math::
#         k = \frac{t}{RA}
# 
#     Parameters
#     ----------
#     R : float
#         Thermal resistance of a substance, (K/W) if A is 1 m^2, otherwise must
#         be [m^2*K/W]
#     t : float
#         Thickness of the substance used in the measurement of R, [m]
#     A : float, optional
#         Area; normally 1, [m^2]
# 
#     Returns
#     -------
#     k : float
#         Thermal conductivity of a substance [W/m/K]
# 
#     Examples
#     --------
#     >>> R_to_k(R=0.05, t=0.025)
#     0.5
# 
#     Notes
#     -----
#     When solving problems of changing areas, this value may be calculated with
#     an area other than 1 m^2. Values in tables reported as properties of
#     materials are often divided by area already; the conversion holds if A is 1.
# 
#     References
#     ----------
#     .. [1] Bergman, Theodore L., Adrienne S. Lavine, Frank P. Incropera, and
#        David P. DeWitt. Introduction to Heat Transfer. 6E. Hoboken, NJ:
#        Wiley, 2011.
#     '''
#     return t/(A*R)


    import difflib
from fluids.numerics import interp
from ht.conduction import R_to_k
'Floor covering, carpet / textile flooring': (200, 0.06, 1300),
'Floor covering, Linoleum': (1200, 0.17, 1400),
'Gases, air': (1.23, 0.025, 1008),
'Gases, carbon dioxide': (1.95, .014, 820),
'Gases, argon': (1.7, .017, 519),
'Gases, sulphur hexafluoride': (6.36, .013, 614),
'Gases, krypton': (3.56, 0.009, 245),
'Gases, xenon': (5.68, 0.0054, 160),
'Glass, soda lime': (2500, 1, 750),
'Glass, quartz': (2200, 1.4, 750),
'Glass, glass mosaic': (2000, 1.2, 750),
'Water, ice at -10 °C': (920, 2.3, 2000),
'Water, ice at 0 °C': (900, 2.2, 2000),
'Water, snow, freshly fallen (<30 mm)': (100, 0.05, 2000),
'Water, snow, soft (30 mm to 70 mm)': (200, 0.12, 2000),
'Water, snow, slightly compacted (70 mm to 100 mm)': (300, 0.23, 2000),
'Water, snow, compacted (<200 mm)': (500, 0.6, 2000),
'Water at 10°C': (1000, 0.6, 4190),
'Water at 40°C': (990, 0.63, 4190),
'Water at 80°C': (970, 0.67, 4190),
'Metals, aluminium alloys': (2800, 160, 880),
'Metals, bronze': (8700, 65, 380),
'Metals, brass': (8400, 120, 380),
'Metals, copper': (8900, 380, 380),
'Metals, iron, cast': (7500, 50, 450),
'Metals, lead': (11300, 35, 130),
'Metals, steel': (7800, 50, 450),
'Metals, stainless steel': (7900, 17, 460),
'Metals, zinc': (7200, 110, 380),
'Plastics, acrylic': (1050, 0.2, 1500),

# Path: ht/conduction.py
# def R_to_k(R, t, A=1.):
#     r'''Returns the thermal conductivity of a substance given its thickness
#     and thermal resistance.
# 
#     .. math::
#         k = \frac{t}{RA}
# 
#     Parameters
#     ----------
#     R : float
#         Thermal resistance of a substance, (K/W) if A is 1 m^2, otherwise must
#         be [m^2*K/W]
#     t : float
#         Thickness of the substance used in the measurement of R, [m]
#     A : float, optional
#         Area; normally 1, [m^2]
# 
#     Returns
#     -------
#     k : float
#         Thermal conductivity of a substance [W/m/K]
# 
#     Examples
#     --------
#     >>> R_to_k(R=0.05, t=0.025)
#     0.5
# 
#     Notes
#     -----
#     When solving problems of changing areas, this value may be calculated with
#     an area other than 1 m^2. Values in tables reported as properties of
#     materials are often divided by area already; the conversion holds if A is 1.
# 
#     References
#     ----------
#     .. [1] Bergman, Theodore L., Adrienne S. Lavine, Frank P. Incropera, and
#        David P. DeWitt. Introduction to Heat Transfer. 6E. Hoboken, NJ:
#        Wiley, 2011.
#     '''
#     return t/(A*R)


# Path: ht/insulation.py
    import difflib
from fluids.numerics import interp
from ht.conduction import R_to_k

'Floor covering, carpet / textile flooring': (200, 0.06, 1300),
'Floor covering, Linoleum': (1200, 0.17, 1400),
'Gases, air': (1.23, 0.025, 1008),
'Gases, carbon dioxide': (1.95, .014, 820),
'Gases, argon': (1.7, .017, 519),
'Gases, sulphur hexafluoride': (6.36, .013, 614),
'Gases, krypton': (3.56, 0.009, 245),
'Gases, xenon': (5.68, 0.0054, 160),
'Glass, soda lime': (2500, 1, 750),
'Glass, quartz': (2200, 1.4, 750),
'Glass, glass mosaic': (2000, 1.2, 750),
'Water, ice at -10 °C': (920, 2.3, 2000),
'Water, ice at 0 °C': (900, 2.2, 2000),
'Water, snow, freshly fallen (<30 mm)': (100, 0.05, 2000),
'Water, snow, soft (30 mm to 70 mm)': (200, 0.12, 2000),
'Water, snow, slightly compacted (70 mm to 100 mm)': (300, 0.23, 2000),
'Water, snow, compacted (<200 mm)': (500, 0.6, 2000),
'Water at 10°C': (1000, 0.6, 4190),
'Water at 40°C': (990, 0.63, 4190),
'Water at 80°C': (970, 0.67, 4190),
'Metals, aluminium alloys': (2800, 160, 880),
'Metals, bronze': (8700, 65, 380),
'Metals, brass': (8400, 120, 380),
'Metals, copper': (8900, 380, 380),
'Metals, iron, cast': (7500, 50, 450),
'Metals, lead': (11300, 35, 130),
'Metals, steel': (7800, 50, 450),
'Metals, stainless steel': (7900, 17, 460),
'Metals, zinc': (7200, 110, 380),
'Plastics, acrylic': (1050, 0.2, 1500),

'Plastics, polycarbonates': (1200, 0.2, 1200),