Ways of geothermal power generation