MADNESS  version 0.9
Classes | Macros | Typedefs | Functions | Variables
apps/tdse/tdse.cc File Reference

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

#include <madness/mra/mra.h>
#include <madness/mra/qmprop.h>
#include <madness/mra/operator.h>
#include <madness/constants.h>
#include <madness/tensor/vmath.h>
#include <complex>
#include <madness/mra/funcimpl.h>
#include <madness/mra/lbdeux.h>
Include dependency graph for apps/tdse/tdse.cc:

Classes

struct  InputParameters
 

Macros

#define MAKE_PROPAGATOR(world, t)
 

Typedefs

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

Functions

std::ostream & operator<< (std::ostream &s, const InputParameters &p)
 
complex_functionT APPLY (const complex_operatorT *q1d, const complex_functionT &psi)
 
double xdipole (const coordT &r)
 
double ydipole (const coordT &r)
 
double zdipole (const coordT &r)
 
double laser (double t)
 
double myreal (double t)
 
double myreal (const double_complex &t)
 
template<typename T >
double energy (World &world, const Function< T, 3 > &psi, const functionT &potn)
 
void converge (World &world, functionT &potn, functionT &psi, double &eps)
 
void converge2s (World &world, functionT &potn, functionT &psi, double &eps)
 
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)
 
complex_functionT trotter (World &world, const complex_functionT &expV, const complex_operatorT *G, const complex_functionT &psi0)
 
complex_functionT make_exp (double t, const functionT &v)
 
void print_stats_header (World &world)
 
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)
 
const char * wave_function_filename (int step)
 
const char * wave_function_small_plot_filename (int step)
 
const char * wave_function_large_plot_filename (int step)
 
complex_functionT wave_function_load (World &world, int step)
 
void wave_function_store (World &world, int step, const complex_functionT &psi)
 
bool wave_function_exists (World &world, int step)
 
void doplot (World &world, int step, const complex_functionT &psi, double Lplot, long numpt, const char *fname)
 
void line_plot (World &world, int step, complex_functionT &psi)
 
void preloadbal (World &world, functionT &potn, complex_functionT &psi)
 
void loadbal (World &world, functionT &potn, complex_functionT &psi)
 
void propagate (World &world, int step0)
 
void doit (World &world)
 
int main (int argc, char **argv)
 

Variables

InputParameters param
 

Detailed Description

Evolves the hydrogen atom in imaginary and also real time.

Macro Definition Documentation

#define MAKE_PROPAGATOR (   world,
 
)

Typedef Documentation

typedef Vector<double,3> coordT
typedef FunctionFactory<double,3> factoryT
typedef Function<double,3> functionT
typedef SeparatedConvolution<double,3> operatorT

Function Documentation

complex_functionT APPLY ( const complex_operatorT q1d,
const complex_functionT psi 
)
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 
)
void converge2s ( World world,
functionT potn,
functionT psi,
double &  eps 
)
void doit ( World world)
void doplot ( World world,
int  step,
const complex_functionT psi,
double  Lplot,
long  numpt,
const char *  fname 
)
template<typename T >
double energy ( World world,
const Function< T, 3 > &  psi,
const functionT potn 
)
double laser ( double  t)
void line_plot ( World world,
int  step,
complex_functionT psi 
)
void loadbal ( World world,
functionT potn,
complex_functionT psi 
)
int main ( int  argc,
char **  argv 
)
complex_functionT make_exp ( double  t,
const functionT v 
)
double myreal ( double  t)

Referenced by doit(), and energy().

double myreal ( const double_complex t)

References madness::real().

std::ostream& operator<< ( std::ostream &  s,
const InputParameters p 
)
void preloadbal ( World world,
functionT potn,
complex_functionT psi 
)
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)

References madness::World::rank().

Referenced by propagate().

void propagate ( World world,
int  step0 
)
complex_functionT trotter ( World world,
const complex_functionT expV,
const complex_operatorT G,
const complex_functionT psi0 
)
bool wave_function_exists ( World world,
int  step 
)
const char* wave_function_filename ( int  step)
const char* wave_function_large_plot_filename ( int  step)

References InputParameters::prefix.

Referenced by propagate().

complex_functionT wave_function_load ( World world,
int  step 
)

References psi(), and wave_function_filename().

Referenced by propagate().

const char* wave_function_small_plot_filename ( int  step)

References InputParameters::prefix.

Referenced by propagate().

void wave_function_store ( World world,
int  step,
const complex_functionT psi 
)
double xdipole ( const coordT r)

Referenced by propagate().

double ydipole ( const coordT r)

Referenced by doit(), and propagate().

double zdipole ( const coordT r)

Referenced by doit(), and propagate().

Variable Documentation