 The pipes carry water, which is the medium for heat between the ground and the building.The heat pump removes the heat from the fluid, concentrates it and transfers it to the building.For cooling, the process is reversed.