1 Introduction

The Iberian Pyrite Belt has been one of the most mined areas since the beginning of civilisation due to the interest aroused by its massive sulphide deposits. With the structural crisis of pyrite as a raw material for producing sulphuric acid, and the decline of the laws and prices of basic metals, among other reasons of financial and environmental nature, a large number of mines were closed [13]. Without environmental legislation forcing mining companies to develop a restoration plan that would integrate the space in question into the natural environment, the mines ceased operations, leaving millions of tons of abandoned waste and unrestored mining activities that are currently potential sources of pollution of the water network running through these areas due to acid mine drainage (AMD) processes.

The incorporation of acid drainage from mining operations into river networks is the main factor responsible for modifying the physico-chemical properties of rivers, increasing the acidity of their waters, their heavy metal and sulphate content, and the concentration of metals in their sediments, until reaching extreme values [13, 21, 33].

Pollution from abandoned mines is one of the most serious and widespread causes of surface water degradation [35], which is difficult to solve due to the high economic costs required for remedial action (Commonwealth of Pennsylvania [6] in Grande et al. [13]).

In the area studied, the occurrence of AMD phenomena in rivers that flow into reservoirs geared towards urban supply means that waters arrive with low pH and high metal and sulphate load, as in the case of the Meca River that collects its waters from the Tharsis Mining Complex (Fig. 1), creating a unique scenario extraordinarily affected by acidity, sulphates and metal load [9, 11, 16, 18, 28,29,30].

Fig. 1
figure 1

Location map

The Tharsis Mining Complex is responsible for the maximum levels of AMD pollution recorded in the Odiel basin [31]. The total area of tailings from this mining complex is 79.81 ha [25], which result from the superposition of various residues left by mining activities over a period of more than 2000 years, and characterised by the total non-existence of restoration and consequently by being a constant source of acid leachate that pollutes the waters of the Meca River, and later the El Sancho reservoir, a scenario widely studied by authors such as Cerón et al. [5], Grande et al. [17], Santisteban et al. [28, 30] and Sarmiento [31].

1.1 Site description

Tharsis is one of the historical mining areas from the Iberian Pyrite Belt (IPB), located in SW Spain (Fig. 1). The Iberian Pyrite Belt (IPB) extends from north of Seville—in Spain—to southern of Portugal, constituting a region known for its large massive sulphide ore deposits [26].

The IPB represents a paradigmatic metallogenic region, characterised by its antiquity (more than 5000 years), economic relevance (more than 1700 Mt of sulphide ore) and environmental contamination related to the mining legacy (one of the largest accumulations of pyritic wastes in the World) (e.g. Davis et al. [8]; Sanchez-Espana et al. [27]).

Specifically, the Tharsis mining district comprises one of the largest ore bodies in the Iberian Pyrite Belt, with more than 100 Mt of estimated resources [7]. Presently, the mines are abandoned, but the environmental legacy continues.

The main mineralisation occurring in the Tharsis Mining Complex is sulphides represented by massive pyrite (more than 90% of the sulphide mass), followed by chalcopyrite, sphalerite and galena. Textural characteristics of the sulphides are variable, but most of the massive sulphides are monotonous fine-grained pyrite, often framboidal and colloform. The grains are usually fractured and brecciated [32], which promote reactivity and enhance dissolution. Gangue includes abundant quartz and aluminium silicates (mainly chlorite), with minor amounts of carbonates.

1.2 Geological framework

The Meca River, which receives the contaminated water by the Tharsis Mining Complex, is located in the IPB, in the southwest of Spain (Fig. 1). It runs from Seville in southern Spain to the west coast of Portugal and contains numerous Palaeozoic massif sulphide deposits (mainly Cu, Pb and Zn), the largest in the world according to Sáez et al. [26].

The IPB reveals a highly complex lithology with many different types of rock that vary greatly in their spatial and temporal distribution. Essentially, there are three major units from up unit to the basal unit: the Culm group, the Volcano-Sedimentary Complex (VSC) and the Devonian prevolcanic sediments of the Phyllite–Quartzite Group (PQ group).

