简体中文 | English | 日本語 | Português
DFT-Tutorials: First-Principles Calculation Tutorials & Scripts¶
VASP · Gaussian · CP2K · OpenMX — beginner to advanced | ready-to-run inputs | helper scripts | curated GitHub resources
A comprehensive, practical collection of density functional theory (DFT) tutorials (written in Simplified Chinese, with English chapter subtitles) for VASP, Gaussian, CP2K and OpenMX: installation, input files, convergence tests, geometry/cell optimisation, band structure & DOS, hybrid functionals, DFT+U, spin-orbit coupling, surfaces & adsorption, transition states (NEB/IRC), phonons, ab initio molecular dynamics, TD-DFT excited states, solvation, NBO/charge analysis, electron transport and more. Every chapter ships runnable example inputs, keyword-by-keyword explanations, troubleshooting tips and references, plus Python/Bash helper scripts.
📖 Read online (searchable website): https://zenggs05.github.io/DFT-Tutorials/
Currently 65 chapters, 152 example input sets, 44 scripts, and a curated index of 230+ related GitHub repositories.
Contents¶
| Section | Scope | Entry |
|---|---|---|
| VASP | plane-wave PAW code for solids, surfaces and catalysis | VASP/README.md |
| Gaussian | Gaussian-basis quantum chemistry for molecules, reactions and spectra | Gaussian/README.md |
| CP2K | GPW mixed-basis code for large-scale AIMD and QM/MM | CP2K/README.md |
| OpenMX | numerical atomic orbitals for magnetism, transport and O(N) methods | OpenMX/README.md |
| Common | Linux/HPC, modelling, ASE/pymatgen, visualisation, learning path | Common/README.md |
| NEP/GPUMD scripts | ML-potential dataset generation, NEP analysis, GPUMD thermal transport plots | Scripts/README.md |
| Resources | 230+ curated GitHub repositories and official docs | Resources/github-repos.md |
Chapter index¶
VASP¶
Gaussian¶
CP2K¶
| # | Topic | 中文标题 |
|---|---|---|
| 1 | Introduction, Versions & Installation of CP2K | 第1章 CP2K 简介、版本与安装 |
| 2 | CP2K Input File Structure & First Calculation | 第2章 输入文件结构与第一个计算 |
| 3 | GPW/GAPW Methods, Gaussian Basis Sets & GTH Pseudopotentials in CP2K | 第3章 GPW/GAPW 方法、基组与赝势 |
| 4 | Converging CUTOFF & REL_CUTOFF in CP2K | 第4章 CUTOFF / REL_CUTOFF 收敛测试 |
| 5 | SCF Convergence in CP2K: OT, Diagonalization, Smearing & Restart | 第5章 SCF 策略:OT、对角化、展宽与重启 |
| 6 | Periodic Systems, Slab Models & k-Points in CP2K | 第6章 周期性体系、表面模型与 k 点 |
| 7 | Geometry & Cell Optimization with CP2K | 第7章 几何优化与晶胞优化 |
| 8 | Dispersion, Spin Polarization & DFT+U in CP2K | 第8章 色散校正、自旋极化与 DFT+U |
| 9 | Hybrid Functionals & ADMM in CP2K | 第9章 杂化泛函与 ADMM |
| 10 | DOS, PDOS & Band Structure with CP2K | 第10章 电子结构分析:DOS、PDOS 与能带 |
| 11 | Cube Files, Charge Analysis & Work Function in CP2K | 第11章 实空间性质:cube 文件、电荷分析与功函数 |
| 12 | Transition-State Search in CP2K: CI-NEB & Dimer | 第13章 过渡态搜索:NEB 与 Dimer |
| 13 | Vibrational Analysis, IR Intensities & Thermochemistry with CP2K | 第14章 振动分析、红外与热化学 |
OpenMX¶
Common¶
| # | Topic | 中文标题 |
|---|---|---|
| 1 | Setting up a DFT Computing Environment: Linux/WSL, conda, SSH & File Transfer | 第1章 计算环境搭建:Linux/WSL、conda、集群登录与文件传输 |
Quick start¶
git clone https://github.com/zenggs05/DFT-Tutorials.git
cd DFT-Tutorials
python VASP/scripts/plot_band.py -h # every script supports -h
Note
No proprietary source code, binaries or VASP POTCAR files are included; examples explain how to generate them.
Contributing¶
Issues and pull requests are welcome. If you find this useful, please give it a ⭐ star!
Citation & license¶
Use Cite this repository on GitHub (CITATION.cff). Tutorials and scripts are MIT-licensed; CP2K/data/ comes from the CP2K project under GPL-2.0-or-later.