Skip to main content

Physicochemical Hazard Observation & Energetics Numerical Indexing eXpert - A Python library for reactive chemical hazard evaluation

Project description

PHOENIX

CI Documentation Python 3.12+ License: MIT

Physicochemical Hazard Observation & Energetics Numerical Indexing eXpert

A Python library for reactive chemical hazard evaluation, successor to ASTM CHETAH.

Warning: PHOENIX is for screening purposes only. Results must not be used as the sole basis for safety decisions. Experimental validation is required before handling energetic materials.

Documentation

Read the full documentation

Features

  • Thermodynamic Estimation: Calculate ΔHf°, S°, Cp(T) using Benson Group Additivity
  • Hazard Classification: CHETAH-style criteria for instability screening
  • Decomposition Analysis: Maximum heat of decomposition (ΔHd) calculation
  • Batch Processing: Screen large SMILES datasets efficiently
  • Reaction Balancing: Auto-balance chemical reactions with thermodynamics

Installation

pip install phoenix-chem

Or with uv:

uv pip install phoenix-chem

Quick Example

from phoenix import Compound

# Create a compound from SMILES
compound = Compound.from_smiles("Cc1c([N+](=O)[O-])cc([N+](=O)[O-])cc1[N+](=O)[O-]")  # TNT

# Get properties
print(f"Formula: {compound.formula}")
print(f"Molecular Weight: {compound.molecular_weight:.2f} g/mol")
print(f"Oxygen Balance: {compound.oxygen_balance:.1f}%")

# Evaluate hazard
result = compound.evaluate_hazard()
print(f"Hazard Class: {result.hazard_class}")
print(f"Max ΔHd: {result.max_decomposition_cal_g:.1f} cal/g")

Batch Screening

from phoenix import screen

smiles_list = ["CCO", "c1ccccc1[N+](=O)[O-]", "Cc1c([N+](=O)[O-])cc([N+](=O)[O-])cc1[N+](=O)[O-]"]
results = screen(smiles_list)

# Get DataFrame
df = results.dataframe
print(df[["formula", "hazard_class", "delta_hd_cal_g"]])

# Export
results.to_csv("screening_results.csv")

Supported Elements

PHOENIX supports compounds containing: C, H, N, O, S, P, F, Cl, Br

LLM-Friendly Documentation

PHOENIX provides llms.txt for LLM consumption following the llmstxt.org specification.

License

MIT License - see LICENSE for details.

References

  • ASTM E659: Standard Test Method for CHETAH
  • Benson, S.W. "Thermochemical Kinetics" (Wiley, 1976)
  • Meyer et al., "Explosives" 6th Ed. (Wiley-VCH, 2007)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phoenix_chem-0.1.0.tar.gz (218.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phoenix_chem-0.1.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file phoenix_chem-0.1.0.tar.gz.

File metadata

  • Download URL: phoenix_chem-0.1.0.tar.gz
  • Upload date:
  • Size: 218.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for phoenix_chem-0.1.0.tar.gz
Algorithm Hash digest
SHA256 548c889a25487bf9803416244960df84125dbc24e04a4d67d3101ba3d54860e8
MD5 f74d933a7d0a5ef326bead48046f9d7b
BLAKE2b-256 d5d426dd7f915aad9d0827df3c0b13c2dd45422ce36b5d527c00570fc3f4f98b

See more details on using hashes here.

Provenance

The following attestation bundles were made for phoenix_chem-0.1.0.tar.gz:

Publisher: publish.yml on Ameyanagi/phoenix-chem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file phoenix_chem-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: phoenix_chem-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for phoenix_chem-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f1b95798f5773a278cabd651b95f62d73cfddd497253d7b8be2f6b0f2a13d8
MD5 93746ba9948849c76ad1df5227829efa
BLAKE2b-256 b2561086aa8bd3f6ede70e2f658194140fdcc35838505fce2b7b8697e2d9340c

See more details on using hashes here.

Provenance

The following attestation bundles were made for phoenix_chem-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Ameyanagi/phoenix-chem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page