pmocz / latticeboltzmann-python

Lattice Boltzmann fluid simulation
https://medium.com/swlh/create-your-own-lattice-boltzmann-simulation-with-python-8759e8b53b1c
GNU General Public License v3.0
173 stars 48 forks source link

Simulation values are getting smaller over time #6

Closed HamidGadirov closed 1 year ago

HamidGadirov commented 1 year ago

Hi, I noticed that while the simulation continues the values of the flow field are getting smaller and smaller. That is the case if I use e.g. 10K time steps of the simulation. Why is that so? Is it meant to be this way? I wanted to use this data in my project related to flow learning via neural networks and values which are becoming very small is somewhat problematic.

pmocz commented 1 year ago

This is the vorticity field after 10,000 steps:

image

The mean velocity (ux) changes from 0.18 at cycle 0 to 0.024 at cycle 9999

In this problem, I used periodic boundary conditions, so the flow will slow down with time as the fluid hits the cylinder. The result is expected.

You may wish to implement inflow/outflow boundary conditions to have sustained motion