IPhone fluid modeling

Does anyone know the fluid motor for iphone? I need a simulation of water and gases.

+7
iphone fluid
source share
3 answers

Fluid modeling is a huge problem for modern desktop computers, so I would not expect maximum performance when trying to get it on a mobile device. Running full Navier-Stokes calculations on the iPhone is likely to be pretty annoying.

However, in the past I was able to perform two-dimensional fluid modeling on limited equipment using gas grills . When using lattice gas machines, you approximate the liquid as a thin hexagonal grid, where particles can move in one of six directions and obey certain collision rules. There are some limitations to this approach (examined by the Boltzmann lattice method), but it can work very well on simulating liquids, even including compressible ones such as air. Why this works well on limited hardware is that these calculations can be performed using bitwise operators and simple lookup tables, without the need for floating point calculations. You might be able to do something similar on the iPhone processor. For more information about this method, you can refer to Appendix A of my Ph.D. a dissertation , where I explain this process and have the source code for the liquid fashion designer that I wrote.

However, if all you want to do is simulate the appearance of water in your application, the answers to the following questions give some good suggestions:

  • How to realize ripples of water?
  • How to create a water effect look with openGLES on iPhone?
+12
source share

I just released an iPhone fluid simulator that uses compressible particles in a cellular method. I have a video here: http://www.youtube.com/watch?v=-CCeeh8EzuA

An incompressible fluid simulator requires a lot of iterations, so I use a compressible simulator. Well, if you can make the compressible simulator stable enough, it usually looks incompressible.

My application is called GFlow in the application store if you want to see it in action.

+6
source share

I have two iPhone apps. One application solves the Navier-Stokes equations:

http://itunes.apple.com/us/app/fluid-dynamics/id382274493?mt=8

and the other uses a compressible particle in the cell method:

http://itunes.apple.com/us/app/liquid-dynamics/id417814216?mt=8&ls=1

A description of the methods used is found here:

http://www.infi.nl/blog/view/id/71/Navier_Stokes_iPhone_vs_iPad

and here:

http://www.infi.nl/blog/view/id/98/Liquid_on_iPhone_and_iPad

+4
source share

All Articles