Introduction

With the development of industry, environmental problems have endangered human health, among which water pollution and its related problems have severe human life and health implications, therefore coping strategies for these pollutants has become a priority nowadays. Due to the rapid development of the application of the dyes industry, synthetic organic dyes pollution in water is known as the main source of environmental pollution1,2.

Rhodamine B (Rh B) is a synthetic organic red dye with high solubility, extensively employed in the printing, textile industry, medicine for animals, etc. Rh B is dangerous to environmental, animal, and human health and can cause diverse health problems in humans, including respiratory tract, irritation to the skin, and degenerative changes in the kidney and liver. Hence, the removal of Rh B from wastewater has been widely concerned and researched3,4,5.

Many strategies such as membrane filtration, photocatalysis, floatation, chemical oxidation and adsorption have been applied to remove harmful dye materials from wastewater. Among available techniques, adsorption due to its easy operation, simplicity, high efficiency, and low cost has been an extensively considered technique for the removal of dye6,7. Different adsorbents such as graphene oxide (GOX), MXenes, and zeolite composites have been extensively employed for the removal of Rh B from wastewater samples8,9,10. For instance, Narayanaswamy et al.11 via molecular dynamics (MD) and Monte Carlo simulations examined the application of GOX and GOX-Fe3O4 as adsorbent materials for the removal of dye molecules. Their results demonstrated that the dyes are physisorbed on the adsorbent’s surface through the formation of π-π stacking interaction. Furthermore, they showed the GOX-Fe3O4 nanocomposite has a higher interlayer distance in comparison to the synthesized GOX, which helps in the removal of the higher amount of dyes.

Metal-organic frameworks (MOFs), consisting of organic ligands and metal ions, have a special structure with a large surface area and high porosity12,13,14,15. The possibility to create a newly engineered combination by changing the organic ligand and metal ion make MOFs suitable candidates for different applications such as drug delivery16,17, gas adsorption18, and gas separation19. Moreover, MOFs have been used in many different studies as effective adsorbents for sulfur compounds20,21, phenols22,23, and dyes17,24,25. The most common ions for MOFs synthesis are copper, iron, manganese and zinc ions. Also, benzene1,3,5-tricarboxylic acid (BTC) and 1H-1,2,4 triazole ligands are the common ligands for MOFs synthesis26.

Functionalizing the organic part of the MOFs with different functional groups and having multiple active sites provide the possibility of achieving new compounds27. Since the bulk shape of the MOFs can be an obstacle to their adsorption efficiency, hence, it is required to modify their morphology towards a more efficient environment for dye adsorption28. Recently, Wu et al.1 studied the Materials of the institute Lavoisier (MIL) for Rh B and tetracycline adsorption. Adsorption performance and mechanism were examined via kinetics, isotherms, and adsorption experiments. Their results demonstrated that the modified MIL has high potential as a practical adsorbent for the removal of aqueous Rh B and tetracycline.

It is well-known that the MD method can be utilized to study equilibrium, structure, and dynamic molecular properties of microscopic molecular systems based on the classic mechanical model of molecules29. Molecular simulation is a powerful method in modern molecular modeling and enables us to probe structure and dynamics with extreme detail on scales where the motion of individual atoms can be tracked. Also, the MD simulation is a helpful approach in terms of time-saving and cost-efficient for predicting the adsorption behavior of structures. Furthermore, MD simulations have been considered a suitable and powerful tool to explore atomic-level mechanisms which are usually out of the scope of current experimental tools30.

The Well-tempered metadynamics (WT-MtD) simulation is an atomistic simulation technique that allows the estimation of the free energy (FE) of complex molecular systems. This method uses Gaussian-like bias to overcome high energy barriers on the FE surface. In WT-MtD, which is one of the types of metadynamics methods, the bias height of these Gaussians reduces over the simulation time. The WT-MtD simulation is also effective in describing the FE surface in terms of binding and unbinding31,32.

Given the importance of Rh B removal as an important class of pollutants, this paper aims to the effectiveness of Cu-BTC/MOF in the Rh B adsorption is accomplished using the MD and WT-MtD simulations. Then, the adsorbent is functionalized with amino, hydroxyl, and nitro groups, and their efficiencies are examined and compared. The studies on MOFs are primarily concentrated on gas adsorption and very few reports can be found studying dyes adsorption to date33. Also, the adsorption of Rh B dye and the effect of different functional groups on the Cu-BTC/MOF (F-MOF) surface via MD and WT-MtD simulations have not been investigated. Therefore, this contemplated us employing Cu-BTC/MOF to study the adsorption of Rh B dye. This work provides valuable information on the adsorption mechanism of Rh B on the surfaces of Cu-BTC/MOF and F-MOF.

Results and discussion

Md simulation

There are several research works that shown the Cu-BTC/MOF has much higher dye removal efficiency in comparison to the other adsorbents11,34,35. As well as, Naqi Ahamad and co-workers observed that the dye removal capacity of MOF is affected by the functional group36. Therefore, in this section, the adsorption behavior of Rh B molecules on Cu-BTC/MOF and F-MOFs is studied. Snapshots of the configuration of dye-MOF complexes at two different times (i.e., 20 and 75 ns) are depicted in Supplementary Fig. 1.

As shown in these Figures, after ~20 ns of MD simulations, the dye molecules moved to adopt a more parallel conformation. In this position, they can form the hydrogen bond (H-bond) and π-π interaction with adsorbent surface. In MOF-OH and MOF-NO2 systems, all Rh B molecules are adsorbed on the adsorbent surface, while in the other two systems, one Rh B molecule is located further far away from the adsorbent surfaces (See Fig. 1). It is known that Rh B, through its three benzene rings, forms strong π-π stacking interactions with the adsorbent surface. Besides, the X-H…π (X:O, N, and C) intermolecular interactions between Rhodamine B and the adsorbent surfaces are also observed. The C-H…π, N-H…π and, O-H…π intermolecular interactions between Rh B and adsorbents occur at a distance of ~0.25–0.39 nm. Also, it was found that the functionalization of Cu-BTC/MOF improves the capacity of the adsorbent to adsorb the Rh B. MOFs-Rh B Lennard-Jones (L-J), coulombic (Coul), and Total (Tot = L-J + Coul) energy values are calculated, and the precise numerical values are listed in Table 1. From the data presented in this Table, it is evident that the Elec interaction energy is much less than L-J energy because the surface charge of adsorbents is almost neutral. Therefore, interaction energy is mainly provided by L-J energy, even though the functional groups added on Cu-BTC/MOF improved the coulombic energy of the systems. The comparison of the adsorption energy values in this work with previous works (See Supplementary Table 1) shows that the interaction of Rh B with Cu-BTC/MOF is stronger than the other adsorbents, which confirms that Cu-BTC/MOF has good potential for the removal of Rh B.

Fig. 1: Representative final configurations of studied systems after 75 ns of simulation.
figure 1

a MOF-Rh B, b MOF-NH2, c MOF-OH and d MOF-NO2 systems.

Table 1 The LJ, Coul, and Tot energies between of Rh B and adsorbent in the Cu-CTC/MOF and F-MOF systems.

The L-J interactions between atoms and molecules are ubiquitous and significant for many molecular and condensed-matter structures37. At the beginning of the simulation, Rh B is placed at a distance of ~2 nm from the adsorbent surface so that the L-J interaction energy is set to zero. Figure 2 shows the L-J energy between Rh B molecules and MOFs as a function of simulation time. As seen in this figure, Rh B molecules are adsorbed on MOFs quickly after ~20 ns, and their pair interaction fluctuates around its average value (~−700 kJ mol−1) for the rest of the simulation time. It is worth noting that after the adsorption of Rh B on the adsorbent surfaces, the Lennard-Jones interaction energy decreases, then the L-J interaction energy value almost becomes a constant. In the MOF-NO2 system, ~90% of Rh B molecules are adsorbed on the adsorbent surface at the initial 30 ns. From 30 to 75 ns, all of Rh B molecules (cf. 100%) are adsorbed, which shows that the capacity of the -NO2-MOF is better compared to the adsorbent used in the work of Dadashi Firouzjaei group (GOX-Cu-BTC/MOF)17. As well as, the obtained results showed that the interaction energy value in the MOF-Rh B system is about −500 KJ mol−1. These finding are in good agreement with the recent computational and experimental results reported by Dadashi Firouzjaei and co-workers17. As you can see in Fig. 2 the energy-decreasing trend becomes more intense in the MOF-NO2 system, and the L-J energy decreases more than in the other systems, which shows that Rh B tends to make stronger interactions with the -NO2-MOF. This fact can be attributed to the presence of the strong electron-withdrawing group (-NO2) and more dye adsorption in this system. Furthermore, the -OH-MOF and -NH2-MOF show better performance than Cu-BTC/MOF in the adsorption of Rh B. This observation confirmed that the presence of additive molecules led to the reinforcement of the interactions of Rh B with the adsorbent that showed by Naqi Ahamad and co-workers36.

