Introduction

Nowadays, \(\text {H}_{2}\) energy is considered as one of the best alternatives to fossil fuels because of its natural abundance, high energy capacity and zero pollutant transpiration1,2,3,4. At the \(\text {H}_{2}\) production processes, especially steam-methane reforming reaction, there are many byproducts such as \(\text {CO}\), \(\text {CO}_{2}\), \(\text {N}_{2}\) and \(\text {CH}_{4}\) which cause undesirable influences on the energy content and usage of \(\text {H}_{2}\)5. Consequently, developing high-quality and low-cost technologies to separate \(\text {H}_{2}\) from other impurities gases is crucial in the industry6.

Moreover, \(\text {CO}_{2}\) is regarded as the main greenhouse gas. It is noteworthy that approximately 80% \(\text {CO}_{2}\) emissions come from the burning of fossil fuels7. It is predicted that the concentration of \(\text {CO}_{2}\) in the atmosphere would increase up to 570 ppm in 2,100 which increases the global temperature of about 1.9 \(^{\circ }\text {C}\)8. Therefore, \(\text {CO}_{2}\) capture technology will play an important role in climate change and global warming phenomena9,10,11. On the other hand, \(\text {CO}_{2}\) capture is a very expensive technology. So, researchers focus on the development of economical technologies12.

Currently, \(\text {H}_{2}\) separation from \(\text {CO}_{2}\) and \(\text {CO}_{2}\) capture processes have attracted wide attention especially in industrial applications. The common traditional gas separation methods are cryogenic distillation and pressure swing adsorption13. However, these methods have disadvantages such as complex performance and high energy consumption.

So far, many \(\text {CO}_{2}\) capture technologies are used based on physisorption–chemisorption14,15, amine dry scrubbing16, metal-organic frameworks (MOFs)17,18, porous organic polymers19 and ionic liquids20,21. Recently, membrane-based separation methods are widely used for \(\text {H}_{2}\) purification and \(\text {CO}_{2}\) capture because of low energy consumption, low cost of use and simplicity in performance22,23,24,25. According to this, various membrane materials such as polymeric membranes26, MOFs27, nano-porous materials28 and zeolite membranes29 have been applied to gas separation technology.

The selectivity and permeance are two necessary parameters to investigate the performance of the gas separation membranes. An ideal two-dimensional (2D) membrane would represent a good balance between the selectivity and permeance factors. However, traditional membranes usually have the selectivity-permeance trade-off challenge30,31,32. The permeance is inversely related to the membrane thickness. Hence, one-atom-thick membrane could be an excellent candidate for gas separation33.

In the past decade, the design and construction of appropriate 2D membranes for gas separation have dedicated a lot of attention34,35,36. Recently, carbon allotropes have been used as the gas separation membranes37,38,39. These structures show many properties such as high mechanical and chemical stability and periodically distributed uniform pores which make them suitable candidates for the gas separation22,40. Among various carbon allotropes, graphdiyne (GDY) is a new 2D carbon allotrope composed of sp and \(\text {sp}^2\) hybridized carbon atoms which can be constructed by replacing some carbon–carbon bonds in graphene with uniformly distributed diacetylenic linkages41. This structure was firstly synthesized on the surface of copper using a cross-coupling reaction42. Theoretical and experimental studies show that the existence of sp and \(\text {sp}^2\) hybridized carbon in GDY leads to high \(\pi \)-conjunction, wide interplanar spacing, excellent chemical stability, extreme hardness and high thermal resistance of this structure43,44,45,46,47,48,49. Furthermore, the heat of formation of GDY is reported about 18.3 kcal per g-atom C, which makes it to be the most stable carbon allotrope containing diacetylenic linkages50.

