The earth is an open system. It obsorbs energy from sun and release energy from some events in the earth, such as earthquake and volcano etc. Can these energies balance in a long time scale? How to estimate the internal energy of the earth from thermodynamics?