deMonPy.ase_calculator

Back to DeMonNanoPy API Reference

Description

ASE-compatible calculator interface (units eV, eV/angstrom).

Source file: deMonPy/ase_calculator.py

Classes

DeMonNano (ase.calculators.calculator.GetOutputsMixin, ase.calculators.calculator.Calculator)

ASE calculator backed by the deMonNano DFTB engine; raises OutputParseError on an unparseable gradient block (never silent zero forces).

Attributes

Attribute Meaning
implemented_properties ["energy", "free_energy", "forces", "charges"] (charges = Mulliken, read from deMon.mol)
default_parameters {execut, basis, omp_threads, launcher, nprocs, kpts, prefix, title}

Methods

Method Signature Description
__init__ __init__(restart=None, label="ase_demon", atoms=None, directory=".", **kwargs) Create the calculator; kwargs: execut, basis, parameters (placed under DEMON_PARAMETERS.ACTIVE), omp_threads, launcher, nprocs, prefix, title.
calculate calculate(atoms=None, properties=["energy"], system_changes=all_changes) Run a deMonNano calculation and populate ASE results (enables PRINT GRAD when forces are requested).

Private helpers

  • _outputmixin_get_results