Many researches have been done to study the gas separation process through the GDY monolayer membrane because of its abundant uniform pores, the size of pores and one-atom thickness. For example, Cranford and Buehler studied the influences of temperature and pressure on \(\text {H}_{2}\) purification from \(\text {CO}\) and \(\text {CH}_{4}\) in the GDY membrane using MD simulations51. Zhang et al. represented that GDY with larger pores shows a high selectivity for \(\text {H}_{2}\)/\(\text {CH}_{4}\), but a relatively low selectivity over small molecules such as \(\text {CO}\) and \(\text {N}_{2}\)52. Jiao et al. based on DFT calculations showed that the selectivity of \(\text {H}_{2}\) toward \(\text {CH}_{4}\) and \(\text {CO}\) in the GDY monolayer membrane is much higher than those of silica and carbon membranes53.

It has been proved that changing the pore size of sp–\(\text {sp}^2\) hybridized carbon in the GDY by substituting some diacetylenic linkages with heteroatoms could be a promising method to improve the performance of the GDY monolayer membrane in the gas separation process54. In this regard, Desroches et al. synthesized the GDY-like nanoribbons (GDNR) in which one-third diacetylenic linkages of GDNR were substituted with \(\text {H}\) atoms which leads to construct the rhomboidal pores instead of triangular pores55. A nitrogen modified GDY is also investigated concerning its performance for \(\text {H}_{2}\) purification from \(\text {CH}_{4}\) and \(\text {CO}\). This structure shows high performance for \(\text {H}_{2}\) purification by decreasing \(\text {H}_{2}\) diffusion energy barrier22. Moreover, Zhao et al. designed three GDY-like monolayer membranes by replacing one-third diacetylenic linkages with three heteroatoms \(\text {H}\), \(\text {F}\) and \(\text {O}\) (GDY-H, GDY-\(\text {F}\) and GDY-\(\text {O}\) membranes, respectively) to control the pore size of GDY for separating a mixture of \(\text {CO}_{2}\)/\(\text {N}_{2}\)/\(\text {CH}_{4}\) gases. Then, they investigated the separation performance of these membranes using DFT calculations and MD simulations. Their study showed that the GDY-H membrane exhibits poor selectivity for \(\text {CO}_{2}\)/\(\text {N}_{2}\)/\(\text {CH}_{4}\) gases, while the GDY-\(\text {F}\) and GDY-\(\text {O}\) membranes can excellently separate \(\text {CO}_{2}\) and \(\text {N}_{2}\) from \(\text {CH}_{4}\) in a wide temperature range56.

In the present study, we have proposed a new approach to separate \(\text {H}_{2}\) from \(\text {CO}_{2}\) using GDY-H monolayer membrane which designed by Zhao et al.56. We have calculated the energy barriers of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through GDY-H monolayer membrane using DFT calculations. Then, we have obtained the selectivity and permeance of the membrane for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases. Furthermore, we have placed two layers of GDY-H adjacent to each other which the distance between them is 2 nm. Then, we have inserted 1,3,5-triaminobenzene (1,3,5-TAB) between two layers. The electron pair of \(\text {N}\) atoms in this structure can improve \(\text {CO}_{2}\) capture process. We have performed MD simulations to calculate the selectivity and permeance of the GDY-H membrane for \(\text {H}_{2}\) and \(\text {CO}_{2}\) in three cases: monolayer of membrane, two layers of membrane and two layers of membrane in the presence of 1,3,5-TAB. Our proposed approach shows high selectivity and excellent permeance for separating a mixture of \(\text {H}_{2}\)/\(\text {CO}_{2}\) gases using the GDY-H membrane in the presence of 1,3,5-TAB at different temperatures.

Computational methods

