For a flow in cavity, if we use the primitive variables to solve the problem by a fully implicit method, why does the system is singular if we use the mass continuity equation rather than deriving the pressure Poisson equation? However, when I applied the pressure Poisson equation and set div u=0 at the boundaries, it does not give div u=0 in the interior of the flow.