DFTB+
A fast and efficient versatile quantum mechanical simulation software package.
DFTB+ requires an environment module
In order to use DFTB+, you must first load the appropriate environment module:
module load intel openmpi
Preparing Input Files and Running DFTB+#
DFTB+ requires an input file named dftb_in.hsd. This file specifies the system being simulated, the calculation settings, and other parameters.
1. Create a Working Directory#
Create a directory for your simulation and navigate into it:
2. Download the DFTB+ Recipes Archive#
The DFTB+ Recipes archive contains input files and examples used throughout the DFTB+ tutorials. Downloading the archive is necessary for the first calculation example described below.
Download the archive:
Extract the archive:
This creates a directory named recipes inside your working directory.
3. Download the Slater-Koster Parameter Files#
Slater-Koster files contain the parameter data required for DFTB+ calculations. The first calculation example requires these files to perform the simulation.
Navigate into the extracted Recipes directory:
Run the supplied script to download and unpack the Slater-Koster parameter sets:
Once the downloads finish, return to your main simulation directory:
4. Create the DFTB+ Input File#
DFTB+ expects an input file named dftb_in.hsd in the working directory from which the calculation is submitted.
Create the file using the terminal text editor:
For this example, we will be using the Geometry example from the DFTB+ First Calculation tutorial.
Paste the following script:
Saving the input file: In nano, press Ctrl + O to save, press Enter to confirm the filename, and then press Ctrl + X to exit. This keyboard shortcut is the same on Mac and Windows/Linux terminals. Do not use Command + S on a Mac.
5. Create a SLURM Submission Script#
DFTB+ calculations on the HPC cluster should be submitted through SLURM.
Make sure you are in the same working directory as dftb_in.hsd, then create the submission script:
Paste the following script:
Save the file using Ctrl + O, press Enter, and exit with Ctrl + X.
6. Submit the Calculation#
From your dftb_simulation directory, submit the job:
This will return a job ID confirming that the job was submitted.
Check the status of your job:
When the job finishes, an output file will generate named slurm-JOBID.out, where JOBID is the numeric job ID assigned during submission.
7. View the Calculation Output#
List the files in your working directory:
Locate the output file corresponding to your job ID and open it:
Replace JOBID with your actual job ID.
You can also inspect the output files generated by DFTB+, including:
nano detailed.out: Detailed calculation results.nano geom.out.gen: Optimized molecular geometry in GEN format.nano geom.out.xyz: Optimized molecular geometry in XYZ format.nano charges.bin: Saved charge information.
For a geometry optimization, a message such as Geometry converged indicates that the geometry optimization has successfully reached its convergence criteria.
For further information about how to use DFTB+, please refer to DFTB+ documentation.