1 Introduction

In recent years, the deep desulfurization of diesel fuel has become the most studied process with different techniques (extraction, liquid–liquid separation, oxidative desulfurization, adsorption). The emission of sulfur from petrol and diesel oils, which is linked to acid rain, plays a crucial role in pollution problems of large conglomerates. Thus, the USA and European countries have issued regulations regarding sulfur content in fuels [1, 2]. Due to this situation, the European Union approved a new directive stating that the content of total sulfur in European gasoline and diesel fuels from 2010 onwards must be at a maximum concentration level of 10 ppm [2]. Ionic liquids (ILs) have the ability to extract aromatic sulfur-containing compounds at ambient conditions. Additionally, ILs are immiscible with the fuel, are non-volatile and can be regenerated and recycled by solvent washing. Oxidative desulfurization in future years probably will bring better results than simple liquid–liquid separation, however, first the best ILs must be chosen. At present, the hydrodesulfurization (HDS) processes is the established method used in some industrial technologies to remove organic sulfur from fuels. However, to achieve low sulfur targets with current HDS technology, higher temperatures, higher pressures, larger reactor volumes, and more active catalysts are needed [3]. The HDS process does not purify fuels of polycyclic organic sulfides such as thiophene, benzothiophene, methyldibenzothiophenes, 4,6-dibenzothiophenethiols, thioethers, and disulfides. Therefore, new technologies for deep desulfurization have become necessary. Extraction desulfurization, which has begun to be popular, especially with ILs, has the potential for being an alternative and future complementary technology for deep desulfurization [410]. In order to solve this problem, extractive liquid–liquid equilibrium (LLE) desulfurization with ILs has been proposed [7, 1018].

The 1-alkylpiperidinium-based [18], or pyrrolidinium-based ILs with different anions [15], or 1-alkylcyanopyridinium-based ILs [16], have been recently studied in our laboratory in ternary LLE {IL + thiophene, or benzothiophene + heptane) with high selectivities. Attractive extraction parameters were presented as well for 1-ethyl-3-methylimidazolium bis{(trifluoromethyl)sulfonyl}imide, [EMIM][NTf2] ([11], and references cited therein), 1-ethyl-3-methylimidazolium acetate, [EMIM][OAc] [12], 1-ethyl-3-methylimidazolium thiocyanate, [EMIM][SCN] [7], and 1,3-dimethylimidazolium methylphosphonate [DMIM][MP] [7].

This work is a continuation of our systematic studies on the physicochemical properties and the extraction abilities of piperidinium-based ILs ([18] and references cited therein). Proposed by us are new interaction parameters for the group contribution method Modified UNIFAC for the piperidnium-based ILs [19], predicted attractive infinite dilution selectivity, and capacity of piperidinium-based ILs (alkane chain, n = 3–6) in the thiophene/heptane separation problem at T = 328.15 K.

To our best knowledge, the phosphonium-based IL (tributyl-methylphosphonium methylsulfate, [P1,4,4,4][CH3SO4]) was measured in ternary LLE for the separation of thiophene from cyclohexane at T = 298.15 K with very low selectivities in a range of 1.5 to 5.4 [20]. Better results were obtained with deep eutectic solvents, DES, containing phosphonium-based ILs with ethylene glycol. DES is composed of methyltripentylphosphonium bromide, [P1,5,5,5][Br], and ethylene glycol (as a hydrogen bond donor) showed selectivities of about S = 60–100 for ternary LLE at T = 318 K for benzene/hexane separation [21]. Poorer results were estimated with DES composed of tetrabutylphosphonium bromide, [P4,4,4,4][Br], and ethylene glycol for the separation of toluene/heptane [22]. Usually, the results of separation processes for aliphatic/aromatic hydrocarbons provide good information for the separation of aliphatic/aromatic sulfur compounds. We can expect similar or even better results for the chosen IL. On the other side, there are very good results obtained with methylphosphonate [7] and diethylphosphate [12] anions of ILs in ternary LLE (IL + thiophene + heptane) mixtures.

In this work we report experimental ternary LLE data for one additional piperidinium-based IL, {1-pentyl-1-methylpiperidinium bis{(trifluoromethyl)sylfonyl}imide [C5MPIP][NTf2], for comparison with measured earlier 1-propyl, or 1-butyl-, or 1-hexyl-1-methylpiperidinium bis{(trifluoromethyl)sylfonyl}imide [18]. Moreover, tributylethylphosphonium diethylphosphate, [P2,4,4,4][DEP] was chosen to check the influence of the anion. The [DEP] anion in [EMIM][DEP] shows interesting results for thiophene extraction from hexane at T = 298.15 K [12]. The solvents heptane, thiophene, and benzothiophene used in this work are model compounds for fuel and sulfur organic hydrocarbons, respectively. The ternary systems {IL (1) + thiophene, or benzothiophene (2) + heptane (3)} were investigated at T = 308.15 K and p = 101.33 kPa. The experimental tie-lines for four ternary mixtures have been correlated with the NRTL equation [23, 24]. The solute distribution ratio and the extractive selectivity were determined from the experimental data, and are compared to the literature data.

2 Experimental

The ILs studied, [C1C5PIP][NTf2] and [P2,4,4,4][DEP], were purchased from IoLiTec. The names, abbreviations, structures, measured densities and mass fraction of ILs are listed in Table 1. The names, CAS numbers, sources, mass fraction purities, purification method, water content, and measured and literature densities of all chemicals used are shown in Table 1S in the Supplementary Material Information. Most of chemicals used were from Merck or Sigma Aldrich. The samples of ILs were dried for 24 h at 300 K under reduced pressure to remove volatile impurities and trace amounts of water. Thiophene and benzothiophene were stored over freshly activated molecular sieves of type 4 Å (Union Carbide). The densities for all substances were measured at T = 298.15 and 101.33 kPa. The method and uncertainties have been described previously [18].

Table 1 List of investigated ionic liquids: structure, name, abbreviation of name, molar mass (M) and density

The water content was analyzed by the Karl-Fischer titration (method TitroLine KF). The sample of IL, or solvent, was dissolved in methanol and titrated in steps of 0.0025 cm3. The error in the water content is ±10 × 10−6 in mass fraction for the 3 cm3 of injected IL. The water content in solvents used was less than 350 × 10−6 in mass fraction.

To obtain the experimental LLE tie-lines, mixtures with compositions inside the immiscible region of the systems were introduced into a jacketed glass cell of volume of 100 cm3. The solution was mixed with a coated magnetic stirring bar. The vessel was tightly closed to avoid losses by evaporation or pickup of moisture from the atmosphere. The jackets were connected to a thermostatic water bath (LAUDA Alpha) to maintain a constant temperature of T = 308.15 K (±0.05). The mixtures were stirred for 6 h to reach thermodynamic equilibrium and after a minimum of 12 h were analyzed. After the phase separation, samples of about (0.1–0.3) × 10−3 cm3 were taken from both phases using glass syringes with coupled stainless steel needles. A sample of the phase was placed in an ampoule with a capacity of 2 × 10−3 cm3. The ampoule was closed with a septum cap. Next, acetone (1.0 cm3) was added to the samples to avoid phase splitting and to maintain a homogeneous mixture. Propan-1-ol was used as internal standard for the GC-analysis. Because of the low vapor pressure, the ILs used in this work cannot be analyzed by GC. Thus, only thiophene or benzothiophene and heptane were analyzed; the mass fraction of the third component, the IL, was determined by subtracting the mole fractions of the two other components from unity.

The compositions were analyzed by gas chromatography (PerkinElmer Clarus 580 GC equipped with auto sampler and FID and TCD detectors). The capillary column of the chromatograph was protected with a pre-column to avoid the non-volatile ionic liquid reaching the column in the case of a leak from the glass wool in the liner. The TotalChrom Workstation software was used to obtain the chromatographic areas for the thiophene, or benzothiophene, heptane and the internal standard propan-1-ol. Samples were injected three times, and the average value was calculated. Details of the operational conditions of the apparatus are reported in Table 2S in the Supplementary Material. The estimated uncertainty in the determination of mole fraction compositions is ± 0.003 for compositions of the hydrocarbon-rich phase and ±0.005 for compositions of the IL-rich phase.

3 Results and Discussion

The equilibrium compositions of the experimental tie-line ends in ternary systems of four mixtures {IL (1) + thiophene or benzothiophene (2) + heptane (3)}, at T = 308.15 K and p = 101.33 kPa are reported in Table 2. Experimental solubilities for [C1C5PIP][NTf2] and [P2,4,4,4][DEP] in heptane at T = 308.15 K are totally different from each other. In the binary {IL (1) + heptane (3)} system complete liquid miscibility (solubility of heptane in the IL) is up to mole fraction of heptane \( x_{3}^{\text{IL}} \) = 0.089 and \( x_{3}^{\text{IL}} \) = 0.456 for [C1C5PIP][NTf2] and [P2,4,4,4][DEP], respectively. The solubility of heptane is much larger in [P2,4,4,4][DEP] than that in [C1C5PIP][NTf2]. The piperidinium-based IL shows much lower solubility of heptane in the IL. In comparison with piperidinium-based IL measured by us earlier, heptane shows higher solubility in [C1C5PIP][NTf2] than in [C1C3PIP][NTf2] (\( x_{3}^{\text{IL}} \) = 0.051, at T = 308.15 K [18]). This effect is due to an increase in the van der Waals interactions between the hydrocarbon chain of the cation and heptane.

Table 2 Compositions of experimental tie lines, solute distribution ratios, β, and selectivity, S, for ternary systems {[C1C5PIP][NTf2] or [P2,4,4,4][DEP] (1) + thiophene or benzothiophene (2) + heptane (3)} at T = 308.15 K, p = 101.33 kPa

The solubility of thiophene at T = 308.15 K is equal to \( x_{2}^{\text{IL}} \) = 0.814 for [C1C5PIP][NTf2] (x IL2  = 0.797 for [C1C3PIP][NTf2] at T = 298.15 K [18], the influence of temperature is minimal; the largest solubility of thiophene in the piperidinium-based IL was observed for C1C6PIP][NTf2] [18]). Complete miscibility with thiophene was observed for [P2,4,4,4][DEP].

