MADNESS 0.10.1
Functions | Variables
hatom_1d.cc File Reference

Solves the Schrodinger equation for the 1-d hydrogen atom. More...

#include <madness/mra/mra.h>
#include <madness/mra/operator.h>
Include dependency graph for hatom_1d.cc:

Functions

static double guess (const coord_1d &r)
 
void iterate (World &world, real_function_1d &V, real_function_1d &psi, double &eps)
 
int main (int argc, char **argv)
 
static double V (const coord_1d &r)
 

Variables

static const long k = 6
 
static const double L = 100
 
static const double thresh = 1e-4
 

Detailed Description

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.

Function Documentation

◆ guess()

static double guess ( const coord_1d r)
static

Referenced by main().

◆ iterate()

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

◆ main()

int main ( int  argc,
char **  argv 
)

◆ V()

static double V ( const coord_1d r)
static

References e().

Referenced by iterate(), and main().

Variable Documentation

◆ k

const long k = 6
static

Referenced by main().

◆ L

const double L = 100
static

Referenced by main().

◆ thresh

const double thresh = 1e-4
static

Referenced by main().