How to store solar energy in generators