Flow simulation: movement of rigid bodies in a fluid