Skip to content

Calculate the Interfacial Energy

1. Introduction

Calculate the interfacial energy γ (eV/Ų) of an interface. Only the interface is calculated: the substrate and film bulks are found from the build metadata of the interface, and their total energies come from total energies calculated beforehand with the Total Energy notebook.

2. Open the notebook

In JupyterLite, the notebook is made/workflows/interfacial_energy.ipynb, entry 6.3.1 "Interfacial energy calculation" of made/workflows/Introduction.ipynb.

3. Set the parameters

Cell 1.2 holds the interface, 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
from datetime import datetime
from mat3ra.ide.compute import QueueName

# 2. Auth and organization parameters
ORGANIZATION_NAME = None

# 3. Material parameters
FOLDER = "../uploads"
INTERFACE_NAME = "Interface"  # Name to search in uploads or on the platform

# 4. Workflow parameters
WORKFLOW_SEARCH_TERM = "interfacial_energy.json"
APPLICATION_NAME = "espresso"
MY_WORKFLOW_NAME = "Interfacial Energy"

# 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

INTERFACE_NAME is looked up in FOLDER, then among the account's materials; the Interface with Minimal Strain (ZSL) notebook builds an interface whose name contains the default "Interface".

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

Cell 1.3 holds the k-grid, the number of interfaces and the source of the bulk total energies:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# K-grid for interface SCF (if not set, KPPRA is used by default)
SCF_KGRID = None  # e.g., [4, 4, 1]

# Number of interfaces in the supercell: 1 if the slab has vacuum (one physical
# interface), 2 for a periodic stack with no vacuum. Substrate and film
# multiplicities are derived automatically from the structures.
N_INTERFACES = 1

# Whose total_energy properties to consider for the substrate/film bulk
# references: "public" (any owner, highest precision wins), "curators" (only
# curators'), or "my_account" (curators' or your own).
BULK_TOTAL_ENERGY_SOURCE = "my_account"

SCF_KGRID is the k-grid of the interface. N_INTERFACES is the number of interfaces in the cell: 1 for a slab with vacuum, 2 for a periodic stack without vacuum. BULK_TOTAL_ENERGY_SOURCE selects whose total energies of the bulks are used.

4. Run and read the result

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

Section 3 removes the atom labels of the interface before saving it, and stops when a bulk has no finished total energy job. After the job finishes, section 7 shows the interfacial energy and prints the total energies of the interface and of the two bulks.

5. Interactive JupyterLite notebook

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

Calculate Interfacial Energy runs the interfacial energy workflow from the web interface.