In this paper, the heating rate produced by photochemical processes in stratosphere,mesosphere and lower thermosphere is calculated. And the atmospheric cooling rate is calculated as well using Fondchev's code. Using one dimensional tine dependent photochemical model, the diurnal variation of heating rate in the height region of 20-140 km is studied. Tis work provides theoretical basis for studying the atmospheric tidal waves.