v2DM-DOCI
1.0
|
#include <PotentialReducation.h>
Public Member Functions | |
PotentialReduction (const CheMPS2::Hamiltonian &) | |
PotentialReduction (const TPM &) | |
PotentialReduction (const PotentialReduction &) | |
PotentialReduction (PotentialReduction &&)=default | |
virtual | ~PotentialReduction ()=default |
PotentialReduction * | Clone () const |
PotentialReduction * | Move () |
PotentialReduction & | operator= (PotentialReduction &&)=default |
PotentialReduction & | operator= (const PotentialReduction &) |
void | BuildHam (const CheMPS2::Hamiltonian &) |
void | BuildHam (const TPM &) |
unsigned int | Run () |
double | getFullEnergy () const |
void | set_target (double) |
void | set_tolerance (double) |
void | set_reduction (double) |
TPM & | getRDM () const |
TPM & | getHam () const |
Lineq & | getLineq () const |
double | evalEnergy () const |
bool | FullyConverged () const |
double | getEnergy () const |
virtual void | set_output (bool out) |
virtual void | set_outfile (std::string filename) |
Protected Attributes | |
int | L |
int | N |
double | energy |
bool | do_output |
std::string | outfile |
Private Attributes | |
std::unique_ptr< TPM > | ham |
std::unique_ptr< TPM > | rdm |
std::unique_ptr< Lineq > | lineq |
double | nuclrep |
double | norm_ham |
double | target |
double | tolerance |
double | reductionfac |
double | t |
Definition at line 34 of file PotentialReducation.h.
PotentialReduction::PotentialReduction | ( | const CheMPS2::Hamiltonian & | hamin | ) |
Definition at line 34 of file PotentialReduction.cpp.
PotentialReduction::PotentialReduction | ( | const TPM & | hamin | ) |
PotentialReduction::PotentialReduction | ( | const PotentialReduction & | orig | ) |
Definition at line 76 of file PotentialReduction.cpp.
|
default |
|
virtualdefault |
|
virtual |
Build the new reduced hamiltonian based on the integrals in ham
hamin | the integrals to use |
Implements doci2DM::Method.
Definition at line 136 of file PotentialReduction.cpp.
|
virtual |
Copy the reduced hamiltonian from a TPM object
hamin | the TPM object to use |
Implements doci2DM::Method.
Definition at line 151 of file PotentialReduction.cpp.
|
virtual |
Implements doci2DM::Method.
Definition at line 121 of file PotentialReduction.cpp.
|
virtual |
Give the energy with the current rdm and ham
Implements doci2DM::Method.
Definition at line 327 of file PotentialReduction.cpp.
|
virtual |
Check if last calculation was fully convergenced
Implements doci2DM::Method.
Definition at line 336 of file PotentialReduction.cpp.
|
inlineinherited |
double PotentialReduction::getFullEnergy | ( | ) | const |
Definition at line 288 of file PotentialReduction.cpp.
|
virtual |
Implements doci2DM::Method.
Definition at line 318 of file PotentialReduction.cpp.
doci2DM::Lineq & PotentialReduction::getLineq | ( | ) | const |
Definition at line 313 of file PotentialReduction.cpp.
|
virtual |
Implements doci2DM::Method.
Definition at line 308 of file PotentialReduction.cpp.
|
virtual |
Implements doci2DM::Method.
Definition at line 126 of file PotentialReduction.cpp.
|
default |
PotentialReduction & PotentialReduction::operator= | ( | const PotentialReduction & | orig | ) |
Definition at line 97 of file PotentialReduction.cpp.
|
virtual |
Do an actual calculation: calcalute the energy of the reduced hamiltonian in ham
Implements doci2DM::Method.
Definition at line 163 of file PotentialReduction.cpp.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
void PotentialReduction::set_reduction | ( | double | red | ) |
Definition at line 303 of file PotentialReduction.cpp.
void PotentialReduction::set_target | ( | double | tar | ) |
Definition at line 293 of file PotentialReduction.cpp.
void PotentialReduction::set_tolerance | ( | double | tol | ) |
Definition at line 298 of file PotentialReduction.cpp.
|
private |
Definition at line 82 of file PotentialReducation.h.
|
private |
Definition at line 86 of file PotentialReducation.h.
|
private |
Definition at line 90 of file PotentialReducation.h.
|
private |
Definition at line 88 of file PotentialReducation.h.
|
private |
Definition at line 84 of file PotentialReducation.h.
|
private |
Definition at line 96 of file PotentialReducation.h.
|
private |
Definition at line 98 of file PotentialReducation.h.
|
private |
Definition at line 92 of file PotentialReducation.h.
|
private |
Definition at line 94 of file PotentialReducation.h.