Avogadro::Calc::DefaultModel#

class DefaultModel : public ChargeModel#

Default charge model for file-provided atomic charges.

This is a default model for using atomic partial charges from a file (e.g., quantum chemistry packages often provide Mulliken charges)

Author

Geoffrey R. Hutchison

The class

Public Functions

DefaultModel(const std::string &identifier = "")#
~DefaultModel() override = default#
inline virtual DefaultModel *newInstance() const override#

Create a new instance of the file format class. Ownership passes to the caller.

inline virtual std::string identifier() const override#

A unique identifier defined by the file.

inline virtual void setIdentifier(const std::string &identifier)#

Set the identifier.

inline virtual std::string name() const override#

We don’t have any other name beyond the identifier in the file.

inline virtual Core::Molecule::ElementMask elements() const override#

This default method is defined for whatever is in a molecule.

Returns:

all elements - technically not true, but we don’t have the mol

virtual MatrixX partialCharges(Core::Molecule &mol) const override#

Retrieve the relevant charges from the molecule for our defined type.

virtual MatrixX partialCharges(const Core::Molecule &mol) const override#

Protected Attributes

std::string m_identifier#
Core::Molecule::ElementMask m_elements#