Simulations of steady and oscillating flow in diffusers