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.
In JupyterLite, the notebook is made/workflows/phonon_dos_dispersion.ipynb, entry 5.1.1 "Phonon DOS and Dispersion" of made/workflows/Introduction.ipynb.
fromdatetimeimportdatetimefrommat3ra.ide.computeimportQueueName# 2. Auth and organization parametersORGANIZATION_NAME=None# 3. Material parametersFOLDER="../uploads"MATERIAL_NAME="Silicon"# small primitive cell (FCC, mp-149); phonon DFPT is expensive# 4. Workflow parametersWORKFLOW_SEARCH_TERM="phonon_dos_dispersion.json"APPLICATION_NAME="espresso"MY_WORKFLOW_NAME="Phonon Density of States + Dispersions"# Model parametersMODEL_SUBTYPE="gga"# "gga" or "lda"# 5. Compute parametersCLUSTER_NAME=None# specify full or partial name i.e. "cluster-001" to selectQUEUE_NAME=QueueName.DPPN=1TIME_LIMIT="04:00:00"# 6. Job parameterstimestamp=datetime.now().strftime("%Y-%m-%d %H:%M")POLL_INTERVAL=30# seconds
# Method parametersPSEUDOPOTENTIAL_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 usedSCF_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 usedPHONON_QGRID=None# e.g. [4, 4, 4]# Phonon DOS interpolation grid (matdyn.x); if None, the workflow default is usedDOS_QGRID=None# e.g. [12, 12, 12]# Phonon dispersion path (matdyn.x); if None, the workflow default is usedQPATH=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=40ECUTRHO=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.