Introduction

Freshwater resources have been dramatically decreasing in recent years and also in the perspective of the coming years (Cominelli et al. 2009). On the other hand, groundwater is imposed to get salty which is not directly potable (Song et al. 2016). This is to the extent that in many parts of the world, water available to use is salty and many people across the world are deprived of having access to freshwater resources (Jury and Vaux 2007; Pantelides 2013; Song et al. 2016). Among the various processes of water sweetening, membrane operations such as reverse osmosis (RO) and nanofiltration (NF) are more popular for a variety of reasons (Nicolaisen 2003; Galanakis et al. 2012). Nanofiltration is one of the significant applications of nanotechnology that allows nanoscale particles to be separated from the water and produce refined water in bulk. In this method, the existing membrane separates the two homogeneous phases, and by preventing the passage of impurities, it selectively purifies the water (Mayer et al. 2010; Gehrke et al. 2015; Emamjomeh et al. 2018). The separation mechanism in the nanofilter generally involves the size of the molecules as well as the electrical response between the surface of the membrane and the ions in the feed (Song et al. 2016).

Nanofiltration removes a number of healthy elements from water, in addition to the harmful elements. The removal of these elements, such as calcium (Ca2+) and magnesium (Mg2+), can actually make water unhealthy. On the other hand, the mentioned elements and other multivalent cations cause water hardness. Having too soft water is problematic too; in addition, soft water on the other hand is corrosive. This lowers the water quality; consequently, the quality requirements at the consumer’s end might not be met anymore (Gray 2008; Mohammadi et al. 2018; Honarbakhsh 2019). World Health Organization (WHO) suggested that the permissible range of sodium, magnesium, potassium, calcium, sulfate, chloride and nitrate contents in drinking water is about 200 mg/L, 50 mg/L, 12 mg/L, 75 mg/L, 250 mg/L, 300 mg/L and 5 mg/L, respectively (WHO 2011). Given that fifty percent of the groundwater and seventy-eight percent of the river water in urban areas is non-drinkable, applications of this technology for water treatment has gained a lot of attention. Research in China has shown that with the use of water from nanofilters for a long time, the prevalence of cardiovascular and cancerous diseases has been reduced by forty and two percent, respectively (Wimalawansa 2013; Najafpoor et al. 2014; Honarbakhsh 2019). RO filters remove all salts dissolved in water, while NF filters, or nanofilters, create a selective mode of absorption of materials, giving us the right to choose the desired quality of water (Dach 2008). Several studies have proved that nanofiltration is even effective at low pressures; hence, it can be superior to reverse osmosis in similar conditions (Vaseghi et al. 2016; Talaeipour et al. 2017).

One of the most important identified foulants found in surface water filtration is natural organic matters (NOMs). NOMs are widely recognized as the major foulants to reduce the permeate flux in membrane filtration (Xiao et al. 2012). Nanofilter membranes have no surface transition rate between RO and ultrafiltration so that this value is about 98% for bivalent ions and lower for monovalent ions (Alkhatim et al. 1998; AlTaee and Sharif 2011). A lot of studies have also been done on the performance of the nanofilter for water softening. In 2011, Mortazavi and colleagues (Mortazavi and Mousavi 2012) conducted a study to investigate the performance of nanofilter in removing iron from groundwater, which resulted in high efficiency of 90% directly related to increasing pressure.

The study conducted by Chakrabortty et al. (2013) which investigated the rejection of fluoride from groundwater sources by the process of nanofiltration resulted in the rejection of more than 98% fluoride at a pressure of 144 kg/cm2 and pH of 10.01. Aroji et al. (2016) evaluated the efficiency of nanofiltration in domestic water treatment and observed the following system efficiency in removing electrical conductivity (98.47%), total soluble solids (98.95%), total hardness (98.74%), calcium (98.5%), magnesium (99.13%), chloride (96.46%), sodium (96.48%) and total organic carbon (98.57%). At low pressure, the membrane’s efficiency decreases. Also, high pressure can cause excessive energy consumption (Van der Bruggen and Vandecasteele 2003).

