TM

This function looks up a chemical’s melting temperature from curated physical-property sources using its CAS number.

Melting temperature is the phase-transition point between solid and liquid for a pure component and is useful for materials handling and temperature-window checks.

Excel Usage

=TM(CASRN, method)
  • CASRN (str, required): CAS Registry Number for the target chemical (-).
  • method (str, optional, default: null): Optional data source method name; leave empty for automatic selection (-).

Returns (float): Melting temperature in kelvin (K).

Example 1: Melting point of water

Inputs:

CASRN
7732-18-5

Excel formula:

=TM("7732-18-5")

Expected output:

273.15

Example 2: Melting point of ethanol

Inputs:

CASRN
64-17-5

Excel formula:

=TM("64-17-5")

Expected output:

159.05

Example 3: Melting point of methane

Inputs:

CASRN
74-82-8

Excel formula:

=TM("74-82-8")

Expected output:

90.75

Example 4: Melting point of benzene

Inputs:

CASRN
71-43-2

Excel formula:

=TM("71-43-2")

Expected output:

278.65

Python Code

Show Code
from thermo.chemical_package import Tm as thermo_tm

def tm(CASRN, method=None):
    """
    Retrieve the melting temperature of a chemical by CAS number.

    See: https://thermo.readthedocs.io/thermo.chemical_package.html

    This example function is provided as-is without any representation of accuracy.

    Args:
        CASRN (str): CAS Registry Number for the target chemical (-).
        method (str, optional): Optional data source method name; leave empty for automatic selection (-). Default is None.

    Returns:
        float: Melting temperature in kelvin (K).
    """
    try:
        value = thermo_tm(CASRN=CASRN, method=method)
        if value is None:
            return "Error: Melting point data is not available for the provided CASRN"
        return value
    except Exception as e:
        return f"Error: {str(e)}"

Online Calculator

CAS Registry Number for the target chemical (-).
Optional data source method name; leave empty for automatic selection (-).