The Culm group comprises the sedimentary and post-volcanic rocks of the IPB [22]. Petrographic studies reveal that fragments of sedimentary and volcanic origin are the major lithic components of the Culm turbidite sediment.

The VSC is the most metallogenically important unit. It consists of a heterogeneous sedimentary series with interbedded magmatic rocks of varying nature and composition. Among sedimentary rocks, those of detrital and volcanoclastic origin predominate. The presence of common chemical sedimentary rocks may also be observed, as they are massive sulphides, manganese jaspers and some discontinuous levels of fossiliferous limestones [26].

The PQ group has a minimum thickness of 2000 m, and its lithostratigraphic features are the same throughout the whole IPB, except near the top where some differentiation is observed in various places. Most of the stratigraphic column units consist of dark shales (grey to black) with fine sandstone layers [23].

2 Objectives

The maximum contribution of pollutants from the dump to the river courses takes place during the rainy torrential period [19]. Once the hydrochemistry between the sampling points has been studied, the objective is to characterise the processes which govern the precipitation–dissolution phenomena along the analysed river by applying graphic statistical tools, such as autocorrelation functions, cross-correlation functions and time evolution graphics, as well as computerised geochemical modelling tools.

3 Materials and methods

3.1 Sampling and analysis

A spatial and time network of sampling points was created and measured with two monitoring stations: the first (MECA A) is located at the end of the last tailing that discharges water into the Meca River, and the second (MECA B) is located downstream of the former at a distance of 14,165 m (Fig. 1). Point B is located immediately above the flood limit of the Sancho reservoir (receiving environment) (Fig. 1). Sampling days were scheduled for a date in which precipitation intensity would be very high, so observations of the system would be undertaken under high flow conditions. Precipitation data were provided by the National Meteorological Institute of Spain and correspond to the Tharsis Mining Complex.

The in situ sampling of water and measurements was addressed simultaneously at both points by two teams over 24 h, from 4.00 pm on 11 May 2016 until 4.00 pm the next day.

The pH, the most representative physico-chemical parameter that defines the level of AMD pollution in mining watercourses, was measured. The equipment used was a CRISON MM40. Before use, electrodes were calibrated and tested for accuracy, according to the manufacturer’s instructions.

Two samples were taken in 100-mL polyethylene containers from each site. A sample for trace metals was acidified with HNO3 65% Merck Suprapur to prevent metal precipitation. The other sample was kept un-acidulated for the subsequent sulphate analysis. After collection, samples were immediately refrigerated, placed in the dark and stored at 4 °C until analysis.

Sulphate was measured by photometry, using a MACHERY-NAGEL PF-11 photometer. Metal and As concentrations were determined using inductively coupled plasma optical emission spectrometry (ICP-OES) and inductively coupled plasma mass spectrometry (ICP-MS).

All reagents used were of analytical grade or higher, from Merck or Panreac. AA standard solutions certified by Panreac were used. The ultrapure water used was produced with Milli-Q, a water purification system.

International certified reference materials were analysed at the beginning and end of each batch of samples. Internal control standards were analysed every ten samples, and a duplicate was run for every ten samples. Reference standards were within 10% of certified values. The precision of all analyses was always within 5%.

3.2 Statistical methods

The data obtained underwent initial graphic processing and subsequent statistical processing using Statgraphics Centurion XVII software.

Time series analyse the evolution throughout time of a given magnitude. In this case, the considered parameters are precipitation and variations induced by it in the water chemical composition to determine possible relationships between both of them.

Autocorrelation function corresponds to the values for an ‘x’ variable at given times with those corresponding to an ‘x’ at previous times in order to know the system inertia. This function measures the existing correlation between the values given by the variable for a ‘t’ instant and the ‘t + k’ instant, where ‘k’ is the delay or time passed between one observation and the following [4].

Cross-correlation function estimates the existing correlation between a time series at a ‘t’ time and a second series at a ‘t + k’ instant as the function of delay or differential time ‘k’.

