Numerical Simulation of Incompressible Flows with the Method of Artificial Compressibility