VASP Input Generator
Generate complete VASP input files for density functional theory calculations.
Quick Start
For a standard structural optimization:
CODEBLOCK0
Input File Types
| File | Description | Script Support |
|---|
| INCAR | Calculation parameters | Full generation |
| KPOINTS |
k-point mesh | Full generation |
| POSCAR | Structure file | Template generation |
| POTCAR | Pseudopotentials | Guidance only |
Calculation Types
- - Relaxation:
--type relaxation - Structural optimization - Static:
--type static - Single-point energy - MD:
--type md - Molecular dynamics - Band:
--type band - Band structure - DOS:
--type dos - Density of states
Parameter Reference
For detailed INCAR parameter descriptions, see references/incar-parameters.md.
Best Practices
- 1. Always check
ENCUT matches pseudopotential recommendations - Verify k-point density is appropriate for system size
- For metals, use appropriate smearing (
ISMEAR = 1 or 2) - For insulators, use
ISMEAR = 0 with small INLINECODE9 - Set
ISPIN = 2 for magnetic systems
Output
The generator creates:
- -
INCAR - Calculation parameters - INLINECODE12 - k-point mesh
- INLINECODE13 - Structure template (if no existing POSCAR)
POTCAR must be generated separately by concatenating pseudopotential files.
VASP 输入文件生成器
为密度泛函理论计算生成完整的VASP输入文件。
快速开始
对于标准结构优化:
bash
python scripts/generatevaspinputs.py --type relaxation --structure POSCAR
输入文件类型
| 文件 | 描述 | 脚本支持 |
|---|
| INCAR | 计算参数 | 完整生成 |
| KPOINTS |
k点网格 | 完整生成 |
| POSCAR | 结构文件 | 模板生成 |
| POTCAR | 赝势文件 | 仅提供指导 |
计算类型
- - 弛豫:--type relaxation - 结构优化
- 静态计算:--type static - 单点能量
- 分子动力学:--type md - 分子动力学
- 能带:--type band - 能带结构
- 态密度:--type dos - 态密度
参数参考
有关详细的INCAR参数描述,请参见 references/incar-parameters.md。
最佳实践
- 1. 始终检查 ENCUT 是否与赝势推荐值匹配
- 验证k点密度是否适合体系大小
- 对于金属,使用适当的展宽(ISMEAR = 1 或 2)
- 对于绝缘体,使用 ISMEAR = 0 配合较小的 SIGMA
- 对于磁性体系,设置 ISPIN = 2
输出
生成器创建:
- - INCAR - 计算参数
- KPOINTS - k点网格
- POSCAR.template - 结构模板(如果没有现有的POSCAR)
POTCAR需要通过拼接赝势文件单独生成。