LEGACY_THERM_RES_K

Backward-compatible wrapper that computes thermal conductivity from thermal resistivity. It keeps legacy naming while using the same reciprocal conversion.

The conversion is:

k = \frac{1}{r}

Excel Usage

=LEGACY_THERM_RES_K(r)
  • r (float, required): Thermal resistivity (m*K/W).

Returns (float): Thermal conductivity (W/m/K).

Example 1: Example conductivity

Inputs:

r
4

Excel formula:

=LEGACY_THERM_RES_K(4)

Expected output:

0.25

Example 2: Lower resistivity

Inputs:

r
2

Excel formula:

=LEGACY_THERM_RES_K(2)

Expected output:

0.5

Example 3: Higher resistivity

Inputs:

r
10

Excel formula:

=LEGACY_THERM_RES_K(10)

Expected output:

0.1

Example 4: Moderate resistivity

Inputs:

r
1.5

Excel formula:

=LEGACY_THERM_RES_K(1.5)

Expected output:

0.666667

Python Code

Show Code
from ht.conduction import thermal_resistivity_to_k as ht_thermal_resistivity_to_k

def legacy_therm_res_k(r):
    """
    Deprecated alias for therm_resist_to_k.

    See: https://ht.readthedocs.io/en/latest/ht.conduction.html

    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 ht_thermal_resistivity_to_k(r=r)
    except Exception as e:
        return f"Error: {str(e)}"

Online Calculator

Thermal resistivity (m*K/W).