3 ms·
Show HN: Aphros – create and share a simulation of fluids, bubbles, and drops
- slitvinov 6y agoWater on a spaceship: https://tinyurl.com/yj576flb https://tinyurl.com/yj576flb
- slitvinov 6y agoInteractive fluid simulation running in the browser. The domain is filled by a mixture of two liquids with different densities and viscosities, effects of gravity and surface tension. Many parameters can be changed dynamically. Various boundary conditions can be set on the edges of the domain or a solid body. The plain text configuration described in the documentation is encoded in the URL for easy sharing.
- gus_massa 6y agoFeature request: A restart button. If I change the configuration, I have to press one of the numbers or refresh the whole page to see the new scenario. Also, it would be nice to have some comments in the code, for example before the spheres definition, say that it defines the initial state of the world. Are they really spheres or just circles?
- slitvinov 6y agoThank you for the feedback. The restart button is added. The documentation is here https://cselab.github.io/aphros/wasm/aphros_doc.html https://cselab.github.io/aphros/wasm/aphros_doc.html. In two dimensions 'sphere CX CY 0 RX RY' is an ellipsoid with a centre and two radii, the configuration files are the same as in three dimensions, so there are some glitches with naming. We also have a wiki gallery of examples https://github.com/cselab/aphros/wiki/Aphros-Explorer https://github.com/cselab/aphros/wiki/Aphros-Explorer