The middle term is the Joule heating, and the last term includes both Peltier ( ∇ ∇ S at junction) and Thomson ( ∇ ∇ S in thermal gradient) effects. Combined with the Seebeck equation for J , this can be used to solve for the steady-state voltage and temperature profiles in a complicated system.