07 November 2021 5 3K Report

I developed a matlab code solving the lid-driven cavity problem using a staggered grid and it worked fine. I'm facing a problem with developing a collocated grid code for solving the ACM but it doesn't work well.

My boundary conditions are the following:

for the upper wall: u=1, v=0 and dp/dy=0, hence, p(i,ny)=p(i,ny-1)

for the right and left walls: u=0, v=0, and dp/dx=0

for the bottom wall: u=0, v=0, and dp/dy=0

the convergence history is constant just after few iterations while the divergence free term is relatively high. I chose the compressibility constant to be 4.5, dt=0.001, dx=1/50 and dy=1/50.

Can anyone recommend me some resources or any advices for making the square lid-driven cavity works on a collocated grid?

More Ahmed Essa's questions See All
Similar questions and discussions