Computer simulation of particle rearrangement in the presence of liquid