A large 2D sheet \({28.34 \times 28.34}\,{\AA }^{2}\) in xy plane including 240 atoms of C and H is formed to exhibit 2D GDY-H monolayer and calculate the energy barrier of the gases diffusing through the membrane and explain the electron density isosurfaces for the molecules interacting with GDY-H monolayer. Isoelectron density surfaces were calculated by the Gaussian 09 program57 at the B3LYP/6–31G(d) level with D3 correction58. These surfaces were plotted at isovalues \({0.0065}\,{\text{e}{\AA }^{-3}}\) to describe the interaction between the electron density of the gas and the pore. According to this method, we obtain the potential energy curves of a single \(\text {H}_{2}\) and \(\text {CO}_{2}\) particle when passing through the membrane vertically and horizontally. Based on the barrier energy which was obtained by potential energy curves, we calculate the selectivity and permeance using kinetic theory of gases in the range of 10–600 K in our DFT calculations. The equations for calculating permeance and selectivity parameters are explained in detail in “Results and discussion” section. In addition, the information of \(\text {CO}_{2}\) capture by 1,3,5-TAB was obtained at the B3LYP/6–311++G(d,p) level with D3 correction.

We have performed MD simulations to analyze \(\text {H}_{2}\) purification using Forcite code in the Material Studio 6.0 software under canonical (NVT) ensemble condition. The range of temperature, 200–600 K, was controlled by the Anderson thermostat. The information of \(\text {H}_{2}\) purification and \(\text {CO}_{2}\) capture by periodic boundary conditions used in all dimensions. The interatomic interactions between the gases and the carbon-based membranes were described by a condensed-phase optimized molecular potential for atomistic simulation studies (COMPASS) force field59,60,61,62. The cut-off distance of van der Waals interactions was considered as \({12.5}\,{\AA }\). We have used the Ewald method to investigate the electrostatic interactions. The cubic boxes with the dimensions of \(37.55 \times 37.55 \times 37.55\)\({\AA ^3}\) with 200 1,3,5-TAB molecules and 20 \(\text {CO}_{2}\) molecules were considered to study the radial distribution function (RDF) for carbon atoms in \(\text {CO}_{2}\) and nitrogen atoms in 1,3,5-TAB.

A cubic boxes with the dimensions of \(59.0 \times 49.6 \times 100.0\)\({\AA ^3}\) were separated equally along the z-direction with pieces of the GDY-H membrane in order to confirm the QM results. Moreover, cubic boxes with the dimensions of \(59.0 \times 49.6 \times 120.0\)\({\AA ^3}\) were trisected along the z-direction with two pieces of GDY-H membranes in the distance of 2 nm from each other which are placed at the middle of the box and constructed one gas reservoir in the first part (the gas mixtures involved 200 \(\text {H}_{2}\) and 200 \(\text {CO}_{2}\) molecules), the region contains 75 molecules of 1,3,5-TAB in the middle and the vacuum region on the top side. The carbon atoms on the edge of the GDY-H monolayer were always fixed and all other atoms were fully relaxed (convergence criterion are respectively met: \(1 \times 10^{-4} \; \text {kcal}\,\text {mol}^{-1}\) for total energy, \(5 \times 10^{-3} \; \text {kcal}\,\text {mol}^{-1} \AA ^{-1}\) for force and \(5 \times 10^{-5}\AA \) for displacement). The total time of simulation was 1000 ps and Newton’s equations were integrated using 1 fs time steps. We have proposed this theoretical method to analyze whether the performance of GDY-H monolayer to purify \(\text {H}_{2}\) in the presence of \(\text {CO}_{2}\) molecules increases or not. According to the diffused gas molecules through monolayer at the end of the simulation time, we have calculated the selectivity, permeance and the probability density distribution in order to evaluate the performance of GDY-H membrane.

Results and discussion

The stability of the membranes for the gas separation process is an important parameter for their experimental applications. Zhao et al. confirmed the stability of GDY-H monolayer membrane by calculating cohesive energy and phonon dispersion spectra56. Their results showed that the cohesive energy of GDY is 7.24 eV/atom, which is consistent with theoretical value 7.65 eV/atom63. Moreover, the cohesive energy of GDY-H membrane is 6.73 eV/atom56 which is slightly smaller than the value of it for GDY, but is near the \(\alpha \)-graphyne membrane 6.93 eV/atom64 and higher than silicene 3.71 eV/atom65. Therefore, the GDY-H monolayer membrane is strongly bonded structure and rather stable enough for its formation and applications. Moreover, this membrane does not show imaginary frequency in the calculated phonon dispersion spectra56. It means that the structure of GDY-H membrane is located at the minimum point on the potential energy surfaces. These results indicate that GDY-H membrane could be constructed in the experiments.

