Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Adsorption Energies in MOFs

Pre-trained ODAC models are versatile across various MOF-related tasks. To begin, we’ll start with a fundamental application: calculating the adsorption energy for a single CO2 molecule. This serves as an excellent and simple demonstration of what you can achieve with these datasets and models.

For predicting the adsorption energy of a single CO2 molecule within a MOF structure, the adsorption energy (EadsE_{\mathrm{ads}}) is defined as:

Eads=EMOF+CO2−EMOF−ECO2(1)E_{\mathrm{ads}} = E_{\mathrm{MOF+CO2}} - E_{\mathrm{MOF}} - E_{\mathrm{CO2}} \tag{1}

Each term on the right-hand side represents the energy of the relaxed state of the indicated chemical system. For a comprehensive understanding of our methodology for computing these adsorption energies, please refer to our paper.

Loading Pre-trained Models

A pre-trained model can be loaded using FAIRChemCalculator. In this example, we’ll employ UMA to determine the CO2 adsorption energies.

WARNING:root:device was not explicitly set, using device='cuda'.
WARNING:root:UMA Nitro cannot serve this request: nitro mode supports only CUDA compute capability 8.x-12.x, not 7.5.
WARNING:root:Now running with nitro=False, execution_mode='umas_fast_gpu' (TF32).
WARNING:root:Running in a reduced-precision mode: some values, such as higher-order derivatives and phonon calculations, will be less accurate. For standard FP32 precision, use inference_settings='high-precision'.

Adsorption in rigid MOFs: CO2 Adsorption Energy in Mg-MOF-74

Let’s apply our knowledge to Mg-MOF-74, a widely studied MOF known for its excellent CO2 adsorption properties. Its structure comprises magnesium atomic complexes connected by a carboxylated and oxidized benzene ring, serving as an organic linker. Previous studies consistently report the CO2 adsorption energy for Mg-MOF-74 to be around -0.40 eV [1] [2] [3].

Our goal is to verify if we can achieve a similar value by performing a simple single-point calculation using UMA. In the ODAC23 dataset, all MOF structures are identified by their CSD (Cambridge Structural Database) code. For Mg-MOF-74, this code is OPAGIX. We’ve extracted a specific OPAGIX+CO2 configuration from the dataset, which exhibits the lowest adsorption energy among its counterparts.

<Figure size 1250x1125 with 1 Axes>

The final step in calculating the adsorption energy involves connecting the FAIRChemCalculator to each relaxed structure: OPAGIX+CO2, OPAGIX, and CO2. The structures used here are already relaxed from ODAC23. For simplicity, we assume here that further relaxations can be neglected. We will show how to go beyond this assumption in the next section.

WARNING:root:Model is being compiled. This might take a while the first time.
WARNING:root:Running (unknown commit) with inference settings: multigpu
W1113 19:49:10.864000 14343 site-packages/torch/_logging/_internal.py:1345] [0/0] Profiler record function <class 'torch.autograd.profiler.record_function'> will be ignored
WARNING:root:The UMA fast path (merge_mole + compile) is only available for fixed composition, task, charge, and spin. This is optimized for MD applications. Falling back to a less optimized version for subsequent evaluations. Reason: 'Compositions differ from merged model'.
Use inference_settings='batch' for heterogeneous batched evaluations.
WARNING:root:Now running with merge_mole=False, compile=False, execution_mode='general' (TF32).
Adsorption energy of CO2 in Mg-MOF-74: -0.482 eV

Adsorption in flexible MOFs

The adsorption energy calculation method outlined above is typically performed with rigid MOFs for simplicity. Both experimental and modeling literature have shown, however, that MOF flexibility can be important in accurately capturing the underlying chemistry of adsorption [1] [2] [3]. In particular, uptake can be improved by treating MOFs as flexible. Two types of MOF flexibility can be considered: intrinsic flexibility and deformation induced by guest molecules. In the Open DAC Project, we consider the latter MOF deformation by allowing the atomic positions of the MOF to relax during geometry optimization [4]. The addition of additional degrees of freedoms can complicate the computation of the adsorption energy and necessitates an extra step in the calculation procedure.

