Computer simulation of bubble motion