A fast Euler solver for two and three dimensional internal flows