With heating or cooling of the system