Simulation study of rotational and translational dynamics of diatomic molecules with quadrupolar interactions