Skip to content

Calculate a Reaction Energy Barrier with the Nudged Elastic Band Method

1. Introduction

Calculate the reaction energy barrier and the reaction energy profile along a reaction path with the nudged elastic band (NEB) method of Quantum ESPRESSO. The path is an ordered materials set: the initial image first, the final image last, and optional intermediate images between them. The Create Initial and Final Materials structure notebook builds the images.

2. Open the notebook

In JupyterLite, the notebook is made/workflows/neb.ipynb, entry 7.1.1 "NEB reaction pathway calculation" of made/workflows/Introduction.ipynb.

3. Set the parameters

Cell 1.2 holds the materials set, workflow and compute parameters:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from datetime import datetime
from mat3ra.ide.compute import QueueName

# 2. Auth and organization parameters
# Set organization name to use it as the owner, otherwise your personal account is used
ORGANIZATION_NAME = None

# 3. Material parameters
# Order in the set: first = initial, middle = intermediates (optional), last = final
MATERIAL_SET = "NEB-ordered-material-set"
# If set, load path materials from ../uploads/{SUBFOLDER_NAME} and get or create MATERIAL_SET.
# If None, reuse the existing ordered set named MATERIAL_SET on the platform.
SUBFOLDER_NAME = None  # e.g. "neb_silicon"

# 4. Workflow parameters
WORKFLOW_SEARCH_TERM = "neb.json"
APPLICATION_NAME = "espresso"
MY_WORKFLOW_NAME = "Nudged Elastic Band (NEB)"

# 5. Compute parameters
CLUSTER_NAME = None  # specify full or partial name i.e. "cluster-001" to select
QUEUE_NAME = QueueName.D
PPN = 1

# 6. Job parameters
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M")
POLL_INTERVAL = 30  # seconds

MATERIAL_SET is the name of the ordered materials set. With SUBFOLDER_NAME set, the notebook loads the numbered files from ../uploads/<SUBFOLDER_NAME>, saves them and gets or creates the set; with None, it uses an existing ordered set of the account, which the utils_create_material_set.ipynb structure notebook with IS_ORDERED = True creates.

The overview explains the account, workflow, compute and job parameters.

Cell 1.3 holds the NEB parameters:

1
2
3
4
5
# Total image count passed to QE; applied whenever set (QE interpolates up to this count)
N_IMAGES = None  # e.g. 20; defaults to 1 when the set holds exactly two materials

# K-grid for the NEB unit
NEB_KGRID = [1, 1, 1]

N_IMAGES is the total number of images passed to Quantum ESPRESSO, which interpolates the intermediate images; a set of only the initial and final images needs it set, for example to 20. NEB_KGRID is the k-grid of the NEB unit.

4. Run and read the result

Run the notebook with Run > Run All and log in when it asks, as in Authentication in JupyterLite.

After the job finishes, section 8 plots the reaction energy profile, prints the peak reaction energy and shows the reaction energy barrier.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for calculating the reaction energy profile can be accessed below.

Reaction Energy Profile with NEB (Quantum ESPRESSO) runs the NEB workflow from the web interface.