Means for heating or cooling the screw