Energy Management in Geothermal Energy Systems