In the binary system with benzothiophene, the solubility of benzothiophene in [C1C5PIP][NTf2] at T = 308.15 K is equal to \( x_{2}^{\text{IL}} \) = 0.873 (\( x_{2}^{\text{IL}} \) = 0.945 for [C1C3PIP][NTf2] at T = 308.15 K [18]. Complete miscibility with benzothiophene was observed for [P2,4,4,4][DEP].

Immiscibility is observed in the {thiophene, or benzothiophene (2) + heptane (3)} binary mixture, as was reported previously [18].

The determined experimental tie-lines for the ternary LLE systems are plotted in Figs. 1, 2, 3, 4 for thiophene and benzothiophene, respectively. Figures 1, 2, 3, 4 show that the two-phase region is much larger for [C1C5PIP][NTf2] than that for [P2,4,4,4][DEP].

Fig. 1
figure 1

Plot of the experimental (filled circle, gray solid lines) results versus values calculated with the NRTL equation (square, black dotted lines) for the composition tie lines of the ternary system {[C1C5PIP][NTf2] (1) + thiophene (2) + heptane (3)} at T = 308.15 K

Fig. 2
figure 2

Plot of the experimental (filled circle, gray solid lines) results versus values calculated with the NRTL equation (square, black dotted lines) for the composition tie lines of the ternary system {[C1C5PIP][NTf2] (1) + benzothiophene (2) + heptane (3)} at T = 308.15 K

Fig. 3
figure 3

Plot of the experimental (filled circle, gray solid lines) results versus values calculated with the NRTL equation (square, black dotted lines) for the composition tie lines of the ternary system {[P2,4,4,4][DEP] (1) + thiophene (2) + heptane (3)} at T = 308.15 K

Fig. 4
figure 4

Plot of the experimental (filled circle, gray solid lines) results versus values calculated with the NRTL equation (square, black dotted lines) for the composition tie lines of the ternary system {[P2,4,4,4][DEP] (1) + benzothiophene (2) + heptane (3)} at T = 308.15 K

The results obtained in this work show that the more suitable IL for the separation of thiophene, or benzothiophene from heptane, is [C1C5PIP][NTf2] because of its much larger selectivity (S) and the comparable solute distribution ratio (β). These parameters are defined as follows:

$$ \beta = \frac{{x_{ 2}^{\text{II}} }}{{x_{ 2}^{\text{I}} }} $$
(1)
$$ S = \frac{{x_{ 2}^{\text{II}} \cdot x_{ 3}^{\text{I}} }}{{x_{ 2}^{\text{I}} \cdot x_{ 3}^{\text{II}} }} $$
(2)

where x is the mole fraction; superscripts I and II refer to the heptane-rich phase and the IL-rich phase, respectively. Subscripts 2 and 3 refer to the sulfur compound and heptane, respectively. The values of β and S are listed in Table 2 for thiophene and benzothiophene. Figures 5 and 6 present measured values of β and S for ILs for thiophene and benzothiophene.

Fig. 5
figure 5

Plot of the selectivity (S) as a function of the mole fraction of solute in the hydrocarbon-rich phase for the ternary systems: closed circle {[C1C5PIP][NTf2] (1) + thiophene (2) + heptane (3)}, filled square {[C1C5PIP][NTf2] (1) + benzothiophene (2) + heptane (3)}, open circle {[P2,4,4,4][DEP] (1) + thiophene (2) + heptane (3)}, and open square {[P2,4,4,4][DEP] (1) + benzothiophene (2) + heptane (3)}, at T = 308.15 K

Fig. 6
figure 6

Plot of the solute distribution ratio (β) as a function of the mole fraction of solute in the hydrocarbon-rich phase for the ternary systems: closed circle {[C1C5PIP][NTf2] (1) + thiophene (2) + heptane (3)} filled square {[C1C5PIP][NTf2] (1) + benzothiophene (2) + heptane (3)} open circle {[P2,4,4,4][DEP] (1) + thiophene (2) + heptane (3)}, and open square {[P2,4,4,4][DEP] (1) + benzothiophene (2) + heptane (3)}, at T = 308.15 K

The values presented in Table 2 show that the distribution ratio coefficient are in the range of 0.81–2.41, 0.95–4.36, 1.36–2.69 and 1.46–4.13 for [C1C5PIP][NTf2]/thiophene, [C1C5PIP][NTf2]/benzothiophene, [P2,4,4,4][DEP]/thiophene and [P2,4,4,4][DEP]/benzothiophene, respectively.

The selectivities of the separation in the system thiophene or benzothiophene/heptane is quite high for [C1C5PIP][NTf2] and very low for [P2,4,4,4][DEP]. The values listed in Table 2 for the best tie-lines are: 26.7, 48.3, 6.0 and 9.1 for [C1C5PIP][NTf2]/thiophene, [C1C5PIP][NTf2]/benzothiophene, [P2,4,4,4][DEP]/thiophene and [P2,4,4,4][DEP]/benzothiophene, respectively.

In this work the effect of the alkane chain length on the cation of the piperidinium-based IL was examined for comparison with previously measured data for [C1C3PIP][NTf2]/thiophene, [C1C4PIP][NTf2]/thiophene, and [C1C6PIP][NTf2]/thiophene at T = 298.15 K, and of [C1C3PIP][NTf2]/benzothiophene at T = 308.15 K [18] (the influence of temperature is not large). The effect of anion in the phosphonium-based IL was also verified. The characteristic extraction parameters obtained in this work are compared to the few previously described in the open literature in Table 3. Unfortunately, the selectivity for [C1C5PIP][NTf2] obtained in this work is slightly worse than that for [C1C3PIP][NTf2] measured by us earlier [18]. The values of selectivity presented for 1-alkylcyanopyridinium-based ILs at T = 308.15 K measured in our earlier work [16] are also larger than those for piperidinium-based ILs [18] (see Table 3).

Table 3 Comparison of solute distribution ratio (β) and selectivity (S) for sulfur compounds extraction

The selectivities for [C1C3PIP][NTf2] are comparable to those for 4-(2-methoxyethyl)-4-methylpiperidinium trifluorotris(perfluoroethyl)phosphate [COC2MPIP][FAP] ILs at T = 298.15 K [13], or to 4-(2-methoxyethyl)-4-methylpiperidinium bis{(trifluoromethyl)sulfonyl}imide [COC2MPIP][NTf2] [14]. For further comparisons see our earlier work [16].

The extraction results for [P2,4,4,4][DEP] are very low and similar to [P1,4,4,4][CH3SO4] [20]. It can be definitely concluded that phosphonium-based cations are not suitable for these separation processes. However, for the diethylphosphate anion [DEP] and imidazolium-based cation [EMIM]+, the results are comparable to those obtained in this work with [C1C5PIP][NTf2] but with a lower β value [18] (see Table 3).

It can be also seen from Figs. 5 and 6 that β and S decrease as the solute mole fraction (thiophene, or benzothiophene) in the heptane phase increases, for all systems, when going through the tie-line end compositions.

4 Data Correlation

The ternary LLE data measured in this study were correlated (the tie-line correlation) using the well known non-random liquid equation, NRTL [23]. The equations and algorithms used for the calculation of the compositions in both phases follow the method described by Walas [24]. The objective function F(P) was used to minimize the difference between the experimental and calculated compositions:

$$ F(P) = \sum\limits_{i = 1}^{n} {\left[ {x_{2}^{{{\text{I,}}exp}} - x_{ 2}^{\text{I,calc}} \left( {PT} \right)} \right]^{2} + \left[ {x_{3}^{{{\text{I,}}exp}} - x_{3}^{\text{I,calc}} \left( {PT} \right)} \right]}^{2} + \left[ {x_{2}^{{{\text{II,}}exp}} - x_{ 2}^{\text{II,calc}} \left( {PT} \right)} \right]^{2} + \left[ {x_{3}^{{{\text{II,}}exp}} - x_{ 3}^{\text{II,calc}} \left( {PT} \right)} \right]^{2} $$
(3)

where P is the set of parameters vector, n is the number of experimental points, \( x_{2}^{{{\text{I}},exp}} \), \( x_{3}^{{{\text{I}},exp}} \) and \( x_{ 2i}^{{{\text{I}},{\text{calc}}}} \left( {PT} \right) \), \( x_{3}^{\text{I,calc}} \left( {PT} \right) \) are the experimental and calculated mole fractions of one phase, and \( x_{2}^{{{\text{II}},exp}} \), \( x_{3}^{{{\text{II,}}exp}} \) \( x_{ 2}^{\text{II,calc}} \left( {PT} \right) \), and \( x_{ 3}^{\text{II,calc}} \left( {PT} \right) \) are the experimental and calculated mole fractions of the second phase. The binary parameters of each constituent were regressed by minimizing the sum of the squares of the differences between the experimental and calculated mole fractions of each component of both liquid phases for each ternary system. These binary parameters were obtained for all data simultaneously (binaries and ternaries).

The value of the non-randomness parameter, α ij , was optimized in order to obtain the best model fit. The correlated parameters are given in Table 4 along with the root mean square deviations (RMSD). The RMSD values, which are a measure of the precision of the correlation, were calculated according the equation:

$$ {\text{RMSD}} = \left( {\sum\limits_{i} {\sum\limits_{l} {\sum\limits_{m} {\left[ {x_{ilm}^{exp} - x_{ilm}^{\text{calc}} } \right]^{2} /6k} } } } \right)^{1/2} $$
(4)

where x is the mole fraction and the subscripts i, l, and m designate the component, phase, and tie-line, respectively. The Rosenbrock simplex method was used in an effort to minimize the objective function. The compositions calculated from the correlations are included in Figs. 1 to 4. The correlation results, obtained for the four systems studied, are satisfactory. The experimental and calculated LLE data agreed relatively well.

Table 4 Binary interaction parameters, parameter α ij and root mean square deviation (σ x ) for the NRTL equation for the ternary systems {[C1C5PIP][NTf2] or [P2,4,4,4][DEP] (1) + thiophene or benzothiophene (2) + heptane (3)} at T = 308.15 K, p = 101.33 kPa

5 Conclusions

The ternary liquid–liquid phase equilibrium data were measured in this study for the extraction of thiophene or benzothiophene from heptane using two ILs. Four ternary systems {IL + thiophene or benzothiophene + heptane} were analytically determined using GC for the composition analysis at temperature T = 308.15 K at ambient pressure. It has been demonstrated that the 1-pentyl-1-methylpiperidinium bis{(trifluoromethyl)sulfonyl}imide IL is much more effective than the phosphonium-based IL for extraction of thiophene or benzothiophene from alkanes. Sulfur compounds can be extracted easily by piperidinium-based ILs, leading to low sulfur content in fuels. Our earlier experimental results revealed that the solubility of sulfur compounds in the IL increases as the alkyl chain length increases [18]. The capacity of extraction, described in terms of the selectivity and the solute distribution ratio coefficients, was calculated for all ternary systems and compared to the published data used in similar extraction problems. Based on the values obtained, [C1C5PIP][NTf2] was found to be useful for the extraction of sulfur compounds from alkanes; however, it is not as good as [C1C3PIP][NTf2] measured previously [18]. The selectivity and the solute distribution ratio decrease as the mole fraction of thiophene or benzothiophene in the heptane-rich phase increases. The best selectivity (S) is observed for very low mole fractions of S-compounds in the hydrocarbon-rich phase \( (x_{2}^{\text{HC}} \, = \,0.0 5) \) (see Fig. 5), which may be compared with the results of the HDS method for the removal of the S-compounds. The experimental data in this work was regressed using the NRTL activity coefficient model and binary interaction parameters. The non-randomness parameter was also determined through the reduction of the experimental data. The model exhibited an excellent fit to the data with the average RMSD values between 0.003 and 0.007.