Ju
Huang
a,
Seung-Jae
Shin
b,
Kasper
Tolborg
a,
Alex M.
Ganose
c,
Gabriel
Krenzer
a and
Aron
Walsh
*ad
aDepartment of Materials, Imperial College London, London SW7 2AZ, UK. E-mail: a.walsh@imperial.ac.uk
bDepartment of Materials Science and Engineering, Yonsei University, Seoul 03722, Republic of Korea
cDepartment of Chemistry, Imperial College London, London W12 0BZ, UK
dDepartment of Physics, Ewha Womans University, Seoul 03760, Korea
First published on 1st May 2023
The local structures of layered covalent-organic frameworks (COFs) deviate from the average crystal structures assigned from X-ray diffraction experiments. For two prototype COFs of Tp-Azo and DAAQ-TFP, density functional theory calculations have shown that the eclipsed structure is not an energy minimum and that the internal energy is lowered for an inclined stacking arrangement. Here we explore the structural disorder of these frameworks at 300 K through molecular dynamics (MD) simulations using an on-the-fly machine learning force field (MLFF). We find that an initially eclipsed stacking mode spontaneously distorts to form a zigzag configuration that lowers the free energy of the crystal. The simulated diffraction patterns show good agreement with experimental observations. The dynamic disorder from the MLFF MD trajectories is found to persist in mesoscale MD simulations of 155 thousand atoms, giving further confidence in our conclusions. Our simulations show that the stacking behaviour of layered COFs is more complicated than previously understood.
New conceptsCovalent organic frameworks (COFs) are materials formed from rigid organic building blocks that connect in two or three dimensions. They are often heralded for their ordered nature and high crystallinity, especially in comparison to traditional organic polymers with strong connections in only one dimension. However, there is growing evidence from crystallographic and spectroscopic probes, as well as from materials modelling, that these frameworks contains high amounts of disorder. In particular, an eclipsed configuration is often assumed for layered COFs for applications ranging from gas storage to batteries. The structure is however a saddle point on the potential energy surface. The energy of the system is lowered when adjacent layers are displaced. Our study probes this phenomenon using a multi-technique approach with a room temperature description provided by a machine-learning force field that has been actively learned from density functional theory energies, forces, and stresses. We show how the local structure distorts in time and gives rise to the average features that can be seen in slow experimental probes. Hidden stacking disorder is likely a common feature across many families of layered COFs and metal–organic frameworks. |
The stacking disorder in COFs is challenging to probe experimentally due to the averaging effect of time and space from various probes. In 2011, Lukose et al.16 used DFT calculations and X-ray diffraction (XRD) to investigate the formation of four different stacking sequences (eclipsed, zigzag, serrated and inclined) in a set of reported and hypothetical 2D COFs and found that these stackings exhibit different diffraction patterns and band gaps. In 2017, Fan et al.17 confirmed that SIOC-COF-8 and SIOC-COF-9 stack in an inclined arrangement using a combination of powder XRD, pore-size distribution analysis, and transmission electron microscopy (TEM) analysis. In 2022, Kang et al.11 used 13C solid-state nuclear magnetic resonance (ssNMR) to study the chemical environment of atoms in adjacent layers of 2D COFs and reported that different stacking modes can be quantitatively characterized by the split signals of the methoxy/methyl side groups. In the same year, Natraj et al.10 employed continuous rotation electron diffraction and XRD to demonstrate that TAPPy-PDA and TAPB-DMPDA COFs are disordered along the stacking c direction while remaining ordered within the ab plane.
COFs can be viewed as organic macromolecules with typically more than 100 atoms in the crystallographic unit cell. Thus, it is unfeasible to study their dynamics and disorder over long time and length scales using ab initio molecular dynamics (MD) simulations. As an alternative, more efficient but generally less accurate simulation methods, such as Grand Canonical Monte Carlo (GCMC)12,18 and classical MD simulations,13,19,20 have been applied to study COFs and related metal–organic frameworks (MOFs).21–23 For classical MD simulations, force fields with fixed functional forms are required to describe the interatomic forces. Popular force fields such as OPLS24,25 and DREIDING12,26–29 have been used to study the dynamics of COFs. However, the accuracy depends strongly on the particular force field parameterization and its ability to describe the local structure and extended interactions.
An alternative approach to obtain near DFT accuracy for dynamic simulations at a lower computational cost is machine learning force fields (MLFFs).28,30–36 MLFFs trained on DFT data have demonstrated high efficiency and accuracy in predicting atomic energies and forces.32,34,37 On-the-fly learning is an efficient method for force field training. It constructs a DFT reference database by sampling an MD trajectory for structures with high predicted uncertainty.31 This approach means that during the MD simulation, only a fraction of the force evaluations are performed using DFT, with the rest provided by the MLFF. This state-of-the-art method has been used to study the dynamical properties of many materials, including the melting points of Al, Si, Ge, Sn and MgO,31 the phase transitions of hybrid perovskites,38 and the thermal conductivity of zirconia.39 These previous studies indicate the potential of applying MLFFs to understand the dynamics of structurally and compositionally complex materials such as COFs.
In this work, on-the-fly MLFF models are trained for the prototype COFs, Tp-Azo40,41 and DAAQ-TFP42 (Fig. S1, ESI†), which have exhibited high energy storage performance as battery electrodes. We find COF structures that are initialized in an eclipsed stacking arrangement spontaneously shift to a zigzag stacking mode during MLFF-MD simulations. In contrast, the inclined structures retain their stacking throughout, suggesting that both zigzag and inclined stacking are locally stable arrangements. Using classical force fields to simulate longer time and length scales, similar, but more diverse, stacking properties are observed. These different stacking sequences in COFs lead to different radial distribution functions (RDF) and predicted XRD patterns, and we show that a zigzag motif is in best agreement with experimental observations.
Fig. 1 Crystal structures of (a) eclipsed Tp-Azo, (b) inclined Tp-Azo, (c) eclipsed DAAQ-TFP, (d) inclined DAAQ-TFP viewed along the c direction (top) and ab plane (bottom). |
Initially, we trained the force field from the equilibrium ground state structure at 300 K. Next, we trained the model on a gradual heating run from 300 K to 500 K starting from the equilibrium structure to probe a more diverse region of the potential energy surface. The time for each training is shown in Fig. 3 for Tp-Azo and Fig. S2 (ESI†) for DAAQ-TFP. The temperature was kept below the degradation temperature of the COFs but high enough to widely sample the potential energy surface.1,50 In total, the MLFF was trained for more than 150 ps, including several restarts in each training run as shown in Fig. 3 and Fig. S2 (ESI†).
The trained force fields were validated using a test set of 500 structures, each consisting of a 1 × 1 × 2 supercell of each stacking mode for the two COFs. These structures were randomly sampled from 10 MD trajectories, each generated with a different random seed. Each MD trajectory was obtained within an NpT ensemble at 300 K for 50 ps, utilizing the generated MLFF. The energies, forces and stresses for these 500 structures were subsequently calculated using DFT and compared with those obtained from the MLFF, in order to investigate the accuracy of the trained force field. Large errors in the validation process indicate the training should be continued.
To study the dynamic behaviour of large COFs under ambient pressure at 300 K, validated force fields were applied to 2 × 2 × 8 supercells containing 3456 atoms using an NpT ensemble. The expansion of supercell along the stacking axis is to enable the description of short to medium-range fluctuations. The simulation process involved the use of separately trained force fields for each stacking mode of each COF, with production runs lasting over 100 ps with a time step of 0.5 fs.
To analyze the disorder present in the COFs, the structures from the MD trajectory were analyzed for interlayer offsets. The overall process described above is illustrated in Fig. 2.
Fig. 2 The computational workflow used for on-the-fly MLFF training, validation, and production runs for the Tp-Azo and DAAQ-TFP COFs studied in this work. |
Energy (meV atom−1) | Force (eV Å−1) | Stress (kbar) | |||||
---|---|---|---|---|---|---|---|
System | # DFT calcs | Training | Validation | Training | Validation | Training | Validation |
E-Tp-Azo | 1213 | 0.58 | 0.55 | 0.080 | 0.079 | 0.38 | 0.38 |
I-Tp-Azo | 1221 | 0.52 | 0.66 | 0.076 | 0.077 | 0.30 | 0.30 |
E-DAAQ-TFP | 1181 | 0.41 | 0.42 | 0.082 | 0.084 | 0.39 | 0.44 |
I-DAAQ-TFP | 1243 | 0.41 | 0.56 | 0.082 | 0.080 | 0.38 | 0.40 |
During the training process, over 99% of force evaluations were performed using the MLFF rather than expensive DFT calculations, saving a significant portion of computational time. The final models show small RMSEs in the predicted energy (0.41–0.58 meV per atom), force (0.076–0.082 eV Å−1), and stress (0.30–0.39 kbar). Furthermore, the maximum Bayesian errors during training remain low and stable as illustrated in Fig. 3 and Fig. S2 (ESI†). These errors are similar to other studies that have utilized MLFFs for MD.31,38,48
We validated the trained force fields to demonstrate their performance. Energies, forces, and stresses calculated from the MLFFs and DFT for the eclipsed and inclined validation structures are shown in Fig. S3 and S4 (ESI†). The RMSE of energy (0.42–0.66 meV per atom), force (0.077–0.084 eV Å−1), and stress (0.30–0.44 kbar) of the validation dataset, as presented in Table 1, are almost the same as the RMSEs observed during the training. These results indicate that the force fields have been trained to sufficient accuracy.
To investigate the stacking behaviour of the COFs, we performed production calculations in a 2 × 2 × 8 supercell (containing 3456 atoms). Calculations were performed with the NpT ensemble at 300 K for a total of 100 ps and a time step of 0.5 fs. MLFF-MD runs were performed for the eclipsed and inclined structures of both COFs. The Bayesian errors for the production MD runs remained stable throughout the entire trajectory and are illustrated in Fig. S5 (ESI†). The lattice parameters of the eclipsed and inclined Tp-Azo structures during the production runs are presented in Fig. 4 (Fig. S6, ESI† gives the results for DAAQ-TFP). The cell lengths (a, b, c) and angles (α, β, γ) averaged over the whole trajectory are given in Table 2. We also report the internal energy (E0) of the final structure at the end of the MD run after being relaxed using the MLFF. The average lattice parameters differ slightly from the initial equilibrium starting structures (a and b change less than 0.5%, c expands in the range of 3–6%) as expected due to the inclusion of temperature in the MD run (Table S1, ESI†). Fig. 4 (Tp-Azo) and Fig. S6, ESI† (DAAQ-TFP) reveal the structures are dynamically stable during the trajectories with lattice parameters that remain roughly constant.
System | ā (Å) | (Å) | (Å) | (°) | (°) | (°) | E 0 (eV) | ΔE0 (eV) |
---|---|---|---|---|---|---|---|---|
Z-Tp-Azo | 33.24 | 33.35 | 3.42 | 88.59 | 91.15 | 119.81 | −760.36 | — |
I-Tp-Azo | 33.69 | 33.73 | 4.36 | 50.15 | 131.14 | 125.23 | −760.59 | 0.24 |
Z-DAAQ-TFP | 30.44 | 30.51 | 3.43 | 90.78 | 92.19 | 59.78 | −787.43 | — |
I-DAAQ-TFP | 30.34 | 30.52 | 4.09 | 58.83 | 53.44 | 58.40 | −787.55 | 0.11 |
The plots of total internal energy versus time, presented in Fig. S7 (ESI†), demonstrate the excellent stability of the entire MLFF-MD trajectory. The stability of the simulations indicates that both configurations can be considered metastable states, which will be further rationalized in the following section.
A comparison of the internal energy calculated from the relaxation of the final structures in the MD using MLFF also shows that the internal energy of the inclined stacking is lower than that of initially eclipsed COFs that distort to a zigzag structure during the simulation in Table 2. In Tp-Azo, the energy difference between the zigzag and inclined structures is 0.24 eV per unit cell (2.20 meV per atom), while it is 0.11 eV per unit cell (1.04 meV per atom) in DAAQ-TFP. However, the energy difference between the two stacking modes is relatively small suggesting competition between the two arrangements will be present at ambient temperatures.
Our results reveal that the main source of disorder occurs along the c direction of stacking rather than in the ab plane. This is in agreement with continuous rotational electron diffraction experiments, which found that 2D COFs of TAPPy-PDA and TAPB-DMPDA behave as single-crystals in the ab plane but are disordered in the c dimension.10 To demonstrate this point, in Fig. 6 we plot the stacking disorder averaged over the full MD trajectories for initially eclipsed and inclined Tp-Azo (the same analysis is presented in Fig. S11 (ESI†) for DAAQ-TFP). The disorder is quantified by the offset of each layer relative to adjacent layers. The offsets are decomposed into their components along the x, y and z directions and are averaged along the MD trajectories after equilibration (Fig. S9 and S10, ESI†). For the x and y directions, an offset of 0 Å indicates a fully eclipsed structure, whereas a constant positive or negative offset indicates inclined stacking. A constant offset in the z direction indicates a fixed layer separation.
Fig. 6 Offsets in the x, y, z directions between adjacent layers in (a) zigzag and (b) inclined Tp-Azo. The layer numbers correspond to the numbers in Fig. 5. |
For zigzag Tp-Azo (initially eclipsed pre-equilibration), the average absolute offset for the x, y, and z directions are 0.2 Å, 2.2 Å, and 3.4 Å, respectively. The small values for the x offset (close to zero) indicate adjacent layers are almost perfectly stacked in the x direction. The offsets for the y direction oscillate from ∼−2.2 to ∼2.2 Å, indicating each layer is shifted by an equal but opposite amount relative to adjacent layers. This oscillating offset is a characteristic signature of a zigzag stacking mode. The relatively constant offset in the z direction indicates the layer separation remains roughly fixed throughout the entire MD run. The total absolute displacement in the ab plane is 2.1 Å, highlighting the strong deviation from the idealised eclipsed structure. The eclipsed DAAQ-TFP structure also shifts to a zigzag stacking mode during equilibration. The interlayer offsets show broadly the same features as Tp-Azo, with a relatively large overall displacement distance in the ab plane of 1.8 Å (Fig. S11a, ESI†).
The inclined COF structures retain their inclined stacking throughout the entire MD run. This can be seen in the stacking disorder analysis which reveals a roughly constant negative offset of 2.6–2.8 Å in the x direction and 0.6–1.1 Å in the y direction for Tp-Azo (offsets in DAAQ-TFP are 2.1–2.4 Å and 0.4–0.7 Å in x and y, respectively). The overall offsets in the ab plane are 2.4 Å (Tp-Azo) and 2.5 Å (DAAQ-TFP) (Fig. 6b and Fig. S11b, ESI†). Thus, the overall offsets are marginally larger for inclined stacking than initially eclipsed stacking in both COFs. The inter-layer distances are very similar, around 3.4 Å in each case, independent of the stacking mode (Fig. 6 and Fig. S11, ESI†). The calculated offsets in the ab plane fall in the predicted energy minimum basin from static DFT calculations which span 1.7 Å to 3.5 Å.15
Configurational entropy is a thermodynamic driving force for the observed behaviour. In the ab plane, there are multiple degrees of freedom in the zigzag configuration, but only one in the inclined configuration. As there is only a small difference in the internal energy of zigzag and inclined configurations, an entropic contribution from stacking faults in a zigzag configuration, which is not present in the inclined configuration would be sufficient to change the order of free energies at T = 300 K. Thus, we expect the zigzag mode to be the favoured structure at ambient temperature.
We first calculate the RDF of the eclipsed and inclined structures from static DFT relaxed structure. The O–O RDF of the eclipsed Tp-Azo structure reveals a sharp peak at 3.2 Å, corresponding to the inter-layer distance. In the inclined stacking structure, the peak position is shifted to 4.2 Å due to additional displacement along the ab plane (Fig. 7).15 Comparable results are found for DAAQ-TFP (Fig. S12, ESI†).
We next calculate the average RDF across the MLFF-MD trajectories after the structures are equilibrated. We find that the small-distance sharp peaks are broadened and shifted to larger distances compared to the static DFT RDFs. The shift in the initially eclipsed structures is larger than that of the inclined structures, primarily as the eclipsed structures shifted to a zigzag arrangement during the simulation. There is a qualitative difference in the RDFs of the inclined and zigzag structures, indicating that RDF analysis can be used as a probe for stacking disorder.
There are significant differences in the simulated XRD patterns of the zigzag and inclined structures (Fig. 8 and Fig. S14, ESI†). The zigzag structure shows a single sharp low-angle diffraction peak, whereas the inclined structure has a split low-angle peak. The peak splitting in the inclined structure is due to the reduced symmetry in slip-stacked structures and is consistent with previous simulated XRD patterns from DFT relaxed COFs.14,56
For both Tp-Azo41 and DAAQ-TFP,42 the simulated XRD of the zigzag structure shows a significantly improved fit with the experimental PXRD pattern compared to the inclined structure. Interestingly, the averaged zigzag XRD pattern and the XRD from the eclipsed static DFT relaxation look similar up to high angles (subtle differences are observed for the (001) reflection peaks in Fig. S13 and S14, ESI†). Many studies have concluded that the stacking of COFs is eclipsed based on good agreement between the PXRD data and the simulated eclipsed diffraction patterns. However, our work demonstrates that comparisons of experimental diffraction patterns with simulated patterns from static DFT are not sufficient to unambiguously assign the stacking mode. Indeed, the instability of the eclipsed stacking in our simulations combined with the good agreement of the zigzag structure with experimental XRD patterns, suggest that previous work may be incorrectly assigning the eclipsed configurations.
Again we considered room temperature dynamics starting from the two initial stacking configurations. Qualitatively similar dynamic behaviour is observed. Importantly, the eclipsed COFs spontaneously disorder into the zigzag configuration at equilibrium, while the inclined COFs maintain their stacking mode in these large-scale MD simulations (Fig. 9, Fig. S16 and S17, ESI†). This analysis gives us confidence that our predictions with the MLFF are not limited by finite size-effects in the MD simulations.
In the MLFF-MD simulations, the initially eclipsed configurations shift into a zigzag stacking sequence, while the inclined configurations remain in the inclined mode, showing that both are locally stable states at ambient conditions. However, due to the larger entropic contribution to the zigzag stacking, we expect this to be the favoured structure. The predicted diffraction patterns of the “random” zigzag mode from the MLFF exhibit significantly better agreement with the reported experimental PXRD than the (perfectly) eclipsed or inclined stacking patterns, highlighting the importance of sampling the dynamic structures. This questions the common assignment of eclipsed structures on the basis of low-quality PXRD patterns often reported for 2D COFs in the literature. The results from classical force field dynamics are qualitatively consistent MLFF-MD simulations, supporting that a zigzag stacking structure is realistic on longer lengths scales.
Overall, the results of the room temperature simulations indicate that the on-the-fly MLFF is a valuable tool for accurately describing the dynamic properties of 2D COFs and that the stacking structure of these materials is more complicated than previously reported.
Footnote |
† Electronic supplementary information (ESI) available. See DOI: https://doi.org/10.1039/d3mh00314k |
This journal is © The Royal Society of Chemistry 2023 |