The figure below shows water adsorption in the MOF with CSD code WOBHEB with added defects (WOBHEB_0.11_0) from a DFT simulation. A typical adsorption energy calculation would only seek to capture the effects shaded in purple, which include both chemisorption and non-bonded interactions between the host and guest molecule. When allowing the MOF to relax, however, the adsorption energy also includes the energetic effect of the MOF deformation highlighted in green.

To account for this deformation, it is vital to use the most energetically favorable MOF geometry for the empty MOF term in Eqn. 1. Including MOF atomic coordinates as degrees of freedom can result in three possible outcomes:

  1. The MOF does not deform, so the energies of the relaxed empty MOF and the MOF in the adsorbed state are the same

  2. The MOF deforms to a less energetically favorable geometry than its ground state

  3. The MOF locates a new energetically favorable geometry relative to the empty MOF relaxation

The first outcome requires no additional computation because the MOF rigidity assumption is valid. The second outcome represents physical and reversible deformation where the MOF returns to its empty ground state upon removal of the guest molecule. The third outcome is often the result of the guest molecule breaking local symmetry. We also found cases in ODAC in which both outcomes 2 and 3 occur within the same MOF.

To ensure the most energetically favorable empty MOF geometry is found, an addition empty MOF relaxation should be performed after MOF + adsorbate relaxation. The guest molecule should be removed, and the MOF should be relaxed starting from its geometry in the adsorbed state. If all deformation is reversible, the MOF will return to its original empty geometry. Otherwise, the lowest energy (most favorable) MOF geometry should be taken as the reference energy, EMOFE_{\mathrm{MOF}}, in Eqn. 1.

H2O Adsorption Energy in Flexible WOBHEB with UMA

The first part of this tutorial demonstrates how to perform a single point adsorption energy calculation using UMA. To treat MOFs as flexible, we perform all calculations on geometries determined by geometry optimization. The following example corresponds to the figure shown above (H2O adsorption in WOBHEB_0.11_0).

In this tutorial, Ex(ry)E_{x}(r_{y}) corresponds to the energy of xx determined from geometry optimization of yy.

First, we obtain the energy of the empty MOF from relaxation of only the MOF: EMOF(rMOF)E_{\mathrm{MOF}}(r_{\mathrm{MOF}})

      Step     Time          Energy          fmax
BFGS:    0 19:50:12    -1077.361727        0.157084
BFGS:    1 19:50:15    -1077.363819        0.092716
BFGS:    2 19:50:15    -1077.366760        0.102512
BFGS:    3 19:50:15    -1077.369805        0.112174
BFGS:    4 19:50:16    -1077.372809        0.108708
BFGS:    5 19:50:20    -1077.375105        0.081823
BFGS:    6 19:50:21    -1077.377095        0.059928
BFGS:    7 19:50:22    -1077.379167        0.081637
BFGS:    8 19:50:24    -1077.381437        0.086815
BFGS:    9 19:50:25    -1077.383771        0.074817
BFGS:   10 19:50:25    -1077.386162        0.097229
BFGS:   11 19:50:26    -1077.388721        0.102964
BFGS:   12 19:50:26    -1077.391367        0.103052
BFGS:   13 19:50:27    -1077.393883        0.092620
BFGS:   14 19:50:28    -1077.396292        0.108232
BFGS:   15 19:50:28    -1077.398859        0.132782
BFGS:   16 19:50:29    -1077.401807        0.117634
BFGS:   17 19:50:29    -1077.404706        0.076351
BFGS:   18 19:50:30    -1077.407172        0.077333
BFGS:   19 19:50:31    -1077.409312        0.096850
BFGS:   20 19:50:31    -1077.411619        0.094346
BFGS:   21 19:50:32    -1077.414300        0.096987
BFGS:   22 19:50:33    -1077.417214        0.104003
BFGS:   23 19:50:33    -1077.420044        0.076074
BFGS:   24 19:50:34    -1077.422611        0.092569
BFGS:   25 19:50:34    -1077.424987        0.075271
BFGS:   26 19:50:35    -1077.427308        0.088209
BFGS:   27 19:50:35    -1077.429529        0.086770
BFGS:   28 19:50:38    -1077.431506        0.069698
BFGS:   29 19:50:41    -1077.433202        0.064806
BFGS:   30 19:50:41    -1077.434718        0.050612
BFGS:   31 19:50:42    -1077.436137        0.067226
BFGS:   32 19:50:42    -1077.437482        0.061960
BFGS:   33 19:50:43    -1077.438761        0.054451
BFGS:   34 19:50:43    -1077.440058        0.040885
Energy of empty MOF: -1077.440 eV

