TC
This function returns the critical temperature of a pure component by CAS number using available literature and database methods.
Critical temperature is the highest temperature at which liquid and vapor phases can coexist for a pure substance and is used in reduced-property and equation-of-state workflows.
Excel Usage
=TC(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): Critical temperature in kelvin (K).
Example 1: Critical temperature of water
Inputs:
| CASRN |
|---|
| 7732-18-5 |
Excel formula:
=TC("7732-18-5")
Expected output:
647.096
Example 2: Critical temperature of ethanol
Inputs:
| CASRN |
|---|
| 64-17-5 |
Excel formula:
=TC("64-17-5")
Expected output:
514.71
Example 3: Critical temperature of methane
Inputs:
| CASRN |
|---|
| 74-82-8 |
Excel formula:
=TC("74-82-8")
Expected output:
190.564
Example 4: Critical temperature of benzene
Inputs:
| CASRN |
|---|
| 71-43-2 |
Excel formula:
=TC("71-43-2")
Expected output:
562.02
Python Code
Show Code
from chemicals.critical import Tc as chemicals_tc
def tc(CASRN, method=None):
"""
Retrieve the critical temperature of a chemical by CAS number.
See: https://chemicals.readthedocs.io/chemicals.critical.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: Critical temperature in kelvin (K).
"""
try:
value = chemicals_tc(CASRN=CASRN, method=method)
if value is None:
return "Error: Critical temperature 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 (-).