CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Lounge (https://www.cfd-online.com/Forums/lounge/)
-   -   fluid dynamics on Android (https://www.cfd-online.com/Forums/lounge/141227-fluid-dynamics-android.html)

12er September 2, 2014 22:49

fluid dynamics on Android
 
Hi,
some time ago I noticed that there were some 2D flow solver on the Android market running at interactive rates on my phone (for instance touchthinktanks posted two years ago in this forum about his Android flow app: thinktanks flowmaster), so I started working on a very simple 2D fluid simulation app for Android myself, and you can see the result here:

Link: Fluid Paint

The solver deploys a semi lagrangian advection scheme, and approximates solutions of the Pressure Poisson equation by running a few Jacobi iterations ... it's not meant to be physically accurate, but to run in real time. To spare computations I used zero viscosity. The whole simulation is performed in glsl fragment shaders.

http://31.media.tumblr.com/5a866ed99...ekzo1_1280.png


All times are GMT -4. The time now is 02:20.