In a closed loop system, the heat exchanger is typically coils of high-density polyethylene pipe installed in the ground under or around a building.
The fluid from the open or closed loop is circulated through a heat pump.