-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the adsorption energy to the docs
- Loading branch information
Showing
6 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.. _neb: | ||
|
||
Adsorption Energies | ||
=================== | ||
|
||
This recipe calculates the adsorption energies of a molecule on a surface. | ||
The following example creates a slab of ``Cu(111)`` and calculates the adsorption energy of ethanol ``(CCO)`` on the surface. | ||
|
||
.. code-block:: console | ||
(.venv) $ mlipx recipes adsorption --models mace_mp,sevennet,orb_v2,mattersim --slab-config '{"crystal": "fcc111", "symbol": "Cu", "size": [3,4,4]}' --smiles CCO --repro | ||
(.venv) $ compare --glob "*RelaxAdsorptionConfigs" | ||
.. jupyter-execute:: | ||
:hide-code: | ||
|
||
from mlipx.doc_utils import get_plots | ||
|
||
plots = get_plots("*RelaxAdsorptionConfigs", "../../examples/adsorption/") | ||
plots["adsorption_energies"].show() | ||
This test uses the following Nodes together with your provided model in the :term:`models.py` file: | ||
|
||
* :term:`RelaxAdsorptionConfigs` | ||
* :term:`BuildASEslab` | ||
* :term:`Smiles2Conformers` | ||
|
||
|
||
.. dropdown:: Content of :code:`main.py` | ||
|
||
.. literalinclude:: ../../../examples/adsorption/main.py | ||
:language: Python | ||
|
||
|
||
.. dropdown:: Content of :code:`models.py` | ||
|
||
.. literalinclude:: ../../../examples/adsorption/models.py | ||
:language: Python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,6 @@ | |
).frames | ||
) | ||
|
||
|
||
# TODO: datapath | ||
|
||
adsorbates = [] | ||
|
||
with project.group("initialize"): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters