Converting a Water Pressurized Network in a Small Town into a Solar Power Water System

: The efficient management of water and energy is one challenge for managers of water pressurized systems. In a scheme with high pressure on the environment, solar power appears as an opportunity for nonrenewable energy expenditure reduction and emissions elimination. In Spain, new legislation that eliminates old taxes associated with solar energy production, a drop in the cost of solar photovoltaic modules, and higher values of irradiance has converted solar powered water systems into one of the trendiest topics in the water industry. One alternative to store energy (compulsory in standalone photovoltaic systems) when managing pressurized urban water networks is the use of head tanks (tanks accumulate water during the day and release it at night). This work intends to compare the pressurized network running as a standalone system and a hybrid solution that incorporates solar energy supply and electricity grids. The indicator used for finding the best choice is the net present value for the solar power water system lifespan. This study analyzed the possibility of transferring the energy surplus obtained at midday to the electricity grid, a circumstance introduced in the Spanish legislation since April 2019. We developed a real case study in a small town in the Alicante Province, whose findings provide planning policymakers with very useful information in this case and similar case studies


Introduction
Water and energy are limited resources and their sustainable management is a formidable challenge for water utility managers.The population increase of 2-3 billion of people over the next 40 years [1] will aggravate the water shortage question, and many studies have shown that global water demand will continue increasing at these rates until 2050, up to an increase of 20 to 30% above the present level of water use [2,3].
The energy problem is not a minor issue.The overall electricity need for the power sector will expand from 24,310 TWh in 2015 to 48,800 TWh by 2050 [4].The present policy scenario illustrates the results of the world continuing along its present path, with no other changes in management, with an energy requirement rise of 1.3% each year to 2040 [5].The International Energy Agency reported that energy use in the water sector was 4% of global electricity in 2017 and 2019 [5,6], in Europe, 3% [7] and 5.8% [8], or 4-5% [9] in Spain.New solar photovoltaic (PV) system installations increased their global energy production from 29.5 (2012) to 107 (2018) GW [10], encouraged by a shift to further large-scale utility systems, changes in legislation, and an international devaluation of PV system prices [11].The annual establishment in 2018 was about 5% greater than in 2017, enlarging the PV power to 505 GW at the end of 2018 [12].Solar power is an environmentally friendly opportunity because of the energy consumption and emissions reduction [13][14][15].At present, the European Commission states the emissions reduction for 2050 as one of its significant targets [16].The European Union is pursuing the lines "Pathways for the transition to a net-zero greenhouse gas emissions economy and strategic priorities".The production costs of photovoltaic modules have reduced 30-60% in 10 years [17], and the high oil prices have favored the expansion of the use of this technology by decision-makers and professionals.The growth in electricity prices (0.0885 €/kWh in 2004 to 0.176 €/kWh in 2017) [18] has also helped to reinforce this profitability.
Investigators and practitioners have developed projects optimizing PV systems [19,20] and studied the influence of meteorological variables [21][22][23].Researchers have presented procedures in photovoltaic generation forecasting to mitigate uncertainty [24][25][26], with the aim to incorporate the spatial correlation of PV modules [27] or reducing fuel consumption in a hybrid system (with a diesel generator and photovoltaic resources) [28].In the water industry, many works have been performed in pressurized water networks [19,[29][30][31] and in pressurized irrigation networks [32][33][34] where the energy consumption profiles influence the PV installation [35][36][37].Many approaches have focused on energy production optimizing the tilt angle [38][39][40][41], by analyzing the shadows' influence on this energy production [42][43][44], or obtaining the influence of cleaning in energy production [45], while others have focused on the viability of energy storage in batteries [20,44,46,47] or the maximization of the battery charge [48] or the influence of electric cost in the batteries' dimension and feasibility [49].Battery storage methods have been shown to be the most effective choice for the cost study presented with the lowest payback periods, but we should also consider their management and replacement [48,50].Some works have dealt with coupling water consumption and energy production [51][52][53] and the transformation into a standalone direct solar waterpower system (SPWS) [54][55][56][57].
Other authors have proposed a life cycle assessment for these solar photovoltaic modules [58,59] or an economic prioritization for PV installation alternatives [60,61] to reduce the payback period (time needed to reimburse the funds spent).Manufacturers have quantified the PV modules' performance at 90% after 10 years and around 80% after 25 years [62].This technique can be applied in urban water pressurized networks (WPN) to find the best choice when the manager has to decide between two common alternatives, energy-storing energy in batteries [63][64][65] or tanks [66], when they convert the WPN in a standalone system from electricity grids [67].Some approaches also consider hybrid results (the electricity grids vs. photovoltaic and diesel generators) [68,69].
In April 2019, the Spanish government approved RD 244/2019, a law regulating the administrative, technical, and economic conditions for the self-expenditure of electrical energy.It encourages self-consumption of electricity as it allows PV installation for one or more consumers to exploit economies of scale and derogate old taxes such as the so-called "sun tax" [70].The opportunity of injecting the surplus of electricity produced into the electricity grid has emerged as an opportunity to enlarge energy and cost savings.
This work intends to assess a utility manager in a real town in Alicante Province (Spain).This utility analyzes the energy production in the PV panel and the energy required to supply water to the population.We analyzed alternatives from converting the WPN into a SPWS with energy storage in tanks, and a hybrid solution supplying energy from PV arrays in the irradiance hours and electricity grids.We compared which of these opportunities was better and how to embrace them [71].Earlier results suggest that no universal solution exists in this problem.Energy consumption depends on many parameters (among them, the network layout, water use, etc.), and the energy production is dependent on latitude, temperature, azimuth, tilt angle, etc.We expect to gain fresh ideas and challenges from a broader perspective form working in real WPNs.In earlier research, we found that seasonal energy expenditure in a WPN is less dependent than the energy production variation [72][73][74].To highlight this, the simulation showed that December is the most disadvantageous month in these latitudes.The head reservoir is water storage (it maintains supply or emergencies) and an energy storage system [75,76], but they present inconveniences on higher water age.The tank option is truly energy-hungry [77] as pumps should fill the reservoir in a brief time (those high irradiation values).We intend to find the restrictions influencing these results.
The hybrid result involves lower monetary preserves (the service must pay for the electric expenditure).We can decide the amount of PV modules in which the WPN cannot absorb the entire energy supplied.Higher numbers of PV modules involve proportional investment, but not economic savings.The result is that the net present value for the SPWS lifespan diminishes and this choice becomes less viable.We assumed an excess of electricity provided (and inserted into the electricity network) and their cost savings to show how much it affects our question.
We studied an urban WPN (Case 0; pumps powered by electricity grids) the scenario that appears when PV modules feed pumping devices.We changed the WPN into a SWPS storing energy in a head tank (Case I) into a system that incorporated hybrid solutions (Case II; PV modules supply energy during sunlight and electricity grids at nights).We determined energy savings by calculating the response of each alternative with hydraulic models and proposed a discrete optimization problem where the greatest net present value for the SPWS lifespan was the most effective choice.Finally, we analyzed (Case III) the economic savings of transferring the energy excess, and which of them increased the net present value of the SPWS installation.This exercise demands a calibrated hydraulic model in EPANET [78], so we worked out the energy expenditure in WPN with UAEnergy software [79], and with the energy efficiency of the pump, we adjusted the energy savings.Other constraints occur in the optimization problem as energy production changes; therefore, the compensation tank should have sufficient volume to avoid overflows.
The rest of the work is organized as follows.Section 2.1 classifies the WPN according to their use for calculating the energy production and its variation.Section 2.2 analyzes the energy production fluctuation; Section 2.3 describes how to calculate the economic prioritization indicator, and Section 2.4 shows the calculation process.Section 3 presents a real case study.Section 3.1 presents the input data, and Section 3.2 presents the key results.Finally, Section 4 shows our key conclusions.

Types of Water Pressurized Distribution Networks
We present the cases found according to how we injected water into the system (Figure 1).Two options appeared: direct pumping (without head tanks) and indirect water supply (throughout the head tanks).We considered the first in [71], and we analyzed the second cases (indirect supply with head tanks as a guarantee for emergencies) found according to the municipality water precedence.The first peculiarity is apparent considering the number of water resources, whether just one (groundwater, superficial water bodies, desalination, etc.) or several sources.The second involves acquiring/selling freshwater (irrigation communities or any alternative towns), thus solving the water scarcity problems in springs (a common situation in Southeast Spain [80]).

Use of PV Arrays in a Standalone System
If a WPN is converted into a standalone full PV supplied system, energy is stored in the head tanks.The PV modules must be dimensioned for the worst month (the month selected to size the system).In this month, the pump can operate enough hours so as to not endanger the guarantee of supply to the municipality.The indirect supply means not using batteries to save energy.Utility operators accumulate energy in a head tank with a great capacity to satisfy water demands.During the year, there may be periods with low values of solar irradiance, which involve low energy production.If the solar radiation data are available for a long period, it will be possible to check the highest number of days in which the radiation does not exceed the minimum necessary for the pumping station to extract groundwater, in order to have a real reference of the autonomy that the tank should have.
Equation (1) [71] serves to determine the volume accumulated to maintain supply at nights (∀ ): where ∀ is the city daily water demand and ∀ is the volume consumed when there is sunlight and the PV arrays are supplying electricity to the water pumps.

Use of PV Modules in a Hybrid System
This alternative delivers fresh water to the town by consuming energy produced by PV modules and taken from the grids.This is a favorable situation since it avoids a great deposit, however, it requires flexibility when determining the number of photovoltaic modules and the hours of operation supplied by PV modules.Thus, the manager must change the pumping hours to reach higher savings.
Another outstanding improvement of the mixed pumping is the phenomenon that, during summer, the peak values of energy costs (11:00 to 15:00) coincide with the higher solar radiation available.The cheapest energy costs are from 00:00 to 08:00, a period in which there will never be enough solar radiation for the pumps to handle.This means that solar pumping and grid-connected pumping complement each other, and in case power from the grid is needed, it will be there in the valley period (lowest costs).

Use of PV Modules in Several Source Supplies
Two options are available: the first is when the utility has the possibility of purchasing/selling fresh water to others, and when the second water source is a spring with high variability.
The first option is to connect the WPN to an irrigation network (fed by groundwater from aquifers) or linked to any alternative water source (remaining the opportunity of purchasing water).The utility manager must advise on the water provisions and cost of water throughout the day (and we do not handle the savings derived from the low-cost periods).Remarkably, to deal with the possibility of selling water to other users during the summer; other uses increase water expenditure (irrigation, urban consumption, etc.).The purchase of the excess volume can be a significant budgetary income that would maximize future savings.
The second option appears when we connect the WPN to a spring.In these communities, the major disadvantage is the unpredictable amount of water gathered from the spring, since they have substantial fluctuations throughout the year.Frequently, the absence of rainfall during autumn can cause water scarcity in winter and spring.If there is no alternative water resource connected to the grid network or the possibility of purchasing water, the sequence of a standalone pump providing water and spring is not workable.

Monthly and Yearly Variation in Energy Produced in PV Arrays
Many factors influence energy production in PV modules (latitude, temperature, tilt angle, azimuth, etc.).We dealt with the intensity of solar radiation as measured in the climatic station.Many investigations have presented the solar irradiation level as being the lowest in winter and the highest in summer [71,81,82].As a result, the irradiation values in four months are far below the average value.This measurement accumulates the energy losses due to sun irradiance (soiling, dirt, and dust in solar modules, shading, orientation and tilt angle, air pollution, etc.).For instance, energy losses in dirt and dust range from around 2-50% [83], while shading ranges around 10-70% [84].In our approach, we considered that PV cleaning maintenance is selected to avoid energy losses from dirt and dust and PV arrays are not affected by shading losses through trees, houses, or other bodies in proximity to PV modules.To reduce losses by temperature (8-15% in the module [85]), we will install spacers to allow 15-20 mm of space between PV modules to allow air circulation and cooling down the PV plant.Many investigations have proved the yearly average daily solar to increase over the years [86,87].However, we assumed that the observed irradiance remained constant for the following years of analysis (this being a conservative hypothesis).
Water and energy demands are higher during summer and this period coincides with greater energy production.The utility manager must conduct a hydraulic test (considering the network details) to choose the most adverse month.The monthly water consumption (got measuring monthly water demands) is considered with a (K) parameter.In our analysis, we estimated that water consumption continues constantly for consecutive years.This is, again, a cautious hypothesis as Spain has displayed a decline in water expenditure in cities in recent years (−17% between 2000 and 2014) [88].

Life Cycle Cost of PV Modules
This method intends to give information to utility managers when they analyzed whether it is better to use batteries or tanks for energy storage or an intermediate mixed solution for several WPN.We consider here all the future costs and benefits in 'present-day' values.As the value of money changes with time, it would be unrealistic to add up the future costs as they stand.Future costs and benefits must be discounted to their equivalent value in today's money [89], called their "net present value".With these investments and future revenues, the objective function to maximize from the present time (tp) to the time T * can be expressed as the net present value (NPV) (Equation ( 2)): where I is the investment performed in year zero and S is the monetary savings.We measured the benefits of installing a SPWS plant in every installation for a common lifespan (usually T * = 25 years).

Calculation Process
Figure 2 reflects the computation process described by seven steps.First, we can retrieve the irradiance inputs (Step 1).With the daily solar period data from Step 1 and the network model (pumps, pipes, etc.), we can calculate the energy consumption and volume required (Step 2).We can obtain the PV modules data (Step 3) and with the results gathered in Step 2, we can calculate the number of PV panels, N (S modules in series and P modules in parallel).The new cases are described in (Step 5), considering potential requirements (new diameters for pipelines, new pumps, increase volume of the head tank, etc.) and can also determine the energy savings (Step 5) for each probable situation (standalone SPWS or hybrid system).The latest situation (the WPN operates by taking power from the electricity grids) incorporates many potential schemes, each of them with the installation of several PV modules.Likewise, in Step 5, we can assess the purchases for the cases mentioned before, and determine the net present value for every scheme in Step 6. Step 1: Data recovery of the monthly energy available in the location.
Step 2: Calculation of the pumps monthly electric demands, the water consumption, and the worst month.This calculation requires Step 1 data and hydraulic data.The utility manager must estimate if the pump can elevate the total volume of water to the tank, if the dimensions of the pipeline are suitable, and if the tank size suffices the alternative procedure plan.
Step 3: PV modules data.We recovered the data from the PV modules selected for this analysis.
Step 4: Calculation of the number of PV arrays.We calculated the minimum number of solar panels to produce more energy than the energy demanded by the WPN [51,71].This resulted in a 12 × 1 vector that showed the number of modules for every month (the number of solar PV modules required being the greatest of these values).These numbers do not depend on the energy storage system and represent the upper limit for the hybrid case.If the SPWS can work as a standalone system, it makes little sense to work in a hybrid case.
Step 5: Generation of alternatives.
The first alternative was to convert the WPN as a standalone system accumulating energy in a head tank.Later, we created some combinations with a different number of PV modules (varying among the number of panels installed in parallel to allow connection) for the hybrid solution.
Step 6: Calculation of the economic input data.
We decided the investments because of the data proportioned in Step 3 and the economic accumulations for the alternatives outlined before (Step 5).In our method, we do not deal with the head tank or pipelines; these costs are included in every case.However, we incorporated new pump costs and increasing tank capacity.In the hybrid alternative, each combination requires different expenses (each combination involves a different number of PV modules) and savings (the more energy is produced, the lower the energy consumed in the grids).
Step 7: Calculation of the net present value for the alternatives.
The greatest net present value at the time ( * ; service life of the SPWS) is the most efficient option.This alternative was selected for implementation.

Hydraulic Data
The problem requires a hydraulic model to bring the water and energy consumed by the municipality (2000 inhabitants).These values depend on temperature, month, temperature, etc.
The hydraulic data required here are: • The calibrated model is presented in Figure 3 (UTMX 754,387 and UTMY 4299526).We can simulate the hydraulic behavior of the WPN.This file must contain the information to perform hydraulic calculations without no error (elevation, base demands in nodes, roughness, diameter and lengths in pipes, pump curves, size of tanks, etc.).We propose Case 0 as the current state in which we supply pumps with electricity grids.The pumps start and stop as controlled by the water level in the tank.The method to carry out simulations is meant to suit the EPANET models for the water table depth (one model for each month) for Case 0.

•
Pump ATURIAXRN6B (eight impellers).The curves of the pumps that show the head and pump efficiency variation with flow rates are depicted in Equations ( 3) and (4): • Water demand change per month (K).We calculate this variable by dividing each monthly water consumption into the average water demand.Their values are shown in Table 1.
• Consumption of the municipality: monthly volumes and "instant" flows (average flow every 30 min.This is necessary to calculate the average monthly consumption and daily patterns (Table 1).

•
Water depths: Average of the dynamic level each month to calculate the pump head (Table 1).

Irradiance Data
Solar radiation: The average radiation (W/m 2 ) for each hour of the day, for each month of the year.This is essential to design the area of the solar park and to calculate the hours that the pump will work (and the frequency at which the inverter will work), depending on the month.We measured the irradiation data at the Sagra Station, which is located close to the WPN.The irradiation sensor was an SKU: 6450, and we integrated it into the Davis Pro 2 weather station.This station has been running since 7 November 2018, and we recovered data every 30 min (Figure 4).High irradiance months (July, June, May and August) can be seen in dark colors; the intermediate months (in green); and the low irradiance months (November, December and January) in warm colors.The peak sun hours (PSH) can be calculated from the irradiance data.The PSH ranges between 3.96 and 6.48 h in December and in July, respectively.

Economic Data
The economic data required to achieve the net present value are:

•
Investment (I0).We can calculate this amount for the option studied.PV modules, batteries, and pumps costs (service life 25, 5 and 7 years individually) and some other costs are displayed in Table 2.These costs are identical for every option planned (to allow for a comparison).

•
Economic savings (Si) in contrast to the present situation (Case 0).To determine energy expenditure costs, we have followed the Spanish tariff (which means determining power, energy, and reactive energy with hourly and seasonal variation).We calculated the hydraulics and the electricity bill.The investment to install the PV panels (1.96 × 0.992 m 2 ; an input data that depends on the PV panels selected), structure, legalization process, etc. and tank increase is depicted in Table 2.These numbers have been proportioned by a PV panel installer and a water utility in Spain.The modules were poly-crystalline Canadian Solar 330P (nominal maximum power 330 W, operating voltage 37.2 V, operating current 8.8 A, and open-circuit voltage 45.6 V), and the tilt angle was 40° and oriented to the south.The module efficiency was 19.67%, as declared by the manufacturer.
We retrieved the variable energy costs linked to the water distribution in the WPN at the zero-scenario.These costs have been calculated considering the 3.0 Tariff.This tariff covers three periods: the peak period extends for 4 h (prices are 0.111586 EUR/kWday and 0.112686 EUR/kWh); the plain period extends for 12 h (0.066952 EUR/kWday and 0.091485 EUR/kWh); and the low period extends for 8 h (0.044634 EUR/kWday and 0.064503 EUR/kWh).To further describe the reality, we included a 5.11% tax (direct electricity tax), a renting electricity meter rate (0.197377 EUR/day), and the value added tax (VAT) (21%, the general price in Spain).

Case Simulation
We present here the key cases that may appear in the town WPN (Case I, II, and III), while Case 0 represents the current state (electricity supplied by grids).We simulated the cases considering their monthly variation (we developed twelve hydraulic simulation models).In our approach, we did not consider the trackers (mechanical devices to move the modules).We computed the monthly energy consumption and production to confirm December as the most unfavorable month.This month had the lowest ratio between solar radiation and water needs, which coincides with earlier works [71].
When we used solar energy (Cases I, II, and III) in December, the low values of solar radiation involved means that the pump can work enough hours to supply the municipality (Figure 4).We should also select a pump that can provide water at a much higher head than the operating one, so that when pumping at a lower frequency, despite the lowering of the pumping curve, the pump can still satisfy the flow requirements.The model simulating the pumping conditions will depend on the hours when there is enough solar radiation for the pump to work.If there is an inverter, the power required at different frequencies can be calculated to have more hours of pumping.

The Current State, Case 0
We set up the WPN model of a small town (pumping with relation to the electrical grid) with the above-mentioned circumstances.The reservoir simulated an aquifer whose water level presents the average (dynamic) depth of that month.The supply conditions must keep the pumps operating from 00:00 to 08:00 h and as little as possible for the peak hours (from 11:00 to 15:00 in summer and from 19:00 to 23:00 in winter time).The simulation stage will correspond to the hours of the month (744, 720, and 672 for 31, 30, and 28 days, respectively).

Case I: Standalone Solar Water Pressurized Networks. Storage of Energy in the Head Tank
We calculated the daily water consumption for every month considering values ranging among 829.53 and 1103.351m 3 /day in December and in July, respectively.If only solar pumping is accessible (no grid electricity), the reservoir should enhance its capacity by 725 m 3 to feed the municipality during the night.Case I is presented in Figure 1 as several sources supplying water to the system and energy storage in tanks.
The pumping devices must deliver the whole volume of water in 4-7 h, which means higher flowrates (and head losses) than those expected when dimensioning this WPN.Arrangements such as choosing a new pump, re-dimensioning pipeline diameters, or widening the tank size were not the mean target of this study, which was to evaluate the new WPN that could run isolated from the electricity grids.If only solar pumping is available (Case I), the cost of the electric bill will be zero after the conversion.We dimensioned the SPWS and found that this town requires 18 × 16 PV arrays (18 modules in series and 16 modules in parallel).

Case II: Hybrid System Supplied by Solar and Grid Electricity Consumption
Case II is the intermediate case fed by the electricity grids and PV arrays.We calculated pumping costs in "cheap", "medium", and "expensive" periods (values dependent on the season and the hour of the day).We entered these values in electricity bill templates to calculate the cost of the monthly electricity bill.
In this scenario, the economic savings only affected the energy consumption term (other terms such as power installed remained constant).With the second strains, we calculated the energy savings for several PV array areas installed in 18 × 12, 18 × 10, 18 × 8, and 8 × 6 modules (considering the intermediate cases as those obtained with the elimination of modules in parallel).Case II was presented in Figure 1 as several sources supplying water to the system and a hybrid system supplying energy to the WPN.

Case III: Standalone Solar Water Pressurized Networks Selling the Surplus of Energy
This case was similar to Case I (standalone solar system, 18 × 16 modules, a new pump, and a 725 m 3 increase in tank capacity).We developed this scenario to understand how much energy-savings can arise if we can sell this excess of energy to the electricity distribution company.In Spain, the approval of this operation scheme is much slower than the Case I scheme.We propose this alternative to quantify this effect.

Monthly Energy Consumption
We used UAEnergy [79] to calculate the monthly water and energy consumption in our town, and these values are depicted in Table 3. UAEnergy reported the volume and energy consumed.The pump-efficiency relationship converts this energy consumed into electricity consumption.When we produce an SPWS, the consumed volume is equal to the consumed volume in Case 0 (to allow comparison and to represent the water supply appropriately).However, the energy consumption (and electricity) are higher as a consequence of larger head losses and flow rates [90].The most unfavorable month is December, as it had the minimum value of the ratio PSH/(V consumed).

Calculation of the Yearly Electricity Cost
With these data, we calculated the economic energy consumption (Table 4).The Case I savings coincided with Case 0 consumption (the utility does not pay for electricity).Case II savings were lower than in Case I as they considered the electricity taken from electricity grids in comparison with the Case 0 use.In short, Case II (18 × 12 = 216 modules) involves savings in January of 1512.32-292.54= 1219.78EUR.

Sale of Surplus Energy
To calculate the surplus energy (Table 4), the energy available and the energy consumed must be known.The latter can be calculated in two steps: calculation of the available energy and energy consumption.In Figure 4, we show the hourly irradiance values obtained per month and the energy demanded by the pumps (Figure 5).As we have the energy produced (red line, Figure 5) and consumed (blue rectangles), we can obtain the surplus energy by subtracting them.As an example, we show these values in January and April.The excess of energy takes place when there is energy available, but cannot be supplied as it fills the tank of water (Table 5).This condition demands a recent monthly run of the hydraulic EPANET model.We exported the tank level, the outlet tank flow rate, and injecting flow rate.We should encounter the intervals at which the tank is full and deduct the inlet and outlet flow rates to obtain the surplus flow.If we divide this excess of flow by the pump flow rate for the frequency at which the pump is performing, we can identify the hours when the pump is not functioning and the excess energy.The sum of the monthly values and the monthly energy surplus returns the total energy.The fact of being able to inject the electricity surplus into the grids involves maintaining the utility connected to the grid.This also involves having a minimum of power installed (and according to this, an additional cost).Please note, electricity grid consumption should be avoided on cloudy days as the WPN demands electricity in the "expensive" hours.

Calculation of the Investments and Savings
In Case I, the PV modules, the new pump and increasing tank capacity (by 725 m 3 as stated before) represent the investments to address in year 0. The peak power required is 0.330 * 288 = 95.04 kW.Using the cost data depicted in Table 2, and assuming that a new pump is purchased every nine years, we can calculate the investment for Case I as shown in Equation ( 7) (Table 6).In Case II, we calculated the investment in an analogous manner, but the costs of increasing the tank were not considered and we purchased a every five years.For Case II with 18 × 12 modules, the investment results in Equation ( 8) (Table 6).Electricity consumption in Case 0 is energy savings for Cases I and III (standalone system).In Case II, we connected the WPN to the grids and the PV arrays produced power during sunlight.Therefore, savings influence the energy term of those three already mentioned in the tariff for calculating the electricity bill (other terms such as power remaining constant), as shown in Table 7. Case III differed from Case I in that the WPN was connected to the electricity grids (to sell the surplus) and the company was forced to pay a fixed term, referring to the power that can be taken.This is the reason that there is a new cost, which is shown as a negative saving.

Life Cycle Cost Calculations
The payback period ( [60]) for Cases I and III returned the numerical values of 11.10 and 8.13 years, respectively.We obtained other values for the huge (although finite) possibility of installing an area between 0 and 288 modules (559.96m 2 ) in Case II.
However, the net present value for year 25 (PV installation lifespan) indicates that Case III results in the best alternative for the whole lifespan of the SPWS.We may find that some misleading data would have appeared, if the payback period was considered as an indicator.Case II (18 × 6 modules) resulted in the worst combination for the life cycle cost analysis (as it had very low future revenues) and had a lower payback period.In Figure 6, the axis of the year ranges from now to the maximum expected lifespan of 25 years.We can observe that when the number of modules increases in Case II, higher savings result in greater net present values.The best option was Case III, as the savings were higher than any of the other alternatives.

Discussion
The water consumption ranged from m 3 /month in December and 34,203.82m 3 /month in July.The energy production per single PV array was 1743.10 kWh/day (the peak value in July was 2139.33 kWh/day and the lowest value was 1308.25 kWh/day in December).We obtained these numbers by multiplying the PSH by the maximum module power.The average peak sun hours were 5.28, while the maximum and the minimum were 6.48 (July) and 3.96 h (December).
Using renewable energies is more convenient than conventional electricity supply through grids.The utility is saving energy (109,593.99kWh per year; Table 3) and emissions to the environment (considering each country energy mix).These saved credit carbons can very much contribute to avoiding climate change.
In our approach, we pretended to deal with the key uncertainties parameters found here, the variability of water consumption and solar irradiance.We solved the first considering a monthly analysis with different water consumption (based on historical values of the municipality consumption) and a different water level of the aquifer.Thereafter, we measured the solar irradiance for the last two years at Sagra Station to obtain the actual values of irradiation, as we already considered the shading effect on the panels in our approach.We also considered that the PV installation received proper maintenance with frequent PV cleaning.This approach requires a WPN model to perform the calculations.

Conclusions
This work helps decision-makers to select the most efficient alternative for a real urban WPN from an economic standpoint.We considered two alternatives: converting the WPN into a standalone photovoltaic system or into a hybrid (grid + solar) system.To avoid misleading, we studied irradiation and energy expenditure fluctuation.Peak values of energy expenditure (in summer) coincided with peak values of energy production.We confirmed that the worst month was December because energy production reduces much of that energy consumption.This manuscript presents a method that allows for the adaptation of any urban WPN into a standalone SPWS with energy storage in tanks, and into a hybrid system.We practiced this method in a real municipality, and discovered that energy production varied more than energy consumption in this This means that December is the most adverse month as it bears the lowest irradiance and thus the lowest energy production.The tank alternative (Case I and III) is more energy-hungry than the others, as the pumping devices should fill the head tank in a quick time (those with irradiation needed to provide the pumps' work).Case III bears no surprise as it illustrates that when the electric company purchases the excess energy, it produces greater revenues in the SPWS lifespan following 25 years.This case study proved that we reimbursed the investment of 11.10 − 8.13 = 2.97 years (Table 8) previously in Case III.Therefore, we can handle these numbers to encourage WPN to sell excess energy, without being worried about the delay in getting the SPWS certified to add electricity to the grids.Case III is the best choice from the economic standpoint investigation presented here.

Figure 1 .
Figure 1.Cases found when planning to convert a water pressurized network into a PV supplied service.

Figure 2 .
Figure 2. Workflow for the process to calculate the net present value of the alternatives.

Figure 5 .
Figure 5.The energy produced and consumed in January (left) and in April (right).

Figure 6 .
Figure 6.The Net Present Value for the alternatives.

Table 1 .
Water depth table, average temperature, and water consumption for each month.

Table 2 .
Costs for calculating investments.

Table 3 .
Volume, electricity consumption, and monthly costs in the town (Case 0).

Table 4 .
Economic electric consumption (EUR) in the town.

Table 6 .
Investment I0 (EUR) for the analyzed cases.

Table 7 .
Energy savings Si (EUR) for the analyzed cases.

Table 8 .
The payback period and net present value for the cases analyzed.