What you describe is exactly what a solar heater does. Instead of sitting on the bottom of your pool it either sits on the ground or on a rack or on your roof and it hooks up to your pool pump. It heats the water as it passes through using the sun and using a solar blanket at night will help keep the heat in the pool.
Peter
Bookmarks