Show HN: Fast Thermodynamic Calculations in Python

by Salocon 7/4/25, 11:48 AMwith 11 comments
by steppion 7/4/25, 1:52 PM

Very cool project. If you haven't already, for JAX and PyTorch support take a look at the Python Array API Standard, https://data-apis.org/array-api/latest/, and see https://data-apis.org/array-api-compat/ for how to use it. If you have or can write everything in terms of the subset of NumPy supported in the Array API Standard, you can get support for alternative array libraries almost for free.

by 2cynykylon 7/4/25, 1:18 PM

This looks really promising, thank you! I have been using chemicals for things like this but it is not good at multiple conditions so your approach will teally help me. Btw, there is no link to the repo on the docs psge, st least on my phone. I want to star your repo.

by FilosofumRexon 7/4/25, 5:18 PM

I use Aspen-Hysys which is extremely expensive for non-commercial users, and would love to have a Pythonic alternative.

That said, there's a long tail of features needed to make it practical (mole/mass/vol frac conversion, unit conversions, chemical Rxn, Steam tables etc.)

by viapivovon 7/5/25, 8:30 AM

Out of curiosity, why do you call your main entrypoint "fluid" if you only compute ideal gas properties?

by baqon 7/4/25, 2:25 PM

    import gaspype
I commend you for not wasting an opportunity to pick a great name for this package.

by ameliuson 7/4/25, 3:55 PM

[oops]