MADNESS  0.10.1
Functions | Variables
hatom.cc File Reference
#include <fstream>
#include <iostream>
#include <madness/mra/mra.h>
#include <madness/mra/operator.h>
Include dependency graph for hatom.cc:

Functions

std::tuple< double, double, double > compute_energy (World &world, real_function_3d &Vnuc, real_function_3d &psi)
 
static double guess (const coord_3d &r)
 
void iterate (World &world, real_function_3d &V, real_function_3d &mask, real_function_3d &psi, double &eps)
 
int main (int argc, char **argv)
 
double mask1 (double x)
 
static double mask3 (const coord_3d &ruser)
 
void run (World &world)
 
static double V (const coord_3d &r)
 

Variables

static const double F =0.0
 
static const long k = 8
 
static const double L = 32.0
 
static const double thresh = 1e-7
 

Function Documentation

◆ compute_energy()

std::tuple<double,double,double> compute_energy ( World world,
real_function_3d Vnuc,
real_function_3d psi 
)

References axis, madness::inner(), psi(), and madness::square().

Referenced by run().

◆ guess()

static double guess ( const coord_3d r)
static

References madness::constants::pi.

Referenced by run().

◆ iterate()

void iterate ( World world,
real_function_3d V,
real_function_3d mask,
real_function_3d psi,
double &  eps 
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ mask1()

double mask1 ( double  x)
inline

◆ mask3()

static double mask3 ( const coord_3d ruser)
static

◆ run()

void run ( World world)

◆ V()

static double V ( const coord_3d r)
static

Referenced by iterate(), and run().

Variable Documentation

◆ F

const double F =0.0
static

◆ k

const long k = 8
static

Referenced by run().

◆ L

const double L = 32.0
static

Referenced by run().

◆ thresh

const double thresh = 1e-7
static

Referenced by run().