HNHacker News
TopNewBestAskShowJobs

pkarnakov

62 karma · joined June 8, 2020

PhD student in Computational Fluid Dynamics.

Developing multiphase flow solver Aphros https://github.com/cselab/aphros

Simulation videos https://www.youtube.com/channel/UCFCRbISdZGWum5E5q-kuOPw

https://twitter.com/pkarnakov

submissionscomments
pkarnakov··on Gallery of interactive fluid simulations. They are configured with plain text
I started making one https://tinyurl.com/yj8g3rzp but doing it with primitives (circles and boxes) is too painful.

We will probably add a geometry editor later.

pkarnakov··on Gallery of interactive fluid simulations. They are configured with plain text
Project author here. The gallery is part of scientific software Aphros https://github.com/cselab/aphros for flow simulations. Examples in the gallery demonstrate what physical problems can be solved. The same configuration can be used on larger computers (including supercomputers). Intended for potential users of the software and those willing to learn some fluid mechanics.

Here's a post by the other author of the project https://news.ycombinator.com/item?id=26492582

pkarnakov··on Show HN: Physically realistic foam on water. Supercomputer simulation [video]
This simulation is called a "Foaming waterfall". The waterfall captures air bubbles that rise to the surface and create foam. Similar effects are observed in oceans covered with foam generated by breaking waves. Our paper [3] describes the algorithm and contains more applications of this software stack. An online widget [4] shows the algorithm in two dimensions.

[1] https://www.youtube.com/watch?v=0Cj8pPYNJGY

[2] https://github.com/cselab/aphros

[3] https://arxiv.org/abs/2103.01513

[4] https://cselab.github.io/aphros/wasm/hydro.html

pkarnakov··on Show HN: Interactive real-time chemistry and fluids: water electrolysis
The application itself is easy to parallelize. And the production version does run in parallel (https://github.com/cselab/aphros) but relies on OpenMP and MPI. My first attempt to get C++11 threads running through WASM was not successful. Apparently, this feature is also disabled by default in some browsers because of the Spectre vulnerability.
pkarnakov··on Show HN: Interactive real-time chemistry and fluids: water electrolysis
Yes, I don't see why not. The model would not need electric current, and the concentration of dissolved gas would be replaced with temperature.
pkarnakov··on Show HN: Interactive real-time chemistry and fluids: water electrolysis
Thank you!
pkarnakov··on Show HN: Interactive real-time chemistry and fluids: water electrolysis
Initially, the container is filled with water (shown with white) and a layer of gas above (green). The reaction generates dissolved gases (red) on the electrodes. As soon as the concentration of dissolved gas reaches a critical value, it is converted into bubbles (green) that rise and merge with the existing layer of gas.
pkarnakov··on Show HN: Interactive real-time chemistry and fluids: water electrolysis
May remind somebody of their school chemistry class. But this one includes more things: fluid flow, electric current, diffusion, and nucleation of bubbles. Reduced from a scientific code to run directly in your web browser.