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

Changing the Reynolds number of the simulation #7

Closed HamidGadirov closed 1 year ago

HamidGadirov commented 1 year ago

Hi @pmocz , I wanted to change the Reynolds number of the simulation to create an ensemble with e.g. Re from 50 to 250. I know the Reynolds number equation but am not sure which variables to change in the code, e.g. dynamic viscosity, fluid velocity, or fluid density. I tried to change the average density (rho0) but it didn't affect the flow. What is the best way to change the Reynolds number in this simulation? For now, I only managed to modify the flow by changing the cylinder boundary parameters.

pmocz commented 1 year ago

Try varying the collision timescale (tau)