Similar Items: Influence of a topological defect on energy and partition function for a Yukawa potential