Physics of Geothermal System