MADNESS 0.10.1
Functions | Variables
test_dft.cc File Reference
#include <madness.h>
#include <madness/chem/SCFOperators.h>
Include dependency graph for test_dft.cc:

Functions

bool check_err (double err, double thresh, std::string msg)
 
int main (int argc, char **argv)
 
double slater (const coord_3d &xyz)
 
double slater2 (const coord_3d &xyz)
 
int test_slater_exchange (World &world)
 test the Slater exchange potential and the kernel
 

Variables

static double alpha =10.0
 

Function Documentation

◆ check_err()

bool check_err ( double  err,
double  thresh,
std::string  msg 
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ slater()

double slater ( const coord_3d xyz)

◆ slater2()

double slater2 ( const coord_3d xyz)

◆ test_slater_exchange()

int test_slater_exchange ( World world)

test the Slater exchange potential and the kernel

The Slater exchange is a simple function of rho,

\[
   E_\mathrm{xc} = \int\epsilon_\mathrm{xc}[\rho]\rho(r) d^3r
\]

with

\[
   v_\mathrm{xc} = \epsilon_\mathrm{xc} + \rho\frac{\partial \epsilon}{\partial \rho}
                 = 4/3\epsilon_\mathrm{xc}
\]

and

\[
   k_\mathrm{xc} = \frac{\partial^2\epsilon}{\partial \rho^2} = 4/3*1/3 * \epsilon_\mathrm{xc}
\]

References std::abs(), check_err(), madness::copy(), energy, madness::FunctionDefaults< NDIM >::get_thresh(), madness::inner(), potential(), madness::print(), slater2(), thresh, and xc.

Referenced by main().

Variable Documentation

◆ alpha

double alpha =10.0
static

Referenced by slater().