votca 2026-dev
Loading...
Searching...
No Matches
votca::xtp::DFTEngine Class Reference

Electronic ground-state via Density-Functional Theory. More...

#include <dftengine.h>

Collaboration diagram for votca::xtp::DFTEngine:

Classes

struct  BSEGradientInput
struct  BSEGradientResult
struct  SpinDensity
struct  CDFTConstraintSpec

Public Member Functions

void Initialize (tools::Property &options)
 Read DFT, grid, and SCF settings from the user options tree.
void setLogger (Logger *pLog)
 Attach the logger used for SCF progress and diagnostics.
void setExternalcharges (std::vector< std::unique_ptr< StaticSite > > *externalsites)
void setEwaldgrid (const Vxc_Grid &ewaldgrid)
void setEwaldNuclearEnergy (double energy)
void setWarmStart (bool warm_start)
void setSetupCache (DFTSetupCache *cache)
void setSCFToleranceFloor (double energy, double error)
void ReturnSetupCache ()
bool Evaluate (Orbitals &orb)
bool RunCDFT (Orbitals &orb, HirshfeldPartition::Constraint &constraint)
bool EvaluateActiveRegion (Orbitals &orb)
bool EvaluateTruncatedActiveRegion (Orbitals &trunc_orb)
std::string getDFTBasisName () const
 Return the configured AO basis-set name for the DFT calculation.
std::vector< Eigen::MatrixXd > StaticResponse (const Orbitals &orb, const std::vector< Eigen::MatrixXd > &perturbations, double tolerance=1e-7, Index max_iterations=100)
BSEGradientResult BSEExcitationGradient (const Orbitals &orb, const BSEGradientInput &input)
const std::string & getGridName () const
 Name of the integration grid of the SCF (xtpdft.integration_grid).
void setExternalPotentialMatrix (const Eigen::MatrixXd &v)
std::vector< HirshfeldPartition::AtomicReference > HirshfeldReferences (const QMMolecule &mol) const
bool IsRestrictedOpenShell () const
Index NumberOfRestrictedOccupiedOrbitals () const
SpinDensity BuildSpinDensity (const tools::EigenSystem &MOs) const
ConvergenceAcc::options BuildConvergenceOptions () const
void setForceUKSPath (bool force)

Static Public Member Functions

static BSEGradientInput BSEGradientInputFromOrbitals (const Orbitals &orb, bool singlet, Index index)
static BSEGradientInput QPGradientInputFromOrbitals (const Orbitals &orb, const std::vector< Index > &levels)

Private Member Functions

void Prepare (Orbitals &orb, Index numofelectrons=-1)
Vxc_Potential< Vxc_Grid > SetupVxc (const QMMolecule &mol)
UKSConvergenceAcc::SpinFock BuildUKSFock (const Eigen::MatrixXd &H0, const Vxc_Potential< Vxc_Grid > &vxcpotential, const Eigen::MatrixXd &alpha_new, const Eigen::MatrixXd &beta_new)
Eigen::MatrixXd RKSOrbitalHessian (const Vxc_Potential< Vxc_Grid > &vxc, const tools::EigenSystem &mos, const Eigen::MatrixXd &F, const Eigen::MatrixXd &X)
Eigen::MatrixXd UKSOrbitalHessian (const Vxc_Potential< Vxc_Grid > &vxc, const tools::EigenSystem &mos_alpha, const tools::EigenSystem &mos_beta, const Eigen::MatrixXd &F_alpha, const Eigen::MatrixXd &F_beta, const Eigen::MatrixXd &X)
std::vector< Eigen::MatrixXd > CoupledResponse (const Vxc_Potential< Vxc_Grid > &vxc, const Eigen::MatrixXd &P0, const Eigen::MatrixXd &C_occ, const Eigen::MatrixXd &C_virt, const std::vector< Eigen::MatrixXd > &U, const Vxc_Potential< Vxc_Grid >::FXCKernel *fxc_kernel=nullptr)
Eigen::MatrixXd OrthogonalizeGuess (const Eigen::MatrixXd &GuessMOs) const
 Orthonormalize an initial MO guess with respect to the AO overlap matrix.
void PrintMOs (const Eigen::VectorXd &MOEnergies, Log::Level level)
 Print a one-spin list of orbital energies and occupations to the logger.
void PrintMOsUKS (const Eigen::VectorXd &alpha_energies, const Eigen::VectorXd &beta_energies, Log::Level level) const
 Print separate alpha and beta orbital energies for a UKS calculation.
void CalcElDipole (const Orbitals &orb) const
 Evaluate and print the electronic dipole moment from the final density.
std::array< Eigen::MatrixXd, 2 > CalcERIs_EXX (const Eigen::MatrixXd &MOCoeff, const Eigen::MatrixXd &Dmat, double error) const
Eigen::MatrixXd CalcERIs (const Eigen::MatrixXd &Dmat, double error) const
 Build the Coulomb matrix contribution from the current density matrix.
void ComputePolarizability (Orbitals &orb)
bool EvaluateAndTime (Orbitals &orb)
 Evaluate() without the timing report.
void ReportDimensionsAndMemory () const
 Basis dimensions and the memory of the large intermediates.
void ConfigOrbfile (Orbitals &orb)
 Propagate basis-set, XC, and metadata settings into the orbital container.
void SetupInvariantMatrices ()
 Precompute AO matrices that remain unchanged throughout the SCF procedure.
Eigen::MatrixXd McWeenyPurification (Eigen::MatrixXd &Dmat_in, AOOverlap &overlap)
Mat_p_Energy SetupH0 (const QMMolecule &mol) const
 Assemble the one-electron core Hamiltonian for the current molecule.
Mat_p_Energy IntegrateExternalMultipoles (const QMMolecule &mol, const std::vector< std::unique_ptr< StaticSite > > &multipoles) const
Mat_p_Energy IntegrateExternalDensity (const QMMolecule &mol, const Orbitals &extdensity) const
Eigen::MatrixXd IntegrateExternalField (const QMMolecule &mol) const
 Integrate a homogeneous external electric field into the AO basis.
tools::EigenSystem IndependentElectronGuess (const Mat_p_Energy &H0) const
 Generate an initial guess by diagonalizing the core Hamiltonian only.
tools::EigenSystem ModelPotentialGuess (const Mat_p_Energy &H0, const QMMolecule &mol, const Vxc_Potential< Vxc_Grid > &vxcpotential) const
Eigen::MatrixXd AtomicGuess (const QMMolecule &mol) const
 Build an atomic-density based initial guess in the AO basis.
Eigen::VectorXd BuildEHTOrbitalEnergies (const QMMolecule &mol) const
 Build orbital energies used in the extended-Hückel starting guess.
