MADNESS 0.10.1
tdse.confused.cc File Reference

Evolves the hydrogen atom in imaginary and also real time. More...

Include dependency graph for tdse.confused.cc:

Classes

struct  InputParameters
struct  lbcost< T, NDIM >
class  LevelPmap
struct  unaryexp< T, NDIM >
struct  unaryexp< double_complex, NDIM >

Typedefs

typedef FunctionFactory< double_complex, 3 > complex_factoryT
typedef Function< double_complex, 3 > complex_functionT
typedef std::shared_ptr< FunctionFunctorInterface< double_complex, 3 > > complex_functorT
typedef SeparatedConvolution< double_complex, 3 > complex_operatorT
typedef Vector< double, 3 > coordT
typedef FunctionFactory< double, 3 > factoryT
typedef Function< double, 3 > functionT
typedef std::shared_ptr< FunctionFunctorInterface< double, 3 > > functorT
typedef SeparatedConvolution< double, 3 > operatorT
typedef std::shared_ptr< WorldDCPmapInterface< Key< 3 > > > pmapT

Functions

complex_functionT chin_chen (const complex_functionT &expV_0, const complex_functionT &expV_tilde, const complex_functionT &expV_1, const complex_operatorT &G, const complex_functionT &psi0)
void converge (World &world, functionT &potn, functionT &psi, double &eps)
static double d_smoothed_potential (double r)
void doit (World &world)
void doplot (World &world, int step, const complex_functionT &psi, double Lplot, long numpt, const char *fname)
static double dVdx (const coordT &r)
static double dVdy (const coordT &r)
static double dVdz (const coordT &r)
template<typename T>
double energy (World &world, const Function< T, 3 > &psi, const functionT &potn)
static double guess (const coordT &r)
double laser (double t)
void line_plot (World &world, int step, complex_functionT &psi)
void loadbal (World &world, functionT &potn, functionT &vt, functionT &dpotn_dx, functionT &dpotn_dy, functionT &dpotn_dz, functionT &dpotn_dx_sq, functionT &dpotn_dy_sq, complex_functionT &psi, complex_functionT &psi0, functionT &x, functionT &y, functionT &z)
int main (int argc, char **argv)
complex_functionT make_exp (double t, const functionT &v)
double myreal (const double_complex &t)
double myreal (double t)
ostream & operator<< (ostream &s, const InputParameters &p)
void print_stats (World &world, int step, double t, const functionT &v, const functionT &x, const functionT &y, const functionT &z, const functionT &dV_dz, const complex_functionT &psi0, const complex_functionT &psi)
void print_stats_header (World &world)
void propagate (World &world, int step0)
static double smoothed_potential (double r)
complex_functionT trotter (World &world, const complex_functionT &expV, const complex_operatorT &G, const complex_functionT &psi0)
static double V (const coordT &r)
bool wave_function_exists (World &world, int step)
const char * wave_function_filename (int step)
const char * wave_function_large_plot_filename (int step)
complex_functionT wave_function_load (World &world, int step)
const char * wave_function_small_plot_filename (int step)
void wave_function_store (World &world, int step, const complex_functionT &psi)
double xdipole (const coordT &r)
double ydipole (const coordT &r)
double zdipole (const coordT &r)

Variables

InputParameters param
static double zero_field_time

Detailed Description

Evolves the hydrogen atom in imaginary and also real time.

Typedef Documentation

◆ complex_factoryT

◆ complex_functionT

◆ complex_functorT

typedef std::shared_ptr< FunctionFunctorInterface<double_complex,3> > complex_functorT

◆ complex_operatorT

◆ coordT

typedef Vector<double,3> coordT

◆ factoryT

typedef FunctionFactory<double,3> factoryT

◆ functionT

typedef Function<double,3> functionT

◆ functorT

typedef std::shared_ptr< FunctionFunctorInterface<double,3> > functorT

◆ operatorT

typedef SeparatedConvolution<double,3> operatorT

◆ pmapT

typedef std::shared_ptr< WorldDCPmapInterface< Key<3> > > pmapT

Function Documentation

◆ chin_chen()

◆ converge()

◆ d_smoothed_potential()

double d_smoothed_potential ( double r)
static

References e(), and madness::r2().

Referenced by dVdx(), dVdy(), and dVdz().

◆ doit()

◆ doplot()

void doplot ( World & world,
int step,
const complex_functionT & psi,
double Lplot,
long numpt,
const char * fname )

◆ dVdx()

double dVdx ( const coordT & r)
static

References d_smoothed_potential(), param, and sum.

◆ dVdy()

double dVdy ( const coordT & r)
static

References d_smoothed_potential(), param, and sum.

◆ dVdz()

double dVdz ( const coordT & r)
static

References d_smoothed_potential(), param, and sum.

◆ energy()

◆ guess()

◆ laser()

double laser ( double t)

References param, and madness::constants::pi.

Referenced by print_stats(), and propagate().

◆ line_plot()

◆ loadbal()

◆ main()

◆ make_exp()

complex_functionT make_exp ( double t,
const functionT & v )

References expV(), and v.

Referenced by propagate().

◆ myreal() [1/2]

double myreal ( const double_complex & t)

References madness::real().

◆ myreal() [2/2]

double myreal ( double t)

Referenced by energy().

◆ operator<<()

ostream & operator<< ( ostream & s,
const InputParameters & p )

References p().

◆ print_stats()

void print_stats ( World & world,
int step,
double t,
const functionT & v,
const functionT & x,
const functionT & y,
const functionT & z,
const functionT & dV_dz,
const complex_functionT & psi0,
const complex_functionT & psi )

◆ print_stats_header()

void print_stats_header ( World & world)

References madness::World::rank().

Referenced by propagate().

◆ propagate()

◆ smoothed_potential()

double smoothed_potential ( double r)
static

References e(), and madness::r2().

Referenced by V().

◆ trotter()

◆ V()

double V ( const coordT & r)
static

References param, smoothed_potential(), and sum.

◆ wave_function_exists()

bool wave_function_exists ( World & world,
int step )

References wave_function_filename().

Referenced by doit().

◆ wave_function_filename()

const char * wave_function_filename ( int step)

◆ wave_function_large_plot_filename()

const char * wave_function_large_plot_filename ( int step)

References param.

◆ wave_function_load()

complex_functionT wave_function_load ( World & world,
int step )

References psi(), and wave_function_filename().

Referenced by propagate().

◆ wave_function_small_plot_filename()

const char * wave_function_small_plot_filename ( int step)

References param.

◆ wave_function_store()

void wave_function_store ( World & world,
int step,
const complex_functionT & psi )

References param, psi(), and wave_function_filename().

Referenced by doit(), and propagate().

◆ xdipole()

double xdipole ( const coordT & r)

◆ ydipole()

double ydipole ( const coordT & r)

◆ zdipole()

double zdipole ( const coordT & r)

Variable Documentation

◆ param

◆ zero_field_time

double zero_field_time
static