MADNESS 0.10.1
Functions
test_localizer.cc File Reference
#include <madness/mra/mra.h>
#include <madness/mra/vmra.h>
#include <madness/chem/localizer.h>
#include <madness/chem/molecularbasis.h>
#include <madness/chem/MolecularOrbitals.h>
#include <madness/chem/potentialmanager.h>
#include <madness/chem/correlationfactor.h>
#include <madness/world/test_utilities.h>
#include <madness/chem/SCFOperators.h>
#include <madness/chem/SCF.h>
#include <madness/world/timing_utilities.h>
#include <nemo.h>
#include <write_test_input.h>
#include <vector>
Include dependency graph for test_localizer.cc:

Functions

double bend (const Vector< double, 3 > v1, const Vector< double, 3 > v2, const Vector< double, 3 > v3)
 angle in degrees between v1–v2–v3 (v2 being the center)
 
double dist (const Vector< double, 3 > v1, const Vector< double, 3 > v2)
 distance between v1 and v2
 
double fock_trace (const Tensor< double > &fock)
 
bool is_aligned (const Vector< double, 3 > &v1, const Vector< double, 3 > &v2, const Vector< double, 3 > &v3, const double thresh=1.e-3)
 
bool is_centered_normal (const Vector< double, 3 > &v1, const Vector< double, 3 > &v2, const Vector< double, 3 > &v3, const double thresh=1.e-3)
 check if v3 is orthogonal on v1-v2 midbond
 
bool is_close (const Vector< double, 3 > &v1, const Vector< double, 3 > &v2, const double thresh=1.e-3)
 
int main (int argc, char **argv)
 
bool test_ethylene (World &world, const Nemo &nemo, const std::string geometry="ethylene")
 test localized orbitals
 
bool test_ne_boys (World &world, const Nemo &nemo)
 test localized orbitals: should be pointing towards the edges of a tetrahedron
 

Function Documentation

◆ bend()

double bend ( const Vector< double, 3 >  v1,
const Vector< double, 3 >  v2,
const Vector< double, 3 >  v3 
)

angle in degrees between v1–v2–v3 (v2 being the center)

References madness::inner(), madness::Vector< T, N >::normf(), and madness::constants::pi.

Referenced by test_ne_boys().

◆ dist()

double dist ( const Vector< double, 3 >  v1,
const Vector< double, 3 >  v2 
)

◆ fock_trace()

double fock_trace ( const Tensor< double > &  fock)

◆ is_aligned()

bool is_aligned ( const Vector< double, 3 > &  v1,
const Vector< double, 3 > &  v2,
const Vector< double, 3 > &  v3,
const double  thresh = 1.e-3 
)

References a1, a2, madness::inner(), and thresh.

Referenced by test_ethylene().

◆ is_centered_normal()

bool is_centered_normal ( const Vector< double, 3 > &  v1,
const Vector< double, 3 > &  v2,
const Vector< double, 3 > &  v3,
const double  thresh = 1.e-3 
)

check if v3 is orthogonal on v1-v2 midbond

References madness::inner(), and thresh.

Referenced by test_ethylene().

◆ is_close()

bool is_close ( const Vector< double, 3 > &  v1,
const Vector< double, 3 > &  v2,
const double  thresh = 1.e-3 
)

References thresh.

Referenced by test_ethylene().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ test_ethylene()

bool test_ethylene ( World world,
const Nemo nemo,
const std::string  geometry = "ethylene" 
)

◆ test_ne_boys()

bool test_ne_boys ( World world,
const Nemo nemo 
)