Numerical Simulation of Fluid Flows over Complex Geometries in Cartesian Coordinates