Solver using only a Hartree wave function.
More...
#include <hartreesolver.h>
Solver using only a Hartree wave function.
Definition at line 11 of file hartreesolver.h.
Definition at line 16 of file hartreesolver.cpp.
17 m_basisFunction(basisFunction)
19 cout << setprecision(20);
HartreeSolver::~HartreeSolver |
( |
) | |
|
|
virtual |
void HartreeSolver::advance |
( |
) | |
|
Definition at line 119 of file hartreesolver.cpp.
120 normalizeCwithRegardsToS();
127 mat V = U*diagmat(1.0/sqrt(s));
133 eig_sym(eps, Cmat, F);
136 normalizeCwithRegardsToS();
143 for(uint p = 0; p < n; p++) {
144 for(uint q = 0; q < n; q++) {
145 energy += 2 * C(p) * C(q) * h(p,q);
149 for(uint p = 0; p < n; p++) {
150 for(uint q = 0; q < n; q++) {
151 for(uint r = 0; r < n; r++) {
152 for(uint s = 0; s < n; s++) {
153 energy += Q[p][r][q][s] * C(p) * C(q) * C(r) * C(s);
double HartreeSolver::energy |
( |
) | |
|
|
inline |
void HartreeSolver::reset |
( |
) | |
|
void HartreeSolver::setBasisFunction |
( |
ElectronSystem * |
basisFunction) | |
|
|
inline |
double HartreeSolver::alpha[4] |
The documentation for this class was generated from the following files:
- /home/svenni/Dropbox/projects/programming/hartree-fock/hartree-fock/src/solvers/hartreesolver.h
- /home/svenni/Dropbox/projects/programming/hartree-fock/hartree-fock/src/solvers/hartreesolver.cpp