Skip to content

A Lattice-Boltzmann Method (LBM) based Python code for solving 2D lid driven cavity flow

Notifications You must be signed in to change notification settings

maruthinh/d2q9_zero_for_loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D2Q9 LBM code to solve lid driven cavity problem. This code has zero for loops

To run the code

python3.8 lid_driven_cavity.py

Sample results

Simulation parameters

  • Reynolds number: 100
  • Mach number: 0.1
  • Number of grid points: 64 x 64

Velocity contour plot obtained from the solver.

Solution has converged to 1e-10

velocity_cont1

About

A Lattice-Boltzmann Method (LBM) based Python code for solving 2D lid driven cavity flow

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages