Computer simulation and control of underwater vehicles