A branch of thermodynamics that deals with the use of geothermal energy for heating and electrical power generation.