1 Introduction

Today, pollution from burning fossil fuels create an environmental threat to clean ecosystems and domestic water bodies [1]. In addition, by-products of burning fossil fuels pose a major threat to children's health and global environmental instability such as climate change and greenhouse effects [2]. Also, it could run out in the next 50 years due to overuse of fossil fuels. In addition, fossil fuels are non-renewable, their products such as carbon monoxide, ammonia, methane and sulfides pollute the environment and lead to an ongoing increase in global warming and climate change. The report of the United Nations Intergovernmental Panel on Climate Change, published earlier this year, warned that if we are to limit warming to 1.5 °C, greenhouse gas emissions must fall by 2025 and fall by 43% by 2030 from current levels [3]. To meet this challenge, various researchers are recommending hydrogen as a better alternative to fossil fuels due to its cleanliness, renewability and sustainability, as well as its low impact on the ecosystem. At up to 142 MJ kg−1 [4], it is the most abundant element in the Universe, outperforming its fossil fuel counterpart by a factor of three. In addition, the product of hydrogen combustion is water, which is why it does not pollute the ecosystem when burned. Hydrogen can also be used as a fuel for piston engines, gas turbines or hydrogen fuel cells, with the latter offering the best efficiency. Therefore, hydrogen energy research is becoming a topic of greatest interest as it has the potential to replace fossil fuels in many areas of combustion technologies [5].

Although robust experimental results show that hydrogen is the best material for the next-generation energy source, it needs to be stored under appropriate conditions. The main concern in the growth of hydrogen energy technology is safe, efficient and reliable storage facilities [6]. Compressed hydrogen tanks require very high pressures, while liquefied hydrogen requires expensive cryogenic processes. However, these facilities are generally not secure in terms of the usability of energy for the average person. According to the US Department of Energy, the gravimetric target for hydrogen storage for an onboard system is 5.5% by weight by 2020. Consequently, the reversible hydrogen storage capacity of a solid-state material for use in an onboard system must be significantly higher than 5.5% by weight considering the mass of other components. To meet this challenge, various types of researches have been conducted on lightweight solid-state materials, especially lightweight and low-cost carbon nanomaterials, graphite-derived polymorphs and nanostructures including nanotubes [7]. In addition, the decoration of nanomaterials with cheap metals led to significant results in improving hydrogen adsorption efficiency.

Although, notable success has been achieved in providing permanent solutions to hydrogen storage problems. There were too many conflicting results that need improvement as most of these materials failed to meet the requirements for applicable hydrogen storage. For example, carbon nanotubes have been reported to provide a physisorption surface for hydrogen adsorption [8]. However, the literature failed to describe the anisotropic effects and tube orientations in terms of the H-C bond energies. Moreover, a comparison of the H adsorption efficiency of CNTs with similar nanotubes such as boron nitride nanotubes has also not been reported. Also, optoelectronic effects on the H-adsorbed systems such as optical refraction, transmission and conductivity have not been reported.

In this work, we studied the adsorption of hydrogen by single-walled carbon nanotubes (SWCNT) and single-walled boron nitride nanotubes (SWBNNT) using a new method called optical spectral analysis. SWCNT and SWBNNT were chosen for this work because of the large volume-to-surface area ratio and lightweight properties that are among the properties of materials that absorb hydrogen. In addition, SWBNNT's characteristic porous nature and lighter weight make them interesting candidates for practical hydrogen storage. The absorption efficiencies of the studied SWCNT and SWBNNT structures are compared, and the effects of the dielectric response on the studied systems are also discussed. In addition, the results obtained are checked for correlation with the experimental data.

2 Research methods

In this work, we investigated hydrogen adsorption potentials of (8, 8) armchair SWCNT and (8, 8) armchair SWBNNT using an optical absorption spectra approach. The investigation of all optimized systems was based on the popular density functional theory. Electronic interactions and determination of the band gap of SWCNT and SWBNNT were performed using the generalized gradient approximation method in terms of the Perdew, Burke and Ernzerhof (PBE) [9] exchange correlation functional and norm conserving pseudo potentials. To ensure accurate results, the quasi-particle energy correction was performed via the G0W0 approximation implemented in the Yambo code using many-body perturbation theory. We use the MBPT to link N atom and N and N ± 1-particle systems using the central time-ordered Green function [10], given by,

