K_TO_THERMAL_RES
Excel Usage
=K_TO_THERMAL_RES(k)
k(float, required): Thermal conductivity (W/m/K)
Returns (float): Thermal resistivity (m*K/W)
Examples
Example 1: Thermal conductivity of 0.25
Inputs:
| k |
|---|
| 0.25 |
Excel formula:
=K_TO_THERMAL_RES(0.25)
Expected output:
4
Example 2: High thermal conductivity
Inputs:
| k |
|---|
| 10 |
Excel formula:
=K_TO_THERMAL_RES(10)
Expected output:
0.1
Example 3: Low thermal conductivity
Inputs:
| k |
|---|
| 0.05 |
Excel formula:
=K_TO_THERMAL_RES(0.05)
Expected output:
20
Example 4: Copper conductivity
Inputs:
| k |
|---|
| 400 |
Excel formula:
=K_TO_THERMAL_RES(400)
Expected output:
0.0025
Python Code
from ht.conduction import k_to_thermal_resistivity
def k_to_thermal_res(k):
"""
Convert thermal conductivity to thermal resistivity.
See: https://ht.readthedocs.io/en/latest/ht.conduction.html#ht.conduction.k_to_thermal_resistivity
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:
k_val = float(k)
return float(k_to_thermal_resistivity(k_val))
except Exception as e:
return f"Error: {str(e)}"