Figure 1 displays the most stable adsorption configurations of \(\text {CO}_{2}\) molecule in the presence of 1,3,5-TAB molecule. For \(\text {CO}_{2}\) molecule, the most stable adsorption sites occurred where C in \(\text {CO}_{2}\) placed at distances of 4.146 and 4.167 Å toward two nearest N atoms (Fig. 1) with the binding energy of 0.52 eV and the C–O bond is parallel with C–H bond of the benzene ring in 1,3,5-TAB molecule. Considering entropic penalty, it is expected that the binding energy should be greater than 0.5 eV to effectively capture gas molecules on the solid surfaces. In the float environment of 1,3,5-TAB, we can show that this molecule demonstrates good behavior for the \(\text {CO}_{2}\) capture66.

Figure 1
figure 1

Geometry-optimized structure of \(\text {CO}_{2}\) gas in the presence of 1,3,5-TAB molecule.

Moreover, we performed MD simulation to confirm the results of DFT calculations. We used liquid density to investigate the validity of a proposed force field. In the present study, our results are compared to the experimental data from the other studies. Our results show an appropriate agreement between the predicted density from our force field and the experimental data. The experimental value of the density of the 1,3,5-TAB is \(1.279 \text { cm}^{3}/\text {ml}\) at 298.15 K and 1 bar pressure, and the simulated density is \(1.246 \text { cm}^3/\text {ml}\) which is nearly ~ 3% lower than the experimental value. Due to the predictive nature of the calculations, it seems that this level of agreement is suitable.

The RDF presents information about microstructure considering the nature of interactions as well as the arrangement of the molecules and can be defined as69

$$\begin{aligned} g_{i,j}(r)={\frac{V}{N_{i}N_{j}}{\sum _{i=1}^{N_i}}{\sum _{j=i+1}^{N_j}}{\langle {\delta (r-| {\overrightarrow{r_{i}}(t) - \overrightarrow{r_{j}}(t)} |)} \rangle }_t} \end{aligned}$$
(1)

where \(\overrightarrow{r_{i}}\) and \(\overrightarrow{r_{j}}\) denote the position vectors of the \(i\)th and the \(j\)th particles and the bracket denotes the ensemble average on the distance between atoms i and j. Moreover, N and V represent the number of particles and volume, respectively. Each RDF represents the distance-dependent relative probability for observing a given site or atom in relation to some central atom or site. Figure 2 shows the RDF for the N atom of the 1,3,5-TAB with the C and O atoms of \(\text {CO}_{2}\) molecules. As shown in Fig. 2, a sharp and intense peak in the RDF is seen for C at about \(4.05 \,{\AA }\). Broader peaks at \(7.43 \,{\AA }\) and roughly \(11.11 \,{\AA }\) are also seen. Moreover, a sharp and intense peak in the RDF is seen at about \(3.73 \,{\AA }\), indicating the relatively strong interaction between the 1,3,5-TAB and the \(\text {CO}_{2}\) molecules.

Figure 2
figure 2

Radial distribution functions between N atoms of 1,3,5-TAB and C and O atoms of \(\text {CO}_{2}\).

In the gas separation membranes, the interaction energy between the gases and the membrane can be defined as39

$$\begin{aligned} E_{{\text {int}}}=E_{{\text {gas}}+ {\text {sheet}}}-(E_{{\text {gas}}}+E_{{\text {sheet}}}) \end{aligned}$$
(2)