3.3 Geochemical modelling

For the geochemical modelling of the data obtained, the computer program PHREEQC (version 2.7, [24]) was used, which the parameters pH, Eh, T and OD were determined in the field and the concentrations of the major and trace elements analysed in the laboratory. Based on this information and using the known thermodynamic reactions and data (such as ΔG, ΔH or Ks), included in the program database, PHREEQC provides geochemical information on saturation indices of mineral phases. These indices give information about the degree of supersaturation, equilibrium or subsaturation of the different mineral phases in the solution. The saturation indices provided by the program indicate supersaturation (tendency to precipitate) if positive (SI > 0) or subsaturation (tendency to dissolve) if negative (SI < 0).

The database used for this study was WATEQ4F, which is frequently used in acid mine waters [1].

4 Results and discussion

Time evolution graphs of sampling points A and B were made for the analysed metals by entering the pH variable and the precipitation in this sampling time to provide a more thorough study of them (Figs. 2 and 3). It can be seen how both points report typical characteristics of AMD media, with significantly lower values corresponding to impact indicators at point B than at point A. Note that for a better visualisation of the time evolution of the variables within the same chart, their values appear adjusted to exact multiples.

Fig. 2
figure 2

Time evolution graph for sampling point A

Fig. 3
figure 3

Time evolution graph for sample point B

At point A, there is a decrease in the concentration of the elements with a small inflection at around 9.00 pm in response to the precipitation that fell in the previous hours, with As standing out as having the greatest decrease. On the whole, in the period between 9.00 pm on the first day of sampling and 12.00 pm on the second day of sampling, all elements gradually increased their values, with small inflections observed at 7.00 pm for As and Zn. In response to the precipitation which fell at 12.00 pm on the second day of sampling, a sharp drop in all the elements analysed was observed 1 h later.

At point B, a shorter response time to the precipitation can be observed, with greater sensitivity to variations. Particularly noteworthy are the major peaks of inflection observed for Fe and As at around 2.00 am and at 3.00 pm on the second day of sampling.

These observed variations in the concentration of the parameters analysed at both sampling points may be due to the fact that water is collected from the tailings at sampling point A, with a high residence time in the interior, while surface runoff waters are collected at point B, with immediate response to precipitation.

Special mention should be made of the pH variable, which at point A shows an almost flat evolution over time, while at point B it shows variations of up to 2 pH units.

We can consider that at point A the waters are not very evolved from a hydrochemical point of view. All the variables offer a characteristic response in AMD media caused by the dilution induced by the rainfall producing a temporary decrease in the concentration of the pollutant load in relation to the peaks of rain. These variations are more visible at point A than at point B.

The statistical summary (Table 1) shows for the rain variable a maximum of 4.8 corresponding to a rainfall of 48 L/m2 in 1 h, exactly at the beginning of the monitoring period. This rainfall is extraordinarily high for the region under study and accounts for almost one twelfth of the total rainfall for a normal hydrological year, which hovers around 600 mm/year.

Table 1 Statistical summary for sample points A and B

The pH values are notably lower at point A than at point B, with the average value at point B doubling the value at point A, where they reach minimum values of 1.9 and maximums of less than 2.6. Meanwhile, the maximum at point A reaches 5.68, while the minimum does not fall below 3.6. The kurtosis also almost doubles its value at A with respect to B.

It can be observed that all the elements analysed at point A, with the exception of Na, have higher average values than at point B.

S and Fe stand out for their high concentrations, with maximums of 6362.89 mg/L and 3202 mg/L, respectively. Al (838.61 mg/L) and Mg (854.186 mg/L) also stand out for their high values, as do Zn and Cu, which have maximums of 317.59 mg/L and 117.30 mg/L, respectively. The rest of the analysed elements present values of under 100 mg/L.

The lowest values observed are Cu, Mg and Mn, with minimums lower than 1 mg/L.

The autocorrelation functions (ACF) of the analysed elements (Figs. 4 and 5) show that for all cases, point A presents higher values of autocorrelation than point B does, with correlation maximums of 0.8, except for S, Na and Zn, which show maximums around 0.7. All the elements analysed have a memory of less than 2 h. However, at point B no significant autocorrelations are observed for any element.

Fig. 4
figure 4

Autocorrelations for the variables under study at sampling point A

Fig. 5
figure 5

Autocorrelations for the variables under study at sampling point B

The cross-correlation functions (CCF) were determined by taking the value of each variable at point A as the input and the value of the same variable at point B as the output (Fig. 6). These functions show discrete correlation coefficients for the elements analysed at both sampling points. Na and Fe present the highest correlation coefficients, with values around 0.6 and 0.5, respectively, and in both cases a lag of less than 3 h. The other elements present minor and insignificant correlations, with S, Zn, Mg and Mn having values of around 0.3 and a memory of under 3 h in all cases, due to the sensitivity of the environment to the rain stimulus.

Fig. 6
figure 6

Cross-correlations for the variables under study in sampling points A and B

The CCF and ACF made it possible to determine the ‘system memory’, with it being set at less than 3 h. This response time against external stimuli, such as rain in this case, already observed in the spatial evolution graphs, was contrasted by the autocorrelation and cross-correlation functions. Theses functions applied to the series studied show the value for correlations between each variable on 1 day and the same variable on the previous days. Theses tools have been widely used for hydrochemical characterisation [10, 12, 14], which allows a numerical estimation of the resistance of a mass of water, to a change in its physico-chemical characteristic, to an external stimulus [15]. In this sense, the present results highlight the resistance to physical–chemical changes of water until 3 days after the external stimuli act.

The mineral saturation indices were calculated to determine the possible mineral species which could theoretically be precipitated from the waters under study, in the samples taken at both sampling points this was done, before and after the torrential rainfall in the 3-h interval, thereby matching the previously determined response time of the system. These indices allowed us to infer the possible secondary mineral phases which would precipitate from these acid waters. The precipitation of a mineral from a solution may be estimated by comparing the saturation index, so if this index is positive (SI > 0), mineral precipitation could occur.

The results of the calculations show that the acid drainage is totally sub-saturated (SI < 0) before the rainfall at both sampling points, while after the rainfall, the downstream sampling point (point B) is oversaturated (SI > 0) with respect to magnetite, haematite and goethite. Meanwhile, other phases, such as jarosite, are sub-saturated (SI < 0).

According to theoretical stability [34], jarosite is formed solely in acidic and oxidising media under conditions of high supersaturation, which may explain the absence of jarosite precipitation in our study medium. In addition, the presence of high sulphate concentrations also means that jarosite does not precipitate and remains dissolved [2], as is our case.

The source of the possible iron oxide precipitation may be due to the oxidation and hydrolysis of the Fe2+ released by the pyrite dissolving, which can occur at times of greater water dilution [2], as is the case of the scenario under study.

The minerals that are most commonly formed from acid mine drainage media are ferrihydrite, jarosite and schwertmannite [3]. The precipitation of one or another compound depends on the availability of ions, but also on pH values. However, these compounds are metastable and may undergo hydrolysis processes leading to the formation of goethite or haematite, releasing part of the Fe, sulphate and As retained in the other Fe compounds [20]. This fact may justify the possible theoretical precipitation of iron oxides determined in this study.

5 Conclusions

The graphic statistical treatment allowed us to characterise two clearly different scenarios in response to the degree of evolution experienced by the waters between the sampling points.

By means of the autocorrelation functions, we can explain how the phenomenon of ‘hydrochemical inertia’ for this scenario is much greater at point A than at point B due to the proximity to the source focus, in addition to the shortage of other chemo-modifying stimuli at this point.

The compositional differences between both points are fundamentally due to two phenomena: the first is a consequence of the proximity to the pollutant source, where the waters have not yet evolved, while the second is due to the development of hydrolysis processes in areas further away from the source focus. These hydrolysis processes have been verified through the study of the saturation indices which have shown how the possible mineral species that could precipitate from these already mature waters are coherent with the hydrolysis processes described in the literature.