The progressive depletion of reserves, combined with the greater difficulties surrounding exploration and extraction activities, highlight the need in advanced economies to move towards the replacement of these energies with others of renewable origin and to reduce energy intensity through savings and efficiency. However, today and on a global scale, the main sources of energy are fossil fuels such as coal, oil and natural gases. Even so, it is becoming increasingly necessary to use naturally available renewable energies, particularly solar energy. For this reason, both in developed and developing countries, techniques for exploiting solar energy through various processes, such as thermal or photovoltaic (PV), are being promoted.
Given the significant number of sun-hours that Spain experiences due to its climate and geographical location, this country has the potential to exploit clean and sun energy to meet its energy needs. However, since a large part of the world's population is concentrated in cities, it is essential to establish sustainable urban plans that utilize available resources and technology. Likewise, in the buildings sector, long-term structural changes are needed, with particular emphasis on the continuous improvement of equipment, on users' consumption habits and on the integration of renewables from the local and community points of view. Several studies have identified urban centers, such as the city of Geneva (Switzerland) (Gassar and Cha 2021), or Miraflores de la Sierra (Madrid, Spain) (Ávila and Zamora 2015) or Kosovo (Pristine) (Qerimi et al. 2020), as high-potential areas for solar production due to their high population density, and because of solar PV plays a vital role in energy transition of urban energy systems (Zhu et al. 2023).
Buildings are responsible for around 40% of the European Union's (EU) energy consumption, with residential buildings accounting for 27% of the EU's final energy consumption in 2020. To make this consumption as renewable as possible, one of the alternative is to generate part of the electrical demand by installing photovoltaic panels (PV) on the rooftops or façades of buildings. In addition, the way solar systems are used in buildings has changed. Buildings are no longer designed with only passive solar systems, such as windows and sunspaces, or active solar systems, such as PV or solar collectors, as new buildings integrate technologies of both types. They can be energy efficient, solar heated and cooled, and powered by PV systems; they are, in short, "solar buildings".
Calculating the solar potential requires a feasibility analysis taking into account various environmental and technical factors, which have been studied in several works. For example, Farrell et al. (2020) assessed the recycling routes for implementing the circular economy on the wastes of PV modules. Lobaccaro et al. (2019) analyzed the barriers and opportunities for active solar systems in urban planning to stimulate successful practices. Different models and methods can estimate the PV potential, including the use of a Geographic Information System (GIS). This tool has been used in various studies, such as in Ahmetovíc et al. (2022) where combining the data obtained from PVGIS with Fuzzy Analytical Hierarchical Processes the best location to implement PV system is chosen according to eight criteria. Pinna and Massidda (2022) presents a method to estimate the rooftop PV system power capacity in Sardinia based on this software. Thotakura et al. (2020) validated a grid-connected rooftop solar photovoltaic (PV) plant in Serbia by comparing the monitored data with the one obtained by, among others, the PVGIS simulation. A complete systematic review of various developed methodologies for PV potential assessment in buildings is analyzed by Fakharian et al. (2021) where GIS software appears as a promising tool. Mohajeri et al. (2018) employs Machine Learning to classify urban characteristics for solar applications, and includes the impacts of different roof shapes on annual solar PV electricity production, to analyze the PV potential of an area.
PV installations produce electricity using various configurations, and current policies promote combining them with other technologies such as heat pumps or solar thermal collectors. Hybrid solar photovoltaic-electrical energy storage systems are reviewed for building in (Liu et al. 2019). Herrando et al. (2019) analyzed the possibilities of using solar thermal collectors to meet the heating, cooling and domestic hot water (DHW) demands of a dwelling (ST, PV/T, and PV with heat pumps). The integration of hybrid and organic photovoltaics in greenhouses are studied in (La Notte et al. 2020) to promote sustainable, self-powered and smart greenhouses.
There are also centralized heating and/or cooling systems based on a network, which provide heating, cooling and DHW, and can be linked to renewable generators or solar fields. They are also known as district heating and cooling systems and have the great advantage that, by supplying a large number of users, they have a more uniform demand, which allows the generating equipment to operate continuously. From an energy and environmental perspective, district networks are a very effective alternative for reducing primary energy consumption and emissions, especially when renewable resources are used.
In urban locations, where there are not many lands to implement solar fields, it is necessary to look for other solutions, since it is usually easier to have many small solar installations distributed on the roofs of buildings, rather than large centralized solar collection fields, such as in energy communities. Energy communities reduce costs due to economies of scale, and the shorter distances between grids and consumption are also an advantage.
PV installations and the combinations of technologies in which they are included are suitable to be introduced into energy communities. In the European Union (EU) energy communities are gaining increasing attention as a way to promote renewable energy, energy efficiency, and local participation in the energy transition. These communities are defined as groups of individuals, households, or organizations who jointly own, develop, manage, and/or use renewable energy sources and energy-efficient technologies to satisfy their own energy needs and possibly sell any excess energy to the grid.
Currently, energy communities in the EU are subject to the Renewable Energy Directive (RED II), which was adopted in 2018 and came into force in 2019. The directive introduces provisions on self-consumption and renewable energy communities, providing legal recognition and support for energy communities. In addition, the EU Clean Energy Package, which was adopted in 2019, further promotes the role of energy communities in the EU's energy transition.
Several EU countries have already taken steps to promote energy communities. For example, Germany, Austria, and Denmark have established legal frameworks and financial incentives to support the development of energy communities. In Germany, the Renewable Energy Sources Act was amended in 2021 to improve the regulatory framework for energy communities, including simplifying the registration process and reducing administrative burdens. In France, the Energy Transition Law of 2015 introduced the concept of "energy cooperatives" and created a legal framework for their establishment.
Taking into account this European benchmark, the concept of energy community has been widely studied and applied in different studies, such as, Conte et al. (2022), Bianchi et al. (2023), Chaudrhry et al. (2022) and Sokolowski (2020), which focus on the implementation and current EU policies. Otamendi-Irizar et al. (2022), Nagpal et al. (2022) and Marionopoulos et al. (2018) work on the same topic but focusing on their corresponding local energy communities, and Frieden et al. (2019), Jeriha (n.d.) and Gjorgievski et al. (2021), analyses the concept of collective self-consumption from a techno- economic and regulatory point of view.
The impact of energy communities in Spain compared to the rest of the cities in the European Union is minor, although it has a great potential. Currently, there are 290 projects underway in Spain, of which 255 are renewable energy communities that generate electricity with an installed capacity of 51,970 kW according to the Institute for Energy Diversification and Saving (IDAE). The regulatory framework for energy communities is defined by Law 24/2013, on the Electricity Sector (LSE), which establishes the legal framework for producing, transporting, distributing, and commercializing electricity, including the regulation of self- consumption and the participation of citizens in the electricity system. Royal Decree 244/2019, regulates the administrative, technical and economic conditions of self-consumption of electric power, as well as its administrative registration. The "National Integrated Energy and Climate Plan" (PNIEC) recognizes the potential of energy communities to help Spain achieving energy and climate objectives, and includes a number of measures to support their development as it does the “Long-term Decarbonization Strategy 2050”.
Several studies have been carried out focusing on the Spanish context. Among others, the objective of Manso-Burgos et al. (2022) is to evaluate the technical and economic feasibility of local energy communities and to propose optimization strategies that could be implemented in Valencia. Gallego-Castillo et al. (2021) examine the current legal framework for energy communities in Spain, as well as the potential for self-consumption of renewable energy within these communities. Pinto et al. (2022) explores the application of energy communities to optimize polygeneration systems in residential buildings, focusing on a case study in Zaragoza.
According to the literature review, the PV potential of a city can be fully detailed through a GIS analysis and considering the climate characteristics of the place. Because of geographical and technical reasons, energy communities are a good option to implement green resources generation to cover energy demands and to make a community participation. Because of that, EU members are currently working on directives which detail their design and execution, although Spain still seems to have a research vacuum in energy communities application despite its solar potential. Therefore, this work assesses the solar potential of the city of Vitoria-Gasteiz, which has suitable characteristics for installing PV solar panels and creating different energy communities in the area. It also analyses the option of implementing an energy community including the rooftop of the Mercedes-Benz building in Vitoria-Gasteiz, which is not inside the public house-stock, but seems to have great solar potential on its rooftop.
Consequently, in order to fully comprehend the PV capacity of public buildings and the viability of implementing energy communities between them and with nearby structures, it is crucial to do an analysis as accurate as the shown here. Additionally, it examines whether similar actions or outcomes could be achieved in other cities with environments and geographies similar those of Vitoria-Gasteiz.