where \(E_{{\text {gas}}+ {\text {sheet}}}\), \(E_{{\text {gas}}}\) and \(E_{{\text {sheet}}}\) are the total energy of the gas molecule adsorbed on the membrane, the energy of the isolated gas molecule and the energy of the membrane, respectively. In Fig. 3, the minimum energy pathways for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through GDY-H membrane are plotted in the distance \({\pm 3}\,{\AA }\) from the center of the pore. Since the pore size of the membrane is large, we consider the gases passing horizontally and vertically through the membrane. As shown in Fig. 3, the vertical and horizontal situations have minimum energy pathways for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases, respectively.

Figure 3
figure 3

Minimum energy pathways for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing horizontally (h) and vertically (v) through GDY-H membrane in the distance \({\pm 3}\,{\AA }\) from the center of the pore.

We also define the diffusion energy barrier for the gases to investigate the process in which the gases passing through the membrane as39

$$\begin{aligned} E_{{\text {barrier}}}=E_{{\text {TS}}}-E_{{\text {SS}}} \end{aligned}$$
(3)

where \(E_{{\text {barrier}}}\), \(E_{{\text {TS}}}\) and \(E_{{\text {SS}}}\) represent the diffusion energy barrier, the total energy of the gas molecules and the pore center of the membrane at the transition state and the steady state, respectively. The kinetic diameters (\(D_0\)) of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases are 2.60 and 3.30 Å, respectively and the energy barriers of the gases passing through GDY-H membrane are 0.032 and 0.078 eV, respectively.

Furthermore, we have drawn the isoelectron density surfaces at isovalue \({0.0065} \,{\text{e}\AA ^{-3}}\) in Fig. 4 to investigate the electron overlaps between \(\text {H}_{2}\) and \(\text {CO}_{2}\) molecules passing horizontally and vertically and GDY-H monolayer membrane. As shown in Fig. 4, the energy barrier for \(\text {H}_{2}\) is very low due to the low electron overlap between \(\text {H}_{2}\) and the membrane. On the other hand, more electron overlap between \(\text {CO}_{2}\) molecule and GDY-H membrane makes the higher energy barrier for \(\text {CO}_{2}\) gas.

Figure 4
figure 4

Electron density isosurfaces for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gas molecules passing horizontally (a,c) and vertically (b,d) through GDY-H membrane, respectively. The isovalue is \({0.0065} \,{\text{e}\AA ^{-3}}\).

As we mentioned before, the performance of the gas separation membranes is evaluated by two factors: selectivity and permeance. Here, we investigate these parameters for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through GDY-H membrane.

We estimate the selectivity of \(\text {H}_{2}\) toward \(\text {CO}_{2}\) passing through GDY-H membrane using the Arrhenius equation which is defined as54

$$\begin{aligned} S_{{{\text {x}}} /{{\text {gas}}}}=\frac{r_{{\text {x}}}}{r_{{\text {gas}}}}=\frac{A_{{\text {x}}} e^{-E_{{\text {x}}}/RT}}{A_{{\text {gas}}}e^{-E_{{\text {gas}}}/RT}} \end{aligned}$$
(4)

where r is the diffusion rate and A is the diffusion prefactor, which is supposed to be the same for all gases (\(A=1\times 10^{11} \; \text {S}^{-1}\))54. Furthermore, E, R and T are the diffusion energy barrier, the molar gas constant and the temperature of the gases, respectively.

We have drawn the calculated selectivity of GDY-H membrane for \(\text {H}_{2}\) molecule toward \(\text {CO}_{2}\) gas at a wide range of temperatures (10–600 K) in Fig. 5. Our results show that the selectivity for \(\text {H}_{2}\) molecule decreases with increasing temperature. Also, the calculated selectivities of \(\text {H}_{2}\) toward \(\text {CO}_{2}\) for GDY-H membrane and other proposed membranes at room temperature (300 K) are compared in Table 1. As is clear, GDY-H membrane exhibits poor selectivity for \(\text {H}_{2}\) toward \(\text {CO}_{2}\) among the other proposed membranes.