Next, we add the H2O guest molecule and relax the MOF + adsorbate to obtain EMOF+H2O(rMOF+H2O)E_{\mathrm{MOF+H2O}}(r_{\mathrm{MOF+H2O}}).

      Step     Time          Energy          fmax
BFGS:    0 19:50:44    -1091.648156        1.137715
BFGS:    1 19:50:46    -1091.667007        0.323337
BFGS:    2 19:50:47    -1091.671334        0.231188
BFGS:    3 19:50:48    -1091.684672        0.293439
BFGS:    4 19:50:48    -1091.690921        0.233369
BFGS:    5 19:50:49    -1091.698606        0.197336
BFGS:    6 19:50:50    -1091.705228        0.197552
BFGS:    7 19:50:50    -1091.713828        0.253810
BFGS:    8 19:50:51    -1091.721812        0.223018
BFGS:    9 19:50:51    -1091.729994        0.200643
BFGS:   10 19:50:52    -1091.738724        0.221132
BFGS:   11 19:50:52    -1091.748959        0.290309
BFGS:   12 19:50:52    -1091.760312        0.285065
BFGS:   13 19:50:55    -1091.772069        0.191203
BFGS:   14 19:50:55    -1091.783891        0.190955
BFGS:   15 19:50:56    -1091.795377        0.272157
BFGS:   16 19:50:57    -1091.806223        0.314416
BFGS:   17 19:51:01    -1091.815598        0.230729
BFGS:   18 19:51:03    -1091.823824        0.138353
BFGS:   19 19:51:03    -1091.831510        0.132686
BFGS:   20 19:51:04    -1091.839422        0.145392
BFGS:   21 19:51:04    -1091.847562        0.154170
BFGS:   22 19:51:08    -1091.855790        0.170341
BFGS:   23 19:51:10    -1091.863478        0.151214
BFGS:   24 19:51:12    -1091.869927        0.280073
BFGS:   25 19:51:13    -1091.873496        0.336301
BFGS:   26 19:51:13    -1091.879910        0.312842
BFGS:   27 19:51:14    -1091.884966        0.284701
BFGS:   28 19:51:16    -1091.892198        0.225711
BFGS:   29 19:51:16    -1091.896553        0.152681
BFGS:   30 19:51:18    -1091.902883        0.149936
BFGS:   31 19:51:19    -1091.909177        0.147967
BFGS:   32 19:51:19    -1091.906986        0.842215
BFGS:   33 19:51:20    -1091.918883        0.274480
BFGS:   34 19:51:20    -1091.922582        0.170430
BFGS:   35 19:51:21    -1091.931407        0.524027
BFGS:   36 19:51:21    -1091.936381        0.130510
BFGS:   37 19:51:21    -1091.941615        0.107885
BFGS:   38 19:51:22    -1091.952579        0.251732
BFGS:   39 19:51:22    -1091.956992        0.252765
BFGS:   40 19:51:24    -1091.968129        0.294251
BFGS:   41 19:51:25    -1091.976220        0.161128
BFGS:   42 19:51:25    -1091.972944        1.041504
BFGS:   43 19:51:25    -1091.989939        0.159666
BFGS:   44 19:51:26    -1091.996295        0.153308
BFGS:   45 19:51:26    -1092.018193        0.591571
BFGS:   46 19:51:27    -1092.028267        0.210105
BFGS:   47 19:51:30    -1092.044092        0.244558
BFGS:   48 19:51:30    -1092.074808        0.306558
BFGS:   49 19:51:31    -1092.095132        0.251237
BFGS:   50 19:51:31    -1092.111717        0.458183
BFGS:   51 19:51:32    -1092.136966        0.408082
BFGS:   52 19:51:32    -1092.129061        1.421021
BFGS:   53 19:51:33    -1092.164261        0.574020
BFGS:   54 19:51:34    -1092.175866        0.301678
BFGS:   55 19:51:35    -1092.188317        0.313525
BFGS:   56 19:51:36    -1092.208693        0.616415
BFGS:   57 19:51:37    -1092.221011        0.367404
BFGS:   58 19:51:38    -1092.238930        0.307050
BFGS:   59 19:51:41    -1092.250861        0.426632
BFGS:   60 19:51:42    -1092.260324        0.393486
BFGS:   61 19:51:42    -1092.269379        0.227405
BFGS:   62 19:51:44    -1092.275588        0.103271
BFGS:   63 19:51:45    -1092.280580        0.144641
BFGS:   64 19:51:46    -1092.284920        0.211063
BFGS:   65 19:51:47    -1092.290165        0.205110
BFGS:   66 19:51:47    -1092.295090        0.125913
BFGS:   67 19:51:48    -1092.299602        0.150102
BFGS:   68 19:51:48    -1092.304197        0.219699
BFGS:   69 19:51:49    -1092.309017        0.191502
BFGS:   70 19:51:52    -1092.313516        0.099611
BFGS:   71 19:51:52    -1092.317240        0.099716
BFGS:   72 19:51:56    -1092.320559        0.173187
BFGS:   73 19:51:57    -1092.323859        0.200507
BFGS:   74 19:51:58    -1092.326740        0.123750
BFGS:   75 19:52:01    -1092.329235        0.074078
BFGS:   76 19:52:02    -1092.331592        0.115659
BFGS:   77 19:52:05    -1092.333822        0.145891
BFGS:   78 19:52:05    -1092.335860        0.140400
BFGS:   79 19:52:08    -1092.337770        0.103385
BFGS:   80 19:52:08    -1092.339614        0.106446
BFGS:   81 19:52:09    -1092.341459        0.106645
BFGS:   82 19:52:09    -1092.343331        0.081807
BFGS:   83 19:52:09    -1092.345262        0.056944
BFGS:   84 19:52:10    -1092.347200        0.064408
BFGS:   85 19:52:10    -1092.348977        0.089161
BFGS:   86 19:52:11    -1092.350443        0.068231
BFGS:   87 19:52:11    -1092.351681        0.053253
BFGS:   88 19:52:12    -1092.352789        0.058810
BFGS:   89 19:52:14    -1092.353785        0.083021
BFGS:   90 19:52:16    -1092.354663        0.100631
BFGS:   91 19:52:16    -1092.355497        0.068286
BFGS:   92 19:52:19    -1092.356424        0.048829
Energy of MOF + H2O: -1092.356 eV

