Skip to content

Calculate HOMO-LUMO Energies and Vibrational Frequencies

1. Introduction

Calculate the energies of the highest occupied and lowest unoccupied molecular orbitals (HOMO and LUMO) of a molecule and their gap, and its thermochemistry from the vibrational frequencies (zero point energy and thermal corrections), with NWChem.

2. Open the notebook

In JupyterLite, the notebook is made/workflows/homo_lumo_frequency.ipynb, entries 7.2.1 "HOMO-LUMO gap calculation" and 7.3.1 "Vibrational frequency calculation" of made/workflows/Introduction.ipynb.

3. Set the parameters

Cell 1.2 holds the molecule, 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
28
29
30
31
32
33
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
FOLDER = "../uploads"
MATERIAL_NAME = "H2O"  # Molecule to load; checks the uploads folder, then the platform

# 4. Workflow parameters
APPLICATION_NAME = "nwchem"

# Choose which calculations to run
CALCULATE_HOMO_LUMO = True  # HOMO energy, LUMO energy, and HOMO-LUMO gap
CALCULATE_FREQUENCY = True  # zero-point energy and thermal corrections

calculation_labels = []
if CALCULATE_HOMO_LUMO:
    calculation_labels.append("HOMO-LUMO")
if CALCULATE_FREQUENCY:
    calculation_labels.append("Frequency")
MY_WORKFLOW_NAME = " + ".join(calculation_labels) + " (nwchem)"

# 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_NAME is looked up in FOLDER, then among the account's materials. CALCULATE_HOMO_LUMO and CALCULATE_FREQUENCY select the calculations.

The overview explains the account, FOLDER, workflow, compute and job 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 shows the properties of the job, the HOMO and LUMO energies with the printed gap, and the zero point energy and the thermal corrections to the energy and the enthalpy.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for calculating the orbital energies and the vibrational thermochemistry can be accessed below.