Table 1 \(\text {H}_{2}\)/\(\text {CO}_{2}\) selectivities for GDY-H membrane and other proposed membranes at room temperature (300 K).
Figure 5
figure 5

Selectivity of \(\text {H}_{2}\)/\(\text {CO}_{2}\) and permeance of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through GDY-H membrane as a function of temperature based on DFT calculations. The red dotted plot indicates the industrial permeance limit (IPL) for the gas separation process which is 6.7 \(\times 10^{-9} \text {mol}\; \text {m}^{2} \text {sPa}\)54.

The permeance parameter which indicates the separation efficiency is another important factor to characterize the performance of a gas separation membrane. So, we study the permeance of GDY-H monolayer membrane for separating \(\text {H}_{2}\) from \(\text {CO}_{2}\).

We use the kinetic theory of the gases and the Maxwell–Boltzmann velocity distribution function to analyze the permeances of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gas molecules passing through GDY-H membrane. We define the number of gases colliding with GDY-H sheet as39

$$\begin{aligned} N=\frac{P}{\sqrt{2\pi MRT}} \end{aligned}$$
(5)

where P, M, R and T are the pressure, here, \({3\times 10^5}\) Pa, the molar mass, the molar gas constant and the temperature of the gases, respectively. The probability of diffusing of a gas molecule through the pore of the membrane is defined as

$$\begin{aligned} f=\int _{v_B}^{\infty } f(v) {\text {d}}v \end{aligned}$$
(6)

where \(v_B\) and f(v) denote the velocity and the Maxwell velocity distribution function of the gas particles, respectively. The flux of the particles can be expressed as \(F = N \times f\). We suppose that the pressure drop \(\Delta P\) is \(1\times 10^{5} \text { Pa}\). Then, we can express the permeance of the gas molecules passing through the GDY-H membrane as \(p=F/\Delta P\)39.

In Fig. 5, we have drawn the permeance of the \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through the GDY-H membrane as a function of temperature. The red dotted plot exhibits the industrial permeance limit (IPL) for the gas separation. As shown in Fig. 5, with increasing temperature, the permeance of each gas increases largely, while the divergence of permeances between two gases decreases. In other words, by raising the temperature, the kinetic energies (\(E=3k_{B}T/2\)) of the gases increases. So, the influence of the energy barrier decreases and the gases diffuse through GDY-H membrane more easily. Moreover, it can be concluded that the GDY-H membrane shows the permeance of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gas molecules are much higher than the industrial values at temperatures above 20 K and 80 K, respectively. However, GDY-H membrane does not show an appropriate balance between the selectivity and permeance factors. Therefore, the performance of GDY-H membrane in the separation of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases is unsuitable.

We now present a new approach to improve the performance of GDY-H membrane for separating a mixture of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases.

We place two layers of GDY-H adjacent to each other which the distance between them is 2 nm. Then, we insert 1,3,5-TAB between two layers which has a lot of \(\text {N}\) atoms. The electron pair of \(\text {N}\) atoms in this structure can improve \(\text {CO}_{2}\) capture process. We use MD simulations to estimate selectivities and permeances of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through a monolayer of the membrane, two layers of the membrane and two layers of the membrane in the presence of 1,3,5-TAB at the temperature range of 200–600 K.

The MD simulated configurations of the gas particles passing through the porous GDY-H membrane at different temperatures are shown in Fig. 6. The gas molecules adsorb on the surface of the GDY-H monolayer by van der Waals interaction. In the following, they adhere on the surface for a few picoseconds before passing through the monolayer, because of the concentration of the gases is different between the gas reservoir (containing \(\text {H}_{2}\) and \(\text {CO}_{2}\)) and the vacuum space.

Figure 6
figure 6

MD simulated configurations of the \(\text {H}_{2}\) and \(\text {CO}_{2}\) gas particles passing through the GDY-H membrane: (a) monolayer, (b) two layers and (c) two layers of the membrane in the presence of 1,3,5-TAB. The height of simulation boxes are 10, 12 and 12 nm, respectively.

