Quantum 3xplorer (Q3)
Loading...
Searching...
No Matches
init.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
layer_4_computation/state/internal/energies/init.hpp
"
4
5
namespace
q3
{
6
7
/**
8
* Kohn-Sham energy components in Rydberg.
9
*
10
* Adds the standard DFT energy terms that arise from solving the
11
* Kohn-Sham equations: band energy (sum of eigenvalues), double-counting
12
* correction, Hartree energy, and exchange-correlation energy.
13
*/
14
struct
KohnShamEnergies
:
public
SCFEnergies
{
15
Real
band_energy
= 0.0;
16
Real
double_counting_correction
= 0.0;
17
Real
hartree_energy
= 0.0;
18
Real
exchange_correlation_energy
= 0.0;
19
Real
exchange_correlation_potential_energy
= 0.0;
20
21
Real
total
()
const override
{
22
return
band_energy
+
double_counting_correction
+
hartree_energy
+
23
exchange_correlation_energy
;
24
}
25
};
26
27
}
// namespace q3
init.hpp
q3
Definition
q3_core_api.hpp:33
q3::Real
double Real
Definition
type_aliases.hpp:20
q3::KohnShamEnergies
Definition
init.hpp:14
q3::KohnShamEnergies::hartree_energy
Real hartree_energy
Definition
init.hpp:17
q3::KohnShamEnergies::total
Real total() const override
Return the total energy as the sum of all component fields.
Definition
init.hpp:21
q3::KohnShamEnergies::band_energy
Real band_energy
Definition
init.hpp:15
q3::KohnShamEnergies::double_counting_correction
Real double_counting_correction
Definition
init.hpp:16
q3::KohnShamEnergies::exchange_correlation_potential_energy
Real exchange_correlation_potential_energy
Definition
init.hpp:19
q3::KohnShamEnergies::exchange_correlation_energy
Real exchange_correlation_energy
Definition
init.hpp:18
q3::SCFEnergies
Definition
init.hpp:18
src
layer_4_computation
state
internal
energies
kohn_sham
init.hpp
Generated by
1.9.8