My (possibly erroneous) understanding of solid state physic has led me to the belief that diffusion current may "consume" thermal energy.
Here is my (possibly erroneous) understanding. When an E field exists within a conductor, it causes free electrons to accelerate. These electrons then interact with the conductor's atoms, and exchange some of their energy. The algebraic average movement of the electrons constitutes the drift current in the conductor. An E field in a conductor thus causes drift current and consequently Joule heating.
Now let's consider an unbiased PN junction. Because the junction is unbiased, the drift and diffusion currents are equal in magnitude, but opposite in direction. Thus there is no net current. However, there is still an builtin E field. This E field presumable still causes electrons (or electrons and holes if you want to think about it that way) to accelerate, and gain energy. And this extra energy is still transferred to the atoms, causing Joule heating. But by the conservation of energy, there is no net heating. This leads me to believe that diffusion current must be "consuming" the very heat the drift current is creating?
Is my understanding flawed? Is my reasoning flawed? Or have I arrived at a valid conclusion? And if I have in fact arrived at a valid conclusion, can you explain the mechanism by which the thermal energy created by the E field acting upon the electrons is ultimately "consumed" by the diffusion current?