MADNESS
version 0.9
|
Solves the Schrodinger equation for the 1-d hydrogen atomThe Hartree-Fock wave function is computed for the hydrogen atom in one dimension without using symmetry. More...
Functions | |
void | iterate (World &world, real_function_1d &V, real_function_1d &psi, double &eps) |
int | main (int argc, char **argv) |
Solves the Schrodinger equation for the 1-d hydrogen atom
The Hartree-Fock wave function is computed for the hydrogen atom in one dimension without using symmetry.
void iterate | ( | World & | world, |
real_function_1d & | V, | ||
real_function_1d & | psi, | ||
double & | eps | ||
) |
References madness::inner(), madness::norm(), madness::Function< T, NDIM >::norm2(), op(), madness::print(), psi(), madness::Function< T, NDIM >::scale(), and sqrt().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
References SafeMPI::COMM_WORLD, madness::finalize(), guess(), madness::initialize(), madness::inner(), iterate(), k, L, madness::Function< T, NDIM >::norm2(), madness::plot_line(), potential(), madness::print(), psi(), madness::Function< T, NDIM >::scale(), madness::FunctionDefaults< NDIM >::set_cubic_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::square(), madness::startup(), thresh, madness::Function< T, NDIM >::truncate(), and V().