We can now isolate the MOF atoms from the relaxed MOF + H2O geometry and see that the MOF has adopted a geometry that is less energetically favorable than the empty MOF by ~0.2 eV. The energy of the MOF in the adsorbed state corresponds to EMOF(rMOF+H2O)E_{\mathrm{MOF}}(r_{\mathrm{MOF+H2O}}).

Energy of MOF in the adsorbed state: -1077.118 eV

H2O adsorption in this MOF appears to correspond to Case #2 as outlined above. We can now perform re-relaxation of the empty MOF starting from the rMOF+H2Or_{\mathrm{MOF+H2O}} geometry.

      Step     Time          Energy          fmax
BFGS:    0 19:52:20    -1077.117684        1.302859
BFGS:    1 19:52:20    -1077.170806        1.071008
BFGS:    2 19:52:24    -1077.235529        0.703853
BFGS:    3 19:52:25    -1077.281376        0.444591
BFGS:    4 19:52:26    -1077.301003        0.381539
BFGS:    5 19:52:27    -1077.317760        0.360676
BFGS:    6 19:52:29    -1077.333525        0.327577
BFGS:    7 19:52:31    -1077.345350        0.230759
BFGS:    8 19:52:33    -1077.352429        0.143914
BFGS:    9 19:52:34    -1077.357242        0.156620
BFGS:   10 19:52:34    -1077.361957        0.184951
BFGS:   11 19:52:35    -1077.367168        0.159748
BFGS:   12 19:52:37    -1077.372243        0.138323
BFGS:   13 19:52:37    -1077.376976        0.129889
BFGS:   14 19:52:38    -1077.381620        0.135723
BFGS:   15 19:52:39    -1077.385855        0.111234
BFGS:   16 19:52:40    -1077.389358        0.088689
BFGS:   17 19:52:40    -1077.392491        0.093732
BFGS:   18 19:52:40    -1077.395722        0.115668
BFGS:   19 19:52:41    -1077.399046        0.123356
BFGS:   20 19:52:41    -1077.402309        0.104700
BFGS:   21 19:52:42    -1077.405448        0.101114
BFGS:   22 19:52:43    -1077.408506        0.100952
BFGS:   23 19:52:44    -1077.411514        0.108979
BFGS:   24 19:52:46    -1077.414429        0.097102
BFGS:   25 19:52:47    -1077.417117        0.082271
BFGS:   26 19:52:47    -1077.419469        0.085395
BFGS:   27 19:52:51    -1077.421475        0.084803
BFGS:   28 19:52:51    -1077.423187        0.057370
BFGS:   29 19:52:52    -1077.424805        0.077420
BFGS:   30 19:52:56    -1077.426481        0.084944
BFGS:   31 19:52:57    -1077.428062        0.079064
BFGS:   32 19:52:57    -1077.429422        0.051970
BFGS:   33 19:52:58    -1077.430669        0.055467
BFGS:   34 19:52:58    -1077.432020        0.086667
BFGS:   35 19:52:58    -1077.433462        0.101661
BFGS:   36 19:53:00    -1077.434996        0.092959
BFGS:   37 19:53:00    -1077.436539        0.048932
Energy of re-relaxed empty MOF: -1077.437 eV

