File DFTB2MethodWrapper.h

Copyright

This code is licensed under the 3-clause BSD license.

Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.

See LICENSE.txt for details.

namespace Scine
namespace Sparrow
class DFTB2MethodWrapper : public Utils::CloneInterface<DFTB2MethodWrapper, DFTBMethodWrapper>
#include <DFTB2MethodWrapper.h>

A method wrapper handling DFTB2 calculations, also known as SCC-DFTB, self-consistent charge DFTB.

Public Functions

DFTB2MethodWrapper()

Default Constructor.

DFTB2MethodWrapper(const DFTB2MethodWrapper &rhs)
DFTB2MethodWrapper &operator=(const DFTB2MethodWrapper &rhs)
DFTB2MethodWrapper(DFTB2MethodWrapper &&rhs)
DFTB2MethodWrapper &operator=(DFTB2MethodWrapper &&rhs)
~DFTB2MethodWrapper()

Default Destructor.

std::string name() const

Getter for the name of the underlying method.

Return

Returns the name of the underlying method.

void applySettings()

Function to apply the settings to the underlying method.

Public Static Attributes

constexpr const char *model = "DFTB2"

Private Functions

Utils::DensityMatrix getDensityMatrixGuess() const
void initialize()

Initializes a method with the parameter file present in the settings.

void calculateImpl(Utils::derivativeType requiredDerivative)

Calls the underlying method’s calculate() function.

const Utils::LCAOMethod &getLCAOMethod() const

Get the underlying method as a LCAO method.

Utils::LCAOMethod &getLCAOMethod()

Private Members

dftb::DFTB2 method_