Unified formulation for incompressible flows