Cavity2D

Hi
I try to use do with two sided lid driven (i.e top and bottom lid). hence i gave the boundary condition as


  • setBoundaryVelocity(lattice, Box2D(1,nx-1,ny-1,ny-1), Array<T,2>(u,0.));
  • initializeAtEquilibrium(lattice, Box2D(1,nx-1,ny-1,ny-1),1., Array<T,2>(u,0.));
  • setBoundaryVelocity(lattice, Box2D(1,nx-1,1,1), Array<T,2>(u,0.));
  • initializeAtEquilibrium(lattice, Box2D(1,nx-1,1,1), 1., Array<T,2>(u,0.));

But there was no change in the bottom lid.

After that i tried with only bottom lid boundary condition.


  • setBoundaryVelocity(lattice, Box2D(1,nx-1,1,1), Array<T,2>(u,0.));
  • initializeAtEquilibrium(lattice, Box2D(1,nx-1,1,1), 1., Array<T,2>(u,0.));

still there was no change. please help me in this