Eigen::MatrixXd BuildEHTHamiltonian (const QMMolecule &mol) const
 Build the extended-Hückel Hamiltonian for the current molecule.
tools::EigenSystem ExtendedHuckelGuess (const QMMolecule &mol) const
tools::EigenSystem ExtendedHuckelDFTGuess (const Mat_p_Energy &H0, const QMMolecule &mol, const Vxc_Potential< Vxc_Grid > &vxcpotential) const
Orbitals BuildDimerGuessFromMonomerFiles (const QMMolecule &dimer_mol) const
Eigen::MatrixXd RunAtomicDFT_unrestricted (const QMAtom &uniqueAtom, bool use_hunds_rule_occupation=false) const
std::map< std::string, Eigen::MatrixXd > ComputeHirshfeldReferenceDensities (const QMMolecule &mol) const
HirshfeldPartition::Constraint BuildCDFTConstraint (const QMMolecule &mol, const CDFTConstraintSpec &spec) const
double NuclearRepulsion (const QMMolecule &mol) const
 Compute the classical nucleus-nucleus repulsion energy.
double ExternalRepulsion (const QMMolecule &mol, const std::vector< std::unique_ptr< StaticSite > > &multipoles) const
Eigen::MatrixXd SphericalAverageShells (const Eigen::MatrixXd &dmat, const AOBasis &dftbasis) const
void TruncateBasis (Orbitals &orb, std::vector< Index > &activeatoms, Mat_p_Energy &H0, Eigen::MatrixXd InitialActiveDensityMatrix, Eigen::MatrixXd v_embedding, Eigen::MatrixXd InitialInactiveMOs)
void TruncMOsFullBasis (Orbitals &orb, std::vector< Index > activeatoms, std::vector< Index > numfuncpatom)
Eigen::MatrixXd InsertZeroCols (Eigen::MatrixXd MOsMatrix, Index startidx, Index numofzerocols)
Eigen::MatrixXd InsertZeroRows (Eigen::MatrixXd MOsMatrix, Index startidx, Index numofzerorows)
 Insert zero rows into an MO coefficient matrix at the requested position.
bool EvaluateClosedShell (Orbitals &orb, const Mat_p_Energy &H0, const Vxc_Potential< Vxc_Grid > &vxcpotential)
 Run the restricted closed-shell SCF loop and store the converged result.
bool EvaluateUKS (Orbitals &orb, const Mat_p_Energy &H0, const Vxc_Potential< Vxc_Grid > &vxcpotential)
void ComputeAndStoreForces (Orbitals &orb, const Eigen::MatrixXd &Dmat, const Vxc_Potential< Vxc_Grid > &vxcpotential) const
Eigen::MatrixXd ComputeOverlapPulayGradientUKS (const QMMolecule &mol, const tools::EigenSystem &MOs_alpha, const tools::EigenSystem &MOs_beta) const
Eigen::MatrixXd ComputeNonXCGradientUKS (const QMMolecule &mol, const UKSConvergenceAcc::SpinDensity &Dspin, const tools::EigenSystem &MOs_alpha, const tools::EigenSystem &MOs_beta) const
void ComputeAndStoreForcesUKS (Orbitals &orb, const UKSConvergenceAcc::SpinDensity &Dspin, const tools::EigenSystem &MOs_alpha, const tools::EigenSystem &MOs_beta, const Vxc_Potential< Vxc_Grid > &vxcpotential) const
std::string RISetupKey () const
bool UsableAsWarmStart (const Orbitals &orb, const std::string &previous_basis, std::string &reason) const

Private Attributes

Logger * pLog_
std::string auxbasis_name_
std::string dftbasis_name_
std::string ecp_name_
AOBasis dftbasis_
AOBasis auxbasis_
ECPAOBasis ecp_
Index fock_matrix_reset_
double screening_eps_
double overlap_tolerance_ = 1e-8
double ri_pair_threshold_ = 1e-10
std::string grid_name_
AOOverlap dftAOoverlap_
std::string initial_guess_
std::string dimer_guess_orbA_name_
std::string dimer_guess_orbB_name_
Index numofelectrons_ = 0
Index max_iter_
ConvergenceAcc::options conv_opt_
ConvergenceAcc conv_accelerator_
ERIs ERIs_
DFTTimings timings_
bool warm_start_ = false
bool warm_started_ = false
DFTSetupCache * setup_cache_ = nullptr
std::string eris_key_
std::vector< std::unique_ptr< StaticSite > > * externalsites_ = nullptr
double ScaHFX_ = 0.0
std::string xc_functional_name_
bool integrate_ext_density_ = false
std::string orbfilename_
std::string gridquality_
std::string state_
QMMolecule activemol_
Eigen::Vector3d extfield_ = Eigen::Vector3d::Zero()
bool integrate_ext_field_ = false
bool compute_polarizability_ = false
Eigen::MatrixXd ext_potential_matrix_
std::string active_atoms_as_string_
ActiveRegion::Options active_growth_
double active_threshold_
double levelshift_
Eigen::MatrixXd H0_trunc_
Eigen::MatrixXd InitialActiveDmat_trunc_
Eigen::MatrixXd v_embedding_trunc_
bool truncate_
Index active_electrons_
double Total_E_full_
double E_nuc_
double truncation_threshold_
std::vector< Index > active_and_border_atoms_
std::vector< Index > numfuncpatom_
Vxc_Grid external_ewaldgrid_
bool has_ewaldgrid_ = false
double ewald_nuclear_energy_ = 0.0
Index num_alpha_electrons_ = 0
Index num_beta_electrons_ = 0
Index num_docc_ = 0
Index num_socc_alpha_ = 0
Index spin_ = 1
Index charge_ = 0
bool force_uks_path_ = false
bool compute_forces_ = false
std::vector< HirshfeldPartition::Constraint > constraints_
Index max_cdft_iterations_ = 50
double cdft_population_tolerance_ = 1.e-4
bool cdft_enabled_ = false
CDFTConstraintSpec cdft_constraint_spec_

Friends

class DFTEngineTestAccess

Detailed Description

Electronic ground-state via Density-Functional Theory.

This class assembles the one- and two-electron matrix contributions needed for self-consistent Kohn-Sham calculations in a Gaussian AO basis. The SCF machinery supports restricted closed-shell calculations and unrestricted spin-polarized calculations, while reusing the same integral and numerical XC infrastructure whenever possible.

Definition at line 89 of file dftengine.h.

Member Function Documentation

◆ AtomicGuess()

Eigen::MatrixXd votca::xtp::DFTEngine::AtomicGuess ( const QMMolecule & mol) const
private