Fig. 2
figure 2

Interaction energy of the dye molecules with MOF (blue), MOF-NH2 (black), MOF-OH (red), and MOF-NO2 (green) as a function of simulation time.

The Radial distribution function (RDF) is analyzed from the MD simulation for acquiring a better understanding of the stability of MOF/dye and F-MOF/dye systems in water solution. The RDF is defined as the probability of locating particle “j” within the range (r + dr) of particle i which is usually denoted as g(r)38,39. Figure 3 represents the RDFs obtained between the COM of adsorbent and Rh B molecules in the simulation systems.

Fig. 3
figure 3

The RDF of Rh B molecules with respect to the MOF (blue), MOF-NH2 (black), MOF-OH (red), and MOFNO2 (green).

As it is obvious from this Figure, the main interactions between Rh B and adsorbents exist at a distance of about 0.3–1.5 nm, and the maximum interactions occur at 0.7 nm. The strongest RDF peaks between Rh B and adsorbents can be observed in the MOF-NO2 and MOF-OH systems at distances of approximately 0.63 and 0.7 nm. This observation reveals that in these two systems, the probability of finding Rh B is higher both in terms of closeness to the surface and amount. This conclusion is consistent with the fact that the L-J energy in these systems is higher than in the MOF-Rh B and MOF-NH2 systems. Also, the sharper peak for these two systems indicates the strong interaction of Rh B with the adsorbent adsorption sites.

Atomic RDFs (aRDFs) are provided to describe how the atomic density varies as a function of the distance from one special atom of the reference molecule39. The RDF of various atoms of the nearest Rh B molecule around the adsorbent surface is shown in Fig. 4. As it is obvious from Fig. 4a, the interaction of ORh B – CCu-BTC/MOF depicted an intense peak at around 0.71 nm. The highest ORh B – Cadsorbent peak belonged to the MOF-NO2 system, where the L-J interaction is much higher than that in the other systems (ref. Fig. 2). The same trend is observed for the intensity of the ORh B – Cadsorbent peak and L-J energy for other systems. Also, the sharp peak of the HRh B – Cadsorbent RDFs confirms the strong H-bond interaction between dye and adsorbents at a distance of ~0.7–0.8 nm in MOF-NH2 and MOF-OH systems. As seen in this figure, the sharp peaks of the HA and CA atoms (aromatic ring atoms) are located at 0.3–1.4 nm. These results corroborate that the π-π stacking between Rh B and the Cu-BTC/MOF and F-MOFs surfaces plays the main role in dye adsorption. Close inspection of Fig. 4 confirms that Rh B’s nitrogen atom in the MOF-NO2 system has a higher propensity for interaction with -NO2-MOF cavities in contrast to other systems. In addition, Fig. 4 shows strong RDF peaks for copper atoms, especially in the MOF-OH and MOF-NO2 systems. This fact can be related to the location of Cu atoms in Cu-BTC/MOF which, is placed close to the internal region of MOF’s cavity; thus, dye molecules are naturally located close to the copper atoms.

Fig. 4: The atomic RDF patterns.
figure 4

a MOF-Rh B, b MOF-NH2, c MOF-OH and d MOF-NO2 systems.

The mean-square displacement (MSD) and self-diffusion coefficient (Di) are considered to estimate the mobility of a molecule40,41. The diffusion of Rh B molecules to the adsorbent surface, which is calculated from the MSD curve slope, can be used for the evaluation of the interactions between dye molecules and MOFs (Fig. 5).

