There is a thesis titled Modeling, Verification and Optimization of Hybrid Ground Source Heat Pump Systems in Energyplus on this subject.