Introduction

Carbon is the atom of life and of organic chemistry with its myriads of compounds. Even the elemental forms of carbon have intriguing properties: There are the extremely hard but metastable sp3 bonded diamond, and a variety of sp2 bonded forms, where one p electron forms delocalized π bonds. The latter materials are characterized by a low electronic density of states (DOS) at the Fermi level, or in the case of semiconducting carbon nanotubes (CNTs) by a small band gap of the order of 1 eV [2, 3]. Therefore, their electronic properties are easily modified by doping, by adsorption, even by an external electric field. In particular, doping can convert graphene and CNTs, which in their pure form are not very reactive, to catalysts for a variety of reactions such as oxygen reduction or hydrogen evolution [4, 5].

In our group, we have been concerned with the interaction of CNTs with ions. Triggered by the observation of anomalously high capacitances of CNTs [6,7,8], and the concept of a superionic state [9], we have investigated the insertion of ions into narrow tubes and their resulting effects such as the formation of image charges on the walls of the tubes, and the shift of the Fermi level, which can locally convert semiconducting into conducting tubes [10,11,12]. Recently, we discovered an unexpected effect: The virtual attraction between two lithium ions separated by the wall of a nanotube, which we explained by the shift in the Fermi level of the tube and the concomitant work required—the direct Coulomb interaction between the ions is negligible since it is screened by the tube [14]. Perhaps less surprisingly, we found an effective attraction between a Cl ion inside and a Li+ ion outside the tube, which we could explain by changes in the work function [1]. Thus, both effects could be explained in terms of physical concepts. In this work we investigate the interaction between two Cl ions inside and outside a nanotube, where chemical effects dominate: Both the inserted ion inside and the adsorbed ion outside form a chemical bond with the nanotube. Nevertheless, in the investigated cases, the two ions attract each other, but the explanations involve chemical arguments in terms of bond formation.

The rest of this paper is organized as follows: First, we present the systems investigated and the methods of calculation employed. Then, we consider the bond between a single chloride ion inserted into a CNT or adsorbed outside. Next, we calculate the interaction between two ions situated inside and outside the tube, before we give a qualitative explanations in terms of bond formation and changes in the electronic densities of states.

Systems and methods

As in our previous work, we have chosen two model nanotubes: A semiconducting (8,0)CNT with radius R = 3.2 Å, and a conducting (5,5)CNT with R = 3.5 Å. The former has a band gap centered about the Fermi level, while the latter has a small but finite DOS at the Fermi level. As mentioned in the “Introduction,” we investigate the interaction of Cl ions with these tubes.

The main part of the calculations has been performed with density functional theory including dispersion corrections using the SIESTA code. Cyclic boundary conditions have been employed. Since full DFT calculations are time-consuming and allow only calculations for relatively short tubes, we have used this opportunity to test an attractive alternative: The DFT-based tight binding method as implemented in the program DFTB+. Since much of our understanding of graphene and CNTs rests on simple, tight binding arguments, we were optimistic that it would also give good results in our case. As we will show, our optimism was justified. All the technical details of our calculations are reported in the Appendix.

Interaction of single Cl ion with carbon nanotubes

Here, we consider both the insertion of a Cl ion into a CNT and the adsorption outside. In order not to duplicate the presentation, throughout this paper, we focus on the (8,0)CNT, but give also the results for the (5,5)CNT, which behaves very similarly. The insertion has been investigated before [10, 11], we briefly summarize the main points. Note that the insertion energies obtained here differ slightly from those previously published, where the dispersion interaction was not considered.

For both tubes, the stable position of the Cl is at the center of the tube. When a Cl atom is placed inside a CNT, an electron is transferred from the tube to form a Cl ion surrounded by a positive image charge on the wall of the tube (see Fig. 1 a). The center of the image charge is closer to the ions than the ring of carbon atoms. It can be characterized by the effective radius of the image charge, which is Rim = 2.14 Å for the (8,0)CNT, and Rim = 2.01 Å for the (5,5)CNT [11, 12]. The difference between the physical and the image radius is larger for the (5,5)CNT (1.35 Å) than for the (8,0)CNT (1.04 Å), because the former is a conductor even in the absence of the ion, and therefore screens somewhat better. Please note that some authors prefer the term “ polarization charge” instead of “image charge”; we prefer the latter terminology in order to point out the similarity between the effective image radius for a tube and the effective position of the image plane at a metal surface [13].

Fig. 1
figure 1

Electronic density differences Δρ of Cl on an (8,0)CNT. The adsorption sites are (a) inside, (b) top site (outside), and (c) center of ring (outside). The density difference was calculated as Δρ = ρCNT+ClρCNTρCl. Carbon and chloride atoms are plotted as blue and green spheres, respectively. The isovalues correspond to ± 0.001 e Å− 3, where a negative (or positive) excess charge is shown in red (or blue)

For the adsorption of the ion outside the CNTs with DFT, we found a stable position on top of a carbon atom, and a metastable position above the center of a carbon ring; DFTB+ only gave us the stable site. The charge distribution in Fig. 1 shows that the metastable state, which is at a larger distance, has the character of an ion, while at the stable position the charge of the Cl is smaller, and there is a small electronic excess charge at the center of the bond with the tube, which indicates that this bond has a substantial covalent contribution.

The insertion and adsorption energies are given in Table 1; the bonding distances in Table 2. The energies E1 of interaction (insertion or adsorption) between one ion and the tube have been calculated as follows:

$$ E_{1}= E_{\mathrm{{CNT + Cl} }}- E_{\mathrm{{CNT}}} - E_{\text{Cl}} $$
(1)

where ECNT+Cl, ECNT, and ECl are the energies of the ion and the nanotube, the pure tube, and the Cl atom in the vacuum, respectively. Clearly, the insertion of a Cl ion is a more favorable process than its adsorption outside of the nanotube. This is not surprising since the inserted ion is surrounded by carbon atoms on all sides. The energy difference between the two sites outside the tube is similar for both CNTs (ca. 0.15 eV). The top position, where the ion is closer to the carbon atoms, is the preferred site.

Table 1 Interaction energies E1 of chloride ions with the CNTs calculated with SIESTA and DFTB+ codes
Table 2 Distances between the chloride ions and the wall of the CNTs calculated with SIESTA and DFTB+ codes

The results obtained with DFTB+ code are in good agreement with the SIESTA calculations, and both of them show the same trends. In general, the tight-binding code seems to overestimate the values with respect to DFT, with the exception of the insertion into the (8,0) nanotube. We note that different flavors of DFT based on slightly different functionals also tend to give results that differ by an order of ± 0.1 eV.

The bonding and the charge distribution can be studied in greater detail by investigating the densities of states (DOS). The situation is very similar for the two tubes, so we present the results for the (8,0)CNT. Figure 2 shows the DOS corresponding to the systems of Fig. 1 (a)–(c), and projected onto the contributions of the Cl and C atoms. The DOS of the pure nanotube is shown in the background of each picture (in gray), and it has been shifted in energy so that the main features coincide—in the pristine tube, the Fermi level is at the center of the gap.

Fig. 2
figure 2

DOS of Cl on the (8,0)CNT in different sites: (a) inside, (b) on top (outside), and (c) above the center of a carbon ring (outside). The total DOS of the pure (8,0)CNT is displayed in the background of the three pictures

When the ion is adsorbed inside the tube, the DOS of the carbon atoms is shifted by about 0.3 eV toward positive values, so that the top of the valence band just rises above the Fermi level. The Cl ion gives rise to two narrow peaks directly below the Fermi level, which correspond to different spin orientations, and which indicate a negative excess charge and an absence of covalent bonding. The positive counter charge is distributed on the carbon atoms, so that the charge on each atom is small. Since the tubes investigated with Siesta are comparatively short, we have calculated the distribution of the counter charge with DFTB+, for which tubes with a length of 40 Å pose no problem. The details can be seen in Fig. 3. The positive charge on the carbon atoms is centered at the position of the Cl ions, and falls off over a distance of about 10 Å. On the (5,5)CNT, the decay of the excess charge is monotonous; in contrast, the (8,0)CNT shows small, but distinct Friedel oscillations [15] because of its low electronic density near the Fermi level.

Fig. 3
figure 3

Distribution of the charge on the carbon atoms along the tube. For reasons of symmetry, each point represents 8 atoms for the (8,0)CNT, and 10 atoms for the (5,5)CNT. The position of the Cl inside is indicated by the blue arrow. Note the periodic boundary conditions. Results obtained with DFTB+

When the ion is adsorbed above the center of a ring outside (Fig. 2c), the DOS resembles that of the case where the ion is inside. However, the splitting between the two spin states is larger, and the DOS of the down spin extends a little above the Fermi level, indicating that the charge is smaller. Also, the lower of the two spin states shows some overlap with a carbon peak, indicating a small covalent contribution to the bond. Otherwise, there is little change in the carbon DOS, while for the inserted ion there are some new oscillations in the range between − 1.5 and − 2 eV. Thus, the DOS indicates that for the inserted ion and for the metastable adsorption (c) the bond with the tube is mainly ionic.

The DOS of the chloride ion adsorbed on the top position is rather different from that of the other two systems. The states are less localized and deeper in energy. The electronic structure of the tube has also been modified, especially near the Fermi level where new states have been created. The shift of the DOS of the pure nanotube is smaller in this case (only 0.1 eV), and so is the charge transfer between the C and the Cl atoms. This is another indication that the bond is less ionic in this position.

Energetics of the interaction of a pair of Cl ions across CNTs

In this section, we study the interaction of a Cl ion inside with another anion outside of the nanotube. The inside ion was fixed at its optimum position at the center of the tube whereas the position of the ion outside was varied systematically. For the (8,0)CNT, the optimized path is shown in Fig. 4 (b). The ion inside is placed at x = 0; the closest position outside is a bridge site in front of the chloride. The optimal path follows the shape of the carbon hexagons, going from top to top sites through bridge positions. Some of the systems, where the Cl ion outside is on top, have been labelled from A to E, from closer to farther to the ion inside, respectively. Because of the symmetry of the nanotube, paths going upwards or downwards are equivalent.

Fig. 4
figure 4

(a) Interaction energies E1 and E2 between Cl ions and (8,0)CNT. All the energies are in eV. (b) Optimal geometries of the systems with 2 Cl ions. The inside ion is shown in red and the optimal geometries of the ion outside (in green) have been superimposed. Each system has only 2 ions

The energies E2 of adsorption of the second ion on the nanotube with one ion inside were calculated as follows:

$$ E_{2} = E_{\mathrm{{CNT + Cl_{in} + Cl_{out}}}} - E_{\mathrm{{CNT + Cl_{in}}}} - E_{\mathrm{{Cl}}} $$
(2)

where \(E_{\mathrm {{CNT + Cl_{in} + Cl_{out}}}}\) is the energy of the system with two ions. Using this equation, the energies of adsorption were calculated as a function of the axial coordinate of the ion outside of the tube (red line in Fig. 4 (a)). For comparison, the interaction energies E1 of one ion outside of the empty nanotube were calculated using the same positions as in Fig. 4 (b).

In both curves, the maximum energy values stand for Cl adsorbed on the bridge position, and the minima to adsorption on top. The lower energies for the adsorption of the ion outside in the presence of the ion inside show that there is a virtual attraction between the two chloride ions. This effect increases when the two ions get closer, obtaining a maximum value of 0.27 eV in position A. The difference in energy E2 between sites E and A is another effect of the order of 0.07 eV. The attractive interaction is also more noticeable on the top than on the bridge sites.

Repeating the same procedure as before, we have calculated the interaction energies of two ions on the (5,5)CNT. The ideal path and the corresponding energies are shown in Fig. 5. Here, again, the Cl ion outside follows the shape of the carbon hexagons going from one minima in a top position to another through the bridge sites (black curve). Similar to the case of the semiconducting tube, a virtual attraction between the chloride ions is observed, which is of the same order of magnitude when they are closer (in position A).

Fig. 5
figure 5

(a) Interaction energies E1 and E2 between Cl ions and (5,5)CNT. All the energies are in eV. (b) Optimal geometries of the systems with 2 Cl ions. The inside ion is shown in red and the optimal geometries of the ion outside (in green) have been superimposed. Each system has only two ions

In the (8,0)CNT, the same attractive effect was observed using the DFTB+ code (see Table 3). However, the attraction was significantly smaller on the conducting (5,5) tube, but the absolute difference is small. Using both methods, we found that the systems are more stable when the ions are closer.

Table 3 Interaction energies of ions across the carbon nanotubes, calculated with DFTB+ and SIESTA code

Electronic structure of a pair of Cl ions on CNTs

In order to understand the attractive effect between the chloride ions, we have analyzed the changes in the electronic structure by using the DOS profiles; again, we focus on the (8,0)CNT. Figure 6 shows the projected DOS of the system with inside and outside ions adsorbed on the (8,0)CNT. In general, the profile of the carbon atoms is very similar to the one shown in Fig. 2 (b), where there is only one ion adsorbed outside of the tube (on top position). As in the previous case, there are also a few new states created near the Fermi level, and the DOS of the tube has been slightly shifted to higher energies due to the presence of the ion inside. The states corresponding to the Cl ion inside are very localized and placed near the Fermi level; they are hardly affected by the outside ion. Only the states of the ion outside have been significantly modified due to the presence of the inside ion. Comparing Figs. 2 (b) and 6, the maximum is moved from − 1.5 to − 2.1 eV, where it shows a significant overlap with a new carbon peak, which indicates bonding. A similar change occurs in the case of the (5,5) nanotube, where the maximum of the p-orbital moves from − 1.1 to − 1.9 eV. These shifts in the DOS of the outside ion towards lower energies entail a lowering of the energy, and appear like a virtual attraction.

Fig. 6
figure 6

DOS of two Cl ions on the (8,0)CNT. The system corresponds to position E in Fig. 4. The arrow indicates the overlap of a C and a Cl peak, which indicates bonding

In a previous work, we have explained the apparent attraction between lithium ions as the result of the modification of the electronic structure of the nanotube. In that case, the transfer of charge from the lithium to the tube transforms the semiconducting CNT into a conducting one, facilitating the adsorption of the second cation. The effect was considerably smaller in a conducting tube. In contrast to that case, the adsorption of the anions modifies the valence band of the nanotube producing a very similar effect on conducting and semiconducting nanotubes.

To explain the decrease in energy when the two anions get closer, we have plotted the partial DOS of the Cl ions inside and outside the (8,0)CNT for the cases where the ions are farther and closer to each other (E and A in Fig. 4). The pictures are shown in Fig. 7. When the ions are closer, there is no splitting of the spins and, most importantly, several peaks of the two ions coincide (see the arrows). This indicates a direct interaction between them that is not present when the ions are far apart. We surmise that this is the reason why the attraction is strongest when they are close.

Fig. 7
figure 7

Partial DOS of two Cl ions on the (8,0)CNT. The system corresponds to (a) position A, and (b) position E in Fig. 4

Conclusions

This article concludes our investigations of the interaction of simple ions across carbon nanotubes. Like in the case of two Li+ ions, we observed an effective attraction between the two chloride ions: The energy of adsorption of an outside ion was lower (more favorable) in the presence of an inside ion. In all three cases, Li+ - Li+, Cl - Li+, and Cl - Cl, the attraction was mediated by the carbon nanotubes that separate the pairs. While the first two cases could be explained in terms of physical effects, the present case is the most difficult because the interaction of the ions with the nanotubes is chemical; in particular that of the outside ion has a strong covalent component. In essence, the presence of the inside ion shifts the DOS of the outside ion towards lower energies, and thus lowers the energy of the adsorbate. When the two Cl ions are close, there is even a direct covalent interaction, which manifests itself in the overlap of peaks in the DOS. Therefore, the attractive effect is larger when the ions are close. This contrasts with the case of Li+ - Li+, where the virtual attraction was weaker when the ions are close because of a weak residual penetration of the direct Coulomb interaction.

An important point is that the direct interaction between the ions is screened by the nanotube, no matter if it is a conducting or a semiconducting tube. This seems to contradict theories for the screening of charges in CNTs, which state that semiconducting tubes cannot screen an external charge [18]. However, these theories are based on linear response. In contrast, in our calculations, the response was so strong that the semiconducting tube became locally conductive.

We have used the opportunity to test the DFT-based tight binding method DFTB+ as a fast alternative to normal DFT. On the whole, the results are very encouraging: the method lends itself to performing fast calculations for larger systems than pure DFT can handle.