Fig. 5
figure 5

Time evolutions of MSD of Rh B at the MOF (blue), MOF-NH2 (black), MOF-OH (red), and MOF-NO2 (green) systems.

The smaller slope in the MSD curves of dye molecules in the MOF-NO2 system represents that the adsorption of Rh B on the adsorbent surface restricts dye movement. This observation can be ascribed to the effect of the NO2 functional group in the adsorption of Rh B on the adsorbent surface. These trends emphasize that in the MOF-NO2 and MOF-OH systems the adsorption of dye molecules into the cavities of the adsorbent is preferable with respect to MOF-Rh B and MOF-NH2. The Diffusion coefficient (Di) is evaluated by Supplementary Eq. 142 and has been tabulated in Supplementary Table 2. Based on the results in this Table, in the MOF-Rh B system, Rh B molecules showed higher Di and error values compared with other systems. This finding can be related to its weaker interaction of Rh B with Cu-BTC/MOF. This is confirmed by the RDF results in Fig. 3, which show that the distance between Rh B and the adsorbent is shorter than in the other three systems. On the other hand, the lower Di values for MOF-OH and MOF-NH2 systems are due to the strong interaction of Rh B with adsorbent adsorption sites. The small Di value for the MOF-NH2 system can be attributed to the more dye-adsorbent collisions and the strong blocking effect of the functional groups.

To further justify the above findings, we have computed the number of contacts between Rh B and adsorbents and have plotted those as a function of simulation time in Fig. 6. As seen in this figure, at 0 ns there is no contact between Rh B and the adsorbent. During the simulation time, the number of contacts increases by adsorbing Rh B on the adsorbents. The atomic contact number is observed to reach highest in the MOF-NO2 system strength. This result indicates the strong interaction of Rh B with the -NO2-MOF and -OH-MOF adsorption sites. For the MOF-OH and the MOF-NH2 systems, the number of contacts decreased, and the lowest values are recorded for the MOF-Rh B system. In accordance with other obtained results in this study, the reduced number of contacts in the MOF-Rh B system confirms that the Rh B is weakly adsorbed on Cu-BTC/MOF.

Fig. 6
figure 6

The variations of the number of contacts between the guest molecules and the MOF (blue), MOF-NH2 (black), MOF-OH (red), and MOF-NO2 (green) surface.

Metadynamics

Exploration of FE surface for all four systems containing an adsorbent, functional group, and Rh B is investigated through WT-MtD simulations, and the results are depicted in Fig. 7. This Figure demonstrates the FE surface as a function of the distance between the Rh B’s COM and the adsorbents. In the investigated systems, the FE of Rh B can vary as a function of its position (in the water phase, at the water-adsorbent interface, on the adsorbent surface). In the water phase, the FE profile of the MOFs-Rh B systems is more than −120 kJ mol−1. In the MOF-Rh B system, the FE is decreased as the dye molecule moves from the water phase toward the adsorbent cavities. Moreover, the dye molecule is encountered with a relatively small energy barrier (~4 kJ mol−1) when it reaches the water-adsorbent interface. By crossing this barrier, while the dye molecule approaches the adsorbent cavities, the decrease in FE value is continued to achieve the most stable state. As shown in Fig. 7a, this point is 0.2 nm away from the adsorbent, and its energy is ~−220.47 kJ mol−1. The FE in the MOF-NH2 system illustrates the same trend as the MOF-Rh B system because, in both systems, the dye must overcome a small energy barrier (~4 kJ mol−1) to achieve the MOF-NH2 and water interface. Nonetheless, Rh B does not encounter any energy barrier to adsorption on the MOF-NH2 surface and eventually reaches a minimum point with an energy of −234.75 kJ mol−1. In the MOF-OH system, Rh B should pass an energy barrier of ~55 kJ mol−1 to transfer from the water phase to the interface. After passing this barrier, the EF surface reveals a global minimum (~−236.09 kJ mol−1) for the interaction of Rh B and the MOF-NH2. The FE for the MOF-NO2 system shows that the dye molecule faces two small energy barriers (about 4 and 6 kJ mol−1) to reach the water-adsorber interface. From Fig. 7b–d panels, it is evident that in the MOF- NH2 and MOF-OH systems, the FE value is almost identical, while in system MOF-NO2, the value of FE is increased. The two-dimensional FE surface as a function of the chosen CV of adsorbents/Rh B and functional groups/Rh B is shown in Fig. 8. In this figure, it can be observed that Rh B shows a global minimum where the CVCu-BTC/MOF _Rh B and CVNO2_Rh B are small. At this point, both adsorbent and NO2 group components have efficient involvement in the adsorption of the dye molecule that for achieving this point, Rh B almost does not face any high-energy barrier. Close inspection of Fig. 8b, confirms that the interaction distance of OH group and Rh B is smaller than Cu-BTC/MOF_Rh B. This can be related to nature of the OH group-dye interaction, where the H-bond is the main intermolecular interaction. Based on the derived 3D landscape, The lowest value of FE −186.5 kJ mol−1 is calculated in the coordinates d1 = 0.3 nm and d2 = 2.01 nm (Fig. 8a). In agreement with MD simulation, the metadynamics simulation results also confirmed a reduction in FE of the global minimum in the above-mentioned systems. In agreement with MD simulation, the WT-MtD simulation results also confirmed a reduction in FE of the global minimum in the studied systems. All in all, our results demonstrate that the Cu-BTC/MOF modified with the NO2 group has a good adsorption effect on Rh B, which has practical reference significance for medical wastewater and the actual treatment of printing and dyeing wastewater in the future.

