votca 2026-dev
Loading...
Searching...
No Matches
dftengine.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2023 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20#pragma once
21#ifndef VOTCA_XTP_DFTENGINE_H
22#define VOTCA_XTP_DFTENGINE_H
23
24// Standard includes
25#include <map>
26
27// VOTCA includes
29
30// Local VOTCA includes
31#include "ERIs.h"
32#include "convergenceacc.h"
33#include "dfttimings.h"
34#include "hirshfeldpartition.h"
35#include "uks_convergenceacc.h"
36
37#include "ecpaobasis.h"
38#include "extended_hueckel.h"
39#include "logger.h"
40#include "qmmolecule.h"
41#include "staticsite.h"
42#include "vxc_grid.h"
43#include "vxc_potential.h"
44
45namespace votca {
46namespace xtp {
47class Orbitals;
56 std::string eris_key;
57 bool has_eris = false;
59 std::string ewald_key;
60 Eigen::MatrixXd ewald_matrix;
61 // AO potential of the permanent moments of the external sites; the induced
62 // dipoles change between QM/MM iterations and are integrated every run.
63 std::string multipole_key;
64 Eigen::MatrixXd multipole_sites; // one row per site: pos, rank, Q
65 Eigen::MatrixXd multipole_matrix;
66};
67
68class DFTEngineTestAccess;
69
84
94
95class DFTEngine {
96 public:
98 void Initialize(tools::Property& options);
99
101 void setLogger(Logger* pLog) { pLog_ = pLog; }
102
106 std::vector<std::unique_ptr<StaticSite> >* externalsites) {
107 externalsites_ = externalsites;
108 }
109
110 void setEwaldgrid(const Vxc_Grid& ewaldgrid) {
111 external_ewaldgrid_ = ewaldgrid;
112 has_ewaldgrid_ = true;
113 }
114
115 // The nuclei's share of the external Ewald potential, sum_A Z_A
116 // phi(R_A). Added to E0 alongside the grid's contribution to H0 -- the
117 // grid integrates against the DENSITY and so reaches the electrons
118 // only, exactly as IntegrateExternalMultipoles pairs its AO matrix with
119 // ExternalRepulsion for the multipole route.
120 void setEwaldNuclearEnergy(double energy) { ewald_nuclear_energy_ = energy; }
121
126 void setWarmStart(bool warm_start) { warm_start_ = warm_start; }
127
131 void setSetupCache(DFTSetupCache* cache) { setup_cache_ = cache; }
132
135 void setSCFToleranceFloor(double energy, double error);
136 void ReturnSetupCache();
137
140 bool Evaluate(Orbitals& orb);
141
172 bool RunCDFT(Orbitals& orb, HirshfeldPartition::Constraint& constraint);
173
180
182 std::string getDFTBasisName() const { return dftbasis_name_; };
185 struct SpinDensity {
186 Eigen::MatrixXd alpha;
187 Eigen::MatrixXd beta;
188
190 Eigen::MatrixXd total() const { return alpha + beta; }
191
193 Eigen::MatrixXd spin() const { return alpha - beta; }
194 };
195
201
207
211
215
216 // development path RKS vs UKS
217 void setForceUKSPath(bool force) { force_uks_path_ = force; }
218
219 private:
221
224 void Prepare(Orbitals& orb, Index numofelectrons = -1);
225
229
231 Eigen::MatrixXd OrthogonalizeGuess(const Eigen::MatrixXd& GuessMOs) const;
233 void PrintMOs(const Eigen::VectorXd& MOEnergies, Log::Level level);
235 void PrintMOsUKS(const Eigen::VectorXd& alpha_energies,
236 const Eigen::VectorXd& beta_energies,
237 Log::Level level) const;
239 void CalcElDipole(const Orbitals& orb) const;
240
243 std::array<Eigen::MatrixXd, 2> CalcERIs_EXX(const Eigen::MatrixXd& MOCoeff,
244 const Eigen::MatrixXd& Dmat,
245 double error) const;
246
248 Eigen::MatrixXd CalcERIs(const Eigen::MatrixXd& Dmat, double error) const;
249
251 bool EvaluateAndTime(Orbitals& orb);
253 void ReportDimensionsAndMemory() const;
254
256 void ConfigOrbfile(Orbitals& orb);
261 Eigen::MatrixXd McWeenyPurification(Eigen::MatrixXd& Dmat_in,
262 AOOverlap& overlap);
263
265 Mat_p_Energy SetupH0(const QMMolecule& mol) const;
269 const QMMolecule& mol,
270 const std::vector<std::unique_ptr<StaticSite> >& multipoles) const;
274 const Orbitals& extdensity) const;
276 Eigen::MatrixXd IntegrateExternalField(const QMMolecule& mol) const;
277
283 const Mat_p_Energy& H0, const QMMolecule& mol,
284 const Vxc_Potential<Vxc_Grid>& vxcpotential) const;
285
287 Eigen::MatrixXd AtomicGuess(const QMMolecule& mol) const;
288
290 Eigen::VectorXd BuildEHTOrbitalEnergies(const QMMolecule& mol) const;
292 Eigen::MatrixXd BuildEHTHamiltonian(const QMMolecule& mol) const;
299 const Mat_p_Energy& H0, const QMMolecule& mol,
300 const Vxc_Potential<Vxc_Grid>& vxcpotential) const;
301
324
348 Eigen::MatrixXd RunAtomicDFT_unrestricted(
349 const QMAtom& uniqueAtom, bool use_hunds_rule_occupation = false) const;
350
365 std::map<std::string, Eigen::MatrixXd> ComputeHirshfeldReferenceDensities(
366 const QMMolecule& mol) const;
367
383 std::vector<Index> atom_indices;
384 // Relative to the fragment's own neutral reference state (the sum
385 // of its atoms' nuclear charges) -- e.g. +1.0 means one electron
386 // REMOVED (a cation). Converted to an absolute target electron
387 // count once, inside BuildCDFTConstraint, matching CP2K's own
388 // internal (absolute) TARGET convention exactly -- only the
389 // user-facing options syntax is charge-relative, per the earlier
390 // design discussion on this.
391 double target_charge = 0.0;
392 double initial_lambda = 0.0;
393 // "warmstart" (default) or "fresh" -- see this field's own XML
394 // help text (dftpackage.xml) for the full reasoning. Stored as
395 // the raw string, not a bool, so an invalid value (a typo, say)
396 // is caught by the XML schema's own choices="..." validation
397 // rather than silently defaulting to one behavior or the other.
398 std::string guess_strategy = "warmstart";
399 };
400
417 const QMMolecule& mol, const CDFTConstraintSpec& spec) const;
418
420 double NuclearRepulsion(const QMMolecule& mol) const;
423 double ExternalRepulsion(
424 const QMMolecule& mol,
425 const std::vector<std::unique_ptr<StaticSite> >& multipoles) const;
428 Eigen::MatrixXd SphericalAverageShells(const Eigen::MatrixXd& dmat,
429 const AOBasis& dftbasis) const;
430
433 void TruncateBasis(Orbitals& orb, std::vector<Index>& activeatoms,
434 Mat_p_Energy& H0,
435 Eigen::MatrixXd InitialActiveDensityMatrix,
436 Eigen::MatrixXd v_embedding,
437 Eigen::MatrixXd InitialInactiveMOs);
438
441 void TruncMOsFullBasis(Orbitals& orb, std::vector<Index> activeatoms,
442 std::vector<Index> numfuncpatom);
445 Eigen::MatrixXd InsertZeroCols(Eigen::MatrixXd MOsMatrix, Index startidx,
446 Index numofzerocols);
448 Eigen::MatrixXd InsertZeroRows(Eigen::MatrixXd MOsMatrix, Index startidx,
449 Index numofzerorows);
450
452 bool EvaluateClosedShell(Orbitals& orb, const Mat_p_Energy& H0,
453 const Vxc_Potential<Vxc_Grid>& vxcpotential);
454
457 bool EvaluateUKS(Orbitals& orb, const Mat_p_Energy& H0,
458 const Vxc_Potential<Vxc_Grid>& vxcpotential);
459
509 void ComputeAndStoreForces(Orbitals& orb, const Eigen::MatrixXd& Dmat,
510 const Vxc_Potential<Vxc_Grid>& vxcpotential) const;
511
523 Eigen::MatrixXd ComputeOverlapPulayGradientUKS(
524 const QMMolecule& mol, const tools::EigenSystem& MOs_alpha,
525 const tools::EigenSystem& MOs_beta) const;
526
535 Eigen::MatrixXd ComputeNonXCGradientUKS(
536 const QMMolecule& mol, const UKSConvergenceAcc::SpinDensity& Dspin,
537 const tools::EigenSystem& MOs_alpha,
538 const tools::EigenSystem& MOs_beta) const;
539
572 Orbitals& orb, const UKSConvergenceAcc::SpinDensity& Dspin,
573 const tools::EigenSystem& MOs_alpha, const tools::EigenSystem& MOs_beta,
574 const Vxc_Potential<Vxc_Grid>& vxcpotential) const;
575
577
578 // basis sets
579 std::string auxbasis_name_;
580 std::string dftbasis_name_;
581 std::string ecp_name_;
585
587 // Pre-screening
589 // Eigenvalues of the AO overlap below this are removed from S^-1/2
590 // (xtpdft.overlap_tolerance).
592 // Shell pairs whose RI three-centre integrals are bounded by less than this
593 // are not stored (xtpdft.ri_pair_threshold).
594 double ri_pair_threshold_ = 1e-10;
595
596 // numerical integration Vxc
597 std::string grid_name_;
598
599 // AO Matrices
601
602 std::string initial_guess_;
603
604 // Only read from options / actually used when initial_guess_ ==
605 // "dimer_guess" -- see BuildDimerGuessFromMonomerFiles's own header
606 // comment for what this guess does and why it exists.
609
610 // Convergence
614 // DIIS variables
616 // Electron repulsion integrals
618 // Wall-clock accounting, reported at the end of Evaluate()
620 bool warm_start_ = false;
621 bool warm_started_ = false;
623 std::string eris_key_; // key of the RI integrals in ERIs_
626 std::string RISetupKey() const;
629 bool UsableAsWarmStart(const Orbitals& orb, const std::string& previous_basis,
630 std::string& reason) const;
631
632 // external charges
633 std::vector<std::unique_ptr<StaticSite> >* externalsites_ = nullptr;
634
635 // exchange and correlation
636 double ScaHFX_ = 0.0;
638
640 // integrate external density
641 std::string orbfilename_;
642 std::string gridquality_;
643 std::string state_;
644
646 QMMolecule("molecule made of atoms participating in Active region", 1);
647
648 Eigen::Vector3d extfield_ = Eigen::Vector3d::Zero();
650
654
655 // truncation
656 Eigen::MatrixXd H0_trunc_;
658 Eigen::MatrixXd v_embedding_trunc_;
662 double E_nuc_;
664 std::vector<Index> active_and_border_atoms_;
665 std::vector<Index> numfuncpatom_;
666
667 // QMEwald
669 bool has_ewaldgrid_ = false;
671 // Spin-DFT Extension
678 bool force_uks_path_ = false;
679 // Default false to preserve existing performance for callers not
680 // using this feature -- computing forces adds real, non-trivial cost
681 // (kinetic/nuclear-attraction/overlap derivatives, RI-J gradient, full
682 // XC gradient, RI-K for hybrids) to every converged SCF, so this must
683 // be explicit opt-in, not silently always-on. Settable via the
684 // <xtpdft> options block, which flows through unmodified from
685 // XTPDFT::RunDFT() (options_) straight into DFTEngine::Initialize --
686 // confirmed directly by reading XTPDFT::ParseSpecificOptions, which
687 // only extracts a single unrelated field (temporary_file) and does
688 // not filter/transform anything else -- so this option is
689 // automatically available through the full QMPackage/XTPDFT flow with
690 // no changes needed there.
691 bool compute_forces_ = false;
692
693 // Empty by default -- the ONLY thing a standard, non-CDFT run needs
694 // to know about this member is that it is empty, checked via a
695 // single, cheap constraints_.empty() guard inside
696 // EvaluateUKS's own Fock-matrix assembly (see that function's own
697 // comment at the point the constraint potential term is added).
698 // When empty, that guard means the added term is a complete no-op:
699 // the Hamiltonian is built exactly as it always was, with no
700 // measurable overhead and no change in behavior whatsoever for any
701 // run that never touches this member. Populated only by the
702 // (not yet implemented) outer Lagrange-multiplier optimization loop,
703 // which is expected to modify each Constraint's own lambda field in
704 // place between successive, warm-started calls into EvaluateUKS --
705 // per the design discussion this grew out of (CP2K's own documented
706 // approach: restart the inner SCF from the previous trial's
707 // converged density at each new lambda, rather than a cold start).
708 std::vector<HirshfeldPartition::Constraint> constraints_;
709
710 // CDFT outer-loop (Lagrange-multiplier) control, used only by
711 // RunCDFT below -- never read by the ordinary Evaluate/EvaluateUKS
712 // path at all, so these have no bearing on any standard run either.
713 // max_cdft_iterations_/cdft_population_tolerance_ are also settable
714 // from options (see Initialize()'s own cdft.max_iterations/
715 // cdft.population_tolerance parsing) when cdft.enabled=true; their
716 // defaults here are what a directly-constructed RunCDFT call (e.g.
717 // from a test, bypassing Initialize() entirely) gets instead.
720
721 bool cdft_enabled_ = false;
723};
724
725} // namespace xtp
726} // namespace votca
727
728#endif // VOTCA_XTP_DFTENGINE_H
class to manage program options with xml serialization functionality
Definition property.h:55
Container to hold Basisfunctions for all atoms.
Definition aobasis.h:42
Electronic ground-state via Density-Functional Theory.
Definition dftengine.h:95
Eigen::MatrixXd CalcERIs(const Eigen::MatrixXd &Dmat, double error) const
Build the Coulomb matrix contribution from the current density matrix.
Definition dftengine.cc:886
void setWarmStart(bool warm_start)
Definition dftengine.h:126
Eigen::MatrixXd ComputeOverlapPulayGradientUKS(const QMMolecule &mol, const tools::EigenSystem &MOs_alpha, const tools::EigenSystem &MOs_beta) const
Definition dftengine.cc:654
void setExternalcharges(std::vector< std::unique_ptr< StaticSite > > *externalsites)
Definition dftengine.h:105
bool EvaluateTruncatedActiveRegion(Orbitals &trunc_orb)
std::string auxbasis_name_
Definition dftengine.h:579
std::string getDFTBasisName() const
Return the configured AO basis-set name for the DFT calculation.
Definition dftengine.h:182
std::string gridquality_
Definition dftengine.h:642
tools::EigenSystem ModelPotentialGuess(const Mat_p_Energy &H0, const QMMolecule &mol, const Vxc_Potential< Vxc_Grid > &vxcpotential) const
Definition dftengine.cc:943
Mat_p_Energy IntegrateExternalMultipoles(const QMMolecule &mol, const std::vector< std::unique_ptr< StaticSite > > &multipoles) const
void setEwaldgrid(const Vxc_Grid &ewaldgrid)
Definition dftengine.h:110
friend class DFTEngineTestAccess
Definition dftengine.h:220
tools::EigenSystem IndependentElectronGuess(const Mat_p_Energy &H0) const
Generate an initial guess by diagonalizing the core Hamiltonian only.
Definition dftengine.cc:932
void setSCFToleranceFloor(double energy, double error)
Eigen::MatrixXd InitialActiveDmat_trunc_
Definition dftengine.h:657
std::string eris_key_
Definition dftengine.h:623
void TruncMOsFullBasis(Orbitals &orb, std::vector< Index > activeatoms, std::vector< Index > numfuncpatom)
Orbitals BuildDimerGuessFromMonomerFiles(const QMMolecule &dimer_mol) const
double cdft_population_tolerance_
Definition dftengine.h:719
void ComputeAndStoreForces(Orbitals &orb, const Eigen::MatrixXd &Dmat, const Vxc_Potential< Vxc_Grid > &vxcpotential) const
Definition dftengine.cc:433
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.
void setLogger(Logger *pLog)
Attach the logger used for SCF progress and diagnostics.
Definition dftengine.h:101
void TruncateBasis(Orbitals &orb, std::vector< Index > &activeatoms, Mat_p_Energy &H0, Eigen::MatrixXd InitialActiveDensityMatrix, Eigen::MatrixXd v_embedding, Eigen::MatrixXd InitialInactiveMOs)
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.
Definition dftengine.cc:335
void ReportDimensionsAndMemory() const
Basis dimensions and the memory of the large intermediates.
Definition dftengine.cc:897
std::string dftbasis_name_
Definition dftengine.h:580
DFTSetupCache * setup_cache_
Definition dftengine.h:622
bool EvaluateUKS(Orbitals &orb, const Mat_p_Energy &H0, const Vxc_Potential< Vxc_Grid > &vxcpotential)
Eigen::MatrixXd RunAtomicDFT_unrestricted(const QMAtom &uniqueAtom, bool use_hunds_rule_occupation=false) const
Mat_p_Energy IntegrateExternalDensity(const QMMolecule &mol, const Orbitals &extdensity) const
std::string ecp_name_
Definition dftengine.h:581
std::string grid_name_
Definition dftengine.h:597
bool EvaluateActiveRegion(Orbitals &orb)
void Prepare(Orbitals &orb, Index numofelectrons=-1)
Vxc_Grid external_ewaldgrid_
Definition dftengine.h:668
std::string initial_guess_
Definition dftengine.h:602
std::string orbfilename_
Definition dftengine.h:641
Eigen::MatrixXd AtomicGuess(const QMMolecule &mol) const
Build an atomic-density based initial guess in the AO basis.
bool EvaluateAndTime(Orbitals &orb)
Evaluate() without the timing report.
Definition dftengine.cc:983
Eigen::MatrixXd InsertZeroRows(Eigen::MatrixXd MOsMatrix, Index startidx, Index numofzerorows)
Insert zero rows into an MO coefficient matrix at the requested position.
Eigen::MatrixXd BuildEHTHamiltonian(const QMMolecule &mol) const
Build the extended-Hückel Hamiltonian for the current molecule.
Eigen::MatrixXd IntegrateExternalField(const QMMolecule &mol) const
Integrate a homogeneous external electric field into the AO basis.
Eigen::Vector3d extfield_
Definition dftengine.h:648
std::array< Eigen::MatrixXd, 2 > CalcERIs_EXX(const Eigen::MatrixXd &MOCoeff, const Eigen::MatrixXd &Dmat, double error) const
Definition dftengine.cc:860
Eigen::MatrixXd H0_trunc_
Definition dftengine.h:656
Index NumberOfRestrictedOccupiedOrbitals() const
Definition dftengine.h:204
HirshfeldPartition::Constraint BuildCDFTConstraint(const QMMolecule &mol, const CDFTConstraintSpec &spec) const
void Initialize(tools::Property &options)
Read DFT, grid, and SCF settings from the user options tree.
Definition dftengine.cc:102
std::string xc_functional_name_
Definition dftengine.h:637
void CalcElDipole(const Orbitals &orb) const
Evaluate and print the electronic dipole moment from the final density.
Definition dftengine.cc:395
double ExternalRepulsion(const QMMolecule &mol, const std::vector< std::unique_ptr< StaticSite > > &multipoles) const
ConvergenceAcc::options conv_opt_
Definition dftengine.h:613
void SetupInvariantMatrices()
Precompute AO matrices that remain unchanged throughout the SCF procedure.
tools::EigenSystem ExtendedHuckelDFTGuess(const Mat_p_Energy &H0, const QMMolecule &mol, const Vxc_Potential< Vxc_Grid > &vxcpotential) const
std::map< std::string, Eigen::MatrixXd > ComputeHirshfeldReferenceDensities(const QMMolecule &mol) const
std::string active_atoms_as_string_
Definition dftengine.h:651
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
Definition dftengine.cc:755
void ConfigOrbfile(Orbitals &orb)
Propagate basis-set, XC, and metadata settings into the orbital container.
Eigen::VectorXd BuildEHTOrbitalEnergies(const QMMolecule &mol) const
Build orbital energies used in the extended-Hückel starting guess.
std::vector< HirshfeldPartition::Constraint > constraints_
Definition dftengine.h:708
QMMolecule activemol_
Definition dftengine.h:645
bool UsableAsWarmStart(const Orbitals &orb, const std::string &previous_basis, std::string &reason) const
void PrintMOs(const Eigen::VectorXd &MOEnergies, Log::Level level)
Print a one-spin list of orbital energies and occupations to the logger.
Definition dftengine.cc:315
void setForceUKSPath(bool force)
Definition dftengine.h:217
std::vector< Index > numfuncpatom_
Definition dftengine.h:665
AOOverlap dftAOoverlap_
Definition dftengine.h:600
std::vector< Index > active_and_border_atoms_
Definition dftengine.h:664
void setEwaldNuclearEnergy(double energy)
Definition dftengine.h:120
Mat_p_Energy SetupH0(const QMMolecule &mol) const
Assemble the one-electron core Hamiltonian for the current molecule.
tools::EigenSystem ExtendedHuckelGuess(const QMMolecule &mol) const
bool IsRestrictedOpenShell() const
Definition dftengine.h:198
Eigen::MatrixXd OrthogonalizeGuess(const Eigen::MatrixXd &GuessMOs) const
Orthonormalize an initial MO guess with respect to the AO overlap matrix.
Eigen::MatrixXd v_embedding_trunc_
Definition dftengine.h:658
Eigen::MatrixXd SphericalAverageShells(const Eigen::MatrixXd &dmat, const AOBasis &dftbasis) const
ConvergenceAcc::options BuildConvergenceOptions() const
bool Evaluate(Orbitals &orb)
Definition dftengine.cc:970
CDFTConstraintSpec cdft_constraint_spec_
Definition dftengine.h:722
Eigen::MatrixXd ComputeNonXCGradientUKS(const QMMolecule &mol, const UKSConvergenceAcc::SpinDensity &Dspin, const tools::EigenSystem &MOs_alpha, const tools::EigenSystem &MOs_beta) const
Definition dftengine.cc:702
bool RunCDFT(Orbitals &orb, HirshfeldPartition::Constraint &constraint)
std::string dimer_guess_orbB_name_
Definition dftengine.h:608
SpinDensity BuildSpinDensity(const tools::EigenSystem &MOs) const
std::vector< std::unique_ptr< StaticSite > > * externalsites_
Definition dftengine.h:633
Eigen::MatrixXd McWeenyPurification(Eigen::MatrixXd &Dmat_in, AOOverlap &overlap)
void setSetupCache(DFTSetupCache *cache)
Definition dftengine.h:131
Vxc_Potential< Vxc_Grid > SetupVxc(const QMMolecule &mol)
std::string RISetupKey() const
double NuclearRepulsion(const QMMolecule &mol) const
Compute the classical nucleus-nucleus repulsion energy.
ConvergenceAcc conv_accelerator_
Definition dftengine.h:615
Eigen::MatrixXd InsertZeroCols(Eigen::MatrixXd MOsMatrix, Index startidx, Index numofzerocols)
std::string dimer_guess_orbA_name_
Definition dftengine.h:607
Wall-clock accounting for the parts of a DFT run.
Definition dfttimings.h:45
Container to hold ECPs for all atoms.
Definition ecpaobasis.h:43
Takes a density matrix and and an auxiliary basis set and calculates the electron repulsion integrals...
Definition ERIs.h:35
Logger is used for thread-safe output of messages.
Definition logger.h:164
Container for molecular orbitals and derived one-particle data.
Definition orbitals.h:47
container for QM atoms
Definition qmatom.h:37
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26
Level
be loud and noisy
Definition globals.h:28
Eigen::MatrixXd spin() const
Return the spin density P^alpha - P^beta.
Definition dftengine.h:193
Eigen::MatrixXd total() const
Return the total density P = P^alpha + P^beta.
Definition dftengine.h:190
Parts of the DFT setup that stay the same between runs on the same molecule with the same basis sets,...
Definition dftengine.h:55
std::string multipole_key
Definition dftengine.h:63
Eigen::MatrixXd multipole_sites
Definition dftengine.h:64
Eigen::MatrixXd multipole_matrix
Definition dftengine.h:65
Eigen::MatrixXd ewald_matrix
Definition dftengine.h:60