Abstract
Incorporating the simulation of water management actions in hydrological models is paramount to enhance their reliability and usefulness. SWAT + (Soil and Water Assessment Tool) includes novelties in this aspect compared to its previous versions: the decision tables and the water allocation module provide enhanced capabilities for configuring management actions. Despite their potential, these features have not yet been applied due to their novelty. This study pioneers the use of SWAT + ’s new features applied in the Upper Tagus River Basin, a densely populated and highly regulated catchment. Irrigation, reservoir management, and various kinds of water transfers were incorporated in a SWAT + model of this basin. The implementation of management actions and their impact on the model performance were evaluated. The model accurately reproduced water demand for irrigation and water transfers, capturing both the demand volume and timing. The water sources were configured to meet most of the demand, with 73% of irrigation and 90% of water transfer requirements being satisfied. Release decision tables were configured for 31 reservoirs, resulting in an accurate simulation of outflow and storage in many of them. Incorporating management actions improved the streamflow simulation at the basin outlet, both considering the hydrograph and performance metrics (e.g., PBIAS was reduced by more than 50%). Some potential improvements in the model configuration and in the code were identified and will be addressed in future studies. This work provides a comprehensive guide to SWAT + ’s new features and the methodology employed, making it valuable for anyone working with the model.
Similar content being viewed by others
Explore related subjects
Discover the latest articles and news from researchers in related subjects, suggested using machine learning.Avoid common mistakes on your manuscript.
1 Introduction
Hydrological models have become essential tools during previous decades to assess and manage water resources (Zeinalie et al. 2021). Some models allow to simulate different kinds of scenarios (e.g., climate change, water demand, management, extreme conditions, etc.), providing water authorities with valuable data (Gassman et al. 2014). Complex hydrological models require comprehensive calibration processes, which might reduce their applicability for non-expert users. This has caused water managers to employ models that simulate management actions accurately, but usually lack a detailed simulation of hydrological processes. Models focused on management actions can be extremely useful for water management and planning purposes (Andreu et al. 1996; Koch and Grünewal 2009; Sieber and Purke 2007). However, if these models are based on simple hydrological models with coarse spatial resolutions (e.g., CEDEX 2020), their use under changing conditions, for example due to climate change, might lead to faulty decisions (Kirchne 2006).
On the other hand, widely used catchment scale hydrological models with an accurate representation of environmental processes (e.g., SWAT, TOPMODEL, MIKE SHE) might not allow to simulate the numerous actions implemented for water resources management. This limits their usefulness for water resources managers and their reliability, since most river basins are not in a natural regime (Grill et al. 2015; Haddeland et al. 2014; Sofi et al. 2020). Some authors have coupled hydrological models with others that allow incorporating management actions (Dash et al. 2022; Doulgeris et al. 2015; Gaiser et al. 2008; Kolokytha and Malamatari 2020). However, coupling models requires extensive user expertise, and thus might not be a viable option.
Some large-scale hydrological models simulate hydrological processes and human actions on water resources simultaneously (e.g., Alcamo et al. 2003; Burek et al. 2020). This scale might be useful for global assessments, but limited for water management purposes at smaller scales (e.g., catchment scale) due to their coarse resolution and the simplification of hydrological and management processes. To the best of our knowledge, there is no open-source model that is capable of simulating both processes simultaneously in appropriate detail, i.e., with a realistic simulation of hydrological processes, a flexible configuration of management actions, and a detailed spatio-temporal scale. Bridging this gap would facilitate integrated planning of water resources considering different scenarios (Silva-Hidalgo et al. 2009).
Among catchment scale hydrological models, the Soil and Water Assessment Tool (SWAT) is one of the most widely used (Arnold et al. 2012; Fu et al. 2019; Gassman et al. 2014). SWAT was always able to simulate some management actions (i.e., reservoir release, water transfers, irrigation) albeit in a simplistic and limited manner (Neitsch et al. 2009). Thus, it was usually coupled with other software (e.g., Ashraf et al. 2017; Ayele et al. 2022; Dash et al. 2022; Phung et al. 2022; Zhang et al. 2023). A completely restructured version of the model, SWAT + , was released some years ago and incorporates new capabilities (Bieger et al. 2017). The flexibility of the model when simulating management actions has been noticeably improved in SWAT + .
Management actions in SWAT + are configured through decision tables (Arnold et al. 2018), which evaluate input conditions to trigger actions. The simulation of water transfers requires the use of a new water allocation module developed for SWAT + , which is used to control the movement of water (both for irrigation and water transfers) between SWAT + objects. This module has the potential to significantly improve SWAT + capabilities. Despite the relevance of these novel SWAT + features for water management, studies implementing them (Chawanda et al. 2020; Tigabu et al. 2024) and evaluating their implementation (Wu et al. 2020) are scarce.
Incorporating water management might increase the reliability of SWAT + models when simulating highly managed river basin. This hypothesis was tested in the Upper Tagus River basin (UTRB), the most populated river basin in the Iberian Peninsula. The complex management of this catchment, with more than 60 reservoirs, numerous water transfers, and relevant demands of water, was assessed through comprehensive compilation and analysis of data and documents. There is a link between climate change and diminishing water resources in the Spanish portion of the Tagus River basin. Streamflow at its outlet was 20% lower between 1980 and 2018 than between 1940 and 1980, which coincides with a 12% reduction in precipitation (CHT 2023). A reliable hydrological model, capable of simulating both hydrological and management processes, is required to evaluate and address the future management of water resources in this relevant basin.
This study pioneers the use and analysis of the new SWAT + water management functions applied to a case as complex as the UTRB. A SWAT + model of this basin was previously calibrated in areas in natural regime to ensure that the starting point of the management implementation was an accurate simulation of hydrological processes. Decision tables and the water allocation module were used for simulating different management actions (irrigation, water transfers outside the basin, between reservoirs and for human consumption), and rules for reservoir outflows were defined for more than 30 reservoirs with different purposes. The objectives were to explore and explain the functioning of these new features, to analyse the implementation of the management, and to assess if incorporating this management (based on the actual management) improves the simulation of streamflow at the basin outlet. Including the simulation of water management is paramount to improve the reliability of models, and this work aims to serve as reference for future SWAT + water management studies.
2 Methods
2.1 Study Area
The Tagus River is the longest river (1,092 km) on the Iberian Peninsula, and its basin is the third largest (83,678 km2) in this region. Its upper and middle reaches are located in Spain and its lower reaches in Portugal (Fig. 1). It is the most populated river basin on the Iberian Peninsula, with more than 11 million inhabitants and important cities such as Madrid and Lisbon. This study focuses on the Upper Tagus River basin (UTRB), which is entirely located in Spain and densely populated (around 70% of the basin population lives in this region). The Tagus River Basin Management Plan (TRBMP), by the Tagus River Basin Authority (Confederación Hidrográfica del Tajo in Spanish, hereafter CHT), regulates the management of water resources in the Spanish part of the basin (CHT 2023). This management is performed at exploitation system scale (Fig. 1), areas whose water demand can be met using their own water resources and mostly coinciding with the drainage areas of the Tagus River main tributaries.
The UTRB accounts for about 40% of the Tagus River Basin, but it is a very relevant area for water resources. It supplies a significant portion of the basin’s renewable water resources and satisfies most of the water demands, including the Tagus Segura Water Transfer (TSWT), which on average diverts 330 cubic hectometres (hm3, i.e., 1e6 m3) per year to the south-east of Spain to supply agricultural demands and water for human consumption to 2.6 million inhabitants (San-Martín et al. 2020). The outlet of the UTRB is located at the streamflow gauging station in Talavera de la Reina (Fig. 1).
Three mountain ranges surround the UTRB: the Central System in the north, the Iberian System in the east, and the Mountains of Toledo in the southwest. The elevation of the basin varies considerably (Fig. 1), reaching 2,350 m.a.s.l. in the highest peaks of the Central System, 1,900 m.a.s.l. in the Iberian System, and 1,600 m.a.s.l. in the Mountains of Toledo. The outlet of the basin is at 360 m.a.s.l. Steep slopes can be found mostly in the headwater regions, whereas the lower parts of the catchment are flatter.
The UTRB is characterized by a continental Mediterranean climate, which varies depending on factors such as altitude, proximity to the ocean, and latitude. The mean precipitation for the period 1980–2010 was 540 mm, with values higher than 1,200 mm in the Central System, and values below 400 mm in the driest areas in the south. The mean temperature also varied across the UTRB, with an average temperature of 13 °C in the east, 17 °C in the west and 8 °C to 10 °C in the Central System. Climate change effects on this basin are already noticeable (especially from the 80s), with an increase in temperature and a reduction of precipitation and streamflow (CHT 2023; San-Martín et al. 2020).
The geology of the basin is highly heterogeneous, with igneous and metamorphic rocks in the north and southwest, a predominance of calcareous rocks in the east, Tertiary and Quaternary detrital materials in the central section, and areas with evaporitic rocks in the southern part of the basin (IGM 1972–2003). Different soil types can be found in the UTRB; calcaric cambisols (43%) are dominant followed by other types such as dystric regosols (15%), vertic luvisols (9%), calcaric fluvisols (8%) and humic cambisols (7%) (FAO et al. 2012).
Covering 49% and 43% of the area, respectively, natural vegetation and agricultural land dominate the UTRB landscape (Ministerio de Foment 2018). Half of the natural vegetation areas consist of forests (evergreen, deciduous and mixed), while other kinds of vegetation (pastures, shrublands, mixed vegetation, etc.) cover the other half. Cereals (wheat and barley) are the dominant crops, followed by other crops such as sunflower or legumes (MAPA 2020). Irrigated crops were estimated to cover around 5% of the agricultural land (EEA 2012), and corn is the predominant irrigated crop. Urban and industrial areas cover around 4% of the UTRB, and other uses such as water bodies and barren lands are minor.
A detailed evaluation of the water resources infrastructure and management in the UTRB is presented in Appendix A. Further information about the hydrological and geological characteristics of the UTRB can be found in previous studies (Sánchez-Gómez et al. 2024a, 2024b).
2.2 Previous Work: Construction and Calibration of the Model
Work that preceded this study involved the set-up and calibration of a detailed SWAT + model for the UTRB. The model setup included an accurate implementation of the agricultural land uses and their management. This was followed by a zonal sensitivity analysis and soft calibration in geological regions (Sánchez-Gómez et al. 2024b), and concluded with a multi-spatial and multi-criteria hard calibration and validation. A more detailed description is out of the scope of this manuscript, but the comprehensive calibration performed ensures that the starting point of work presented in this manuscript is a model which accurately simulates the hydrological processes and the streamflow in areas of the UTRB under natural regime. The model performance in simulating the inflow of reservoirs that have catchments under natural regime is presented in Table 1, using several commonly used performance metrics (Moriasi et al. 2015): Nash–Sutcliffe Efficiency (NSE), Coefficient of Determination (R2), Percent Bias (PBIAS), Root Mean Square Error (RMSE), and Kling-Gupta Efficiency (KGE) (Gupta et al. 2009).
A good performance was achieved for most of the reservoirs, especially for the most important ones. This is particularly satisfactory considering that a large and heterogeneous catchment is simulated with a single model set-up (opposed to individual models for each reservoir catchment, which would not be operational for the purpose of this study). Thus, as above mentioned, the calibrated model is a good starting point for simulating the management of water resources.
2.3 Simulating Water Resources Management in the Upper Tagus River Basin
The simulation of water management actions in SWAT + can be done through decision tables and the water allocation module. Decision tables allow defining flexible management schedules by considering conditions (Arnold et al. 2018). There are three kinds of decision tables in SWAT + : one for land management (planting, fertilizing, etc.), one for reservoirs release, and one for water transfers (in the lum.dtl, res_rel.dtl and flo_con.dtl files, respectively). The water allocation module serves to define source and demand objects, and to configure water allocations among them, with potential applications such as irrigation or water transfers. The configuration of management actions in the UTRB was based on the compilation and analysis of management data, presented in Appendix A. The novelty of SWAT + new features motivated presenting a description and examples of their functioning in Appendix B.
2.3.1 Implementation of Irrigation
The total demand of water for irrigation and its monthly variation in the UTRB were analysed (Appendix A.2.) and estimated to be 422 hm3 per year on average. Irrigation occurs mainly from April to October, and the demand is highest during summer, especially in July and August. Rivers were found to be the most common source of water for irrigation (80% of the demand is supplied from this source, Appendix A.2.). The water allocation module was configured to irrigate HRUs with irrigated crops (AGRR) using channels as sources.
A custom irrigation decision table was created for this basin (Fig. 2), using the month of the year, the water stress (w_stress), and the number of days since the previous irrigation application (days_irr) as conditions. Water stress represents the proportion of plant growth occurring on a given day relative to the potential growth if water were not a limiting factor. A value of 0 indicates no growth due to water stress, while a value of 1 indicates no inhibition. The created decision table (Fig. 2) triggers irrigation between April and October when w_stress drops below 0.9 and during the rest of the year if w_stress drops below 0.6. From the different irrigation types predefined in the model (irr.ops file), the sprinkler_med option was selected.
The water allocation file (see Appendix B.1.) was configured to define demand and source objects, and to specify the irrigation amount. The demand (irrigated HRUs) and source (closest channels) objects were obtained from the HRUs shapefile created during model construction. In the water_allocation.wro file, one table was created for each source (which is necessary when the source is a channel) with all its demand objects using an R script (provided as Supplementary material). In several cases, source channels with small drainage areas had insufficient water to meet the water demand of the HRUs. Consequently, a nearby larger channel was defined as the source object instead of the closest channel, as it is done in practice. Finally, 118 water allocation tables were constructed to irrigate the 282 AGRR HRUs. The first table of the example water_allocation.wro file included in Appendix B.1. (Figure 10) illustrates one of the water allocation tables used for irrigation. In these tables, the name of the irrigation decision table created (irr_crt) was introduced in the WITHDR column. The amount of irrigation applied (mm per application) and the irrigation decision table were adjusted to values resulting in a simulated demand similar to the estimated demand.
2.3.2 Implementation of Water Transfers
The simulated water transfers can be classified into three types: water transfers that extract water from the modelled basin (TSWT, Alberche irrigation canal, and two power plants that use water for cooling), water transfers that divert water from one reservoir to another, and water transfers for human and industrial consumption, which transfer water from reservoirs to Water Purification Plants (WPPs). Most of the water that is transferred for human consumption is eventually discharged back into the stream network through Wastewater Treatment Plants (WWTPs). Daily records of water transferred were obtained (CEDEX 2021) and analysed (see Appendix A.4.). Figure 3 presents a scheme of the different water transfers implemented in the model, classified according to their type and transferred volumes.
The water allocation file and flow condition decision tables were used to simulate water transfers. A different water allocation table was created for each type of transfer, and individual water allocation tables were created for each of the six water transfers whose source was a channel, resulting in nine tables. In these tables, the source, receiving object, and amount transferred (or decision table used to calculate the demand) for each water transfer were specified (see Appendix B).
In the water allocation tables, for each water transfer, the reservoir actually used as source was defined as source object. For those small reservoirs not included in the model set-up, a channel was used as the source instead.
Demand objects definition varied among water transfer types. For water transfers between reservoirs (five in total, amounting to 120 hm3/year), the reservoirs actually receiving the water were defined as demand objects. Four water diversions outside the basin were modelled. Two are water transfers (TSWT and Alberche irrigation canal), and two are power plants which evaporate large volumes of water, amounting to 459 hm3 of water per year in total. Arbitrary objects not included in the model were used as demand objects (e.g., for the TSWT an arbitrary object called tswt was defined). An example water allocation table similar to the one used for water transfers outside the basin is presented in Fig. 10 (see Appendix B).
The water transferred for human consumption amounts to 600 hm3 per year according to the available data (CEDEX 2021). Since the current version of SWAT + does not support simulating all water management actions yet (such as withdrawal from sources, transport, purification in WPPs, transport to urban centres, purification in WWTPs, and release to the environment), the simulation of water transfers for human consumption was limited to the initial and final steps: withdrawing the diverted amounts from the sources and releasing them at WWTP locations. Seventeen release points were defined based on the national authorized discharge census dataset (MITECO 2022). These points were defined considering the distribution of the WWTPs and ensuring that every exploitation system had at least one. The transferred volume (543 hm3/year) was proportionally distributed among these 17 points based on the calculated discharge volume and their location relative to the sources (Appendix A.5.).
Once the source and demand objects were defined in the water allocation tables, the conditions of the water transfers were defined using flow conditions decision tables (flo_con.dtl file). These tables were configured to transfer for every two months the average volume of water observed for the period 2000–2020 (CEDEX 2021). For the two power plants, a daily volume was used instead of a decision table due to the lack of accurate data. For the 20 water transfers modelled through decision tables, 36 flow condition decision tables were created. The reason is that, for human consumption water transfers, the total volume of water transferred was distributed among the 17 release points, which led to some water transfers sending water to more than one release point and vice versa. In the water allocation tables, the created flo_con decision tables were assigned to their respective source and demand objects.
2.3.3 Implementation of Reservoirs
Reservoirs in the UTRB that fulfilled the criteria explained in Appendix A.3. were implemented in the model using a reservoir shapefile during the watershed delineation. The default reservoir volumes were changed to realistic values following the recommendations explained in Appendix B.2. The initial reservoir volume was also configured: the observed volume (as fraction of the total volume) was extracted for the first day of the warm-up period for each reservoir, and eight different initial conditions ranging from 0.2 to 0.9 were created and assigned to the reservoirs.
Reservoirs outflows and storage were analysed using observed data (CEDEX 2021), and simulated using reservoir release decision tables. Five different reservoir groups were defined according to their storage and release patterns (see Appendix A.3.), and three different types of release decision tables were created: one for Group 1 (reservoirs with few storage variation), one for Groups 2 to 4 (which have different release and storage patterns), and one for reservoirs with no data (Group 5). All the release decision tables were built to work under three different conditions: normal functioning, i.e., when the reservoir capacity is within the normal range (below an emergency threshold and above a water scarcity threshold); an emergency scenario, i.e., when the reservoir volume is above an emergency threshold; and a water scarcity scenario, i.e., when reservoir volume is below a water scarcity threshold. The emergency and water scarcity thresholds were defined for each reservoir after exploring the distribution of daily storage records grouped per month and adapted in some cases to match the observed records (final values are presented in Table 9, Appendix C).
The water scarcity and emergency scenarios were similar for all three types of release tables. For the water scarcity scenario, reservoirs were configured to release the quarterly environmental flows established by the TRBMP (CHT 2023) for each of the reservoirs. For the emergency scenario, a release of the excess volume (volume of water above a certain threshold) in few days was used. The number of days to release the exceeding volume was initially set to three and then adapted to improve the simulation (final values are presented in Table 9, Appendix C).
For normal conditions, there were differences between the three release table groups. For Group 1, the aim was to maintain a constantly high volume of water, so under normal conditions the release tables were configured to release the greater of two values, the inflow to the reservoir or the quarterly environmental flow. The emergency and water scarcity volume thresholds for these reservoirs are very high (e.g., 0.96 for emergency and above 0.8 for water scarcity, Table 9, Appendix C), so the range of normal volumes is narrow. However, looking at the records, these values are justified (25th percentile of the daily volume is always above 75% of the storage capacity).
There were three reservoirs without release and storage data. For one of them, La Tosca Reservoir, a release table similar to the one used for Group 1 was used. Since this reservoir currently does not have a purpose and it is situated upstream of other reservoirs, releasing the entire inflow was deemed an appropriate solution to avoid affecting the operation of the downstream reservoirs. For the remaining reservoirs without data (Guajaraz and Finisterre Reservoirs), an emergency release was configured when the volume exceeds 90% of the total capacity, and the release in normal conditions was configured to match the environmental flow. The current release of these reservoirs (Guajaraz and Finisterre Reservoirs) is extremely low, even though the environmental flows should be released according to the TRBMP. For the remaining reservoir groups (2, 3, and 4), a flexible normal scenario was created, releasing a rate for every two months calculated as the median of recorded values for the period 2000–2019 (Appendix C). Although for some reservoirs three or four different release rates would have been enough to capture their monthly variation, establishing two-monthly rates allowed to use a similar table for all these groups and to better account for seasonal variations. A detailed example of release tables can be found in Appendix B.2.
2.4 Evaluation of the Management Application
Once all water management actions were implemented in the model, it was run for the period 2010–2019 using the parameter set identified as best during model calibration. To evaluate the implementation of the management actions, the following output files were used: water_allo_day.txt, which contains the outputs for water transfers and irrigation, and reservoir_day.txt, which contains the simulated reservoir storages and outflows. Variables extracted and analysed for reservoirs were inflow, storage and outflow. Variables extracted and analysed for the water allocation were the type of demand, type and number of the demand and source objects, and the daily demand and withdrawal in m3/day.
Reservoir outputs (outflow and storage) were compared with observed records, assessing the simulation performance at monthly scale using different metrics (NSE, R2, PBIAS and RMSE) and creating graphs of simulated vs. observed daily data. Daily water allocation outputs were evaluated to determine the irrigation demand, withdrawal, and unmet demand in each HRU (average annual) and in the entire basin (annual values). The relationship of irrigation demand and supply with other variables was explored using linear regression and Pearson correlation coefficients (PCCs). The simulation of water transfers was compared with the observed average annual values.
Finally, the impact of the management implementation on the performance of the calibrated model was evaluated. Two scenarios were compared, one in which all the management files configured were active and other in which any of the management files were used (no water allocation, no water management decision tables) and in which reservoirs became operational after the simulation period (thus were no active during simulation), i.e., simulating the watershed in natural regime. Daily channel outputs were extracted for both scenarios and compared to the Talavera gauging station records (CEDEX 2021), located at the outlet of the UTRB. Widely used performance metrics (NSE, R2, PBIAS and RMSE, Moriasi et al. 2015) for hydrological modelling and the hydrographs were used for this comparison.
3 Results
3.1 Irrigation Implementation
The definition of source and demand objects resulted in 118 channels used as sources and 282 irrigated HRUs, and irrigation outputs were extracted at daily scale for every irrigated HRU and aggregated to annual values at basin scale. Table 2 presents the average simulated demand and withdrawal (in hm3/year) for each year and for the entire simulation period, the percentage of withdrawal relative to the demand, and the average precipitation and potential evapotranspiration in the basin. The relationships among these variables were explored using scatter plots and linear regressions, extracting PCC values.
An average annual demand of 409 hm3 was simulated, which is 97% of the estimated value (422 hm3, Appendix A.2.). The irrigation decision table (particularly the parameter days_irr) and water allocation tables (particularly the amount of water per application) were adjusted to achieve this value. This process involved balancing accurate demand, realistic irrigation timing, and a realistic irrigation amount that meets most of the demand. Actual evapotranspiration correlation with precipitation is very high (0.86 PCC), because it ultimately depends on water availability, so potential evapotranspiration was compared with water demand instead. The irrigation demand was found to be highly influenced (−0.85 PCC) by precipitation (Table 2), and consequently by actual evapotranspiration. Demand in years with more precipitation is generally lower than during drier years. Demand increases with potential evapotranspiration, being the most explanatory variable (0.92 PCC) for water demand among those evaluated. As water demand increases, the withdrawal of water also increases (0.96 PCC), but limited by the availability of water in the sources. Thus, the percentage of the demand met is generally reduced (−0.83 PCC) for years with higher demand. It ranges from 68% in the driest year with the highest demand to 79% in the wettest year with the lowest demand. Surface water resources supply around 80% of the irrigation demand in the UTRB (Appendix A.2.), while the remaining 20% comes from groundwater. Accordingly, implementing groundwater sources (i.e., aquifers) as additional sources of irrigation water in the model, especially in areas where the percentage of the demand met is low, would increase the withdrawal and the demand met, and therefore lead to simulated irrigation amounts closer to the estimated amounts.
The demand and withdrawal of water for irrigation in the UTRB not only vary between years, but also seasonally. Irrigation is necessary from March to October (CHT 2023), when the crops are growing, precipitation is low, and air temperatures are high. Due to these factors, the demand for irrigation water is highest during summer months (from June to September). Consequently, an irrigation decision table was developed to reflect this seasonal variation (see Sect. 2.3.1.). Figure 4 displays the average monthly values of simulated demand and water supply and the estimated demand in the UTRB (CHT 2023).
The model´s representation of demand variation aligned well with the estimated data (Fig. 4). Since the decision table was created to irrigate from April to October, some demands observed in March were not simulated. The simulated demand in April was almost negligible. On the other hand, the simulated demand at the end of the summer, particularly in September, was noticeably higher (80%) than the estimated (Fig. 4). This might be due to some of the irrigated crops in the UTRB being planted and harvested earlier than the corn implemented in the model, but also to potential irrigation restrictions that are not considered in the irrigation decision table. Despite the higher demand, the simulated withdrawal in September is very close to the estimated demand (Fig. 4). Slight modifications in the decision table (e.g., including the month of March and reducing the water stress threshold to increase irrigation) or scheduling an earlier harvesting for part of the irrigated crops may improve the fit of simulated and estimated demand. The withdrawal seasonal variation is similar to that of simulated demand, and can be therefore considered appropriate. Increasing this variable (e.g., by including groundwater sources) to meet the entire demand would improve its simulation.
The spatial distribution of these variables at HRU scale was explored. Figure 5 shows the average annual values for demand (in mm/year) and the percentage of the demand met for each irrigated HRU. HRUs with the highest demand are located in the central part of the basin, where the Jarama, Tajuña, and Tagus Headwaters exploitation systems converge. Irrigated lands are historically spread on its terraces due to the availability of water and fertile soils. However, warm and dry conditions characterize this area, and some HRUs simulated demand is larger than 1,500 mm. Some HRUs with a high water demand can be found in the north of the basin, due to the arid conditions in the upper part of the Henares exploitation system.
Examining the percentage of demand supplied (Fig. 5), it appears that the average 27% of unmet demand in the basin (Table 2) is caused by a few HRUs where only a small fraction or none of the demand is met. The most significant case is an HRU near the outlet of the Tajuña exploitation system. This HRU has the highest demand, totalling 14 hm3/year. Because its water source often cannot meet this demand, only 7% of its demand is supplied. Other HRUs where a significant portion of the demand is unmet are located in the upper part of the Henares exploitation system and near the UTRB outlet (Fig. 5). Overall, an accurate simulation of irrigation in the UTRB (considering demand and water supply amount and timing) has been achieved with the SWAT + water allocation module and decision tables, even if small adjustments in the sources used for irrigation could further improve it.
3.2 Water Transfers
Twenty-two water transfers were implemented in the model: four transfer water outside the basin, five from one reservoir to another, and thirteen extract water from reservoirs (in some cases channels) and release it at the defined release points. To control the amount of water transferred, 36 decision tables were created in the flo_con.dtl file. Table 3 presents the observed demand and the simulated demand and withdrawal for each source of water transfers in the UTRB (some sources supply to more than one water transfer).
The SWAT + decision tables implemented to trigger the demands successfully simulated the observed volume of water transferred. The average annual volume of water demanded for water transfers in the UTRB amounts to 1,174 hm3 per year: 455 hm3 are diverted outside the basin, 120 hm3 from one reservoir to another, and 599 hm3 are transferred for human consumption. Given that the average annual streamflow recorded at the Talavera streamflow gauging station for the UTRB outlet was 1,322 hm3 from 2013 to 2020, accurately simulating these complex water transfers is crucial for a realistic representation of hydrological processes in this basin.
On average, 90% of the simulated demand was met, with an average annual total volume of 1,053 hm3. The entire demand was met for 11 of the 22 water transfers simulated, and more than 90% of the demand was met in 15 of the 20 sources used to meet the demands (Table 3). Many water demands that were not fully met had channels as sources. In reality, small reservoirs supply the water for these water transfers. However, these reservoirs were not implemented in the model, and since the channels implemented as sources instead of these reservoirs store less water, they are unable to meet the demands, especially during the dry season. The only case for which almost all the demand is not met and the source is a reservoir is the TSWT (Table 3). The issue arises from the large water demand (358 hm3, Table 3) relative to the small size of the Bolarque Reservoir (31 hm3), which serves as the source for the TSWT. This reservoir is located downstream of two larger reservoirs, Entrepeñas and Buendía, which together have a total capacity of 2,540 hm3. Although 79% of the TSWT demand is met, approximately 80 hm3 are not diverted outside the basin (Table 3). This could lead to an overestimation of streamflow in the Tagus River. A more complex water allocation table for this water transfer, including Entrepeñas and Buendía reservoirs as sources, could improve the simulations. Nonetheless, SWAT + demonstrated its capability to simulate a complex water transfers system.
3.3 Reservoirs
Daily reservoir outputs were extracted and compared with records for the simulation period. The observed and simulated performance and hydrographs were compared for inflow, outflow, and storage. The simulation of reservoirs is not only influenced by release decision tables, but also by model calibration (which determines the inflow) and by water transfers (which affect reservoir storage). The release tables (Sect. 2.3.3.) were modified for some reservoirs to improve their simulation: the emergency and scarcity thresholds were adapted to achieve a better representation of storage, and the magnitude of emergency releases was adjusted. In addition, a new action (extra release) was added for some reservoirs for which storage was overestimated due to a lower release than the observed. These differences between observed and simulated outflows might be due to the period used for calculating the median observed rate (2000–2019). The new action, used for some of the reservoirs (Reservoirs 2, 20, 21, 24, and 26), add an extra release to the release simulated. This release action was configured similarly to the emergency release, but triggered at a lower volume and with a larger delay. Figure 6 presents the hydrographs for outflow and storage and the performance for the simulated period for three different reservoirs, one for each group from 2 to 4. Reservoir 28 is the source of a relevant water transfer (88 hm3/year, Table 3), while Reservoirs 2 and 15 do not have water transfers. Performance metrics for all the reservoirs can be found in Appendix B.
Observed vs. simulated outflow and storage for Reservoirs 2, 15, and 28 (from reservoirs groups 2, 3, and 4, respectively) and monthly performance. The performance was calculated for the entire simulated period (2010–2019) while the hydrographs are shown for a shorter period for better visualisation
The reservoirs shown were selected because they belong to different groups and exhibit noticeably different outflow patterns (Fig. 6). For Reservoir 28, a small amount of water (below 0.5 m3/s) is released in most of the days, but on some days, the observed outflow can reach 40 m3/s. The typically low outflow is due to the reservoir diverting most of its water to WPPs, with larger releases occurring when the reservoir is nearly full. Reservoir 15 has very regular outflows, which are lower in winter (around 0.2 m3/s) and higher in summer (around 1 m3/s), as it supplies water for irrigation canals. Reservoir 2, on the other hand, has a very irregular outflow that varies from day to day.
The accuracy of the outflow simulations varied among the reservoirs, but despite some limitations, a reasonably good performance was achieved. For Reservoir 28, the low outflows were simulated accurately most of the days, and most of the larger simulated outflows were in a similar order of magnitude as the observed ones (Fig. 6). In some cases, high outflows were simulated on days where no high outflows were observed. One possible reason is that the water transfer may sometimes be underestimated (e.g., in early 2012 and late 2013), leading to an overestimation of storage, which in turn triggers emergency releases (Fig. 6). The overprediction of emergency releases results in a high PBIAS for the outflow, while the positive PBIAS for the inflow and the punctual underestimation of the water transfer result in a high PBIAS for storage. Nonetheless, the overall storage and release dynamics for Reservoir 28 were accurately reproduced.
The model simulations closely matched both the magnitude and the timing of the observed regular outflow of Reservoir 15. However, a small overestimation of inflow and a slight underestimation of outflow resulted in an overestimation of storage (Fig. 6). This, in turn, resulted in simulated emergency releases that were not observed, significantly impacting the model performance. Like Reservoir 28, the general dynamics of the reservoir, were captured well with the customized release tables.
While Reservoir 2 exhibited atypical outflow patterns, its release was accurately predicted. The successful simulation can be attributed to the model’s precise representation of the timing and magnitude of major outflow peaks, resulting in satisfactory performance metrics. Both inflow and outflow were slightly overestimated, but the simulation of storage was very good considering PBIAS, NSE, and R2 values. The simulated storage slightly exceeded the maximum capacity of the reservoir in short periods of 2013 and 2014 (Fig. 6), which could be corrected lowering the emergency spillway threshold.
Accurate simulation of reservoir outflows and storage was achieved using the created decision tables. Performance metrics for all the simulated reservoirs can be found in Appendix C (Table 10). Simulating water withdrawals from reservoirs was crucial for accurately modelling storage, which is essential for precise outflow simulation. In this case, with more than 30 reservoirs modelled, the release tables were kept relatively simple. More complex decision tables could enhance the simulation of these variables and might improve performance for the simulated period, but they could also limit the model’s usefulness for other periods.
3.4 Impact of Water Management on Streamflow Simulation Performance
The overall impact of the implementation of management actions in the UTRB was evaluated using the streamflow at the outlet of the basin as an indicator. Figure 7 shows the hydrograph and the performance achieved for two simulated scenarios: the basin under in natural regime and the basin with all management implemented.
Both hydrographs show an accurate prediction of the general streamflow patterns regarding the timing (R2 > 0.55). In contrast, the NSE values are negative for both scenarios, which can be explained by the UTRB not operating under natural conditions in the natural regime scenario and by the complex actual management of the basin for the scenario with management. This management depends on numerous factors (water transfers, reservoirs, demands, etc.), which make it difficult to simulate the streamflow at daily scale accurately. Despite the low NSE value for both scenarios, the improvement achieved in this metric with the management scenario is noticeable. On the contrary, R2 is slightly better (0.07 higher) for the natural regime scenario (Fig. 7).
The improvement achieved by the implementation of water management actions in the model becomes clear when looking at the hydrographs and the error related performance metrics (PBIAS and RMSE). This improvement is primarily driven by the volume of water extracted for transfers outside the basin and the influence of reservoirs, which delays runoff and enhance evaporation. The maximum flows in the natural regime model that occur during the wet period in many years, are much higher than in the observed records (Fig. 7). The maximum observed streamflow value was 281 m3/s in February 2014, while the maximum simulated streamflow was 389 m3/s for the model with management (on a day in March 2010, for which observed values are missing) and 725 m3/s for the model in natural regime (in March 2018). While the differences in the high flows in the model with management are sporadic (e.g., like in the first high peak of 2013), high flows are consistently overestimated in natural regime (Fig. 7). The accuracy of simulating low flow periods is improved when implementing the management, simulating a less variable flow due to the regulation caused by reservoirs release (Fig. 7). The minimum observed flow (1 m3/s in mid-2012) is not captured by any of the models, as this extremely low flow is not in agreement with the TRBMP environmental flow requirements and thus not reproduced by the created release decision tables.
PBIAS and RMSE are noticeably improved after the management implementation (Fig. 7). The RMSE is reduced by 42%, while the PBIAS was reduced from 87 to 40%. This substantial improvement is mostly due to the water diverts outside the basin, the irrigation withdrawals, and the resulting reduction in the high flows. However, a 40% positive BIAS persists, potentially due to unmet demands for irrigation and water transfers outside the basin (unmet demands for irrigation and the TSWT alone amount to 929 hm3 for the entire simulated period). Considering that the total observed streamflow for the simulated period is 12,384 hm3, by achieving a better percentage of demands supply for these demands the PBIAS would be reduced by 8 points. The remaining error can be attributed to other factors: overestimation of water yield in the model, the need for improvement in some reservoirs release, using average and median values for water transfers and the configured release tables, inaccuracy of the water transfer records, oversight of other consumptive demands, etc. Implementing a consumptive use for water transfers for human consumption, returning a fraction of the volume extracted (e.g., 80%) instead of the full amount can significantly improve the simulated water volume, making the model more realistic. While there is still room for improvement, implementing water resources management has notably enhanced the streamflow simulation at the UTRB outlet.
4 Discussion
The results of this study demonstrate the capability of SWAT + to accurately simulate not only hydrological processes, as many studies have shown (Tan et al. 2020), but also complex water management practices in highly regulated river basins. The ability to define detailed water management actions within a versatile hydrological model like SWAT + represents a significant advancement in the field of hydrological modelling. These new capabilities enhance the model’s applicability and reliability, especially considering the widespread influence of human activities on river basins (Haddeland et al. 2014; Sofi et al. 2020). This innovative development presents new research opportunities for exploring how to model catchments with substantial human intervention, such as comparing calibration methods (natural regime vs. including management operations), evaluating different approaches for introducing management actions (use rates or others), and understanding how these factors impact the simulation of future scenarios.
The simulated management actions in this work (i.e., irrigation, water transfers, and reservoirs) are present in most river basins (Grill et al. 2015). This study serves as a guide and example of implementing management actions in SWAT + . Irrigation demands were accurately simulated using a decision table created for the UTRB, and thus we recommend other modellers to develop decision tables tailored to their specific study area. The configuration of the irrigation timing and sources was found crucial for a proper application and should also adapted for the modelled area. Despite the numerous studies applying SWAT for irrigation (Samimi et al. 2020), limitations of the model are highlighted in most of them, leading in many cases to use SWAT to simulate hydrological processes and then couple it with other models (e.g., Ahmadzadeh et al. 2022; Zhang et al. 2023) or to adapt the code (e.g., Xie et al. 2014; Delavar et al. 2020). Auto irrigation function, both implemented in SWAT and SWAT + , has been previously used to estimate demand and quantify water scarcity (Arnold et al. 2018; Chawanda et al. 2020; Mikosch et al. 2020). However, the implementation of detailed irrigation practices (such as from different sources, seasonal demands, etc.) has been made possible only with SWAT + . Almahawis et al. (2024) developed a comprehensive evaluation of the effect of irrigation practices in SWAT + , but coupled with the gwflow module (Yimer et al. 2023). To the best of our knowledge there are no studies which have implemented the water allocation module in SWAT + .
Water transfers demand was accurately simulated with the designed decision tables, since rates to reproduce the observed demand were used. The definition of the source objects was important in this case: while most of the demands whose source was a reservoir were fully met, many water transfers whose source was a channel were not met. The implementation of water transfers has been enhanced in SWAT + compared to previous versions of SWAT, allowing to calculate the demand based on conditions and increasing the flexibility regarding the source objects. Several works simulated inter-basin water transfers using SWAT (e.g., Marak et al. 2020; Woo et al. 2021) despite of its limitations to evaluate different scenarios and the impact of these transfers on water resources. However, a complex water transfer system such as presented in this study, where more than 20 water transfers with different purposes are modelled, has not been addressed before. The results pointed to some potential improvements, both in the configuration of the UTRB model but also on the code. The future enhances of the water allocation module will allow to simulate more actions related to water management (consumptive use fraction, wastewater treatment, etc.) and thus improve model reliability and adherence to real-world conditions.
Reservoir´s simulation was the most challenging task of this work because of multiple factors involved (model calibration, implementation of water transfers, upstream reservoirs, reliability of observed data) in addition to the decision tables. The constructed release decision tables allowed to consider different scenarios and resulted in an accurate simulation for many of the simulated reservoirs. The introduction of release decision tables in SWAT + has increased the flexibility when simulating these relevant water management elements. Reservoirs simulation with SWAT has been addressed in several works (e.g., Liu et al. 2019; Marak et al. 2020; Zhang et al. 2012), but the limitations of previous SWAT versions led to changes in the code (e.g., Jordan et al. 2022; Kim et al. 2021; Wang et al. 2023) or coupling the models with other software (Anand et al. 2018). SWAT + was also used to simulate reservoirs operation by Wu et al. (2020), who presented the SWAT + reservoir routines and developed and implemented numerous release decision tables for the USA, including a calibration procedure for the decision tables. The large scale that was used by Wu et al. (2020) and the automatic calibration procedure limited the detailed evaluation and the goodness of fit of the results. Chawanda et al. (2020) implemented a simulation of reservoirs using SWAT + for Southern Africa using global datasets, but the methodology performed, and the results presented in the study regarding reservoirs are not instructive. The methodology performed in the UTRB might serve SWAT + users to develop their own decision tables and demonstrate the satisfactory simulation of reservoir outflow and storage.
The simulation of the complex water resources management in the UTRB has been possible due to the flexibility allowed by the new features of SWAT + combined with a detailed study of the management in the catchment. This study demonstrated the capability of SWAT + for simulating complex water management systems and the improvement that it supposes. Further work will focus on improving the simulation of the water resources management in the UTRB (increase irrigation amount applied, increase the demand met for relevant water transfer such as the TSWT, simulate consumptive use for human and industrial water demands, etc.). Future development of the water allocation module will enable more realistic simulation of the entire water supply process for human consumption, including withdrawal, transport, consumptive use, treatment, and release. In addition, some slight modifications on the current code (e.g., withdrawing the water available although not being enough to meet with the entire demand) would improve the module. Even in its current state, the module significantly enhances the model’s capabilities, as shown in this study.
5 Conclusions
To increase its reliability and applicability, hydrological modelling must incorporate the simulation of water resources management, as most river basins are no longer under a natural regime. The SWAT + modelling tool includes novelties for that purpose compared to its previous version (i.e., SWAT 2012), allowing to simulate reservoir management and water allocations with more detail using decision tables and the water allocation module. The functioning and application of these new features have been tested and evaluated in a highly managed river basin: the Upper Tagus River basin (UTRB, Spain). The main outcomes of this study are as follows:
-
SWAT + decision tables and water allocation module allow to simulate water management actions in a flexible way. These features were used in the UTRB to implement irrigation supply, reservoirs management, and different kinds of water transfers.
-
The configuration of the decision tables for irrigation and water transfers allowed to trigger accurately the observed demand. The percentage of the demand met simulated depended on the availability of water on the sources used, and in the case of irrigation, also on the water allocation tables parameterization (particularly on the amount applied per application). As a general recommendation, the configuration of management actions should be based on the reality of the study case.
-
The release decision tables developed for reservoirs captured the main patterns of their management and resulted in a satisfactory simulation for many of them. These tables had a common structure capable of considering three scenarios (emergency, scarcity and regular) but were adapted for the different reservoirs. The configuration of the properties and initial conditions of the reservoirs, the implementation of water transfers extracting water from reservoirs, and the previous calibration of the model (ensuring realistic reservoirs inflow), was crucial to achieve satisfactory results.
-
Implementing management actions in the UTRB improved the simulation of the streamflow at its outlet, reducing the PBIAS more than 50% regarding the natural regime scenario. Some potential improvements were identified, both in the UTRB model configuration and in the SWAT + code.
-
This work presents and explains, for the first time, a complete application of SWAT + ’s new features for simulating water resources management in a highly managed basin, with satisfactory results. The simulation of water management actions using SWAT + suppose new research opportunities towards increasing modelling reliability, for which this study will serve as a reference.
Data Availability
Example files of the SWAT + water management configuration and an R script to create water allocation tables can be found in the following GitHub repository (https://github.com/alejandrosgz/SWATPlus_Wallo_repo). Other data might be available under request.
References
Ahmadzadeh H, Mansouri B, Fathian F, Vaheddoost B (2022) Assessment of water demand reliability using SWAT and RIBASIM models with respect to climate change and operational water projects. Agric Water Manag 261:107377
Alcamo J, Döll P, Henrichs T, Kaspar F, Lehner B, Rösch T, Siebert S (2003) Development and testing of the WaterGAP 2 global model of water use and availability. Hydrol Sci J 48(3):317–337
Almahawis MK, Bailey RT, Abbas SA, Arnold JG, White MJ (2024) Investigating the impact of irrigation practices on hydrologic fluxes in a highly managed river basin. Agric Water Manag 301:108954
Anand J, Gosain AK, Khosa R (2018) Optimisation of multipurpose reservoir operation by coupling soil and water assessment tool (SWAT) and genetic algorithm for optimal operating policy (case study: Ganga River Basin). Sustainability 10(5):1660
Andreu J, Capilla J, Sanchís E (1996) AQUATOOL, a generalized decision-support system for water-resources planning and operational management. J Hydrol 177(3–4):269–291
Arnold JG, Moriasi DN, Gassman PW, Abbaspour KC, White MJ, Srinivasan R, Santhi C, Harmel RD, van Griensven A, van Liew MW, Kannan N, Jha MK (2012) SWAT: Model use, calibration, and validation. Trans ASABE 55(4):1491–1508
Arnold JG, Bieger K, White MJ, Srinivasan R, Dunbar JA, Allen PM (2018) Use of decision tables to simulate management in SWAT+. Water 10(6):713
Ashraf Vaghefi S, Abbaspour KC, Faramarzi M, Srinivasan R, Arnold JG (2017) Modeling crop water productivity using a coupled SWAT–MODSIM model. Water 9(3):157
Ayele WT, Tenagashaw DY, Belew AZ et al (2022) Optimal water allocation under climate change, based on stochastic dynamic programming model approach in Ribb reservoir, Amhara, Ethiopia. Water Conserv Sci Eng 7:33–44. https://doi.org/10.1007/s41101-021-00125-w
Bieger K, Arnold JG, Rathjens H, White MJ, Bosch DD, Allen PM, Volk M, Srinivasan R (2017) Introduction to SWAT+, a completely restructured version of the soil and water assessment tool. JAWRA J Am Water Resour Assoc 53(1):115–130
Burek P, Satoh Y, Kahil T, Tang T, Greve P, Smilovic M, Guillaumot L, Zhao F, Wada Y (2020) Development of the Community Water Model (CWatM v1. 04)–a high-resolution hydrological model for global and regional assessment of integrated water resources management. Geosci Model Dev 13(7):3267–3298
Centrales Nucleares Almaraz-Trillo (CNAT) (2020) Informe ambiental 2020: Las Centrales de Almaraz y Trillo. Available from: https://www.cnat.es/docs/informe_ambiental_2020_final.pdf
Centro de estudios y experimentación de obras públicas (CEDEX) (2020) Evaluación de recursos hídricos en régimen natural en España (1940/41 – 2017/18). Available from. https://www.miteco.gob.es/content/dam/miteco/es/agua/temas/evaluacion-de-los-recursos-hidricos/cedex-informeerh2019_tcm30-518171.pdf
Centro de estudios y experimentación de obras públicas (CEDEX) (2021) Anuario de Aforos. Centro de Estudios Hidrográficos. Dataset (accessed 15 December 2023). Available from: https://ceh.cedex.es/anuarioaforos/default.asp
Chawanda CJ, Arnold J, Thiery W, van Griensven A (2020) Mass balance calibration and reservoir representations for large-scale hydrological impact studies using SWAT+. Clim Change 163:1307–1327
Confederación Hidrográfica del Tajo (CHT) (2023) Plan Hidrológico de la parte española de la Demarcación Hidrográfica del Tajo 2023–2027. Available from: https://www.miteco.gob.es/es/agua/temas/planificacion-hidrologica/planificacion-hidrologica/planes-cuenca.html
Dash SS, Sahoo B, Raghuwanshi NS (2022) An adaptive multi-objective reservoir operation scheme for improved supply-demand management. J Hydrol 615:128718
David O, Geter F, Ugraskan T, Fuchs D, Čerkasova N (2024) Github repository SWAT: Soil & Water Assessment Tool. Available from: https://github.com/swat-model
Delavar M, Morid S, Morid R, Farokhnia A, Babaeian F, Srinivasan R, Karimi P (2020) Basin-wide water accounting based on modified SWAT model and WA+ framework for better policy making. J Hydrol 585:124762
Doulgeris C, Georgiou P, Papadimos D, Papamichail D (2015) Water allocation under deficit irrigation using MIKE BASIN model for the mitigation of climate change. Irrig Sci 33:469–482
European Environment Agency (EEA). Corine Land Cover (CLC) (2012) Dataset. Available from: https://land.copernicus.eu/en/products/corine-land-cover/clc-2012. Accessed 10 Apr 2022
FAO, IIASA, ISRIC, ISSCAS, & JRC (2012) Harmonized World Soil Database (HWSD) (Version 1.2). FAO, Rome, Italy and IIASA, Laxenburg, Austria. Dataset. Available from: https://www.fao.org/land-water/databases-and-software/hwsd/es/. Accessed 10 Apr 2022
Fu B, Merritt WS, Croke BF, Weber TR, Jakeman AJ (2019) A review of catchment-scale water quality and erosion models and a synthesis of future prospects. Environ Model Softw 114:75–97
Gaiser T, Printz A, von Raumer HS, Götzinger J, Dukhovny VA, Barthel R, Sorokin A, Tuchin A, Kiourtsidis C, Ganoulis I, Stahr K (2008) Development of a regional model for integrated management of water resources at the basin scale. Phys Chem the Earth Parts a/b/c 33(1–2):175–182
Gassman PW, Sadeghi AM, Srinivasan R (2014) Applications of the SWAT model special section: overview and insights. J Environ Qual 43(1):1–8
Grill G, Lehner B, Lumsdon AE, MacDonald GK, Zarfl C, Liermann CR (2015) An index-based framework for assessing patterns and trends in river fragmentation and flow regulation by global dams at multiple scales. Environ Res Lett 10(1):015001
Gupta HV, Kling H, Yilmaz KK, Martinez GF (2009) Decomposition of the mean squared error and NSE performance criteria: Implications for improving hydrological modelling. J Hydrol 377(1–2):80–91
Haddeland I, Heinke J, Biemans H, Eisner S, Flörke M, Hanasaki N, Konzmann M, Ludwig F, Masaki Y, Schewe J, Stacke T, Tessler ZD, Wasa Y, Wisser D (2014) Global water resources affected by human interventions and climate change. Proc Natl Acad Sci 111(9):3251–3256
Iberdrola (2022) Declaración ambiental: Central de Ciclo Combinado de Aceca (2021). Available from: https://www.iberdrola.com/documents/20125/41083/EMAS_CC_Aceca.pdf
Instituto Geológico y Minero Español (1972–2003) Mapa Geológico de España E. 1:50.000. Madrid. Servicio de Publicaciones. Available from: https://info.igme.es/cartografiadigital/geologica/Magna50.aspx
Instituto Nacional de Estadística (INE) (2015) Datos de población de España. Available from: https://www.ine.es
Jordan S, Quinn J, Zaniolo M, Giuliani M, Castelletti A (2022) Advancing reservoir operations modelling in SWAT to reduce socio-ecological tradeoffs. Environ Model Softw 157:105527
Kim J, Lee J, Park J, Kim S, Kim S (2021) Improvement of downstream flow by modifying SWAT reservoir operation considering irrigation water and environmental flow from agricultural reservoirs in South Korea. Water 13(18):2543
Kirchner JW (2006) Getting the right answers for the right reasons: Linking measurements, analyses, and models to advance the science of hydrology. Water Resour Res 42(3)
Koch H, Grünewald U (2009) A comparison of modelling systems for the development and revision of water resources management plans. Water Resour Manag 23:1403–1422
Kolokytha E, Malamataris D (2020) Integrated water management approach for adaptation to climate change in highly water stressed basins. Water Resour Manage 34(3):1173–1197
Liu X, Yang M, Meng X, Wen F, Sun G (2019) Assessing the impact of reservoir parameters on runoff in the Yalong River Basin using the SWAT Model. Water 11(4):643
Marak JDK, Sarma AK, Bhattacharjya RK (2020) Assessing the impacts of interbasin water transfer reservoir on streamflow. J Hydrol Eng 25(10):05020034. nt.” J Hydrol 583:124556. https://doi.org/10.1016/j.jhydrol.2020.124556
Mikosch N, Becker R, Schelter L, Berger M, Usman M, Finkbeiner M (2020) High resolution water scarcity analysis for cotton cultivation areas in Punjab. Pakistan Ecological Indicators 109:105852
Ministerio de Agricultura, Pesca y Alimentación (MAPA) (2020) Encuesta sobre superficies y rendimientos de cultivos (ESYRCE): Resultados 2020. Centro de Publicaciones. Available from: https://www.mapa.gob.es/es/estadistica/temas/estadisticas-agrarias/agricultura/esyrce/resultados-de-anos-anteriores/
Ministerio de Fomento (2018) Documento Técnico SIOSE 2014. Versión 1. Equipo Técnico Nacional SIOSE. Dirección General del Instituto Geográfico Nacional, Madrid. 16 pp. Dataset. Available from: https://www.siose.es/presentacion. Accessed 10 Apr 2022
Ministerio para la Transición Ecológica y el Reto Demográfico (MITECO). (2022). Censo Nacional de Vertidos. Available from: https://www.miteco.gob.es/es/agua/temas/concesiones-y-autorizaciones/vertidos-de-aguas-residuales/censo-vertidos.html
Moriasi DN, Gitau MW, Pai N, Daggupati P (2015) Hydrologic and water quality models: Performance measures and evaluation criteria. Trans ASABE 58(6):1763–1785
Neitsch SL, Arnold JG, Kiniry JR, Williams JR (2009) Soil and Water Assessment Tool: Theoretical Documentation Version 2009. Available from: https://swat.tamu.edu/media/99192/swat2009-theory.pdf
Phung QA, Thompson AL, Baffaut C, Costello C, John Sadler E (2022) Assessing future water allocation under climate variability and land management change in an agricultural watershed. JAWRA J Amer Water Res Assoc 58(6):1575–1591
Samimi M, Mirchi A, Moriasi D, Ahn S, Alian S, Taghvaeian S, Sheng Z (2020) Modeling arid/semi-arid irrigated agricultural watersheds with SWAT: applications, challenges, and solution strategies. J Hydrol 590:125418
San-Martín E, Larraz B, Gallego MS (2020) When the river does not naturally flow: a case study of unsustainable management in the Tagus River (Spain). Water International 45(3):189–221
Sánchez-Gómez A, Bieger K, Schürz C, Martínez-Pérez S, Rathjens H, Molina-Navarro E (2024a) Hydrovars: an R tool to collect hydrological variables. J Hydroinformatics 26(5):1150–1166
Sánchez-Gómez A, Schürz C, Bieger K, Martínez-Pérez S, Molina-Navarro E (2024b) Using sensitivity analysis and soft calibration of geological regions to improve the representation of hydrological processes in a SWAT+ model. Hydrol Sci J
Sieber J, Purkey D (2007) Water evaluation and planning system—USER GUIDE for WEAP 21. Stockholm Environment Institute, Stockholm. https://www.weap21.org/downloads/weap_user_guide.pdf
Silva-Hidalgo H, Martín-Domínguez IR, Alarcón-Herrera MT, Granados-Olivas A (2009) Mathematical modelling for the integrated management of water resources in hydrological basins. Water Resour Manage 23:721–730
Sofi MS, Bhat SU, Rashid I, Kuniyal JC (2020) The natural flow regime: A master variable for maintaining river ecosystem health. Ecohydrology 13(8):e2247
Tan ML, Gassman PW, Yang X, Haywood J (2020) A review of SWAT applications, performance and future needs for simulation of hydro-climatic extremes. Adv Water Resour 143:103662
Tigabu TB, Visser A, Kadir T, Abudu S, Cameron-Smith P, Dahlke HE (2024) Optimization of the SWAT+ model to adequately predict different segments of a managed streamflow hydrograph. Hydrol Sci J 69(9):1198–1217. https://doi.org/10.1080/02626667.2024.2364714
Wang Z, He Y, Li W, Chen X, Yang P, Bai X (2023) A generalized reservoir module for SWAT applications in watersheds regulated by reservoirs. J Hydrol 616:128770
Woo SY, Kim SJ, Lee JW, Kim SH, Kim YW (2021) Evaluating the impact of interbasin water transfer on water quality in the recipient river basin with SWAT. Sci Total Environ 776:145984
Wu J, Yen H, Arnold JG, Yang YE, Cai X, White MJ, Chinnasamy S, Miao C, Srinivasan R (2020) “Development of Reservoir Operation Functions in SWAT+ for National Environmental Assessments. J Hydrol 583:124556
Xie H, You L, Wielgosz B, Ringler C (2014) Estimating the potential for expanding smallholder irrigation in Sub-Saharan Africa. Agric Water Manag 131:183–193
Yimer EA, Bailey RT, Piepers LL, Nossent J, Van Griensven A (2023) Improved representation of groundwater-surface water interactions using SWAT+ gwflow and modifications to the gwflow module. Water 15(18):3249
Zeinalie M, Bozorg-Haddad O, & Chaplot B (2021) Modeling and simulation in water resources management. In: Essential Tools for Water Resources Analysis, Planning, and Management. Singapore: Springer Singapore, pp 1–31
Zhang N, He HM, Zhang SF, Jiang XH, Xia ZQ, Huang F (2012) Influence of reservoir operation in the upper reaches of the Yangtze River (China) on the inflow and outflow regime of the TGR-based on the improved SWAT model. Water Resour Manage 26:691–705
Zhang Z, Wang Q, Guan Q, Xiao X, Mi J, Lv S (2023) Research on the optimal allocation of agricultural water and soil resources in the Heihe River Basin based on SWAT and intelligent optimization. Agric Water Manag 279:108177
Acknowledgements
Alejandro Sánchez-Gómez (ASG) received support from the University of Alcalá (UAH) PhD Fellowships Programme. This work was supported by the Department of Economy, Business and Employment of Castilla-La Mancha (CEAGU, 2023/00029/001), the Department of Education, Culture and Sports of Castilla-La Mancha, and the European Union (IMPACT Project, SBPLY/21/180225/000092). ASG is grateful to the ACMA research group of the University of Alcalá for funding the research stay that made this work possible and to the Grassland Soil and Water Research Laboratory (USDA-ARS) and the Blackland Research & Extension Center (Texas A&M) for their hospitality and valuable collaboration.
Funding
Open Access funding provided thanks to the CRUE-CSIC agreement with Springer Nature. Alejandro Sánchez-Gómez received support from the University of Alcalá (UAH) PhD Fellowships Programme (2020). This work was supported by the Department of Economy, Business and Employment of Castilla-La Mancha (CEAGU, 2023/00029/001), the Department of Education, Culture and Sports of Castilla-La Mancha, and the European Union (IMPACT Project, SBPLY/21/180225/000092).
Author information
Authors and Affiliations
Contributions
ASG: Conceptualization, Investigation, Methodology, Data curation, Formal analysis, Visualization, Software, Writing – original draft. JGA: Conceptualization, Methodology, Formal analysis, Software, Writing – review & editing. KB: Conceptualization, Methodology, Formal analysis, Supervision, Writing – review & editing. NC: Methodology, Formal analysis, Writing – review & editing. NS: Methodology, Software. SMP: Funding acquisition, Writing – review & editing. EMN: Conceptualization, Methodology, Formal analysis, Supervision, Writing – review & editing.
Corresponding author
Ethics declarations
Ethical Approval
The authors confirm that this article is original research and did not involve Human Participants and/or Animal.
Consent to Participate and Publish
All authors confirmed their participation, approved submitting the final manuscript, and consent the publication of this manuscript by Water Resources Management journal.
Competing Interests
The authors have no relevant financial or non-financial interests to disclose.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix A: Assessment of Water Resources Management
The Tagus Hydrographic Confederation (CHT) is the competent authority in the management of the water resources of the Spanish part of the Tagus River Basin, in coordination with the Portuguese authorities (APA) following the Albufeira Convention, and with the governments of the different Spanish autonomous communities and provinces. Since the Upper Tagus River Basin (UTRB) is entirely in Spanish territory, management of its water resources is the sole responsibility of the CHT. The management is carried out at exploitation system scale, which are regions of the basin that generally match the basins of the main tributaries of the Tagus River and where water resources are enough to supply the demand within. To model the management of the water resources in the UTRB, different datasets and documents were analysed.
1.1 A.1. Human and Industrial Demands
The UTRB is a highly populated region with around 7.5 million inhabitants, most of whom live in the City of Madrid and the surrounding areas. Most of the demand is met by surface water resources, as groundwater resources are reserved for situations of water scarcity (CHT 2023). The Tagus River Basin Management Plan (2022–2027) (TRBMP, CHT 2023) includes a chapter with the human and industrial demands for each of the urban areas in the basin. This dataset was analysed to determine the demands located in the UTRB and in each exploitation system. Population in the UTRB and in each of the exploitation system was calculated using a dataset obtained from the National Statistic Institute (INE 2015), which contains the population for each municipality in Spain. Table 4 summarizes this information.
An annual demand of around 650 hm3 for human and industrial consumption was estimated, most of which (72%) was located in the Jarama-Guadarrama exploitation system, where the City of Madrid is located and 77% of the UTRB population lives. Industrial demand represents around 7% of the total, ranging from 3% to 19% depending on the exploitation system. Despite the efficiency in the water management carried out in the UTRB, water losses represent around 9% of the total demand. This rate is higher in the exploitation systems located in rural and less populated areas, while the relative losses are lowest in the Jarama-Guadarrama exploitation system.
Two of the three relevant power plants in the Tagus River basin are located in the UTRB: The Trillo Nuclear Plant and the Aceca Gas-fired Power Plant. These facilities, as well as the Almaraz Nuclear plant located 100 kms downstream of the outlet of the modelled basin, withdraw water from the Tagus River for cooling purposes. These demands are not included in the table above and were thus extracted from the Environmental Impact Reports of the power plants (CNAT 2020; Iberdrola 2022). The Trillo and Aceca power plants, despite withdrawing higher volumes, have a consumptive use of 17 hm3 and less than 1 hm3, respectively, returning the remainder to the river.
1.2 A.2. Agricultural Demands
Agriculture is a relevant economic activity in the UTRB, and even though irrigated crops are a minority (around 3% of the UTRB and 5% of the agricultural area), irrigation represents an important demand for water. The TRBMP quantified the agricultural demands for the main agriculture communities that use surface water resources and quantified the demands met from groundwater sources at exploitation system scale. Demands met using surface resources were summarized at exploitation system scale and are presented with the groundwater demands in Table 5.
An annual net demand of 422 hm3 and a raw demand around 757 hm3were calculated for the UTRB. The difference is due to water loss and to the most common irrigation system, which uses canals that divert part of the streamflow of a river to agricultural areas, where the required amount of water is extracted and the rest is returned to the main river. The intra-annual variability of the demand is noticeable: 70% of the demand occurs in the months of June, July, and August, while demand is almost zero from November to March (CHT 2023). The demand is mainly met by surface water resources, with only around 18% of the net demand met by groundwater resources. An average annual irrigation amount (calculated with the net demand) of 415 mm is applied, which in combination with rainfall should be enough for the crops growing in the basin. This amount has the highest value in the Tagus Left exploitation system, where 30% of the irrigated area of the UTRB is located and climate conditions are drier.
Considering agricultural, human, and industrial demands, a total demand of 1,300 hm3 was calculated in the UTRB. However, other demands were not calculated in this case, such as some non-consumptive human demands (non-consumptive use of power plants, hydropower generation, water for recreational purposes, etc.), environmental demands, or consumptive demands outside the modelled basin (Tagus-Segura Water Transfer- hereafter TSWT- demands, Portuguese demands, etc.). Thus, a higher water resources availability than the estimated demand should be guaranteed to ensure that all the demands in the basin can be met.
1.3 A.3. Reservoirs
To meet the demands for human, industrial, and agricultural purposes, which are mostly met using surface water resources, an extensive infrastructure of reservoirs regulates almost all the tributaries of the Tagus River. Around 65 reservoirs are located within the UTRB, with a total capacity of 4,435 hm3, 55% of which is the Entrepeñas and Buendía reservoir system. Since some of these reservoirs are small, and simulating all of them would be very complex, only reservoirs with a capacity of over 15 hm3 and hydropower reservoirs with a capacity larger than 2 hm3 were implemented in the model. For this purpose, a shapefile layer was obtained (CHT 2023), filtered, and used as input during model setup. The main purpose of the different reservoirs was identified and the total capacity included in the dataset. In addition to the reservoirs included because of the criteria mentioned above, the Cazalegas reservoir (irrigation purpose, 6 hm3) was introduced, since it is the starting point of an irrigation canal that diverts water outside the UTRB.
Reservoir management data (daily storage and release) were obtained (CEDEX 2021) and analysed for the period 2000–2019, since most of the reservoirs (26 of 31) had complete records for this time period, and earlier data might not be representative of the current and future conditions. Five of the reservoirs did not have complete data for this period: there are no records available for La Tosca reservoir, Finisterre and Guajaraz reservoirs do not have records before 2018 and 2019, respectively, data for the 2014–2015 hydrological year (October to September) is missing for La Tajera reservoir, and El Atance reservoir lacks records before 2007.
The release and storage time series were analysed for the reservoirs with complete data and for La Tajera and El Atance reservoirs, as the available records were sufficient to observe the main trends in their management. For each reservoir, different statistics were calculated and plotted: average values, standard deviations, and maximum and minimum values at annual, monthly and daily scale, and the distribution of the releases and storage data was analysed for each month. In this way, the variability among and within years was assessed. The main purpose of this analysis was to identify possible similarities in the trends for those reservoirs with similar purposes to facilitate the development of release tables (Fig. 8).
After analysing the reservoirs, similarities were found to not depend strictly on the main purpose of the reservoirs, and a manual clustering of reservoirs regarding their storage and release patterns was performed. Four different groups of reservoirs were defined: Group 1, for reservoirs in which a high storage level is maintained year-round, since they are located downstream of larger reservoirs and therefore their management is dependent the management of the reservoirs above; Group 2, for reservoirs that release more water in wet periods, while release magnitude and variation in summer is low; Group 3, for reservoirs that release higher volumes during summer, mainly due to irrigation demands, and increase their storage volumes during the wet season, when release is low; and Group 4, which contains three reservoirs with storage and release patterns that did not match any of the other groups, since the median release values were higher in the summer, while the mean values were not, and since their releases have a high variation during the wet period. An additional group (Group 5) was defined for reservoirs that lack observed data. This process was performed to find the best way of simulating the reservoir storage and outflow.
1.4 A.4. Water Transfers
Several water transfers are in operation in the Tagus River basin to supply different demands inside and outside the basin. The significant amounts of water that are extracted from reservoirs and rivers and released in other places necessitates simulation of this management, if a realistic simulation of reservoir storage and outflows and streamflow is to be achieved, especially in areas of the basin that are located downstream of major water transfers. Among these water transfers, the TSWT stands out as the biggest hydraulic infrastructure in the country, having transferred an average annual volume of 330 hm3 from the headwaters of the Tagus River basin to the southeast of Spain since its initial operation in 1981. Its purpose is supplying water to 132,000 hectares of irrigated crops and water for human consumption to around 3 million people in the southeast of Spain, so it is of great socioeconomic relevance. This water transfer is a subject of debate, since the volume of water transferred, even if it is on average lower than the maximum authorized annual volume (650 hm3), is larger than the volume that keeps flowing into the Tagus River, with severe environmental impacts in its middle and lower reaches (San-Martín et al. 2020).
The transferred streamflow recorded in the canals located within the basin were obtained (CEDEX 2021) and analysed, following a similar procedure as the assessment of the reservoir storage and outflows. The purpose of these canals can be categorized in three groups: those used to divert water from reservoirs to water purification plants (WPPs) or irrigation canals, those that transfer water from one reservoir to another within the basin, and those that extract water from the basin. The volumes transferred from 2000 to 2019 were analysed to determine their magnitude and variability. The CEDEX yearly report on gauging stations (CEDEX 2021) includes a file with the daily records for the canals. Of the 40 canals of the dataset in the Tagus River Basin, 34 are located in the UTRB. However, only active canals that may be relevant for the SWAT + modelling (i.e., those with an annual transfer volume of over 3 hm3) were evaluated. Irrigation canals were not considered, since they return water near the withdrawal locations, except for the Alberche canal, which returns water at a location outside the modelled basin. The daily volumes observed in the Castrejón canal, which extracts water from the Castrejón reservoir for hydroelectric purpose and returns it a few kilometres downstream, were added to the volume released from the reservoir, since the amount of water transferred by the canal is larger than the amount released by the main dam. It should be noted that some canals are not included in this dataset (e.g., two canals that extract water for human consumption from Picadas and Almoguera reservoirs). The data were requested from the authorities, but only data for the Picadas canal was available. Due to the lack of data for Almoguera canal, its transferred volume was estimated at 30 hm3 per year.
For the selected canals with available data, several statistics and plots were analysed to determine the annual average water transfers and the yearly and monthly variability. An average annual volume of 1,155 hm3 is transferred by the selected canals, of which 437 hm3 are diverted outside the modelled basin by the TSWT and the Alberche irrigation canal. Table 6 summarizes the relevant information about the canals used in this work, including their origin, destination, purpose, and average annual transferred volume.
1.5 A.5. Water Returns
An extensive network of Wastewater Treatment Plants (WWTPs) treats the wastewater from human and industrial facilities and returns it to the environment. The national authorized discharges census (NADC, MITECO 2022) contains all the authorized discharges of the different Hydrographic demarcations (management unity that match with the main river basins), with more than 33,500 points, and indicates the type (urban or industrial), characteristics (size of population, presence of risk pollutants, purpose, etc.), and the maximum authorized amount of discharge (m3 per year). This dataset was filtered and analysed to estimate the maximum amount of wastewater released in the UTRB. For this purpose, the discharges located within the modelled basin were extracted, and the maximum amount of water discharged in each exploitation system was calculated. Table 7 summarizes the type of discharge points and the volume of discharge at exploitation system scale and for the entire UTRB.
More than 1,200 discharge points are located in the modelled area, most of them (92%) of urban type. However, industrial discharges make up around 23% of the total discharge, mostly contributed by discharge points from five fish farms (154 hm3) and 12 power plants (42 hm3). This results in the authorized discharged volumes in some exploitation systems (Tagus Headwaters and Tagus Left) being higher than expected based on their population. The maximum authorized discharge in the basin, which is included in the dataset, is higher than the actual demand. While in some exploitation systems the industrial discharge is more than 95% of the total, it is very low in others. Excluding the discharges from fish farms and power plants, there is a total discharge of 685 hm3, 80% of which is localized in the Jarama-Guadarrama exploitation system. Figure 9 shows the location, characteristics, and volume of the authorized discharges in the UTRB and an aggregation of these discharges performed to introduce them into the model (see Sect. 2.3.2.).
Appendix B: Water Allocation Module and Reservoir Decision Tables
This appendix provides a detailed explanation of the possibilities when configuring the water allocation module and reservoirs management in SWAT + . While the main text includes a brief overview of these features, the complexity and significance of these topics warrant additional explanations. Understanding the operation and set up of these elements is crucial to reproduce this work in other catchments, but introducing such a level of detail in the main text go against its readability. We highly recommend consulting this appendix, in addition to previous references addressing the decision tables topic (e.g., Arnold et al. 2018, Wu et al. 2020), and the official documentation of SWAT models (Neitsch et al. 2009, USDA-ARS and Texas A&M 2024).
2.1 B.1. Water Allocation Module
The water allocation module is configured using three model input files: water_allocation.wro (water allocation water rights object), flo_con.dtl (flow condition decision table) and lum.dtl (land use management decision table). The first input file is required to activate the module, while the others allow to create decision tables to configure the allocation for water transfers and irrigation, respectively. Figure 10 presents a scheme of the water allocation functioning, explained below.
The water_allocation.wro file allows multiple water allocation tables (see an example in Fig. 11), where source and demand objects are specified. The number of water allocation tables included has to be indicated in line 2 (Fig. 11, A). The first line of a water allocation table is used to assign a name, indicate the number of sources and demands included (Fig. 11, C), and indicate if channel objects are involved (Fig. 11, D). Potential sources for water allocation include objects like channels, reservoirs, and aquifers, as well as infinite sources (unl) that can be configured as needed (Fig. 11). If the source is a channel, only one source can be included in the allocation table, while the same table can be used for different sources if they are not channels. The type of rule to apply (Fig. 11, B) will be used in future versions of the water allocation module to configure demand priorities. Currently, the demands are first come, first serve, i.e., prioritized from top to bottom.
The source numbers should be numbered consecutively in the order they are listed (Fig. 11, E). Next, the type and number of object (as it is defined in the model) (Fig. 11, F), and the minimum water availability required to supply the demand are configured (m3/s for channels, fraction of principal volume for reservoirs, depth of water table from surface in metres for aquifers) (Fig. 11, G). If the water demand exceeds the amount available in the source, no water will be transferred.
Like the source objects, the demand objects are numbered consecutively in the order they are listed (Fig. 11, H). There are different allocation options depending on the type of demand objects (Fig. 11, I and S), which can be divert, muni, or hru, for water diversions, municipal supply, and irrigation, respectively.
For irrigation, hru is entered as the demand object type. In this case, the demand is calculated using an irrigation decision table in the lum.dtl file (which can be found in Fig. 2), the name of which is specified in the WITHDR column (Fig. 10, K). The application amount (mm per application) must be specified in the AMOUNT column of the water allocation table (Fig. 10, U). For each demand object, the number of sources used to supply its demand (Fig. 10, O) and the source number (which is specified in E) (Fig. 11, P) should be indicated. A fraction of the total demand can be specified for each source in the FRAC column (Fig.3, Q). The COMP column can be used to indicate whether another object can compensate if the source object´s available water is insufficient to meet the demand (Fig. 11, R). If more than one source is used, columns SCRC1, FRAC1, and COMP1 should be repeated and configured for each of the sources.
Divert and muni currently have similar functionalities, but this differentiation is needed for future versions of the water allocation module, which will allow to include water treatment (Fig. 11, N) in the muni option. Both options allow to define the volume of water to be transferred in the WITHDR column (Fig. 11, T) using different methods: ave_day configures a daily volume of water to be transferred (m3/day), and recall uses a recall file for water transfer records by entering the file name in the WITHDR column. A third method, decision table, is only available for divert objects and uses a decision table defined in the flo_con file by entering its name in the WITHDR column (Fig. 11, T). If the ave_day option is used, the amount to be diverted should be specified in the AMOUNT column (Fig. 11, U) while if a decision table is used, the amount is specified in the decision table (in m3/s). If the receiving objects are not spatial objects in the SWAT + set-up, their type and number (Fig. 11, V) are arbitrary and the RCV_OB column can be used to enter a user-defined name, which is necessary for the receiving object to be included in the model output files. For water transfers within the catchment, the receiving object should be a spatial object in the model set-up, and its type and number should be specified. Additional options to prioritize the demands and to determine water treatment options (Fig. 11, B, M, N) will be available in future versions of SWAT + .
The flo_con.dtl file contains decision tables to configure the water allocations, and its functioning is similar to other decision table files (e.g., lum.dtl, res_rel.dtl, Arnold et al. 2018). However, some actions were added to control the water transfer volumes:flo_cms to configure the transferred volume in cubic metres per second; min_cms to define a minimum flow in the source and only transfer the excess; all_flow to transfer all the flow of the source; min_frac to transfer a fraction of the source´s flow; and recall, which uses records of transferred volumes that can be at daily, monthly, or yearly time step. More information about these options can be found in the source code (actions.f90 file) (David et al. 2024).
2.2 B.2. Reservoir Configuration
When reservoirs are included in a SWAT + model, some default properties and configurations are assigned. A realistic simulation of reservoirs requires the adjustment of some of these properties and configuring the initial and release conditions.
The hydrology.res file contains key variables, such as the date when the reservoir became operational, its area, volume, and seepage or evaporation parameters. When setting up a model using the SWAT + Editor, the principal volume of the reservoir (pvol) is automatically calculated by multiplying the area of the reservoir polygon by 10, assuming that reservoirs have an average depth of ten metres. The emergency volume (evol) is calculated by increasing pvol by 15%. As this is a generic approach, it is recommended to replace the default volumes, assuming that evol is equal to the maximum capacity of the reservoirs, and that pvol is around 87% of evol (or other percentage that the user might consider appropriate).
The initial conditions (for volume, sediment, and nutrients) of water objects (channels, aquifers, reservoirs) are defined in a file named om_water.ini. Ideally, all parameters that are relevant for a simulation should be set to realistic values. In this manuscript we focus on describing water quantity management, so the only initial condition modified in the example study case was the initial volume. A file named initial.res is used in SWAT + to connect the om_water.ini file to the main reservoir file (reservoir.res), so for each record in om_water.ini, one record needs to be added to initial.res. Each reservoir can then be assigned the appropriate initial conditions using the init column in the reservoir.res file. If reservoir becomes operational during the simulation, zero volume is assumed when it starts operating.
Release decision tables are used to configure reservoir storage and outflows. Functioning and application of decision tables were presented by Arnold et al. (2018) and Wu et al. (2020), but some modifications that are worth mentioning have been made in the code since the publication of those studies. The structure of the release tables remained the same: a decision table has conditions (Fig. 12, blue), which are combined in different alternatives (Fig. 12, orange), and an outcome matrix (Fig. 12, green), which triggers different actions (Fig. 12, yellow). The main condition related to reservoirs is the volume of the reservoir (vol), but other conditions such as month of the year (month) may also be used (Fig. 12, D). Additional details can be specified using the lim_var, lim_op, and lim_const columns, which allow to use different variables (e.g., evol or pvol) and define different thresholds and conditions (e.g., 0.8 of evol) (Table 8, Fig. 12 F, G and H). Operators (> , < , > = , < = , =) can be used to create alternatives using the conditions or to ignore them (-) (Fig. 12, I). For reservoirs, release is the only possible type of action, but there are several different release types (Table 8). In addition, two constant columns and a file pointer (fp) column can be used to specify additional details for the release action (Table 8, Fig. 12 M and N). To clarify the explanations given above, Fig. 12 shows an example of a reservoir release decision table and a workflow chart of its functioning.
The example res_rel.dtl file includes one release table (Fig. 12, A), named ex_rel_table (Fig. 12, B). This release decision table has four condition variables, five alternatives and four different actions (Fig. 12, C). The two first conditions are related to the month of the year (June and August), and the last two to the reservoir volume, pointing one to 95% of the evol and the other to pvol (Fig. 12, D, F, G, H). The lim_var column is used to define which variable should be used to define the condition variable (e.g., evol or pvol for vol variable) (Fig. 12, F), the lim_const column to define the values of the variable to use, and the lim_op column to define an operator if applicable to the lim_var and lim_const (e.g., to calculate a fraction of pvol) (Fig. 12, F, G and H). The object number (Fig. 12, E) can be used to define conditions for a specific reservoir, e.g., to condition the release from one reservoir on the volume of another (if it is 0, the release of a reservoir is conditioned by its own value).
With these conditions, five different alternatives are constructed (Fig. 12, I). If the month is between June and August (both included) and the reservoir volume is below 95% of pvol, the alternative 1 is met, while alternatives 2 and 3 are met for all the other months while vol is below 95% of pvol (Fig. 12, D, F, G, H and I). Alternative 4 and 5 are met regardless of the time of year when the volume of the reservoir exceeds 95% of pvol or the evol, respectively (Fig. 12, D, F, G, H and I). The alternatives configure an outcome matrix with five different outcomes. This matrix (Fig. 12, O), defines which actions occur for the different alternatives (rows are the actions, columns are the alternatives, y is used to trigger an action, n to not trigger it), and triggers four different actions (alternatives 2 and 3 result in the same action) (Fig. 12, O, J, K and L). If an alternative is met and the corresponding outcome is y, its action is triggered (Fig. 12, J and O).
All the defined actions are release (Fig. 12, J), but they use different release types (Fig. 12, L) included in source code. Some of these release actions use the const, const2 or fp (Fig. 12, M and N) to configure the release. Table 8 summarizes the release options that are currently implemented in the source code and their functioning. More details can be found in the source code (res_hydro.f90 file, David et al. 2024). Each action included in the example decision table was given an intuitive name (Fig.12, K): one release for summer months, other for the rest of the year, a higher release when the reservoir is almost filled, and an emergency release when the emergency volume is reached (Fig. 12).
Appendix C: Reservoirs and Release Tables Data
Tables 9 and 10 contain information about the parameterization of reservoirs release tables and the performance in reservoirs inflow, outflow and storage, respectively.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Sánchez-Gómez, A., Arnold, J.G., Bieger, K. et al. Modelling Water Management using SWAT+ : Application of Reservoirs Release Tables and the New Water Allocation Module in a Highly Managed River Basin. Water Resour Manage 39, 2357–2399 (2025). https://doi.org/10.1007/s11269-024-04071-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11269-024-04071-9












