local virial calculation part is added. kinetic term is not added yet.