LEGACY_K_THERM_RES
Backward-compatible wrapper that computes thermal resistivity from thermal conductivity. It preserves legacy naming while returning the same reciprocal material property.
The conversion is:
r = \frac{1}{k}
Excel Usage
=LEGACY_K_THERM_RES(k)
k(float, required): Thermal conductivity (W/m/K).
Returns (float): Thermal resistivity (m*K/W).
Example 1: Example resistivity
Inputs:
| k |
|---|
| 0.25 |
Excel formula:
=LEGACY_K_THERM_RES(0.25)
Expected output:
4
Example 2: Higher conductivity
Inputs:
| k |
|---|
| 2 |
Excel formula:
=LEGACY_K_THERM_RES(2)
Expected output:
0.5
Example 3: Lower conductivity
Inputs:
| k |
|---|
| 0.1 |
Excel formula:
=LEGACY_K_THERM_RES(0.1)
Expected output:
10
Example 4: Moderate conductivity
Inputs:
| k |
|---|
| 0.5 |
Excel formula:
=LEGACY_K_THERM_RES(0.5)
Expected output:
2
Python Code
Show Code
from ht.conduction import k_to_thermal_resistivity as ht_k_to_thermal_resistivity
def legacy_k_therm_res(k):
"""
Deprecated alias for k_to_therm_resist.
See: https://ht.readthedocs.io/en/latest/ht.conduction.html
This example function is provided as-is without any representation of accuracy.
Args:
k (float): Thermal conductivity (W/m/K).
Returns:
float: Thermal resistivity (m*K/W).
"""
try:
return ht_k_to_thermal_resistivity(k=k)
except Exception as e:
return f"Error: {str(e)}"Online Calculator
Thermal conductivity (W/m/K).