A model on the stability of a pipe in aerated silos