ProjectPhysX / FluidX3D

The fastest and most memory efficient lattice Boltzmann CFD software, running on all GPUs via OpenCL. Free for non-commercial use.
https://youtube.com/@ProjectPhysX
Other
3.84k stars 303 forks source link

neural network liquids #178

Closed PavelBlend closed 5 months ago

PavelBlend commented 5 months ago

@ProjectPhysX Hello.

Is it possible to train a neural network so that it can calculate liquids? So that the program "guesses" all the attributes of the voxels (pressure, speed, etc.). Or does this task require too much time and resources? If you rewrite your program using neural networks, will it run faster?

ProjectPhysX commented 5 months ago

Hi @PavelBlend,

a lot of hype has recently gone into AI fluid simulations, but for most applications this is a dead end. A neural network only does interpolation between the known good solutions it was trained on and tries extrapolation outside of the known parameter space which often fails. It is certainly possible to train a NN on solutions of fluid simulations, and it will learn the typical flow behaviour for specific application cases. There are big caveats however:

I've only seen one good use-case of AI CFD so far: At DLR they optimized turbine blade geometry. This is in transsonic regime, where LBM-type methods fail and much slower implicit CFD solvers are needed. They trained a NN on results of ~200 CFD supercomputer simulations with slightly different blade geometries, and used the NN to interpolate in the data to find an optimal blade geometry. This is more of a linking between turbine blade geometry parameter space and results parameter space, without actually AI-simulating the physics in between. Find a good video about this here (in German though).

Kind regards, Moritz