Based on the MD simulations, one can obtain the numbers of gas molecules passing through the GDY-H membranes after 1 ns by counting the number of molecules in the vacuum regions. In this regard, the selectivity of gas A toward gas B can be defined as71

$$\begin{aligned} S_{A/B} = \frac{x_A/x_B}{y_A/y_B} = \frac{N_A/N_{0,A}}{N_B/N_{0,B}} \end{aligned}$$
(7)

where \(x_A (x_B)\) and \(y_A (y_B)\) are the mole fractions of component A (B) in the vacuum regions and the gas reservoir, respectively and \(N_A (N_B)\) and \(N_{0,A} (N_{0,B})\) are the corresponding number of molecules A (B).

Furthermore, we can define the permeance of the gases passing through the membrane as72

$$\begin{aligned} p=\frac{\nu }{S\times t \times \Delta P} \end{aligned}$$
(8)

where \(\nu \) and S represent the mole of the gases which diffused through the membrane and the area of the membrane, respectively. Furthermore, t is the time of simulation (1 ns) and the pressure drop (\(\Delta P\)) is considered 1 bar across the pore of GDY-H membrane.

The number of gas molecules passing through the monolayer, two layers and two layers of the GDY-H membrane in the presence of 1,3,5-TAB in the range of 200–600 K where given in Table 2. In all three cases, as the temperature enhances, the number of particles passing through the membrane increases. However, for two layers and two layers of the GDY-H membrane in the presence of 1,3,5-TAB cases, the passing of \(\text {CO}_{2}\) gases is very negligible. For the third case, it reaches almost zero. This result shows that the presence of 1,3,5-TAB between two layers of GDY-H membrane has been able to capture the \(\text {CO}_{2}\) gas.

Table 2 Number of the gas molecules passing through the GDY-H membrane in the range of 200–600 K.

The selectivity of \(\text {H}_{2}\) toward \(\text {CO}_{2}\) gases passing through monolayer, two layers and two layers of the GDY-H in the presence of 1,3,5-TAB were given in Table 3. As it is clear the selectivity of \(\text {H}_{2}\)/\(\text {CO}_{2}\) is increased in the presence of 1,3,5-TAB. Moreover, the permeance of \(\text {H}_{2}\) and \(\text {CO}_{2}\) molecules in the three cases were drawn in Fig. 7. It can be seen that the permeance of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through GDY-H membrane is very high (about \(10^8\) GPU). In addition, the permeance of \(\text {H}_{2}\) and \(\text {CO}_{2}\) molecules enhances with increasing temperature.

Table 3 Selectivity of \(\text {H}_{2}\) over \(\text {CO}_{2}\) molecules which passing through the GDY-H membrane at the range of 200–600 K.
Figure 7
figure 7

Permeance of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through the GDY-H membrane in our proposed approach as a function of temperature based on MD simulations. The green and red plots represent the permeances of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases, respectively. The fill plot, dashed plot and dotted plot represent the monolayer, two layers and two layers of the membrane in the presence of 1,3,5-TAB, respectively. 1 GPU=3.35 \(\times\,10^{-10} \;\text {mol}/ \text {m}^2 \text {s} \text {Pa}\)70.

The calculated permeances of \(\text {H}_{2}\) for GDY-H membrane in our approach together with that of the previously proposed membrane at room temperature are summarized in Table 4. As is clear, our approach shows appropriate \(\text {H}_{2}\) permeance for the GDY-H membrane in comparison to the other proposed membrane. The size of the pores in the GDY-H membrane is large in comparison to the other carbon allotrope membranes which leads to a weaker electrostatic and Lennard–Jones interactions between the gas molecules and the membrane. So, the gas separation process will be harder. However, the presence of 1,3,5-TAB in our approach facilitated the \(\text {CO}_{2}\) capture process which leads to improve the selectivity and permeance of the GDY-H membrane. Consequently, our approach shows an appropriate balance between selectivity and permeance factors for the separation of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases.

