phenomenon occuring when bodies are cooled or heated