Build an atomic-density based initial guess in the AO basis.

Definition at line 2636 of file dftengine.cc.

◆ BSEExcitationGradient()

DFTEngine::BSEGradientResult votca::xtp::DFTEngine::BSEExcitationGradient ( const Orbitals & orb,
const BSEGradientInput & input )

Analytic nuclear gradient of a (TDA or full) BSE excitation energy with static RPA screening and fixed QP corrections, for the closed-shell RI ground state in orb (same basis, functional and grid as this engine): the Lagrangian of the excitation energy with the KS orbital response (Z-vector), the response of the screening, and the integral derivatives (derivation in bsegradient.cc).

Definition at line 130 of file bsegradient.cc.

◆ BSEGradientInputFromOrbitals()

DFTEngine::BSEGradientInput votca::xtp::DFTEngine::BSEGradientInputFromOrbitals ( const Orbitals & orb,
bool singlet,
Index index )
static

The input of BSEExcitationGradient for BSE state index (0-based) of a GW-BSE run stored in orb: windows, amplitudes, the diagonal of the QP Hamiltonian (RPA input energies outside the QP window) and the RPA input energies. Throws for setups the gradient does not cover (off-diagonal Hqp, QSGW, open shells).

Definition at line 1265 of file bsegradient.cc.

◆ BuildCDFTConstraint()

HirshfeldPartition::Constraint votca::xtp::DFTEngine::BuildCDFTConstraint ( const QMMolecule & mol,
const CDFTConstraintSpec & spec ) const
private

Build the HirshfeldPartition::Constraint for spec on mol. The weight matrix is the sum of BuildWeightMatrix over spec.atom_indices (Hirshfeld weights are additive, w_fragment(r) = sum_{i in fragment} w_i(r)). The absolute target population is sum_{i in fragment} Z_i - spec.target_charge.

Definition at line 3095 of file dftengine.cc.

◆ BuildConvergenceOptions()

ConvergenceAcc::options votca::xtp::DFTEngine::BuildConvergenceOptions ( ) const

Assemble SCF acceleration settings consistent with the current spin treatment and occupation model.

◆ BuildDimerGuessFromMonomerFiles()

Orbitals votca::xtp::DFTEngine::BuildDimerGuessFromMonomerFiles ( const QMMolecule & dimer_mol) const
private

Build a dimer guess (separate alpha and beta MOs) from two converged monomer .orb files (dimer_guess_orbA_name_/dimer_guess_orbB_name_), combined via Orbitals::PrepareDimerGuessMixedSpin.

Checks each monomer against dimer_mol: (1) its element sequence must match the first N_A (monomer A) or the remaining (monomer B) atoms; (2) all intra-monomer interatomic distances must match those of the corresponding dimer atoms to a tight tolerance. Absolute positions are not compared, since a monomer may be translated/rotated in the dimer.

Definition at line 3724 of file dftengine.cc.

◆ BuildEHTHamiltonian()

Eigen::MatrixXd votca::xtp::DFTEngine::BuildEHTHamiltonian ( const QMMolecule & mol) const
private

Build the extended-Hückel Hamiltonian for the current molecule.

Definition at line 3667 of file dftengine.cc.

◆ BuildEHTOrbitalEnergies()

Eigen::VectorXd votca::xtp::DFTEngine::BuildEHTOrbitalEnergies ( const QMMolecule & mol) const
private

Build orbital energies used in the extended-Hückel starting guess.

Definition at line 3639 of file dftengine.cc.

◆ BuildSpinDensity()

SpinDensity votca::xtp::DFTEngine::BuildSpinDensity ( const tools::EigenSystem & MOs) const

Construct alpha and beta density matrices from a shared MO coefficient matrix and the current occupation metadata.

◆ BuildUKSFock()

UKSConvergenceAcc::SpinFock votca::xtp::DFTEngine::BuildUKSFock ( const Eigen::MatrixXd & H0,
const Vxc_Potential< Vxc_Grid > & vxcpotential,
const Eigen::MatrixXd & alpha_new,
const Eigen::MatrixXd & beta_new )
private

C_v^T G[dP_k] C_o for dP_k = 2 (C_v U_k C_o^T + C_o U_k^T C_v^T), with G the closed-shell response of J, 0.5 a_x K and V_xc (f_xc at the density P0): the coupling part of the orbital Hessian, shared by StaticResponse and the second-order SCF.

Definition at line 2700 of file dftengine.cc.

◆ CalcElDipole()

void votca::xtp::DFTEngine::CalcElDipole ( const Orbitals & orb) const
private

Evaluate and print the electronic dipole moment from the final density.

Definition at line 373 of file dftengine.cc.

◆ CalcERIs()

Eigen::MatrixXd votca::xtp::DFTEngine::CalcERIs ( const Eigen::MatrixXd & Dmat,
double error ) const
private

Build the Coulomb matrix contribution from the current density matrix.

Definition at line 739 of file dftengine.cc.

◆ CalcERIs_EXX()

std::array< Eigen::MatrixXd, 2 > votca::xtp::DFTEngine::CalcERIs_EXX ( const Eigen::MatrixXd & MOCoeff,
const Eigen::MatrixXd & Dmat,
double error ) const
private

Build Coulomb and exact-exchange matrix contributions from the current MO coefficients and density.

Definition at line 713 of file dftengine.cc.

◆ ComputeAndStoreForces()

void votca::xtp::DFTEngine::ComputeAndStoreForces ( Orbitals & orb,
const Eigen::MatrixXd & Dmat,
const Vxc_Potential< Vxc_Grid > & vxcpotential ) const
private