Table 4 \(\text {H}_{2}\) permeance of the GDY-H membrane in our approach and other proposed membranes at room temperature (300 K).

Furthermore, the probability density distributions of \(\text {CO}_{2}\) gases as a function of distance to GDY-H membrane were drawn at different temperatures in Fig. 8. As shown in Fig. 8, in the monolayer case, we conclude that there is physical adsorption of \(\text {CO}_{2}\) gases on near the membrane. In two layers case, \(\text {CO}_{2}\) gases which passed through the first layer approach to the second layer and adsorb physically in the near of it. In the third case, the probability density of \(\text {CO}_{2}\) gases is increased which shows that \(\text {CO}_{2}\) gases are captured by 1,3,5-TAB. It means that there is no physical adsorption for \(\text {CO}_{2}\) gases (except a single peak at 600 K). These curves exhibit adsorption height for the \(\text {CO}_{2}\) gases in the range of 2–3 \({\AA }\) from the GDY-H monolayer at low temperatures which is in good agreement with the results obtained by DFT calculations. As the temperature increases, the kinetic energy of the gas particles enhances. Consequently, they overcome the adsorption energy and desorbed from the GDY-H membrane easily. So, the probability distribution for each \(\text {CO}_{2}\) gas decreases at high temperatures.

Figure 8
figure 8

Probability density distribution of the \(\text {CO}_{2}\) molecules passing through the GDY-H membrane at different temperatures as a function of distance in (a) monolayer, (b) two layers and (c) two layers of the membrane in the presence of 1,3,5-TAB.

Conclusion

Recent advances in gas separation technology provide new perspectives for the use of carbon allotropes for the development of gas separation membranes. However, one of the main challenges of the most designed carbon membranes is the selectivity-permeance trade-off challenge. Therefore, developing new approaches for the gas separation process based on carbon allotrope membranes seems essential.

In this work, we proposed a new approach to improve the performance of a GDY-like membrane (GDY-H) to separate a mixture of \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases. This membrane is designed by substituting one-third diacetylenic linkages in GDY structure with hydrogen atoms and the stability of it confirmed by Zhao et al.56.

First, regarding the calculated energy barriers for the gases, we investigated the performance of GDY-H monolayer membrane for \(\text {H}_{2}\) and \(\text {CO}_{2}\) separation based on DFT calculations. Our results show poor selectivity and good permeance for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases passing through the membrane. The permeance for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases are much higher than the value of them in the current industrial applications especially at temperatures above 20 K and 80 K, respectively. However, this monolayer membrane does not show a good balance between the selectivity and permeance factors.

To improve the performance of GDY-H membrane, we placed two layers of GDY-H adjacent to each other which the distance between them is 2 nm. Then, we inserted 1,3,5-TAB between two layers which the electron pair of \(\text {N}\) atoms in this structure can improve \(\text {CO}_{2}\) capture process. We performed MD simulations to analyze the selectivity and permeance of GDY-H membrane in three cases: a monolayer of the membrane, two layers of the membrane and two layers of the membrane in the presence of 1,3,5-TAB. Our results show that the selectivity of \(\text {H}_{2}\)/\(\text {CO}_{2}\) is increased from 5.65 to purified \(\text {H}_{2}\) gas in the presence of 1,3,5-TAB at 300 K. Moreover, GDY-H membrane exhibits excellent permeances, more than 10\(^8\) GPU, for \(\text {H}_{2}\) and \(\text {CO}_{2}\) gases. Consequently, this proposed approach represented an appropriate balance between the selectivity and permeance factors for \(\text {H}_{2}\) and \(\text {CO}_{2}\) separation.

We hope our proposed approach will be tested by experimental research groups to study \(\text {H}_{2}\) purification and \(\text {CO}_{2}\) capture processes, which are very crucial technologies in the industry.