MADNESS 0.10.1
helium_exact.cc File Reference

Solves the two-particle system exactly. More...

Include dependency graph for helium_exact.cc:

Macros

#define WITH_G12

Typedefs

typedef std::shared_ptr< NuclearCorrelationFactor > ncf_ptr

Functions

real_function_6d apply_U_ecf (World &world, const real_function_6d &psi, const CorrelationFactor2 &ecf)
real_function_6d apply_U_mix (World &world, const real_function_6d &psi, const CorrelationFactor2 &ecf, const ncf_ptr &ncf)
real_function_6d apply_U_ncf (World &world, const real_function_6d &psi, const ncf_ptr &ncf)
real_function_6d apply_V (World &world, const real_function_6d &psi, const SCF &calc)
double compute_energy (World &world, const real_function_6d &psi, const CorrelationFactor2 &ecf, const ncf_ptr &ncf, const real_function_3d &vnuc)
 compute the energy using the reconstructed wave function
double compute_energy_with_U (World &world, const real_function_6d &psi, const CorrelationFactor2 &ecf, const ncf_ptr &ncf, const real_function_6d &twoVpsi)
 compute the energy using the regularization
real_function_6d compute_R2f2_psi (World &world, const real_function_6d &psi, const CorrelationFactor2 &ecf, const ncf_ptr &ncf)
 compute R_12^2f_12^2|psi>
void load (World &world, real_function_6d &f, std::string filename)
int main (int argc, char **argv)
real_function_6d reconstruct_psi (World &world, const real_function_6d &psi, const CorrelationFactor2 &ecf, const ncf_ptr &ncf)
 reconstruct the full wave function
void save (World &world, const real_function_6d &f, std::string filename)
void test_U_el (World &world, const real_function_6d &psi, const CorrelationFactor2 &ecf)
 the electronic U potential is U -1/r12 = f^-1 [T, f] = f^-1 T f - T

Variables

static double bsh_eps = 1.e-8
static double lo = 1.e-8

Detailed Description

Solves the two-particle system exactly.

Macro Definition Documentation

◆ WITH_G12

#define WITH_G12

Typedef Documentation

◆ ncf_ptr

typedef std::shared_ptr<NuclearCorrelationFactor> ncf_ptr

Function Documentation

◆ apply_U_ecf()

real_function_6d apply_U_ecf ( World & world,
const real_function_6d & psi,
const CorrelationFactor2 & ecf )

References psi().

Referenced by main(), and test_U_el().

◆ apply_U_mix()

◆ apply_U_ncf()

◆ apply_V()

◆ compute_energy()

◆ compute_energy_with_U()

double compute_energy_with_U ( World & world,
const real_function_6d & psi,
const CorrelationFactor2 & ecf,
const ncf_ptr & ncf,
const real_function_6d & twoVpsi )

compute the energy using the regularization

Returns
the energy expectation value <E> = < psi | R2f2 (T+U) | psi >

References compute_R2f2_psi(), D, energy, madness::free_space_derivative(), madness::inner(), norm(), madness::print(), psi(), and madness::World::rank().

Referenced by main().

◆ compute_R2f2_psi()

◆ load()

void load ( World & world,
real_function_6d & f,
std::string filename )

References f, and madness::filename.

Referenced by main(), and test_assignment_factories().

◆ main()

int main ( int argc,
char ** argv )

References ncf::ncf(), apply_U_ecf(), apply_U_mix(), apply_U_ncf(), madness::arg(), madness::Displacements< NDIM >::bmax_default(), bsh_eps, madness::BSHOperator(), madness::Function< T, NDIM >::clear(), SafeMPI::COMM_WORLD, compute_energy(), compute_energy_with_U(), madness::copy(), madness::SeparatedConvolution< Q, NDIM >::destructive(), energy, madness::GenTensor< T >::fac_reduce(), madness::WorldGopInterface::fence(), madness::filename, madness::finalize(), madness::FunctionDefaults< NDIM >::tt, madness::FunctionDefaults< NDIM >::get_apply_randomize(), madness::FunctionDefaults< NDIM >::get_cell(), madness::FunctionDefaults< NDIM >::get_k(), madness::FunctionDefaults< NDIM >::get_tensor_type(), madness::FunctionDefaults< NDIM >::get_thresh(), madness::FunctionDefaults< NDIM >::get_truncate_mode(), madness::info::git_source_description(), madness::World::gop, madness::hartree_product(), madness::initialize(), madness::inner(), lo, load(), madness::nemo, norm(), madness::Function< T, NDIM >::norm2(), param, madness::print(), madness::Function< T, NDIM >::print_size(), psi(), madness::World::rank(), save(), madness::Function< T, NDIM >::scale(), madness::FunctionDefaults< NDIM >::set_cubic_cell(), madness::FunctionDefaults< NDIM >::set_k(), madness::commandlineparser::set_keyval(), madness::FunctionDefaults< NDIM >::set_tensor_type(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::World::size(), madness::startup(), test_U_el(), madness::Function< T, NDIM >::truncate(), madness::TT_2D, vnuc(), and madness::wall_time().

◆ reconstruct_psi()

◆ save()

void save ( World & world,
const real_function_6d & f,
std::string filename )

References f, and madness::filename.

Referenced by main().

◆ test_U_el()

Variable Documentation

◆ bsh_eps

◆ lo

double lo = 1.e-8
static