Assemble the total ground-state nuclear gradient (one-electron [kinetic + nuclear attraction] + overlap "Pulay force" + nuclear repulsion + RI-J Coulomb + RI-K exact exchange [hybrid functionals]

  • XC, LDA or GGA) from a converged density matrix and store it in the orbital container via Orbitals::setForces(), as the physical force (-dE/dR, matching the convention external tools such as ASE expect from a Calculator's getForces()).

The overlap Pulay term, -tr(W dS/dR) with the energy-weighted density W, arises because C^T S C = I depends on the geometry through the basis functions; it is distinct from DFTGradient::PulayGradient, the basis-function term of the XC integral.

The exchange gradient uses the asymmetric V^-1 RI fit, which gives the same exchange energy as the symmetric V^-1/2 fit in ERIs::CalculateEXX_mos (exact identity for positive-definite V), so no derivative of V^-1/2 is needed.

Requires RI (auxbasis_name_ non-empty); RIJGradient/RIKGradient have no 4-centre implementation. Only called if compute_forces_ is set (<xtpdft><compute_forces>true</compute_forces></xtpdft>, default false), since it adds non-trivial cost to every SCF.

Definition at line 397 of file dftengine.cc.

◆ ComputeAndStoreForcesUKS()

void votca::xtp::DFTEngine::ComputeAndStoreForcesUKS ( Orbitals & orb,
const UKSConvergenceAcc::SpinDensity & Dspin,
const tools::EigenSystem & MOs_alpha,
const tools::EigenSystem & MOs_beta,
const Vxc_Potential< Vxc_Grid > & vxcpotential ) const
private

UKS (open-shell) analog of ComputeAndStoreForces; stores the force via Orbitals::setForces().

Terms: nuclear repulsion; one-electron [kinetic + nuclear attraction] and RI-J with D_total = D_alpha + D_beta; overlap Pulay with W = W_alpha + W_beta (spin densities are not pre-doubled); RI-K for hybrids as 0.5 * ScaHFX_ * [RIKGradient(C_alpha_occ) + RIKGradient(C_beta_occ)], the 0.5 because UKS exchange uses ERIs::CalculateEXX_dmat(P) = 0.5 * ERIs::CalculateEXX_mos(C) for P = C C^T; and XC (PulayGradientUKS + GridWeightGradientUKS, LDA and GGA, including the sigma_aa/sigma_ab/sigma_bb terms), checked against finite differences of IntegrateVXCSpin.

Definition at line 626 of file dftengine.cc.

◆ ComputeHirshfeldReferenceDensities()

std::map< std::string, Eigen::MatrixXd > votca::xtp::DFTEngine::ComputeHirshfeldReferenceDensities ( const QMMolecule & mol) const
private

Isolated-atom reference density (in the atom's own basis) for each unique element in mol, keyed by element symbol: the promolecular densities for Hirshfeld-based CDFT. Same structure as AtomicGuess, but with use_hunds_rule_occupation=true, and the per-element densities are returned instead of being assembled into a molecular AO matrix, since Hirshfeld evaluates them in real space on each atom's position.

Definition at line 2678 of file dftengine.cc.

◆ ComputeNonXCGradientUKS()

Eigen::MatrixXd votca::xtp::DFTEngine::ComputeNonXCGradientUKS ( const QMMolecule & mol,
const UKSConvergenceAcc::SpinDensity & Dspin,
const tools::EigenSystem & MOs_alpha,
const tools::EigenSystem & MOs_beta ) const
private

Non-XC part of the UKS gradient (nuclear repulsion, one-electron, overlap Pulay, RI-J, RI-K), see ComputeAndStoreForcesUKS. Returns dE/dR (natoms x 3), not the force; the sign flip is done on storage.

Definition at line 583 of file dftengine.cc.

◆ ComputeOverlapPulayGradientUKS()

Eigen::MatrixXd votca::xtp::DFTEngine::ComputeOverlapPulayGradientUKS ( const QMMolecule & mol,
const tools::EigenSystem & MOs_alpha,
const tools::EigenSystem & MOs_beta ) const
private

UKS overlap Pulay gradient with W = W_alpha + W_beta (no factor of 2, unlike RKS). Separate method because it cannot be checked against a fixed-C finite difference: it accounts for the implicit R-dependence of C through orthonormality and is only valid at an SCF stationary point. test_dftengine_private.cc checks it against the RKS formula for alpha == beta.

Definition at line 550 of file dftengine.cc.

◆ ComputePolarizability()

void votca::xtp::DFTEngine::ComputePolarizability ( Orbitals & orb)
private

Static polarizability of the converged closed-shell state in orb (StaticResponse with the dipole operators), stored in orb.

Definition at line 844 of file dftengine.cc.

◆ ConfigOrbfile()

void votca::xtp::DFTEngine::ConfigOrbfile ( Orbitals & orb)
private

Propagate basis-set, XC, and metadata settings into the orbital container.

Definition at line 3153 of file dftengine.cc.

◆ CoupledResponse()

std::vector< Eigen::MatrixXd > votca::xtp::DFTEngine::CoupledResponse ( const Vxc_Potential< Vxc_Grid > & vxc,
const Eigen::MatrixXd & P0,
const Eigen::MatrixXd & C_occ,
const Eigen::MatrixXd & C_virt,
const std::vector< Eigen::MatrixXd > & U,
const Vxc_Potential< Vxc_Grid >::FXCKernel * fxc_kernel = nullptr )
private

Definition at line 2876 of file dftengine.cc.

◆ Evaluate()

bool votca::xtp::DFTEngine::Evaluate ( Orbitals & orb)

Run a full ground-state DFT calculation and store the results in the orbital container.

Definition at line 823 of file dftengine.cc.

◆ EvaluateActiveRegion()

bool votca::xtp::DFTEngine::EvaluateActiveRegion ( Orbitals & orb)

Run an embedded active-region DFT calculation for the supplied orbital container.

Definition at line 65 of file embeddingengine.cc.

◆ EvaluateAndTime()

bool votca::xtp::DFTEngine::EvaluateAndTime ( Orbitals & orb)
private

Evaluate() without the timing report.

Definition at line 876 of file dftengine.cc.

◆ EvaluateClosedShell()

bool votca::xtp::DFTEngine::EvaluateClosedShell ( Orbitals & orb,
const Mat_p_Energy & H0,
const Vxc_Potential< Vxc_Grid > & vxcpotential )
private

Run the restricted closed-shell SCF loop and store the converged result.

Definition at line 1146 of file dftengine.cc.

◆ EvaluateTruncatedActiveRegion()

bool votca::xtp::DFTEngine::EvaluateTruncatedActiveRegion ( Orbitals & trunc_orb)

Run the truncated active-region workflow used for reduced embedded calculations.

Definition at line 388 of file embeddingengine.cc.

◆ EvaluateUKS()

bool votca::xtp::DFTEngine::EvaluateUKS ( Orbitals & orb,
const Mat_p_Energy & H0,
const Vxc_Potential< Vxc_Grid > & vxcpotential )
private

Run the unrestricted Kohn-Sham SCF loop and store alpha and beta orbitals separately.

Definition at line 1391 of file dftengine.cc.

◆ ExtendedHuckelDFTGuess()

tools::EigenSystem votca::xtp::DFTEngine::ExtendedHuckelDFTGuess ( const Mat_p_Energy & H0,
const QMMolecule & mol,
const Vxc_Potential< Vxc_Grid > & vxcpotential ) const
private

Generate an extended-Hückel based guess refined with the one-electron DFT Hamiltonian.

Definition at line 3700 of file dftengine.cc.

◆ ExtendedHuckelGuess()

tools::EigenSystem votca::xtp::DFTEngine::ExtendedHuckelGuess ( const QMMolecule & mol) const
private

Generate an initial guess by diagonalizing the extended-Hückel Hamiltonian.

Definition at line 3687 of file dftengine.cc.

◆ ExternalRepulsion()

double votca::xtp::DFTEngine::ExternalRepulsion ( const QMMolecule & mol,
const std::vector< std::unique_ptr< StaticSite > > & multipoles ) const
private

Compute the classical interaction energy between nuclei and external multipoles.

Definition at line 3416 of file dftengine.cc.

◆ getDFTBasisName()

std::string votca::xtp::DFTEngine::getDFTBasisName ( ) const
inline

Return the configured AO basis-set name for the DFT calculation.

Definition at line 162 of file dftengine.h.

◆ getGridName()

const std::string & votca::xtp::DFTEngine::getGridName ( ) const
inline

Name of the integration grid of the SCF (xtpdft.integration_grid).

Definition at line 265 of file dftengine.h.

◆ HirshfeldReferences()

std::vector< HirshfeldPartition::AtomicReference > votca::xtp::DFTEngine::HirshfeldReferences ( const QMMolecule & mol) const

Free-atom reference densities of the Hirshfeld partition of mol (the ones CDFT uses), as atom-centred references for HirshfeldPartition.

Definition at line 3089 of file dftengine.cc.

◆ IndependentElectronGuess()

tools::EigenSystem votca::xtp::DFTEngine::IndependentElectronGuess ( const Mat_p_Energy & H0) const
private

Generate an initial guess by diagonalizing the core Hamiltonian only.

Definition at line 785 of file dftengine.cc.

◆ Initialize()

void votca::xtp::DFTEngine::Initialize ( tools::Property & options)

Read DFT, grid, and SCF settings from the user options tree.

Self-consistent Kohn-Sham implementation.

The SCF cycle solves F C = S C eps in a Gaussian AO basis. In the restricted branch a single density matrix is iterated, whereas in the UKS branch separate alpha and beta densities are propagated while sharing the same one-electron Hamiltonian, Coulomb term, and AO overlap matrix.

Relative to the earlier restricted implementation, the UKS extension keeps the spin channels separate only where the equations require it: exchange, spin-resolved XC potentials, occupations, and convergence acceleration.

Definition at line 99 of file dftengine.cc.

◆ InsertZeroCols()

Eigen::MatrixXd votca::xtp::DFTEngine::InsertZeroCols ( Eigen::MatrixXd MOsMatrix,
Index startidx,
Index numofzerocols )
private

Insert zero columns into an MO coefficient matrix at the requested position.

◆ InsertZeroRows()

Eigen::MatrixXd votca::xtp::DFTEngine::InsertZeroRows ( Eigen::MatrixXd MOsMatrix,
Index startidx,
Index numofzerorows )
private

Insert zero rows into an MO coefficient matrix at the requested position.

Definition at line 721 of file embeddingengine.cc.

◆ IntegrateExternalDensity()

Mat_p_Energy votca::xtp::DFTEngine::IntegrateExternalDensity ( const QMMolecule & mol,
const Orbitals & extdensity ) const
private

Integrate an external electron density represented by another orbital container.

Definition at line 3589 of file dftengine.cc.

◆ IntegrateExternalField()

Eigen::MatrixXd votca::xtp::DFTEngine::IntegrateExternalField ( const QMMolecule & mol) const
private

Integrate a homogeneous external electric field into the AO basis.

Definition at line 3469 of file dftengine.cc.

◆ IntegrateExternalMultipoles()

Mat_p_Energy votca::xtp::DFTEngine::IntegrateExternalMultipoles ( const QMMolecule & mol,
const std::vector< std::unique_ptr< StaticSite > > & multipoles ) const
private

Integrate the electrostatic potential generated by external multipoles into the AO basis.

Definition at line 3482 of file dftengine.cc.

◆ IsRestrictedOpenShell()

bool votca::xtp::DFTEngine::IsRestrictedOpenShell ( ) const
inline

Report whether the current electron counts define a spin-polarized reference.

Definition at line 296 of file dftengine.h.

◆ McWeenyPurification()

Eigen::MatrixXd votca::xtp::DFTEngine::McWeenyPurification ( Eigen::MatrixXd & Dmat_in,
AOOverlap & overlap )
private

Apply McWeeny purification to improve the idempotency of a density-matrix guess.

Definition at line 683 of file embeddingengine.cc.

◆ ModelPotentialGuess()

tools::EigenSystem votca::xtp::DFTEngine::ModelPotentialGuess ( const Mat_p_Energy & H0,
const QMMolecule & mol,
const Vxc_Potential< Vxc_Grid > & vxcpotential ) const
private

Generate an initial guess from a model potential including numerical XC contributions.

Definition at line 796 of file dftengine.cc.

◆ NuclearRepulsion()

double votca::xtp::DFTEngine::NuclearRepulsion ( const QMMolecule & mol) const
private

Compute the classical nucleus-nucleus repulsion energy.

Definition at line 3360 of file dftengine.cc.

◆ NumberOfRestrictedOccupiedOrbitals()

Index votca::xtp::DFTEngine::NumberOfRestrictedOccupiedOrbitals ( ) const
inline

Return the number of spatial orbitals occupied by at least one electron in a restricted open-shell reference.

Definition at line 302 of file dftengine.h.

◆ OrthogonalizeGuess()

Eigen::MatrixXd votca::xtp::DFTEngine::OrthogonalizeGuess ( const Eigen::MatrixXd & GuessMOs) const
private

Orthonormalize an initial MO guess with respect to the AO overlap matrix.

Definition at line 3627 of file dftengine.cc.

◆ Prepare()

void votca::xtp::DFTEngine::Prepare ( Orbitals & orb,
Index numofelectrons = -1 )
private

Initialize basis sets, integral engines, and electron counts before entering the SCF loop.

Definition at line 3226 of file dftengine.cc.

◆ PrintMOs()

void votca::xtp::DFTEngine::PrintMOs ( const Eigen::VectorXd & MOEnergies,
Log::Level level )
private

Print a one-spin list of orbital energies and occupations to the logger.

Definition at line 293 of file dftengine.cc.

◆ PrintMOsUKS()

void votca::xtp::DFTEngine::PrintMOsUKS ( const Eigen::VectorXd & alpha_energies,
const Eigen::VectorXd & beta_energies,
Log::Level level ) const
private

Print separate alpha and beta orbital energies for a UKS calculation.

Definition at line 313 of file dftengine.cc.

◆ QPGradientInputFromOrbitals()

DFTEngine::BSEGradientInput votca::xtp::DFTEngine::QPGradientInputFromOrbitals ( const Orbitals & orb,
const std::vector< Index > & levels )
static

The input of BSEExcitationGradient for the gradients of the QP energies of levels (absolute MO indices in the QP window) of a GW run stored in orb; no BSE is needed.

Definition at line 1318 of file bsegradient.cc.

◆ ReportDimensionsAndMemory()

void votca::xtp::DFTEngine::ReportDimensionsAndMemory ( ) const
private

Basis dimensions and the memory of the large intermediates.

Definition at line 750 of file dftengine.cc.

◆ ReturnSetupCache()

void votca::xtp::DFTEngine::ReturnSetupCache ( )

Definition at line 1923 of file dftengine.cc.

◆ RISetupKey()

std::string votca::xtp::DFTEngine::RISetupKey ( ) const
private

Identifies what the RI integrals depend on: basis sets (shell types, primitives, centres) and the pair threshold.

Definition at line 1896 of file dftengine.cc.

◆ RKSOrbitalHessian()

Eigen::MatrixXd votca::xtp::DFTEngine::RKSOrbitalHessian ( const Vxc_Potential< Vxc_Grid > & vxc,
const tools::EigenSystem & mos,
const Eigen::MatrixXd & F,
const Eigen::MatrixXd & X )
private

Definition at line 2738 of file dftengine.cc.

◆ RunAtomicDFT_unrestricted()

Eigen::MatrixXd votca::xtp::DFTEngine::RunAtomicDFT_unrestricted ( const QMAtom & uniqueAtom,
bool use_hunds_rule_occupation = false ) const
private

Run an unrestricted atomic reference calculation used in open-shell atomic guesses.

use_hunds_rule_occupation: if true, take the alpha/beta electron counts from a Hund's-rule ground-state table for main-group (s/p-block) elements instead of the default parity split (odd Z -> one extra alpha electron, even Z -> alpha == beta). The parity split is wrong for e.g. carbon (triplet, alpha=4, beta=2), which is irrelevant for the SAD guess (AtomicGuess) but not for Hirshfeld reference densities in CDFT. Elements not in the table (d/f-block, where the ground state is functional-dependent) fall back to the parity split with a warning; see HundsRuleAlphaBetaElectrons in dftengine.cc.

Definition at line 2345 of file dftengine.cc.

◆ RunCDFT()

bool votca::xtp::DFTEngine::RunCDFT ( Orbitals & orb,
HirshfeldPartition::Constraint & constraint )

Run a single, charge-constrained DFT (CDFT) calculation: finds the Lagrange multiplier lambda such that Tr[(P_alpha + P_beta) * constraint.weight_matrix] equals constraint.target_population, then converges the SCF at that lambda (Wu-Van Voorhis outer loop). Each trial SCF is warm-started from the previous trial's converged density via the "orbfile" initial guess, as in CP2K. Always uses EvaluateUKS, since a localized extra charge is usually an open-shell situation.

constraint.lambda is the initial guess for the bisection (0.0 is a reasonable default) and holds the converged value on return. Returns false if no root can be bracketed (constraints_ cleared, lambda unchanged) or if the bisection exhausts max_cdft_iterations_ without reaching cdft_population_tolerance_ (lambda set to the last bracket midpoint). Throws std::runtime_error if an inner SCF does not converge, to distinguish that from running out of outer iterations.

Definition at line 1021 of file dftengine.cc.

◆ setEwaldgrid()

void votca::xtp::DFTEngine::setEwaldgrid ( const Vxc_Grid & ewaldgrid)
inline

Definition at line 104 of file dftengine.h.

◆ setEwaldNuclearEnergy()

void votca::xtp::DFTEngine::setEwaldNuclearEnergy ( double energy)
inline

Definition at line 114 of file dftengine.h.

◆ setExternalcharges()

void votca::xtp::DFTEngine::setExternalcharges ( std::vector< std::unique_ptr< StaticSite > > * externalsites)
inline

Provide external static sites whose electrostatic potential enters the Hamiltonian.

Definition at line 99 of file dftengine.h.

◆ setExternalPotentialMatrix()

void votca::xtp::DFTEngine::setExternalPotentialMatrix ( const Eigen::MatrixXd & v)
inline

A static one-electron perturbation (AO matrix, Hartree) added to the core Hamiltonian of every following Evaluate: the potential energy operator of an electron, e.g. lambda * W_k for a Hirshfeld-localized potential. Its size must match the DFT basis; an empty matrix removes it. Used for finite-difference response calculations (ChargeResponseFit).

Definition at line 273 of file dftengine.h.

◆ setForceUKSPath()

void votca::xtp::DFTEngine::setForceUKSPath ( bool force)
inline

Definition at line 315 of file dftengine.h.

◆ setLogger()

void votca::xtp::DFTEngine::setLogger ( Logger * pLog)
inline

Attach the logger used for SCF progress and diagnostics.

Definition at line 95 of file dftengine.h.

◆ setSCFToleranceFloor()

void votca::xtp::DFTEngine::setSCFToleranceFloor ( double energy,
double error )

Raise the SCF convergence thresholds (energy in Hartree, DIIS error) to at least these values; call after Initialize.

Definition at line 1911 of file dftengine.cc.

◆ setSetupCache()

void votca::xtp::DFTEngine::setSetupCache ( DFTSetupCache * cache)
inline

Reuse setup from, and keep it in, this cache (see DFTSetupCache). The RI integrals are taken out of the cache while the engine runs; call ReturnSetupCache() afterwards to put them back.

Definition at line 125 of file dftengine.h.

◆ SetupH0()

Mat_p_Energy votca::xtp::DFTEngine::SetupH0 ( const QMMolecule & mol) const
private

Assemble the one-electron core Hamiltonian for the current molecule.

Definition at line 1689 of file dftengine.cc.

◆ SetupInvariantMatrices()

void votca::xtp::DFTEngine::SetupInvariantMatrices ( )
private

Precompute AO matrices that remain unchanged throughout the SCF procedure.

Definition at line 1936 of file dftengine.cc.

◆ SetupVxc()

Vxc_Potential< Vxc_Grid > votca::xtp::DFTEngine::SetupVxc ( const QMMolecule & mol)
private

Build the numerical exchange-correlation integration object for the current molecule.

Definition at line 3340 of file dftengine.cc.

◆ setWarmStart()

void votca::xtp::DFTEngine::setWarmStart ( bool warm_start)
inline

Use the MOs already in the Orbitals passed to Evaluate as the SCF guess when they fit this calculation (same basis set and size, same electron counts); otherwise the configured initial_guess is used. Set by QM/MM for iterations after the first, where only the environment changed.

Definition at line 120 of file dftengine.h.

◆ SphericalAverageShells()

Eigen::MatrixXd votca::xtp::DFTEngine::SphericalAverageShells ( const Eigen::MatrixXd & dmat,
const AOBasis & dftbasis ) const
private

Average density-matrix elements over functions belonging to the same atomic shell.

Definition at line 3385 of file dftengine.cc.

◆ StaticResponse()

std::vector< Eigen::MatrixXd > votca::xtp::DFTEngine::StaticResponse ( const Orbitals & orb,
const std::vector< Eigen::MatrixXd > & perturbations,
double tolerance = 1e-7,
Index max_iterations = 100 )

Static linear response of the converged closed-shell ground state in orb (same basis, functional and grid as this engine) to one-electron perturbations h_k (AO matrices of an electron's potential energy, per unit strength): coupled-perturbed Kohn-Sham, (e_a - e_i) U_ai + [C_v^T G[dP] C_o]_ai = -[C_v^T h C_o]_ai, dP = 2 (C_v U C_o^T + C_o U^T C_v^T), G = J + 0.5 a_x K + f_xc (LDA/GGA, global hybrids), solved by preconditioned conjugate gradients for all h_k together until |residual| < tolerance |rhs|. Returns the first-order density matrices dP_k (total). Throws for open-shell states or if CG does not converge.

Definition at line 2922 of file dftengine.cc.

◆ TruncateBasis()

void votca::xtp::DFTEngine::TruncateBasis ( Orbitals & orb,
std::vector< Index > & activeatoms,
Mat_p_Energy & H0,
Eigen::MatrixXd InitialActiveDensityMatrix,
Eigen::MatrixXd v_embedding,
Eigen::MatrixXd InitialInactiveMOs )
private

Project the full-system Hamiltonian and densities onto the selected truncated active basis.

Definition at line 530 of file embeddingengine.cc.

◆ TruncMOsFullBasis()

void votca::xtp::DFTEngine::TruncMOsFullBasis ( Orbitals & orb,
std::vector< Index > activeatoms,
std::vector< Index > numfuncpatom )
private

Expand truncated active-region orbitals back into the full AO basis with zero padding.

Definition at line 704 of file embeddingengine.cc.

◆ UKSOrbitalHessian()

Eigen::MatrixXd votca::xtp::DFTEngine::UKSOrbitalHessian ( const Vxc_Potential< Vxc_Grid > & vxc,
const tools::EigenSystem & mos_alpha,
const tools::EigenSystem & mos_beta,
const Eigen::MatrixXd & F_alpha,
const Eigen::MatrixXd & F_beta,
const Eigen::MatrixXd & X )
private

Definition at line 2776 of file dftengine.cc.

◆ UsableAsWarmStart()

bool votca::xtp::DFTEngine::UsableAsWarmStart ( const Orbitals & orb,
const std::string & previous_basis,
std::string & reason ) const
private

Whether orb's MOs (computed in previous_basis) can serve as the guess for this calculation; if not, why not.

Definition at line 996 of file dftengine.cc.

◆ DFTEngineTestAccess

friend class DFTEngineTestAccess
friend

Definition at line 318 of file dftengine.h.

Member Data Documentation

◆ active_and_border_atoms_

std::vector<Index> votca::xtp::DFTEngine::active_and_border_atoms_
private

Definition at line 679 of file dftengine.h.

◆ active_atoms_as_string_

std::string votca::xtp::DFTEngine::active_atoms_as_string_
private

Definition at line 665 of file dftengine.h.

◆ active_electrons_

Index votca::xtp::DFTEngine::active_electrons_
private

Definition at line 675 of file dftengine.h.

◆ active_growth_

ActiveRegion::Options votca::xtp::DFTEngine::active_growth_
private

Definition at line 666 of file dftengine.h.

◆ active_threshold_

double votca::xtp::DFTEngine::active_threshold_
private

Definition at line 667 of file dftengine.h.

◆ activemol_

QMMolecule votca::xtp::DFTEngine::activemol_
private
Initial value:
=
QMMolecule("molecule made of atoms participating in Active region", 1)

Definition at line 656 of file dftengine.h.

◆ auxbasis_

AOBasis votca::xtp::DFTEngine::auxbasis_
private

Definition at line 595 of file dftengine.h.

◆ auxbasis_name_

std::string votca::xtp::DFTEngine::auxbasis_name_
private

Definition at line 591 of file dftengine.h.

◆ cdft_constraint_spec_

CDFTConstraintSpec votca::xtp::DFTEngine::cdft_constraint_spec_
private

Definition at line 711 of file dftengine.h.

◆ cdft_enabled_

bool votca::xtp::DFTEngine::cdft_enabled_ = false
private

Definition at line 710 of file dftengine.h.

◆ cdft_population_tolerance_

double votca::xtp::DFTEngine::cdft_population_tolerance_ = 1.e-4
private

Definition at line 708 of file dftengine.h.

◆ charge_

Index votca::xtp::DFTEngine::charge_ = 0
private

Definition at line 692 of file dftengine.h.

◆ compute_forces_

bool votca::xtp::DFTEngine::compute_forces_ = false
private

Definition at line 697 of file dftengine.h.

◆ compute_polarizability_

bool votca::xtp::DFTEngine::compute_polarizability_ = false
private

Definition at line 662 of file dftengine.h.

◆ constraints_

std::vector<HirshfeldPartition::Constraint> votca::xtp::DFTEngine::constraints_
private

Definition at line 702 of file dftengine.h.

◆ conv_accelerator_

ConvergenceAcc votca::xtp::DFTEngine::conv_accelerator_
private

Definition at line 626 of file dftengine.h.

◆ conv_opt_

ConvergenceAcc::options votca::xtp::DFTEngine::conv_opt_
private

Definition at line 624 of file dftengine.h.

◆ dftAOoverlap_

AOOverlap votca::xtp::DFTEngine::dftAOoverlap_
private

Definition at line 612 of file dftengine.h.

◆ dftbasis_

AOBasis votca::xtp::DFTEngine::dftbasis_
private

Definition at line 594 of file dftengine.h.

◆ dftbasis_name_

std::string votca::xtp::DFTEngine::dftbasis_name_
private

Definition at line 592 of file dftengine.h.

◆ dimer_guess_orbA_name_

std::string votca::xtp::DFTEngine::dimer_guess_orbA_name_
private

Definition at line 618 of file dftengine.h.

◆ dimer_guess_orbB_name_

std::string votca::xtp::DFTEngine::dimer_guess_orbB_name_
private

Definition at line 619 of file dftengine.h.

◆ E_nuc_

double votca::xtp::DFTEngine::E_nuc_
private

Definition at line 677 of file dftengine.h.

◆ ecp_

ECPAOBasis votca::xtp::DFTEngine::ecp_
private

Definition at line 596 of file dftengine.h.

◆ ecp_name_

std::string votca::xtp::DFTEngine::ecp_name_
private

Definition at line 593 of file dftengine.h.

◆ ERIs_

ERIs votca::xtp::DFTEngine::ERIs_
private

Definition at line 628 of file dftengine.h.

◆ eris_key_

std::string votca::xtp::DFTEngine::eris_key_
private

Definition at line 634 of file dftengine.h.

◆ ewald_nuclear_energy_

double votca::xtp::DFTEngine::ewald_nuclear_energy_ = 0.0
private

Definition at line 685 of file dftengine.h.

◆ ext_potential_matrix_

Eigen::MatrixXd votca::xtp::DFTEngine::ext_potential_matrix_
private

Definition at line 663 of file dftengine.h.

◆ external_ewaldgrid_

Vxc_Grid votca::xtp::DFTEngine::external_ewaldgrid_
private

Definition at line 683 of file dftengine.h.

◆ externalsites_

std::vector<std::unique_ptr<StaticSite> >* votca::xtp::DFTEngine::externalsites_ = nullptr
private

Definition at line 644 of file dftengine.h.

◆ extfield_

Eigen::Vector3d votca::xtp::DFTEngine::extfield_ = Eigen::Vector3d::Zero()
private

Definition at line 659 of file dftengine.h.

◆ fock_matrix_reset_

Index votca::xtp::DFTEngine::fock_matrix_reset_
private

Definition at line 598 of file dftengine.h.

◆ force_uks_path_

bool votca::xtp::DFTEngine::force_uks_path_ = false
private

Definition at line 693 of file dftengine.h.

◆ grid_name_

std::string votca::xtp::DFTEngine::grid_name_
private

Definition at line 609 of file dftengine.h.

◆ gridquality_

std::string votca::xtp::DFTEngine::gridquality_
private

Definition at line 653 of file dftengine.h.

◆ H0_trunc_

Eigen::MatrixXd votca::xtp::DFTEngine::H0_trunc_
private

Definition at line 671 of file dftengine.h.

◆ has_ewaldgrid_

bool votca::xtp::DFTEngine::has_ewaldgrid_ = false
private

Definition at line 684 of file dftengine.h.

◆ initial_guess_

std::string votca::xtp::DFTEngine::initial_guess_
private

Definition at line 614 of file dftengine.h.

◆ InitialActiveDmat_trunc_

Eigen::MatrixXd votca::xtp::DFTEngine::InitialActiveDmat_trunc_
private

Definition at line 672 of file dftengine.h.

◆ integrate_ext_density_

bool votca::xtp::DFTEngine::integrate_ext_density_ = false
private

Definition at line 650 of file dftengine.h.

◆ integrate_ext_field_

bool votca::xtp::DFTEngine::integrate_ext_field_ = false
private

Definition at line 660 of file dftengine.h.

◆ levelshift_

double votca::xtp::DFTEngine::levelshift_
private

Definition at line 668 of file dftengine.h.

◆ max_cdft_iterations_

Index votca::xtp::DFTEngine::max_cdft_iterations_ = 50
private

Definition at line 707 of file dftengine.h.

◆ max_iter_

Index votca::xtp::DFTEngine::max_iter_
private

Definition at line 623 of file dftengine.h.

◆ num_alpha_electrons_

Index votca::xtp::DFTEngine::num_alpha_electrons_ = 0
private

Definition at line 687 of file dftengine.h.

◆ num_beta_electrons_

Index votca::xtp::DFTEngine::num_beta_electrons_ = 0
private

Definition at line 688 of file dftengine.h.

◆ num_docc_

Index votca::xtp::DFTEngine::num_docc_ = 0
private

Definition at line 689 of file dftengine.h.

◆ num_socc_alpha_

Index votca::xtp::DFTEngine::num_socc_alpha_ = 0
private

Definition at line 690 of file dftengine.h.

◆ numfuncpatom_

std::vector<Index> votca::xtp::DFTEngine::numfuncpatom_
private

Definition at line 680 of file dftengine.h.

◆ numofelectrons_

Index votca::xtp::DFTEngine::numofelectrons_ = 0
private

Definition at line 622 of file dftengine.h.

◆ orbfilename_

std::string votca::xtp::DFTEngine::orbfilename_
private

Definition at line 652 of file dftengine.h.

◆ overlap_tolerance_

double votca::xtp::DFTEngine::overlap_tolerance_ = 1e-8
private

Definition at line 603 of file dftengine.h.

◆ pLog_

Logger* votca::xtp::DFTEngine::pLog_
private

Definition at line 588 of file dftengine.h.

◆ ri_pair_threshold_

double votca::xtp::DFTEngine::ri_pair_threshold_ = 1e-10
private

Definition at line 606 of file dftengine.h.

◆ ScaHFX_

double votca::xtp::DFTEngine::ScaHFX_ = 0.0
private

Definition at line 647 of file dftengine.h.

◆ screening_eps_

double votca::xtp::DFTEngine::screening_eps_
private

Definition at line 600 of file dftengine.h.

◆ setup_cache_

DFTSetupCache* votca::xtp::DFTEngine::setup_cache_ = nullptr
private

Definition at line 633 of file dftengine.h.

◆ spin_

Index votca::xtp::DFTEngine::spin_ = 1
private

Definition at line 691 of file dftengine.h.

◆ state_

std::string votca::xtp::DFTEngine::state_
private

Definition at line 654 of file dftengine.h.

◆ timings_

DFTTimings votca::xtp::DFTEngine::timings_
mutableprivate

Definition at line 630 of file dftengine.h.

◆ Total_E_full_

double votca::xtp::DFTEngine::Total_E_full_
private

Definition at line 676 of file dftengine.h.

◆ truncate_

bool votca::xtp::DFTEngine::truncate_
private

Definition at line 674 of file dftengine.h.

◆ truncation_threshold_

double votca::xtp::DFTEngine::truncation_threshold_
private

Definition at line 678 of file dftengine.h.

◆ v_embedding_trunc_

Eigen::MatrixXd votca::xtp::DFTEngine::v_embedding_trunc_
private

Definition at line 673 of file dftengine.h.

◆ warm_start_

bool votca::xtp::DFTEngine::warm_start_ = false
private

Definition at line 631 of file dftengine.h.

◆ warm_started_

bool votca::xtp::DFTEngine::warm_started_ = false
private

Definition at line 632 of file dftengine.h.

◆ xc_functional_name_

std::string votca::xtp::DFTEngine::xc_functional_name_
private

Definition at line 648 of file dftengine.h.


The documentation for this class was generated from the following files: