Batch transportation of cold and heat crude oil is different from transportation of single crude oil.In this paper,through establishing an unsteady mathematical model of heat transfer,temperature change rule of soil around pipeline at different points with different distance from inlet after transporting cold or heat oil for 20 h was numerically simulated by CFD software.The simulation results show that while conveying heat oil,soil temperature rises.The closer the distance from inlet,the higher temperature rising.Along with conveying heat oil in pipe,soil temperature around the pipeline will substantially rise,but increasing range will gradually reduce with prolonging of conveying oil time;While conveying cold oil,soil temperature around the pipeline reduces.The closer the distance from inlet,the greater temperature reducing,and the bigger the influence area of conveying cold oil for soil temperature.