Simulation and cost optimization of solar heating of buildings in adverse solar regions