The purpose of this study is to investigate the independence or non-independence of the various elements’ rejection, such as sodium, magnesium, potassium, calcium, sulfate, chloride, nitrate and EC in comparison with other existing elements in water as well as the determination of optimum pressure in this process.

Materials and methods

This research is an experimental study that investigates the desalination of regional groundwater in Qazvin province (Fig. 1) using a pilot nanofilter. The effect of nanofiltration on the rejection of major anions and major cations of water including sodium, potassium, calcium, magnesium, chloride, sulfate and electrical conductivity of water, as well as the effect of pressure on this process, was also investigated to determine the optimal pressure.

Fig. 1
figure 1

Location of sampling region, south of Qazvin plain (50 km to the center of the province)

Currently, drinking water for this region is provided through the extraction of water from three deep wells as shown in Fig. 2.

Fig. 2
figure 2

Wells studied in this area

Design and pilot setup

In this design, a low-pressure pump is used to supply the primary influent, a cartridge filter is used as a microfiber, a high-pressure pump is used to supply the raw water pressure to overcome the osmotic pressure, and at the end, a tank is used in which the membrane will be placed to split the flow of raw water into two streams of treated water and concentrate. In the final system, due to the fact that water cannot be supplied as a feed continuously, the system was set up in a batch mode in order to solve this problem by returning treated water and concentrated water into the tank. In this pilot setup, plate and frame module is used in which the membrane is placed inside it.

After the construction of the main frame, the tank, low-pressure pump, gauge, three-stage filter cartridge for placing the required types of microfiber or activated carbon, high-pressure piston pump with electromotor, flow meter for determining the influent to the membrane, and a pressurized tank with a gauge placed on it to measure the internal pressure are configured. At the end of the tank, there are two streams of treated and concentrated water which are pumped back into the tank by the tubes. On the concentrated stream, there is a butterfly valve installed so that the inlet pressure can be adjusted. In this project, a nanofilter membrane (FILMTEC-NF90-4040) was used and the effect of pressure on desalting efficiency as well as the permeation rate of nanofilter membrane at various pressures was evaluated. To carry out this project, sampling was done for wells A, B and C, which were the sources of drinking water for the assigned region. The schematic design of nanofiltration is shown in Fig. 3.

Fig. 3
figure 3

Schematic view of the experimental nanofiltration mini pilot plant (Rao et al. 2012)

The nanofilter module consists of a thin polyamide membrane with a size of 4040 and an NF90 type. The membrane properties are shown in Table 1.

Table 1 Specifications of the membrane

Pre-treatment system

This system includes a low-pressure pump that provides water pressure of about 3 bar, a microfiltration membrane that eliminates nanofilter membrane damage by removing fine particles, and an active carbon filter that removes free chlorine and organic matter from water and consequently increases the membrane’s lifespan (Fig. 4).

Fig. 4
figure 4

Pre-treatment system

In the temperature control system, a cooling unit includes aluminum pipes for cooling water flow, and the heating section made up of a 3-kW power element is used to increase the temperature of the water. With an accurate electrical thermometer with a precision of 0.1 °C, which by regulating its temperature, the electric power cutoff command is given to the element. The simultaneous operation of these two parts will stabilize the temperature of the raw water.

Start-up and operation of nanofiltration pilot

Initially, the water was prepared for testing at a volume of 40 L and was discharged into the pilot tank. Then, in order to prevent clogging of the membrane due to colloidal particles in the water, 1-, 5- and 10-micron microfilters were placed in the filter cartridge pool to remove the colloidal particles in a large amount. Hence, solution turbidity reached below 1 NTU. In our feed sample, the turbidity of the well water before the pre-treatment was 4.2 NTU. After placing the microfilters, and by cutting and placing a nanofilter piece in the pressure vessel, the pilot was set to operate.

