complex energy extraction from geothermal resource