Parameters#
The parameter system provides presets for common calculation types.
Using Presets#
from vasp.parameters import get_preset, get_vdw_params, get_ldau_params
# Static calculation preset
static = get_preset('static')
# Relaxation preset
relax = get_preset('relax')
# VdW correction
vdw = get_vdw_params('d3bj')
# DFT+U
ldau = get_ldau_params(['Fe', 'O'], {'Fe': HubbardU(u=4.0)})
Available Presets#
Calculation Types#
Preset |
Description |
|---|---|
|
Single-point energy |
|
Ionic relaxation |
|
Full cell relaxation |
|
NVT molecular dynamics |
|
NPT molecular dynamics |
Van der Waals#
Method |
Description |
|---|---|
|
Grimme D2 |
|
Grimme D3 (zero damping) |
|
Grimme D3-BJ (recommended) |
|
Tkatchenko-Scheffler |
|
TS with self-consistent screening |
Hybrid Functionals#
Method |
Description |
|---|---|
|
HSE06 (recommended for solids) |
|
HSE03 |
|
PBE0 |
|
B3LYP |
DFT+U#
from vasp.parameters import get_ldau_params, HubbardU
ldau = get_ldau_params(
symbols=['Fe', 'O'],
u_values={
'Fe': HubbardU(u=4.0, j=0.0),
}
)
Merging Parameters#
# Combine multiple presets
params = {}
params.update(get_preset('static'))
params.update(get_vdw_params('d3bj'))
calc = Vasp(atoms=atoms, **params)