MADNESS  version 0.9
Functions
newsolver.cc File Reference
#include <madness/mra/mra.h>
#include <madness/mra/operator.h>
#include "nonlinsol.h"
Include dependency graph for newsolver.cc:

Functions

double rifunction (const coord_3d &r)
 
double iterate_ground (World &world, NonlinearSolver &solver, real_function_3d &V, real_function_3d &psi, double &eps)
 
double iterate_excite (World &world, NonlinearSolver &solver, real_function_3d &V, real_function_3d &psi, real_function_3d &dpsi, double &eps, real_function_3d &ri)
 
double inner (const F &a, const F &b)
 
template<class solverT >
double iterate_xy (World &world, solverT &solver, const real_function_3d &V, const real_function_3d &psi, double &eps, const real_function_3d &ri, real_function_3d &x, real_function_3d &y, const double omega)
 solve the dynamic response equations More...
 
int main (int argc, char **argv)
 

Function Documentation

double inner ( const F &  a,
const F &  b 
)

References madness::inner().

double iterate_excite ( World world,
NonlinearSolver solver,
real_function_3d V,
real_function_3d psi,
real_function_3d dpsi,
double &  eps,
real_function_3d ri 
)
double iterate_ground ( World world,
NonlinearSolver solver,
real_function_3d V,
real_function_3d psi,
double &  eps 
)
template<class solverT >
double iterate_xy ( World world,
solverT solver,
const real_function_3d V,
const real_function_3d psi,
double &  eps,
const real_function_3d ri,
real_function_3d x,
real_function_3d y,
const double  omega 
)

solve the dynamic response equations

Parameters
[in]worldthe world
[in]solverthe KAIN solver
[in]Vthe local potential (here: V_nuc + 1/2 J )
[in]psithe orbital
[in]epsorbital energy for psi
[in]rithe external perturbation (here: z)
[in,out]xthe x part of the response vector
[in,out]ythe y part of the response vector
[in]omegathe frequency of the external perturbation
Returns
the current error in the residual of the response equations

References madness::inner(), madness::norm2(), madness::print(), psi(), madness::Function< T, NDIM >::scale(), sqrt(), and madness::XNonlinearSolver< T, C, Alloc >::update().

Referenced by main().

int main ( int  argc,
char **  argv 
)
double rifunction ( const coord_3d r)

Referenced by main().