Liquid on iPhone and iPad

00000000000000000000000000000000
0
Anonymous Feb 10, 2011 at 09:00

11-02-09.jpg

Description
After writing my first iPhone app some time ago (see: Navier Stokes: iPhone vs iPad), last week I wrote another one. Not very surprising, this app is again a fluid simulation.

Inspiration for the app is some liquid-simulation code I found floating around on the internet. As far as I can see the first implementation of the simulation is in java and can be found here. This simulator is already ported to flash, and (for some extra karma) to html5. Hoping for some karma left, I ported the code to iOS. I did some simplifications of the math, reducing the amount of operations in the inner loop and speeding up the simulation, but the algorithm is in fact the same as the java, flash and html5 port.

You can download the (free) app here or read more about it in this post.

2 Replies

Please log in or register to post a reply.

46407cc1bdfbd2db4f6e8876d74f990a
0
Kenneth_Gorking 101 Feb 10, 2011 at 19:48

This looks cool, I have had never heard of the MPM method before, so this is quite intriguing. How is the performance compared to SPH, and what are the drawbacks to this method, if any?

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 103 Feb 17, 2011 at 17:27

was cool to play with :)