Fig. 7: The water density profile and FE landscape.
figure 7

For the adsorption of Rh B on a the Cu-BTC/MOF (MOF-Rh B system) and F-MOF surfaces b MOF-NH2 system, c MOF-OH system and d MOF-NO2 system as a function of their center of masses.

Fig. 8: FE landscape as a function of d1 and d2, which are the distance of the Rh B COM from the Cu-BTC/MOF COM and functional groups, respectively.
figure 8

a MOF-NH2, b MOF-OH, and c MOF-NO2 systems.

Methods

The crystal structure of Cu-BTC/MOF, the model adsorbent, is taken from the Chemtub3D website, and its initial atomic charges are taken from the Zhao group43. Furthermore, the structural data file for Rhodamine B (PubChem CID: 6694) molecule is obtained from the PubChem database (Supplementary Fig. 2). Four simulation boxes called MOF-Rh B, MOF-NH2, MOF-OH, and MOF-NO2 are designed, which all contained an adsorbent and ten Rh B molecules (See Supplementary Fig. 3). For construction of the F-MOF systems, all the hydrogen atoms in the Cu-BTC/MOF organic linker part are replaced by NH2, OH, and NO2 groups. The Cu-BTC/MOF unit cell and functional groups used in this work are represented in Fig. 9a, b. More information about designed systems is provided in Table 2. The CHARMM36 force field is used to obtain the force field parameters for the dye molecule and adsorbents44. All four systems are neutralized and solvated with the NaCl ions and TIP3P water model, respectively45. The V-rescale thermostat is applied for temperature control at 310 K, and pressure is stabilized at 1 atm using the Berendsen aerostat46,47. LINCS algorithm is regarded to constrain bond lengths of all the bonds at their equilibrium position48. Long-range electrostatic interactions are accounted for using the Particle Mesh Ewald procedure47,49, while periodic boundary conditions are imposed with a 1.4 nm cutoff for nonbonded interactions. The Visual Molecular Dynamics graphics software is employed for visualizing molecules47,50. Well-tempered metadynamics simulations are employed to obtain FE surfaces51. The WT-MtD simulation has been performed for 75 ns after the equilibration utilizing the PLUMED version 2.5.2 plugin to the Gromacs 2019.2 software52,53. The FE surface is computed as a function of the distance between the center of mass (COM) of Rh B and the adsorbent surface and between Rh B’s COM and functional groups. More details concerning the WT-MtD simulations are provided in the “Results and discussion” Section “METADYNAMICS”.

Fig. 9
figure 9

Structure of a Cu-BTC/MOF and b Functionalized organic linker parts.

Table 2 The different MOFs/dye systems used in our study.