At all stages of the experiment, plastic containers prepared for collecting water were first washed with distilled water and then washed again with treated water from the nanofilter at each stage. Then the effluent or treated water from the nanofilter membrane was collected in them. In each sampling, a volume of about 50 cc of treated water was collected successively in three plastic containers to measure the content of total dissolved solids (TDS), and anions and cations in treated water.

Apparatus and methods of measurement

The analysis of samples was investigated following the APHA standard (APHA et al. 2005). Electrical conductivity (EC) and total dissolved solids (TDS) were measured by a conductivity meter (JENWAY model 4320, UK). Chloride (Cl), sodium (Na+), potassium (K+), calcium (Ca2+), magnesium (Mg2+), sulfate (SO42−) and nitrate (NO3) were measured by a high-performance ion chromatography system (ICS3000, USA). The flow rate was about 2.5-5.2 ml/min, and the system pressure was 25 MPa. A cationic column with the size of 4 × 125 mm was used, the column body was made of steel, and a standard flow of 1 ml/min passed through it. In order to ensure the data reliability, all the samples were characterized with three replicates. The data in this study were recorded as the mean value ± standard deviation. The characteristics of the raw water are shown in Table 2.

Table 2 Characteristics of raw water

The maximum pressure and particle size were 35 MPa and 7 μm, respectively. All measurements were carried out at room temperature, and all samples were filtered by a 0.44-μm syringe filter before injection. For all samples, the injection was carried out at least three times. The data collection and operation of the system was performed by the 761 compact IC version 1.1 software.

In addition, to calculate the degradation efficiency of the parameters desired by the system, these parameters were read, after sampling the nanofilter-treated water and wastewater from the pilot tank. Accordingly, the following equation was used to determine the rejection:

$$R(\%) = \left({1 - C_{\text{p}}/C_{0}} \right) \times 100\quad \quad \left({{\text{Krieg}},\,{\text{Modiseet}}\,{\text{et}}\,{\text{al}}.\,2005} \right)$$

where R (%), C0 and Cp are the rejection (%), the content of the permeate (mg/L) and the content of the feed water (mg/L), respectively.

Results and discussion

The data were analyzed for the effect of independent and non-independent parameters on the quality of groundwater. The rejection rate of ions at various temperatures and pressures of 4, 8 and 12 bar for well A is depicted in Figs. 5, 6 and 7.

Fig. 5
figure 5

Rejection rate of ions versus temperature (pressure: 4 bar)

Fig. 6
figure 6

Rejection rate of ions versus temperature (pressure: 8 bar)

Fig. 7
figure 7

Rejection rate of ions versus temperature (pressure: 12 bar)

In comparison with various temperatures (10–30 °C), Mg2+ and No3− had the highest (100%) and lowest (44%) rejection rates at a pressure of 4 bar, respectively. In addition, Na+ and EC are also in the range of rejection (93–95%). As shown in Fig. 6, at a pressure of 8 bar, the rejection rate of So4−, Na+, Ca2+, Mg2+, K+ and EC at all temperatures are higher than 92%, while the rejection of No3− and Cl is less than 85% and 50%, respectively. Additionally, as presented in Fig. 7, at a pressure of 12 bar, the rejection rate of So4−, Na+, Ca2+, Mg2+, K+ and EC at all temperatures is higher than 90%, while the rejection of No3− and Cl is approximately 80% and less than 40%, respectively.

According to the diagrams (Figs. 5, 6, 7, 8, 9, 10, 11, 12 and 13), in case of anions, the highest degradation efficiency observed belongs to sulfate ions. Afterward, ion chloride is found, and its rejection rate is inversely proportional to its content in the solution. The lowest degradation efficiency is related to nitrate ion.

Fig. 8
figure 8

Rejection rate of ions versus temperature (pressure: 4 bar)

Fig. 9
figure 9

Rejection rate of ions versus temperature (pressure: 8 bar)

Fig. 10
figure 10

Rejection rate of ions versus temperature (pressure: 12 bar)

