Skip to content

Latest commit

 

History

History
81 lines (67 loc) · 4.37 KB

README.md

File metadata and controls

81 lines (67 loc) · 4.37 KB

py-janaf: Python wrapper for NIST-JANAF Thermochemical Tables

pypi version Python Versions

Features

Usage

pip install janaf
>>> import polars as pl
>>> import janaf
>>> table = janaf.search(formula="CO2$")
>>> table.name
'Carbon Dioxide (CO2)'
>>> table.formula
'C1O2(g)'
>>> table.df
shape: (62, 9)
┌────────┬────────┬─────────┬──────────────┬───┬───────────┬───────────┬─────────┬──────┐
│ T(K)   ┆ CpS-[G-H(Tr)]/T ┆ … ┆ delta-f Hdelta-f Glog KfNote │
│ ------------          ┆   ┆ ------------  │
│ f64f64f64f64          ┆   ┆ f64f64f64str  │
╞════════╪════════╪═════════╪══════════════╪═══╪═══════════╪═══════════╪═════════╪══════╡
│ 0.00.00.0inf          ┆ … ┆ -393.151-393.151infnull │
│ 100.029.208179.009243.568      ┆ … ┆ -393.208-393.683205.639null │
│ 200.032.359199.975217.046      ┆ … ┆ -393.404-394.085102.924null │
│ 298.1537.129213.795213.795      ┆ … ┆ -393.522-394.38969.095null │
│ …      ┆ …      ┆ …       ┆ …            ┆ … ┆ …         ┆ …         ┆ …       ┆ …    │
│ 5700.064.68374.853317.953      ┆ … ┆ -417.658-385.893.536null │
│ 5800.064.772375.979318.944      ┆ … ┆ -418.541-385.3243.47null │
│ 5900.064.865377.087319.92       ┆ … ┆ -419.445-384.7453.406null │
│ 6000.064.957378.178320.882      ┆ … ┆ -420.372-384.1483.344null │
└────────┴────────┴─────────┴──────────────┴───┴───────────┴───────────┴─────────┴──────┘
>>> table.df.filter(pl.col("T(K)")==298.15).item(0, "delta-f H")  # kJ/mol
-393.522

Credit

Following files are distributed in NIST-JANAF Tables:

NIST Standard Reference Database 13

NIST JANAF THERMOCHEMICAL TABLES 1985 Version 1.0

Data compiled and evaluated by M.W. Chase, Jr., C.A. Davies, J.R. Downey, Jr. D.J. Frurip, R.A. McDonald, and A.N. Syverud

Distributed by Standard Reference Data Program National Institute of Standards and Technology Gaithersburg, MD 20899

Copyright 1986 by the U.S. Department of Commerce on behalf of the United States. All rights reserved.

DISCLAIMER: NIST uses its best efforts to deliver a high quality copy of the Database and to verify that the data contained therein have been selected on the basis of sound scientific judgement. However, NIST makes no warranties to that effect, and NIST shall not be liable for any damage that may result from errors or omissions in the Database.