|
MADNESS 0.10.1
|

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 |
| bool check_err | ( | double | err, |
| double | thresh, | ||
| std::string | msg | ||
| ) |
References madness::print(), and thresh.
Referenced by madness::exchange_anchor_test(), and test_slater_exchange().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
References SafeMPI::COMM_WORLD, madness::WorldGopInterface::fence(), madness::finalize(), madness::World::gop, madness::initialize(), madness::print(), madness::World::rank(), madness::FunctionDefaults< NDIM >::set_cubic_cell(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::startup(), and test_slater_exchange().
References alpha, and madness::Vector< T, N >::normf().
| double slater2 | ( | const coord_3d & | xyz | ) |
Referenced by test_combined_operators(), and 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
\]](form_342.png)
with
![\[
v_\mathrm{xc} = \epsilon_\mathrm{xc} + \rho\frac{\partial \epsilon}{\partial \rho}
= 4/3\epsilon_\mathrm{xc}
\]](form_343.png)
and
![\[
k_\mathrm{xc} = \frac{\partial^2\epsilon}{\partial \rho^2} = 4/3*1/3 * \epsilon_\mathrm{xc}
\]](form_344.png)
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().
|
static |
Referenced by slater().