MADNESS  version 0.9
Functions
helium_mp2.cc File Reference

Solves the Hartree-Fock and MP2 equations for the helium atom. More...

#include <madness/mra/mra.h>
#include <madness/mra/operator.h>
#include <madness/mra/funcplot.h>
#include <madness/mra/lbdeux.h>
#include <iostream>
Include dependency graph for helium_mp2.cc:

Functions

void distances (const coord_6d &r, double &r1, double &r2, double &r12)
 
real_function_6d multiply_by_V (const real_function_6d &psi)
 
template<size_t NDIM>
void save_function (World &world, const Function< double, NDIM > &pair, const std::string name)
 
template<size_t NDIM>
void load_function (World &world, Function< double, NDIM > &pair, const std::string name)
 
Key< 6 > simpt2key (const Vector< double, 6 > &pt, Level n)
 Returns the box at level n that contains the given point in simulation coordinates. More...
 
void iterate (World &world, real_function_6d &Vpsi, real_function_6d &psi, double &eps)
 
void iterate (World &world, const real_function_3d &V, real_function_3d &psi, double &eps)
 
void compute_energy (World &world, const real_function_3d &psi, const real_function_3d &pot, double &ke, double &pe)
 
void compute_energy (World &world, const real_function_6d &pair, const real_function_3d &pot1, const real_function_3d &pot2, double &ke, double &pe)
 
void solve (World &world, real_function_6d &pair, double &energy, long maxiter, double dcut)
 
void test_modified (World &world)
 
void test_recursive_application (World &world)
 
void test_adaptive_tree (World &world, const bool restart, const std::string restartname)
 
void test_truncation (World &world)
 
void test_compress (World &world)
 
int main (int argc, char **argv)
 

Detailed Description

Solves the Hartree-Fock and MP2 equations for the helium atom.

Function Documentation

void compute_energy ( World world,
const real_function_3d psi,
const real_function_3d pot,
double &  ke,
double &  pe 
)
void compute_energy ( World world,
const real_function_6d pair,
const real_function_3d pot1,
const real_function_3d pot2,
double &  ke,
double &  pe 
)
void distances ( const coord_6d r,
double &  r1,
double &  r2,
double &  r12 
)

References sqrt().

void iterate ( World world,
real_function_6d Vpsi,
real_function_6d psi,
double &  eps 
)
void iterate ( World world,
const real_function_3d V,
real_function_3d psi,
double &  eps 
)
template<size_t NDIM>
void load_function ( World world,
Function< double, NDIM > &  pair,
const std::string  name 
)

Referenced by main(), and test_adaptive_tree().

int main ( int  argc,
char **  argv 
)
real_function_6d multiply_by_V ( const real_function_6d psi)
template<size_t NDIM>
void save_function ( World world,
const Function< double, NDIM > &  pair,
const std::string  name 
)
Key<6> simpt2key ( const Vector< double, 6 > &  pt,
Level  n 
)

Returns the box at level n that contains the given point in simulation coordinates.

References NDIM.

Referenced by madness::FunctionImpl< T, NDIM >::project_refine_op().

void solve ( World world,
real_function_6d pair,
double &  energy,
long  maxiter,
double  dcut 
)
void test_adaptive_tree ( World world,
const bool  restart,
const std::string  restartname 
)
void test_compress ( World world)
void test_modified ( World world)
void test_recursive_application ( World world)
void test_truncation ( World world)