Can I use the equation $v_{rms}= \sqrt{\frac{3RT}{M}}$ of Root Mean Square Speed to measure speed of particles in liquids and solids as well? I am doing a Javascript animation about molecular motion of solids, liquids and gases and I can't find anywhere how to measure speeds of particles of solids and liquids and it's getting really frustating.
I will really appreciate any help and if I can't use the equation for Root Mean Square Speed of gases, I will be thankful for suggestions how to measure speed of liquids and solids in other ways with other equations and formulas.