Hi All,
Can I modify the Zou-He boundary conditions for velocity and use them for No-Slip? I do the collision on all the nodes in the domain.
My code goes as follows.
% Zou-He No-Slip Boundary
if y==1
f(x,y,2) = f(x,y,4);
f(x,y,5) = f(x,y,7) - 0.5*(f(x,y,1) - f(x,y,3));
f(x,y,6) = f(x,y,8) + 0.5*(f(x,y,1) - f(x,y,3));
elseif y==YMAX
f(x,y,4) = f(x,y,2);
f(x,y,7) = f(x,y,5) + 0.5*(f(x,y,1) - f(x,y,3));
f(x,y,8) = f(x,y,6) - 0.5*(f(x,y,1) - f(x,y,3));
end
I got these equations by substituting the velocity terms to zero. When I try to simulate the poiseulle flow, I get zero velocity on the boundary (wall) nodes.
Thanks,
Narender