Exploring spiral galaxy potentials with hydrodynamical simulations