Transfer of heat through direct contact of matter