The MOF returns to its original empty reference energy upon re-relaxation, confirming that this deformation is physically relevant and is induced by the adsorbate molecule. In Case #3, this re-relaxed energy will be more negative (more favorable) than the original empty MOF relaxation. Thus, we take the reference empty MOF energy (EMOFE_{\mathrm{MOF}} in Eqn. 1) to be the minimum of the original empty MOF energy and the re-relaxed MOf energy:

Adsorption energy of H2O in WOBHEB_0.11_0: -0.545 eV

This adsorption energy closely matches that from DFT (–0.699 eV) [1]. The strong adsorption energy is a consequence of both H2O chemisorption and MOF deformation. We can decompose the adsorption energy into contributions from these two factors. Assuming rigid H2O molecules, we define EintE_{\mathrm{int}} and EMOF,deformE_{\mathrm{MOF,deform}}, respectively, as

Eint=EMOF+H2O(rMOF+H2O)−EMOF(rMOF+H2O)−EH2O(rMOF+H2O)(2)E_{\mathrm{int}} = E_{\mathrm{MOF+H2O}}(r_{\mathrm{MOF+H2O}}) - E_{\mathrm{MOF}}(r_{\mathrm{MOF+H2O}}) - E_{\mathrm{H2O}}(r_{\mathrm{MOF+H2O}}) \tag{2}
EMOF,deform=EMOF(rMOF+H2O)−EMOF(rMOF)(3)E_{\mathrm{MOF,deform}} = E_{\mathrm{MOF}}(r_{\mathrm{MOF+H2O}}) - E_{\mathrm{MOF}}(r_{\mathrm{MOF}}) \tag{3}

EintE_{\mathrm{int}} describes host–guest interactions for the MOF in the adsorbed state only. EMOF,deformE_{\mathrm{MOF,deform}} quantifies the magnitude of deformation between the MOF in the adsorbed state and the most energetically favorable empty MOF geometry determined from the workflow presented here. It can be shown that

Eads=Eint+EMOF,deform(4)E_{\mathrm{ads}} = E_{\mathrm{int}} + E_{\mathrm{MOF,deform}} \tag{4}

For H2O adsorption in WOBHEB_0.11, we have

E_int: -0.8672550093806333
E_mof_deform: 0.32237403829003597
E_ads: -0.5448809710905973

EintE_{\mathrm{int}} is equivalent to EadsE_{\mathrm{ads}} when the MOF is assumed to be rigid. In this case, failure to consider adsorbate-induced deformation would result in an overestimation of the adsorption energy magnitude.

Acknowledgements & Authors

Logan Brabson and Sihoon Choi (Georgia Tech) and the OpenDAC project.

References
  1. The Open DAC 2023 Dataset and Challenges for Sorbent Discovery in Direct Air Capture. (2024). 10.1021/acscentsci.3c01629
  2. Carbon Dioxide Adsorption in Mg-MOF-74. (2015). 10.1039/C4SC02064B
  3. Carbon Dioxide Adsorption in Mg-MOF-74. (2014). 10.1039/C3SC51319J
  4. Carbon Dioxide Adsorption in Mg-MOF-74. (2018). 10.1021/acs.jpcc.8b00938