![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Calculator that uses a Modified Hückel Molecular Orbital (MHMO) treatment to compute pi-electron densities, pi-charges, pi-bond orders and the total pi-electron energy of a molecular graph. More...
#include <MHMOPiChargeCalculator.hpp>
Public Types | |
| typedef std::shared_ptr< MHMOPiChargeCalculator > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated MHMOPiChargeCalculator instances. More... | |
Public Member Functions | |
| MHMOPiChargeCalculator () | |
Constructs the MHMOPiChargeCalculator instance. More... | |
| MHMOPiChargeCalculator (const Chem::MolecularGraph &molgraph) | |
Constructs the MHMOPiChargeCalculator instance and performs the MHMO calculation for molgraph. More... | |
| MHMOPiChargeCalculator (const Chem::ElectronSystemList &pi_sys_list, const Chem::MolecularGraph &molgraph) | |
Constructs the MHMOPiChargeCalculator instance and performs the MHMO calculation for the given pi-electron systems of molgraph. More... | |
| MHMOPiChargeCalculator (const MHMOPiChargeCalculator &)=delete | |
| ~MHMOPiChargeCalculator () | |
| Destructor. More... | |
| MHMOPiChargeCalculator & | operator= (const MHMOPiChargeCalculator &)=delete |
| void | localizedPiBonds (bool localized) |
| Specifies whether the calculation shall use localized pi-bonds. More... | |
| bool | localizedPiBonds () const |
| Tells whether the calculation uses localized pi-bonds. More... | |
| void | calculate (const Chem::MolecularGraph &molgraph) |
| Performs the MHMO calculation for molgraph, perceiving the pi-electron systems on the fly. More... | |
| void | calculate (const Chem::ElectronSystemList &pi_sys_list, const Chem::MolecularGraph &molgraph) |
| Performs the MHMO calculation for the given pi-electron systems of molgraph. More... | |
| double | getElectronDensity (std::size_t atom_idx) const |
| Returns the calculated pi-electron density of the atom at index atom_idx. More... | |
| double | getCharge (std::size_t atom_idx) const |
| Returns the calculated pi-charge of the atom at index atom_idx. More... | |
| double | getBondOrder (std::size_t bond_idx) const |
| Returns the calculated pi-bond order of the bond at index bond_idx. More... | |
| double | getEnergy () const |
| Returns the total pi-electron energy of the molecular graph from the last calculation. More... | |
Calculator that uses a Modified Hückel Molecular Orbital (MHMO) treatment to compute pi-electron densities, pi-charges, pi-bond orders and the total pi-electron energy of a molecular graph.
The calculator can either perceive the pi-electron systems of the molecular graph itself (via Chem::ElectronSystemList) or accept a pre-computed list of pi-systems. The MHMO parameter set follows the parameterization described in the PhD thesis of Thomas Kleinöder (Computer Chemistry Center, Univ. Erlangen-Nuremberg, 2005).
| typedef std::shared_ptr<MHMOPiChargeCalculator> CDPL::MolProp::MHMOPiChargeCalculator::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated MHMOPiChargeCalculator instances.
| CDPL::MolProp::MHMOPiChargeCalculator::MHMOPiChargeCalculator | ( | ) |
Constructs the MHMOPiChargeCalculator instance.
| CDPL::MolProp::MHMOPiChargeCalculator::MHMOPiChargeCalculator | ( | const Chem::MolecularGraph & | molgraph | ) |
Constructs the MHMOPiChargeCalculator instance and performs the MHMO calculation for molgraph.
The pi-electron systems are perceived from molgraph.
| molgraph | The molecular graph for which to perform the MHMO calculation. |
| CDPL::MolProp::MHMOPiChargeCalculator::MHMOPiChargeCalculator | ( | const Chem::ElectronSystemList & | pi_sys_list, |
| const Chem::MolecularGraph & | molgraph | ||
| ) |
Constructs the MHMOPiChargeCalculator instance and performs the MHMO calculation for the given pi-electron systems of molgraph.
| pi_sys_list | The list of pi-electron systems. |
| molgraph | The molecular graph. |
|
delete |
| CDPL::MolProp::MHMOPiChargeCalculator::~MHMOPiChargeCalculator | ( | ) |
Destructor.
|
delete |
| void CDPL::MolProp::MHMOPiChargeCalculator::localizedPiBonds | ( | bool | localized | ) |
Specifies whether the calculation shall use localized pi-bonds.
| localized | If true, conjugated pi-systems are treated as a set of localized pi-bonds. |
| bool CDPL::MolProp::MHMOPiChargeCalculator::localizedPiBonds | ( | ) | const |
Tells whether the calculation uses localized pi-bonds.
true if the calculation uses localized pi-bonds, and false otherwise. | void CDPL::MolProp::MHMOPiChargeCalculator::calculate | ( | const Chem::MolecularGraph & | molgraph | ) |
Performs the MHMO calculation for molgraph, perceiving the pi-electron systems on the fly.
| molgraph | The molecular graph for which to perform the MHMO calculation. |
| void CDPL::MolProp::MHMOPiChargeCalculator::calculate | ( | const Chem::ElectronSystemList & | pi_sys_list, |
| const Chem::MolecularGraph & | molgraph | ||
| ) |
Performs the MHMO calculation for the given pi-electron systems of molgraph.
| pi_sys_list | The list of pi-electron systems. |
| molgraph | The molecular graph. |
| double CDPL::MolProp::MHMOPiChargeCalculator::getElectronDensity | ( | std::size_t | atom_idx | ) | const |
Returns the calculated pi-electron density of the atom at index atom_idx.
| atom_idx | The zero-based atom index. |
| Base::IndexError | if atom_idx is out of bounds. |
| double CDPL::MolProp::MHMOPiChargeCalculator::getCharge | ( | std::size_t | atom_idx | ) | const |
Returns the calculated pi-charge of the atom at index atom_idx.
| atom_idx | The zero-based atom index. |
| Base::IndexError | if atom_idx is out of bounds. |
| double CDPL::MolProp::MHMOPiChargeCalculator::getBondOrder | ( | std::size_t | bond_idx | ) | const |
Returns the calculated pi-bond order of the bond at index bond_idx.
| bond_idx | The zero-based bond index. |
| Base::IndexError | if bond_idx is out of bounds. |
| double CDPL::MolProp::MHMOPiChargeCalculator::getEnergy | ( | ) | const |
Returns the total pi-electron energy of the molecular graph from the last calculation.