xnn.common.models.d3.D3Dispersion#
- class xnn.common.models.d3.D3Dispersion(model=None, **d3_options)[source]#
Bases:
DispersionCorrectionDFT-D3 dispersion as an xnn potential, standalone or wrapped around a model.
See
DispersionCorrectionfor the wrapper semantics andDFTD3for the options. Enable from a config withmodel.extra["dispersion"] = {"name": "d3", ...}or wrap directly:model = D3Dispersion(build_model(cfg.model), damping="bj", s9=1.0, cutoff_pair=12.0, switch_width_pair=2.0)
- Parameters:
model (InteratomicPotential or None, optional) – The short-range model to correct;
Nonefor pure dispersion.**d3_options – Keyword arguments of
DFTD3.
- Variables:
d3 (DFTD3) – The dispersion evaluator (alias of
term).