Fig. 11
figure 11

Rejection rate of ions versus temperature (pressure: 4 bar)

Fig. 12
figure 12

Rejection rate of ions versus temperature (pressure: 8 bar)

Fig. 13
figure 13

Rejection rate of ions versus temperature (pressure: 12 bar)

The rejection rate of ions at various temperatures and pressures of 4, 8 and 12 bar for well B is presented in Figs. 8, 9 and 10. Figure 8 shows that, at a pressure of 4 bar, the rejection values of So 4 , Cl and No3 first decrease with increasing temperature and then increase. Likewise, at temperatures 10 °C and 30 °C, the maximum rejection values of Ca2+ and Mg2+ for this well are 100%. As presented in Fig. 9, at a pressure of 8 bar, the rejection values of Cl, Ca2+ and Mg2+ show a decreasing trend with increasing temperature. In this way, Cl (85–79%(, Ca2+ (99–96%) and Mg2+ (100–96%) have a downward trend. Figure 10 proves that the current existing process removes Ca2+ and Mg2+ well. Over 99% of both of these were removed from groundwater in the current process at 30 °C.

The comparison between %R of Ca2+ assessed in this work and those achieved in the literature shows that the performance of NF90-4040 nanofiltration to retentive Ca2+ is better than NanoMax50 (Ghizellaoui et al. 2005) (50% %R of Ca2+) and NF200B-400 (Costa and De Pinho 2006) (64%). The ability of this nanofiltration to retentive Mg2+ (%R is 95%) is better than NF200B (Gorenflo et al. 2003) (greater than 86%). The rejection rate of ions at various temperatures and pressures of 4, 8 and 12 bar for well C is presented in Figs. 11, 12 and 13. As can be seen in Fig. 11, at a pressure of 4 bar, with increasing temperature, the rejection rates of Cl, So 4 , Na+, Mg2+ and EC first decrease and then increase slightly, while the rejection rate of K+ is the vice versa. Furthermore, Fig. 12 shows a similar trend for K+, Na+ and EC. The maximum rejection for Mg2+, Ca2+, Na+ and EC is 100% and 99.5%, 98.5% and 96%, respectively, and occurs at a temperature of 10 °C. At a pressure of 12 bar, the rejection rate of all ions is ascending as temperature increases, except for No3, which is the vice versa. Likewise, the highest decrease in the rejection rate with increasing temperature is about 33% for No3.

The results in Figs. 5, 6, 7, 8, 9, 10, 11, 12 and 13 show that the rejection rate of bivalent ions (calcium and magnesium) is higher than that of the monovalent ions (sodium and potassium). The reason for this is the pressure and content of higher suppository solids increase rejection, while rejection rates are somewhat lower in higher ionic strength (Visvanathan et al. 1998). The content of calcium rejection was higher than that of magnesium, which can be evaluated based on a smaller magnesium ion radius which varies from 0.44 to 0.41 Angstrom. In this way, the higher solubility energy of magnesium ion resulted in an increase in its degradation efficiency. Therefore, in case of comparing the degradation efficiency of the cations, the following series can be shown: Mg > Ca > K > Na.

The results of this study stated that increasing the temperature and increasing the dissolution of salts in solution result in increasing soluble cations content and cations neutralize the surface charge of the membrane, and this, in turn, increases the passage of other ions, and less nitrate is removed. The results of Kang et al.’s (2009) study in Korea in 2009 for the rejection of nitrate are consistent with the results of this study. On the other hand, in case of the higher electrical capacitance anions (such as sulfate), the highest degradation efficiency was observed, which causes a loss of electric charge balance on both sides of the membrane. In addition, the lowest degradation efficiency was observed for the rejection of nitrate ions. Temperature rises in all cases, the feed reduces the percentage of ion, but its effect on No3, So 4 and Cl is higher than on other ions. Several factors can be considered in terms of ion rejection by increasing the temperature.

As far as we know, on the one hand, when the temperature ascends, the viscosity decreases and the penetration coefficient of the solution component increases. On the other hand, the increase in temperature causes an increase in the diameter of the membrane pores (especially the polymer membranes) and thus the membrane’s resistance to the passage of the solution decreases; thereby, the flux of the component increases. Increasing the pressure usually results in increased ion rejection in the membrane. However, the effect of pressure on ion removal in all membranes may not be significant. Researchers believe that by increasing the pressure and water flux, more ions are transferred to the surface of the membrane. As the permeate flux increases, concentration polarization also intensifies and this will reduce ion rejection. In another study, the rejection rate for bivalent ions of above 90% was perceived, and with increasing pressure, the rejection rates were lowered with a slope than monovalent ions was found. Studies also showed that high rejection rates for bivalent ions such as magnesium (> 95%) and sulfate (> 98%) were reported. They reported that the rejection of monovalent ions was less than bivalent ions due to the lower molecular weight of these ions (Seidel et al. 2001; Wu et al. 2004; Fersi and Dhahbi 2008; Song et al. 2016).

The results revealed that the rejection of bivalent ions, such as calcium, magnesium and sulfate, does not depend on the ionic quality of water, and it is done a lot. Yet, the rejection of monovalent ions such as nitrates is significantly affected by the influent water quality which consequently impacts on the performance of this system. By increasing the content of bivalent ions such as sulfate anions and increasing the ratio of monovalent cations to bivalent ions, the content of nitrate rejection decreased significantly. In other words, increasing the hardness and reducing the content of sulfate increases the content of nitrate rejection.

As shown in Figs. 5, 6, 7, 8, 9, 10, 11, 12 and 13, most ions, with the exception of nitrate, have a degradation efficiency higher than 80%, which indicates the proper functioning of the nanofiltration membrane in removing cations, anions and electrical conductivity. The content of permeation in a nanofilter is higher than the theoretical value, and the operating pressure is less than that obtained from the Hoff vantage equation. Based on Hoffman’s relationship, osmotic pressure for saline and brackish water is calculated as follows and in fact, is the minimum pressure for osmotic permeability. However, according to the experiments, permeability in the nanofilter has started at a pressure of 8 bar, which is due to the electrical effects of the membrane.

$$\pi= RT \cdot \Delta C$$

It was also observed that increasing the influent solution pressure increased the water flux passing through the membrane and the effective pressure of water passing through the membrane was the main determinant of the amount of water infiltrated. Moreover, the higher the flux pressure, the higher the penetrated water through membrane. According to the results observed in the studied cations, the percentage of sodium ion rejection is low; however, the difference is not that sharp. This is due to the high sodium ion diffusion coefficient as compared to other cations, and it evokes the Nernst–Planck equation in mind. The rejection rate is a direct function of membrane material. In the research carried out by Mika et al. (2001) higher contents are tested, and with a more precise investigation of membrane material, it is concluded that the difference in rejection rate was significant in all types of membrane. In these two studies, it has been shown that there is a higher rejection rate in bivalent ions with more charges, which can be due to the electrical effects of the nanofilter membrane. Nanofiltration has recently been very much considered as a new technique for softening of super-hard waters.

Conclusions

The nanofiltration study presented herein on groundwater samples indicates that the maximum rejection occurs at a pressure of 12 bar, for well C, and the corresponding values for Ca2+ and Mg2+ are in the range of 97–100%. On the other hand, the minimum rejection occurs at a pressure of 12 bar and the temperature of 30 °C, for well B, and the corresponding values are approximately 32%. The results show that the presence of high magnesium ion is very effective in reducing sodium ion discharge and at the same time, the rejection rate of ions does not always follow the Van’t Hoff series which requires more extensive theoretical and practical studies; thereupon, the ion rejection rate in the nanofiltration membrane is not independent of others. Treatment of groundwater with the combination of nanofiltration and forward osmosis process will be investigated. In addition, the mechanism of the effect of element rejection on each other would be one of the major interests in our future work.