THERMAL_RES_TO_K
Excel Usage
=THERMAL_RES_TO_K(r)
r(float, required): Thermal resistivity (m*K/W)
Returns (float): Thermal conductivity (W/m/K)
Examples
Example 1: Thermal resistivity of 4
Inputs:
| r |
|---|
| 4 |
Excel formula:
=THERMAL_RES_TO_K(4)
Expected output:
0.25
Example 2: Low thermal resistivity
Inputs:
| r |
|---|
| 0.1 |
Excel formula:
=THERMAL_RES_TO_K(0.1)
Expected output:
10
Example 3: High thermal resistivity
Inputs:
| r |
|---|
| 100 |
Excel formula:
=THERMAL_RES_TO_K(100)
Expected output:
0.01
Example 4: Fractional resistivity
Inputs:
| r |
|---|
| 0.05 |
Excel formula:
=THERMAL_RES_TO_K(0.05)
Expected output:
20
Python Code
from ht.conduction import thermal_resistivity_to_k
def thermal_res_to_k(r):
"""
Convert thermal resistivity to thermal conductivity.
See: https://ht.readthedocs.io/en/latest/ht.conduction.html#ht.conduction.thermal_resistivity_to_k
This example function is provided as-is without any representation of accuracy.
Args:
r (float): Thermal resistivity (m*K/W)
Returns:
float: Thermal conductivity (W/m/K)
"""
try:
return float(thermal_resistivity_to_k(r))
except Exception as e:
return f"Error: {str(e)}"