MADNESS 0.10.1
Classes | Typedefs | Functions | Variables
tdse.confused.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 <madness/mra/lbdeux.h>
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

◆ 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()

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 
)

◆ converge()

void converge ( World world,
functionT potn,
functionT psi,
double &  eps 
)

◆ d_smoothed_potential()

static double d_smoothed_potential ( double  r)
static

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

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

◆ doit()

void doit ( World world)

◆ doplot()

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

◆ dVdx()

static double dVdx ( const coordT r)
static

◆ dVdy()

static double dVdy ( const coordT r)
static

◆ dVdz()

static double dVdz ( const coordT r)
static

◆ energy()

template<typename T >
double energy ( World world,
const Function< T, 3 > &  psi,
const functionT potn 
)

◆ guess()

static double guess ( const coordT r)
static

◆ laser()

double laser ( double  t)

◆ line_plot()

void line_plot ( World world,
int  step,
complex_functionT psi 
)

◆ loadbal()

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 
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ 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()

void propagate ( World world,
int  step0 
)

◆ smoothed_potential()

static double smoothed_potential ( double  r)
static

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

Referenced by V().

◆ trotter()

complex_functionT trotter ( World world,
const complex_functionT expV,
const complex_operatorT G,
const complex_functionT psi0 
)

◆ V()

static double V ( const coordT r)
static

◆ 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, and InputParameters::prefix.

Referenced by propagate().

◆ 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, and InputParameters::prefix.

Referenced by propagate().

◆ wave_function_store()

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

◆ xdipole()

double xdipole ( const coordT r)

Referenced by propagate().

◆ ydipole()

double ydipole ( const coordT r)

Referenced by propagate().

◆ zdipole()

double zdipole ( const coordT r)

Referenced by propagate().

Variable Documentation

◆ param

◆ zero_field_time

double zero_field_time
static

Referenced by propagate().