21#ifndef VOTCA_XTP_DFTENGINE_H
22#define VOTCA_XTP_DFTENGINE_H
55 std::vector<std::unique_ptr<StaticSite> >* externalsites) {
75 std::array<Eigen::MatrixXd, 2>
CalcERIs_EXX(
const Eigen::MatrixXd& MOCoeff,
76 const Eigen::MatrixXd& Dmat,
79 Eigen::MatrixXd
CalcERIs(
const Eigen::MatrixXd& Dmat,
double error)
const;
89 const std::vector<std::unique_ptr<StaticSite> >& multipoles)
const;
107 const std::vector<std::unique_ptr<StaticSite> >& multipoles)
const;
109 const AOBasis& dftbasis)
const;
113 Eigen::MatrixXd InitialActiveDensityMatrix,
114 Eigen::MatrixXd v_embedding,
115 Eigen::MatrixXd InitialInactiveMOs);
118 std::vector<Index> numfuncpatom);
120 Index numofzerocols);
122 Index numofzerorows);
168 QMMolecule(
"molecule made of atoms participating in Active region", 1);
Container to hold Basisfunctions for all atoms.
Electronic ground-state via Density-Functional Theory.
Eigen::MatrixXd CalcERIs(const Eigen::MatrixXd &Dmat, double error) const
void setExternalcharges(std::vector< std::unique_ptr< StaticSite > > *externalsites)
bool EvaluateTruncatedActiveRegion(Orbitals &trunc_orb)
std::string auxbasis_name_
std::string getDFTBasisName() const
tools::EigenSystem ModelPotentialGuess(const Mat_p_Energy &H0, const QMMolecule &mol, const Vxc_Potential< Vxc_Grid > &vxcpotential) const
Mat_p_Energy IntegrateExternalMultipoles(const QMMolecule &mol, const std::vector< std::unique_ptr< StaticSite > > &multipoles) const
tools::EigenSystem IndependentElectronGuess(const Mat_p_Energy &H0) const
Eigen::MatrixXd InitialActiveDmat_trunc_
void TruncMOsFullBasis(Orbitals &orb, std::vector< Index > activeatoms, std::vector< Index > numfuncpatom)
void setLogger(Logger *pLog)
void TruncateBasis(Orbitals &orb, std::vector< Index > &activeatoms, Mat_p_Energy &H0, Eigen::MatrixXd InitialActiveDensityMatrix, Eigen::MatrixXd v_embedding, Eigen::MatrixXd InitialInactiveMOs)
std::string dftbasis_name_
double truncation_threshold_
Mat_p_Energy IntegrateExternalDensity(const QMMolecule &mol, const Orbitals &extdensity) const
bool EvaluateActiveRegion(Orbitals &orb)
Eigen::MatrixXd RunAtomicDFT_unrestricted(const QMAtom &uniqueAtom) const
void Prepare(Orbitals &orb, Index numofelectrons=-1)
std::string initial_guess_
Eigen::MatrixXd AtomicGuess(const QMMolecule &mol) const
Eigen::MatrixXd InsertZeroRows(Eigen::MatrixXd MOsMatrix, Index startidx, Index numofzerorows)
Eigen::MatrixXd IntegrateExternalField(const QMMolecule &mol) const
Eigen::Vector3d extfield_
std::array< Eigen::MatrixXd, 2 > CalcERIs_EXX(const Eigen::MatrixXd &MOCoeff, const Eigen::MatrixXd &Dmat, double error) const
Eigen::MatrixXd H0_trunc_
void Initialize(tools::Property &options)
std::string xc_functional_name_
void CalcElDipole(const Orbitals &orb) const
double ExternalRepulsion(const QMMolecule &mol, const std::vector< std::unique_ptr< StaticSite > > &multipoles) const
ConvergenceAcc::options conv_opt_
void SetupInvariantMatrices()
std::string active_atoms_as_string_
void ConfigOrbfile(Orbitals &orb)
bool integrate_ext_density_
void PrintMOs(const Eigen::VectorXd &MOEnergies, Log::Level level)
std::vector< Index > numfuncpatom_
std::vector< Index > active_and_border_atoms_
Mat_p_Energy SetupH0(const QMMolecule &mol) const
Eigen::MatrixXd OrthogonalizeGuess(const Eigen::MatrixXd &GuessMOs) const
Eigen::MatrixXd v_embedding_trunc_
Eigen::MatrixXd SphericalAverageShells(const Eigen::MatrixXd &dmat, const AOBasis &dftbasis) const
bool Evaluate(Orbitals &orb)
std::vector< std::unique_ptr< StaticSite > > * externalsites_
Eigen::MatrixXd McWeenyPurification(Eigen::MatrixXd &Dmat_in, AOOverlap &overlap)
Vxc_Potential< Vxc_Grid > SetupVxc(const QMMolecule &mol)
bool integrate_ext_field_
double NuclearRepulsion(const QMMolecule &mol) const
ConvergenceAcc conv_accelerator_
Eigen::MatrixXd InsertZeroCols(Eigen::MatrixXd MOsMatrix, Index startidx, Index numofzerocols)
Container to hold ECPs for all atoms.
Takes a density matrix and and an auxiliary basis set and calculates the electron repulsion integrals...
Logger is used for thread-safe output of messages.
container for molecular orbitals
base class for all analysis tools