Show HN: Watermolecules

1 pointsposted 11 hours ago
by GistNoesis

1 Comments

GistNoesis

11 hours ago

A little vibecoded experiment I did today.

Using local only model with llama.cpp, using Qwen3.5-35B-A3B-UD-Q4_K_XL, copy pasting the full generated html page (no advance editor which do incremental file modification :) )

30 versions ~200k tokens one afternoon.

You can view all the files on https://github.com/unrealwill/watermolecules

You can also open the various files directly, some work, some are buggy : For example https://unrealwill.github.io/watermolecules/watermolecule20.... is OK.

https://unrealwill.github.io/watermolecules/watermolecule19.... is a funny bug.

I was just playing writing a 2d chemical simulator to simulate liquids at the molecular level.

It's not physics accurate at all. For it to be considered a liquid, it needs to have the molecule close enough that molecular force have an impact. I display the average distance to the nearest neighbor. At normal condition of temperature and pression, the average distance between water molecules should be roughly 3 angstroms.

Here the average will depend on the number of particles and the size of your browser window and zoom level.

The Van der Waals forces (the force between the molecules) have a range of 50 in this simulation, so this is something in between a liquid and a gas.

The rotations of the molecules are just for the visual effect.

I have also added auto-ionization of water. And chemical reactions.

Energy conservation and other conservation are not conserved. The simulation is more stable on the "high" level of quality.

Probably won't update further, but some agents may use your various remarks to create better simulations.