Application of abandoned wells integrated with renewables