Readit News logoReadit News
Saloc commented on Show HN: Pyhoff – Connect Python ML Models to Beckhoff/WAGO IO Hardware   github.com/Nonannet/pyhof... · Posted by u/Saloc
eternityforest · 2 months ago
Wow, I'd love to add this to my control app for escape rooms, if those Wago controllers were a bit more affordable!
Saloc · 2 months ago
For non-professional application it’s not the cheapest option, however on the used marked I payed 82 € for my last ethernet bus cupper plus 3 digital IO terminals. Often used Beckhoff variants of the functional identical terminal are a little bit cheaper than WAGO – might have to do with the different market segment they targeting. In a professional setting the hardware costs compensate often easily for saved working hours in debugging flimsy screw terminal connections and dubious firmware flaws. Also, the cheap options often need more than 5 times the control cabinet real estate per IO, witch alone can compensate for the higher price.
Saloc commented on Show HN: Fast Thermodynamic Calculations in Python   dlr-institute-of-future-f... · Posted by u/Saloc
viapivov · 2 months ago
Out of curiosity, why do you call your main entrypoint "fluid" if you only compute ideal gas properties?
Saloc · 2 months ago
To avoid the discussion where around the critical point it is a gas or not a gas ;) Sure, for ideal gases it’s quite clear; however I’m looking for adding real gas behavior to capture high density supercritical fluids - being able to model high pressure processes. For example for the synthesis of hydrocarbons and chemical compound made from nitrogen and hydrogen.
Saloc commented on Show HN: Fast Thermodynamic Calculations in Python   dlr-institute-of-future-f... · Posted by u/Saloc
FilosofumRex · 2 months ago
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.)

Saloc · 2 months ago
I would say it depends on the application: For energy stuff, ideal gas + water/steam might be sufficient. Rolling a lightweight process simulation framework (e.g. on top of gaspype and pint) easily competes with the costs for an aspen license. For other applications, that requires solving multiple phases of mixtures, the tradeoff shift quite allot.
Saloc commented on Show HN: Fast Thermodynamic Calculations in Python   dlr-institute-of-future-f... · Posted by u/Saloc
steppi · 2 months ago
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.
Saloc · 2 months ago
That looks like a valuable resource, thank you! I already mostly stuck to a subset supported by NumPy and JAX (because that's the array libraries I'm familiar with). I hope the other are not to far off...
Saloc commented on Show HN: Fast Thermodynamic Calculations in Python   dlr-institute-of-future-f... · Posted by u/Saloc
2cynykyl · 2 months ago
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.
Saloc · 2 months ago

u/Saloc

KarmaCake day28April 6, 2024
About
https://www.nonan.net
View Original