$$G\left( {r^{\prime } \; \, t^{\prime } ,r^{\prime } \;t^{\prime } } \right)$$
(1)

To make balance between computational cost and accuracy, kinetic energy convergence (see Fig. 10) for both nanotubes was performed in steps of 20 Ry, 30 Ry, 40 Ry 60, Ry 80 Ry and 70 Ry while convergence of k-points sampling was performed in steps of 1 × 1x20, 1 × 1x26 × 1x1 × 30 and 1 × 1x34. Studies of the optical absorption spectrum were done using the optical response to the incident photon energy in terms of the imaginary dielectric with RPA and BSE. The optical absorption spectra are computed by solving Bethe–Salpeter equation (BSE) within G0W0 approximation. BSE approach was chosen in this work because it gives accurate descriptions of the electron–hole interactions and report the exact bound state of the excitonic systems. GW convergence was achieved using plasmon-pole approximation for the dielectric function and then Newton solver to the quasi-particle correction. Additionally, convergence was done only between the energy differences of the bottom of the conduction band top of the valence band. To achieve balance between computational cost and accuracy, exchange self-energy cutoff and number of bands in the calculation of the dielectric function were all converged.

3 Results and discussion

3.1 Structural properties

In this work, the structural properties of the optimized systems of (8, 8) SWCNT and SWBNNT structures were determined such that the system absorbs hydrogen molecules in a specific three-dimensional space. Figure 1 presents the optimized structures of SWCNT and SWBNNT systems before and after hydrogen interactions, while Table 1 shows the convergence parameters of the pristine and the hydrogen-absorbing SWCNT and SWBNNT systems with respect to the hydrogen distance. To clearly understand the independent hydrogen adsorption efficiencies of each nanotube, the distance of a hydrogen molecule from the adsorption surfaces (SWCNT and SWBNNT) was uniformly varied to 8.21, 8.72 and 9.31, respectively. Results revealed that the diameter of SWBNNT is larger than that of SWCNT because the bond length of SWBNNT is 0.31 longer than that of SWCNT. In the case of H2_adsorbed SWCNT, the total adsorption energy was not converged for hydrogen adsorbed 8.21 Å away by SWCNT. However, perfect adsorption occurred as the hydrogen molecule was moved further away from SWCNT to 8.72 Å resulting in a total energy convergence of − 537.06 eV. There was also a partial convergence at 9.31 Å. Based on this, we can report that hydrogen was perfectly adsorbed by the (8, 8) SWCNT when they are 8.72 Å away.

Fig. 1
figure 1

Optimized structure of a pristine SWBNNT, b hydrogen-adsorbed SWBNNT, c pristine SWCNT and d hydrogen-adsorbed SWCNT; the blue calls denote nitrogen atoms, gray ball denotes boron atoms and red balls represent hydrogen atoms while green balls denote carbon atoms

Table 1 Convergence parameters

In the case of H2_adsorbed SWBNNT, hydrogen molecule was well adsorbed between 8.21 Å and 8.72 Å. Claim to this corresponds to the negligible change in the total energy of adsorption for the hydrogen situated at 8.21 Å and 8.72 Å, respectively. Based on the results of Table 1, the chosen distance of hydrogen from (8, 8) SWCNT and SWBNNT surfaces for perfect adsorption is 8.72 Å.

3.2 Effects of hydrogen adsorption on the electronic properties of SWBNNT

