This tutorial is prepared for the people:
- know some basic concepts of quantum mechanics and DFT (e.g., SCF calculation)
- have little experience in computational chemistry (i.e., don't know how to perform a DFT calculation)
- want to use CP2K as your first DFT code
If you are not familiar with the QC/DFT basic concepts, you can refer to the following resources:
- (Chinese) Introduction to QC and DFT & Introduction of basis set and pseudopotentials
- (English) Introduction to Density Functional Theory [Part One]
If you don't have experience in command-line operations, you can refer to the following resources:
- The first five sections in The Missing Semester of Your CS Education
If you have experience in other DFT codes (e.g., VASP) and just want to get your hand in CP2K usage, I would recommend you to follow below tutorials rather than this one:
- (Chinese) chenggroup wiki
- (Chinese) Jingang Lan's blog
- (English) CP2K official tutorials and exercises
-
Install CP2K and set up relevant environment variables. For IKKEM users, you can just run the
cp2k.slurm
later in every task. -
Set up environment variable
CP2K_DATA_DIR
to the path holding basis set/pseudopotentials/etc. You can either download them from the offical repository or use the data in IKKEM:export CP2K_DATA_DIR=/public/software/cp2k-2022.1-intel/cp2k-2022.1/data
Performing a DFT calculation is non-trivial. The users should take care of not only some variables at the theoretical level (e.g., the choice of SCF convergence) but many parameters for specific algorithms (e.g., smearing). Trying to know every detail in the first place is unnecessary and distractive. In this tutorial, I will follow some existing tutorials and show you how far you should go, as a beginner.
Please check the
README.md
in each folder for more details.