Calculating mean phonons.