To get a good understanding of the optical response of the (8, 8) SWBNNT due to hydrogen adsorption, the electronic properties of the SWBNNT structure were calculated using both the KS and G0W0 approximations. The band structures were determined along the high symmetry point axis of the irreducible Brillouin zone in which the Fermi level was set at 0 eV. The electronic structure of pristine SWBNNT and H2-adsorbed SWBNNT is shown in Fig. 2a and 2b. Regarding GGA, the calculated band gap of the original SWBNNT was found to be 4.9 eV. Although this value agrees well with the literature, the problem of a band gap under estimation by GGA has been reported frequently [11]. To correct this, we re-ran the calculation using the one-shot GW approximation, which resulted in a significant blue shift of 5.2 eV, which also corresponds to the true band gap of our studied SWBNNT. Furthermore, the bands formed were direct bands, since the maxima of the equilibrium band and the minima of the conduction band were found to have the same momentum [12]. Therefore, this material generates light during electron–hole recombination, favoring it as a better candidate for hydrogen adsorption under ambient conditions. Regarding the hydrogen-adsorbed SWBNNT (H2_adsorbed SWBNNT), it was found that hydrogen adsorption through the outer walls of the SWBNNT resulted in a tube reconstruction that closes the band gap and reduces band bending effects. In this case, the band gap changes after hydrogen molecules are adsorbed on the SWBNNT surface, which is in good agreement with the obtained theoretical data. Therefore, our investigation revealed that the carrier mobility of the SWBNNT increases when it engages in physical interactions with hydrogen. Furthermore, the qualitative features obtained from the GGA and GW calculations are identical [13], apart from a rigid shift in the conduction bands (since the valence bands are fixed such that the valence band maximum is 0).

Fig. 2
figure 2

Electronic bands of a pristine SWBNNT, demonstrating wider direct bands and relatively curved conduction bands and b H2_adsorbed SWBNNT, demonstrating closure of bands by hydrogen molecules and relatively stretched conduction bands

In general, topological behaviors of interacting systems with regard to gas adsorption, in particular their band structure, have a large impact on the density-of-state properties. Furthermore, it has been reported that the density of states outside the band edge can deviate from the expected energy dependence [1]. In order to determine the number of electronic occupations and orbital contributions by pure and hydrogen-adsorbed systems, we measured the total density of states (TDOS) and partial density of states (PDOS). The results of calculations are shown in Fig. 3. Regarding the TDOS for pristine and hydrogen-adsorbed SWBNNT shown in Fig. 3a and b, three distinct peaks are separated by energy gaps in the valence band, while one peak was observed in the conduction band. Empty bands at SWBNNT's Fermi level justified its semiconducting nature, while the presence bands at Fermi level of H2_adsorbed SWBNNT proved its metallic properties. Furthermore, more states were observed in pristine SWBNNT because energy occupation increases with band gap, which correlates well with the obtained literature results. Figure 2c shows the PDOS of the pristine and the H2-adsorbed SWBNNT. An energetically lower valence band is seen in the range -2.2 eV–10.0 eV, mainly due to contributions from the p orbitals of N and also the s orbital of B. Smaller contributions were also observed for the s orbital of nitrogen. The region between -2.2 eV above the Fermi level up to 1.3 eV is mainly the region of hydrogen confinement, as such dominated by s_orbitals of hydrogen. Therefore, the properties of the H2-adsorbed SWBNNT around the Fermi level are due to s_orbials of hydrogen. The minimum conduction bands originate mainly from the p_orbital of the B atom, while the maxima of the valence band originate from the p_orbital of the N atom. Based on these results, we can show that SWBNNT provided an adsorption surface area for hydrogen molecules above and below the vicinity of the Fermi level, and this agrees with the results obtained previously, as shown in Table 2.

Fig. 3
figure 3

a DOS for pristine SWBNNT with empty states near Fermi level, b DOS for H2_adsorbed SWBNNT, showing occupations at Fermi level and c PDOS for H2_adsorbed SWBNNT showing various orbitals contributions

Table 2 The experimental and calculated band gap for pristine SWBNNT

3.3 Optical properties of pristine and H2_adsorbed SWBNNT (optical spectra analysis)

To get the right insight into the behavior of the (8, 8) SWBNNT as a result of its interactions with hydrogen molecules, we first calculated its optical properties in pure (pristine) form and then after hydrogen adsorption. The results are presented in Fig. 4a and b. Through investigations from the literature, it was determined that the analysis on the properties of H2_adsorbed SWBNNT was not performed using optical adsorption spectra analysis. In the present work, we are only interested in the photon absorption by the investigated nanotubes; hence, only imaginary parts of the dielectric function were considered. Furthermore, the optical band gaps were calculated using both RPA and BSE approaches, considering parallel and perpendicular directions of the considered nanotubes. The GDamping in the Green’s function determination was set to 0.1 eV, imaginary dielectric function calculations were performed by extending the Green’s function using 25 bands. With respect to SWBNNT, the first critical step was reached at 5.2 eV, which corresponds to the obtained G0W0 band gap [16], as shown in Fig. 3a, denoted as the edge of the absorption spectrum. The SWBNNT has been observed to absorb photons above 5 eV, which is in the UV range. Since photon absorption in the UV range accounts for only 3% of the absorbed solar energy, SWBNNT is expected to absorb less heat and is, therefore, best suited for gas adsorption under ambient conditions. In the BSE approach, more adsorption peaks including bound states are shown in Fig. 4b due to the inclusion of the electron–hole interaction. Furthermore, due to the high aspect ratio (length to diameter) and larger surface area of the nanotubes, all of the nanotubes interacted with photons in a parallel rather than a perpendicular direction. Another factor that also contributed to the variation in the optical absorption of the nanotube is its anisotropy.

Fig. 4
figure 4

Imaginary dielectric constants for pristine SWBNNT under a RPA and b BSE. As reported, all the spectra showed more intensities in parallel than perpendicular to the nanotubes’ axes

Results of the interactions of (8, 8) SWBNNT with hydrogen molecules are shown in Fig. 5a and 5b. Figure 5a shows the hydrogen adsorption spectra under RPA without considering the e–h interactions. It can be seen that the (8, 8) SWBNNT interacts with hydrogen in the UV–Vis region. To support this statement, high-energy adsorption peaks can be seen in both parallel and perpendicular directions to the nanotube in the range of 0.25 eV. By including e–h interactions, more peaks appeared in the parallel direction between 0 eV and 2.8 eV, which corresponds to the region of energy adsorption in the visible spectrum (Fig. 5b). It was also observed that there is no perpendicular adsorption in the visible range. Furthermore, inclusion of the e–h interactions showed that more hydrogen molecules were adsorbed parallel than perpendicular to the axis of the nanotubes. Based on this, we can report that the high surface area and anisotropy of the SWBNNT were preserved after hydrogen adsorption.

Fig. 5
figure 5

Hydrogen adsorption spectra for pristine SWBNNT under a RPA and b BSE. More occluded hydrogen peaks appear due to electron–hole interactions

3.4 Effects of hydrogen adsorption on the electronic properties of SWCNT

According to the literature, the process of gas adsorption on the surface of metallic material is called occlusion, while the adsorbed hydrogen is called occluded hydrogen. Furthermore, hydrogen adsorption by non-band gap materials is a result of van der Waals forces between the occluded hydrogen (adsorbate) and the adsorbent. As shown in Fig. 6a, our studied armchair SWCNT showed good metallic [17] properties using the G0W0 approximation by showing a zero band gap. Upon adsorption of hydrogen, Fig. 6b shows a change in the occupation of the Fermi level by additional hydrogen molecules, showing that occlusion between hydrogen and SWCNT took place. Band contours formed across the Fermi level were as a result of hydrogen molecules which occupy positions on the surface of the nanotubes due to adsorption. Due to the larger surface area of ​​the nanotube, the heat of adsorption of hydrogen generally decreases. Therefore, the surface of the SWCNT becomes colder during occlusion, favoring it as a better candidate for hydrogen storage than the previously reported SWBNNT. Therefore, the occluded hydrogen molecules stick to the SWCNT surface like condensation of water molecules sticking to a drinking glass. The hydrogen adsorbed by metallic SWCNT can be used in various processes such as activated carbon, catalysts and chilled water for air conditioning. It can also be used for various physical, chemical and biological systems in industry. Moreover, the observed similarities between bands of the pristine SWCNT and the hydrogen-adsorbed SWCNT demonstrated the invariance of the structural properties of the SWCNT due to hydrogen adsorption.

Fig. 6
figure 6

Electronic band structures of a pristine SWCNT and b H2_adsorbed SWCNT. Both systems demonstrated metallic behaviors

We further investigated the factors influencing the adsorption energy by calculating the electronic density of states (DOS) of the interacting nanotubes. It has also been reported that conformational changes caused by adsorption can dramatically affect a molecule’s properties [18]. The DOS plots in Figs. 7a and 6b showed more occupied states in the valence band than in the conduction band. As shown in Fig. 7b, the intensity of the occupied states decreased upon adsorption of hydrogen molecules, confirming that hydrogen physisorption controls conformation and DOS [18]. In addition, the (8, 8) SWCNT material retains its metallic properties after hydrogen adsorption. Therefore, the trapped hydrogen has no influence on the field emission current of the SWCNT. Compared to pristine SWCNT, the intensity of the DOS of hydrogen-adsorbed SWCNT dropped well below 20 states per energy level. This large shift was due to van der Walls forces, despite the apparent lack of chemical interactions. Therefore, our results indicated that Van der Waals played an important role in determining the key adsorption properties of the SWCNT. The calculated and experimental band gap values for bare (8, 8) SWCNT are presented in Table 3. Results from the table revealed very good agreement with the obtained properties of armchair SWCNTs reported.

Fig. 7
figure 7

Electronic DOS of a pristine SWCNT and b H2_adsorbed SWCNT. Both systems showed occupied states at Fermi level

Table 3 The experimental and calculated band gap for pristine SWCNT

The energy of absorptions of both pristine and hydrogen-adsorbed SWCNT was calculated in terms of the imaginary dielectric response. The optical absorption spectrum is defined by the imaginary part of the dielectric function, which can be calculated as follows:

$$\varepsilon_{2}^{{G0W0 + {\text{BSE}}}} \left( \omega \right) = \frac{{16\pi e^{2} }}{{\omega^{2} }}\mathop \sum \limits_{S} \left| {\overrightarrow {\lambda .} O{|}\vec{\upsilon }{|}S} \right|^{2} \delta \left( {\omega - \Omega^{s} } \right)$$
(2)

where Ɛ2 denotes the imaginary dielectric constant which takes care of the amount of hydrogen energy adsorbed, and \(G0W0 + {\text{BSE}}\) are quantities which take care of the quasi-particle properties in terms of the electron–hole interactions. The imaginary part of the dielectric function is the result of the summation of the valence to conduction band transitions under a specified k-point of the corresponding BZ. The absorption spectra obtained for the original SWCNT under RPA and BSE are shown in Fig. 8a and b. As shown in Fig. 8b and a, clear optical absorption edge can be seen at 0.3 eV and 0.4 eV in perpendicular and parallel, respectively. Compared to the SWBNNT (previously shown in Fig. 3), the armchair SWCNT absorbs more electromagnetic energy than the SWBNNT. For example, the imaginary dielectric constant for SWBNNT under BSE parallel was 4.8 (Fig. 4b), while the imaginary dielectric constant for SWCNT was 10 (Fig. 8b). Furthermore, energies in a much lower range (0–5 eV) are absorbed by SWCNT than by SWBNNT (5–8 eV), and this agrees well with the reported experimental data. The obtained spectra for armchair SWCNT after adsorption of hydrogen molecules are shown in Fig. 8a and b.

Fig. 8
figure 8

Imaginary dielectric constants for pristine SWCNT under a RPA and b BSE. The spectra showed that SWCNT adsorbs more hydrogen in the visible range

Figure 9a shows the hydrogen adsorption spectra of (8, 8) SWCNT. As observed, hydrogen molecules were adsorbed in the 0 eV–5 eV range, which corresponds to the UV–Vis range [23]. The highest adsorption was recorded at 2.3 eV, which corresponds to the visible range. In addition, there was a higher adsorption in parallel than perpendicular to the axis of the nanotubes. Claim for this statement was based on the drop in the intensity of the imaginary dielectric value from 22 in the parallel to 7.3 in the perpendicular. Higher parallel adsorption was due to the high aspect ratio characteristic of the nanotube, while lower adsorption in the perpendicular direction was due to energy loss along the perpendicular direction caused by a lower diameter-to-length ratio [24]. The effects of including e–h interactions are shown in Fig. 9b. More adsorption peaks appear at 0 eV–2.5 eV in both parallel and perpendicular, which is the optical band gap value for materials used as photocatalysts. Therefore, it can be reported that (8, 8) SWCNT adsorbs hydrogen molecules in a manner similar to a photocatalyst. Another interesting new feature observed in hydrogen-adsorbed (8, 8) SWCNTs is the fact that its geometric and structural properties were retained after adsorption. Several adsorption peaks can be seen due to interactions within the bands of electrons and holes of hydrogen and carbon atoms. Another advantage of hydrogen adsorption by chair SWCNTs over SWBNNTs is their ability to be efficient under ambient conditions, hence providing a cheap facility for hydrogen energy storage. The energy storage potentials of both SWCNT and SWBNNT obtained via optical spectra analysis are well correlated with the obtained experimental data as presented in Table 4.

Fig. 9
figure 9

Hydrogen adsorption spectra for pristine SWCNT under a RPA and b BSE

Table 4 Calculated and experimental data for hydrogen-adsorbed SWCNT and SWBNNT

As shown in Table 4, all the literature showed that SWBNNT adsorbs hydrogen in the 5–15 eV range, which agrees well with our findings. SWCNT was also shown to adsorb in the 0 eV–5 eV range, which is also consistent with the current work. However, this work differs significantly from the previous reports as it took care of the geometry of the systems studied such as chirality, distance of the hydrogen molecule from the nanotubes and the diameter of the nanotubes.

4 GW convergence

The self-energy of the SWCNT and SWBNNT electronic systems was determined using GW approximation in terms of one-particle green function G and screened Coulomb interaction W. Regarding kinetic energy cutoff convergence as presented in Fig. 10a, one has to increase ecut values to at least 60 Ry to achieve convergence for both SWBNNT and SWCNT. Similarly, the convergence with respect to k_mesh for SwBNNT and SWCNT is presented in Fig. 10b. For good convergence, the k_grides must be at least 1 X 1 X 20. With respect to this work, we have set E_cut value of 125 Ry and k_point mesh of 1 X 1X 20 as the converged value for our calculations [29,30,31,32,33].

Fig. 10
figure 10

Convergence with respect to a kinetic energy cutoff and b k_Sampling grids

5 Conclusion

This work investigated the hydrogen adsorption properties of (8, 8) SWCNT and SWBNNT using popular density functional theory. The adsorption areas of the hydrogen molecule were chosen so that the hydrogen molecule was 8.72 away from each nanotube. From the present work, it was observed that well-converged values of hydrogen adsorption energies of − 537.06 eV and − 631.93 eV were achieved for (8, 8) SWCNT and SWBNNTs, respectively. Based on this, it can be reported that (8, 8) SWCNT provided a better adsorption surface area than (8, 8) SWBNNT. Analysis of optical adsorption spectra revealed that (8, 8) SWBNNT adsorbs hydrogen from visible to radio wave regions. The results of the optical interactions of (8, 8) SWCNT showed that the system absorbs hydrogen only in the visible region and exhibited optical adsorption properties similar to those of photocatalysts. Both (8, 8) SWCNT and SWBNNT gave off heat when adsorbing hydrogen due to direct transitions, while (8, 8) SWCNT generated light due to direct transitions. The results of this work indicated that while (8, 8) SWBNNT adsorbs more hydrogen than (8, 8) SWCNT, (8,8) SWCNT may be a better surface to store hydrogen in due to its ability to adsorb more in visible range and gives off no heat.