Show HN: Interactive real-time chemistry and fluids: water electrolysis
cselab.github.io
cselab.github.io
Keep up the good work! Presenting the research is a must and thanks to cross compilers and WebAssembly it was never so easy to even demonstrate your simulation code.
Could you provide a short introduction what that does? Wikipedia says that "Electrolysis of water is the process of using electricity to decompose water into oxygen and hydrogen gas" but what I see there seems to be the reverse: merging hydrogen and oxygen gas.
Sorry, I was too afraid of chemistry back in school and now I'm paying for it.
So there is two columns not connected to each other, so doesn't seem it is a circuit. But wait a minute, water conducts... So:
The left one is negatively charged, and it gives electrons to H20 which receives them and reacts by being converted to H2 gas and 2hydroxide.
The right column is positively charged and the 2hydroxide travels (diffuses?) through water as it is negatively charged, and statistically is more likely to go right because positive column attracts it? (I mean the electrical energy travels as waves but the actual molecules also, just slower?)
When 2hydroxide reaches the right end, it breaks into 1) electrons that the column receives happily 2) H20 3) O2 gas.
Something like that, perhaps. Interesting but frustrating to not get it fully.
No need to answer if don't feel like it!
Every setting on minimum, except mesh set to 128 - and it's a kind of poor-mans MS Paint. After preparing a nice image, set gravity to max and watch the splendor.
Is this application really hard to parallelize?
EDIT: Could this be adapted to a heat transfer simulation of boiling?