Sedimentating bed dynamics for fluids with yield stress in a pipe