MADNESS 0.10.1
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 tdse.cc:

Classes

struct  InputParameters
struct  lbcost< T, NDIM >
struct  refop
struct  unaryexp< T, NDIM >
struct  unaryexp< double_complex, NDIM >

Macros

#define MAKE_PROPAGATOR(world, t)

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 Convolution1D< double_complex > 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 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)
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 guess1s (const coordT &r)
static double guess2s (const coordT &r)
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 (const double_complex &t)
double myreal (double t)
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)
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.

Macro Definition Documentation

◆ MAKE_PROPAGATOR

#define MAKE_PROPAGATOR ( world,
t )

Referenced by G().

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

◆ APPLY()

◆ chin_chen()

◆ converge()

◆ converge2s()

◆ d_smoothed_potential()

double d_smoothed_potential ( double r)
static

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

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

◆ doit()

void doit ( World & world)

References madness::LoadBalanceDeux< NDIM >::add_tree(), madness::apply(), madness::WorldGopInterface::broadcast(), madness::WorldGopInterface::broadcast_serializable(), madness::BSHOperator3D(), converge(), madness::copy(), e(), energy, madness::error(), madness::FunctionFactory< T, NDIM >::f(), madness::WorldGopInterface::fence(), madness::FunctionDefaults< NDIM >::get_pmap(), madness::World::gop, guess1s(), guess2s(), madness::inner(), madness::LoadBalanceDeux< NDIM >::load_balance(), myreal(), norm(), madness::Function< T, NDIM >::norm2(), op(), param, potn(), madness::print(), propagate(), madness::World::rank(), madness::Function< T, NDIM >::scale(), madness::FunctionDefaults< NDIM >::set_apply_randomize(), madness::FunctionDefaults< NDIM >::set_autorefine(), madness::FunctionDefaults< NDIM >::set_cubic_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_pmap(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::FunctionDefaults< NDIM >::set_truncate_on_project(), madness::Function< T, NDIM >::truncate(), V(), madness::wall_time(), wave_function_exists(), wave_function_store(), ydipole(), and zdipole().

Referenced by madness::SeparatedConvolution< double, 3 >::apply_transformation(), madness::SeparatedConvolution< double, 3 >::apply_transformation2(), madness::MacroTask< taskT >::MacroTaskInternal::get_output(), main(), and BoysLocalization::operator()().

◆ 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.

Referenced by propagate().

◆ dVdy()

double dVdy ( const coordT & r)
static

References d_smoothed_potential(), param, and sum.

Referenced by propagate().

◆ dVdz()

double dVdz ( const coordT & r)
static

References d_smoothed_potential(), param, and sum.

Referenced by propagate().

◆ energy()

◆ guess1s()

double guess1s ( const coordT & r)
static

References param, sum, and Z.

Referenced by doit().

◆ guess2s()

double guess2s ( const coordT & r)
static

References param, sum, and Z.

Referenced by doit().

◆ 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 doit(), and energy().

◆ operator<<()

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

References p().

◆ preloadbal()

◆ 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.

Referenced by madness::DFTNuclearPotentialOp< T, NDIM >::DFTNuclearPotentialOp(), madness::HartreeFock< T, NDIM >::HartreeFock(), madness::HartreeFockNuclearPotentialOp< T, NDIM >::HartreeFockNuclearPotentialOp(), madness::HighDimIndexIterator::HighDimIndexIterator(), madness::IndexIterator::IndexIterator(), madness::LowDimIndexIterator::LowDimIndexIterator(), madness::NonstandardIndexIterator::NonstandardIndexIterator(), madness::TDHF::apply_G(), madness::CCPotentials::apply_Vreg(), madness::CCPotentials::compute_cis_expectation_value(), compute_energy(), compute_energy(), compute_update(), dft_xc_lda_ene(), dft_xc_lda_V(), dnuclear_anchor_test(), doit(), energy(), expV(), madness::geev(), madness::ggev(), madness::GMRES(), DF::iterate(), iterate(), iterate(), iterate(), iterate(), iterate(), iterate(), iterate_excite(), iterate_excite(), iterate_ground(), iterate_ground(), madness::CC2::iterate_singles(), madness::TDHF::iterate_vectors(), iterate_xy(), iterate_xy(), jacobi(), madness::jacobi(), main(), main(), madness::CCPotentials::make_constant_part_cispd(), madness::CCPotentials::make_constant_part_cispd_Qt(), madness::CCPotentials::make_constant_part_macrotask(), DF::make_fermi_potential(), make_Hd(), make_Hv(), madness::TDHF::make_perturbed_fock_matrix(), madness::TDHF::make_potentials(), nuclear_anchor_test(), madness::NuclearCorrelationFactor::square_times_V_functor::operator()(), madness::TDHF::orthonormalize(), print_info(), propagate(), pVp(), pVp(), q_c(), run(), madness::Nemo::solve_cphf(), madness::syev(), madness::syev(), madness::syev(), madness::syev(), madness::sygv(), madness::sygv(), madness::sygv(), madness::sygvp(), test_chin_chen(), test_convolution(), test_fock(), test_gconv(), test_modified(), madness::test_syev(), madness::test_sygv(), and test_trotter().

◆ 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.

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.

Referenced by propagate().

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

Referenced by propagate(), and propagate().

◆ ydipole()

double ydipole ( const coordT & r)

Referenced by doit(), propagate(), and propagate().

◆ zdipole()

double zdipole ( const coordT & r)

Referenced by doit(), propagate(), propagate(), and propagate().

Variable Documentation

◆ param

Referenced by madness::CCConvolutionOperator< T, NDIM >::CCConvolutionOperator(), madness::CCPotentials::CCPotentials(), madness::Diamagnetic_potential_factor::Diamagnetic_potential_factor(), madness::DispersionCorrection::DispersionCorrection(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::ExchangeImpl(), madness::F12Parameters::F12Parameters(), madness::F12Parameters::F12Parameters(), madness::LowRankFunctionFactory< T, NDIM, LDIM >::LowRankFunctionFactory(), madness::LowRankFunctionFactory< T, NDIM, LDIM >::LowRankFunctionFactory(), madness::Nemo::Nemo(), madness::CCConvolutionOperator< T, NDIM >::Parameters::Parameters(), madness::PCM::PCM(), madness::PCM::PCM(), madness::PNOParameters::PNOParameters(), madness::population::PopulationAnalysis::PopulationAnalysis(), madness::SCFProtocol::SCFProtocol(), madness::write_test_input::write_test_input(), write_test_input::write_test_input(), madness::XCOperator< T, NDIM >::XCOperator(), madness::XCOperator< T, NDIM >::XCOperator(), madness::TDHF::analyze(), madness::CCConvolutionOperator< T, NDIM >::CCConvolutionOperatorPtr(), madness::CCConvolutionOperatorPtr(), madness::NemoBase::check_convergence(), chin_chen(), chin_chen(), madness::CCConvolutionOperator< T, NDIM >::combine, madness::Nemo::compute_all_cphf(), madness::Coulomb< double, 3 >::compute_density(), madness::OEP::compute_exchange_potential(), converge(), converge(), converge2s(), dnuclear_anchor_test(), doit(), dVdx(), dVdx(), dVdy(), dVdy(), dVdz(), dVdz(), madness::DispersionCorrection::evaluate(), guess(), guess1s(), guess2s(), laser(), line_plot(), madness::archive::ArchiveLoadImpl< ParallelInputArchive< archiveT >, CCPairFunction< T, NDIM > >::load(), main(), madness::make_restart_plan(), nuclear_anchor_test(), madness::MolecularEnergy::output_calc_info_schema(), madness::plot_line(), madness::plot_plane(), madness::plot_plane(), madness::CC2::print_parameters(), madness::Molecule::print_parameters(), madness::Nemo::print_parameters(), madness::OEP::print_parameters(), madness::TDHF::print_parameters(), madness::Zcis::print_parameters(), madness::QCCalculationParametersBase::print_to_string(), propagate(), propagate(), madness::OEP::save_restartdata(), madness::Nemo::solve_cphf(), test_blank_separated_string(), test_comment_lines(), test_deck_is_rejected(), test_empty_lines(), test_fock(), test_group_header(), test_nemo(), test_not_allowed(), test_quoted_list(), test_read_restartaodata(), test_read_restartdata(), test_serialize(), test_type_conversion1(), test_type_conversion2(), test_type_conversion3(), test_type_conversion4(), test_type_conversion7(), test_type_conversion8(), test_XCOperator_matrix(), trotter(), trotter(), trotter(), V(), V(), Ve(), wave_function_filename(), wave_function_large_plot_filename(), wave_function_small_plot_filename(), wave_function_store(), and madness::write_test_input::write_to_test_input().

◆ zero_field_time

double zero_field_time
static

Referenced by propagate(), and propagate().