Skip to content

Calculate the Phonon Dispersion and Density of States

1. Introduction

Calculate the phonon dispersion and the phonon density of states (DOS) of a material with density functional perturbation theory (DFPT) in Quantum ESPRESSO, with or without a relaxation first. The cost grows steeply with the number of atoms, so the notebook is meant for a small primitive cell.

2. Open the notebook

In JupyterLite, the notebook is made/workflows/phonon_dos_dispersion.ipynb, entry 5.1.1 "Phonon DOS and Dispersion" of made/workflows/Introduction.ipynb.

3. Set the parameters

Cell 1.2 holds the material, 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
ORGANIZATION_NAME = None

# 3. Material parameters
FOLDER = "../uploads"
MATERIAL_NAME = "Silicon"  # small primitive cell (FCC, mp-149); phonon DFPT is expensive

# 4. Workflow parameters
WORKFLOW_SEARCH_TERM = "phonon_dos_dispersion.json"
APPLICATION_NAME = "espresso"
MY_WORKFLOW_NAME = "Phonon Density of States + Dispersions"

# Model parameters
MODEL_SUBTYPE = "gga"  # "gga" or "lda"

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

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

MATERIAL_NAME is looked up with load_material.

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

Cell 1.3 holds the method and phonon 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
# Method parameters
PSEUDOPOTENTIAL_TYPE = "us"  # "us" (ultrasoft), "nc" (norm-conserving), "paw"
FUNCTIONAL = "pbe"           # for gga: "pbe", "pbesol"; for lda: "pz"

# Relax the structure before phonons. Phonons require a force-minimized geometry —
# an unrelaxed structure produces imaginary (negative) modes. Recommended for any
# material not already at its equilibrium geometry (e.g. Graphene / 2D).
ADD_RELAXATION = False

# Electronic k-grids; if None, the workflow default is used
SCF_KGRID = None         # e.g. [8, 8, 8]
RELAXATION_KGRID = None  # e.g. [8, 8, 8]

# Phonon q-grid for the DFPT run (ph.x); if None, the workflow default is used
PHONON_QGRID = None      # e.g. [4, 4, 4]

# Phonon DOS interpolation grid (matdyn.x); if None, the workflow default is used
DOS_QGRID = None         # e.g. [12, 12, 12]

# Phonon dispersion path (matdyn.x); if None, the workflow default is used
QPATH = None             # [{"point": "Γ", "steps": 20}, {"point": "X", "steps": 20}, {"point": "W", "steps": 20}, {"point": "K", "steps": 20}, {"point": "Γ", "steps": 20}, {"point": "L", "steps": 20}]

# Energy cutoffs (raise for harder cases — e.g. 60 / 480 for Graphene)
ECUTWFC = 40
ECUTRHO = 200

PHONON_QGRID is the q-grid of ph.x, DOS_QGRID the interpolation grid of the DOS and QPATH the dispersion path of matdyn.x, set like the k-points and paths. The comment on the cutoffs gives higher values for harder cases, such as graphene.

The overview explains the model, k-point and cutoff and engine input parameters.

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 phonon dispersion and the phonon DOS.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for calculating the phonon dispersion and density of states can be accessed below.

Phonon Dispersions and Density of States Calculation calculates the phonon dispersion and DOS from the web interface.