Hasty Briefsbeta

Bilingual

Show HN: Fast Thermodynamic Calculations in Python

10 months ago
  • #thermodynamics
  • #python
  • #gaspype
  • Gaspype is a Python package for thermodynamic calculations of gas species and mixtures, ideal for moderate pressures or high temperatures.
  • Features include pure Python with NumPy for performance, immutable types, comprehensive type hints, and support for Jupyter Notebooks.
  • Designed for future GPU support (JAX, PyTorch) and includes a NASA9-based species database.
  • Installation is possible via pip (`pip install gaspype`) or conda (`conda install conda-forge::gaspype`).
  • Main classes are `fluid` for gas mixtures and `elements` for atomic compositions, supporting operations with NumPy arrays.
  • Supports conversion to pandas DataFrames and multidimensional operations for complex models.
  • Equilibrium calculations can be performed to transition from atomic to molecular compositions.
  • Developer contributions are welcome, with guidelines for setup, testing, and database compilation provided.
  • Licensed under MIT License.