MADNESS 0.10.1
newsolver.cc File Reference
Include dependency graph for newsolver.cc:

Classes

struct  allocator
struct  F
 simple class for testing the solver More...

Functions

static double guess (const coord_3d &r)
double inner (const F &a, const F &b)
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
int main (int argc, char **argv)
double rifunction (const coord_3d &r)
static double V (const coord_3d &r)

Variables

static const long k = 8
static const double L = 64.0*R
static const double R = 1.4
static const double thresh = 1e-5

Function Documentation

◆ guess()

double guess ( const coord_3d & r)
static

References e(), and R.

◆ inner()

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

References a, b, and inner().

Referenced by inner(), iterate_ground(), iterate_xy(), and main().

◆ iterate_excite()

◆ iterate_ground()

◆ iterate_xy()

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::BSHOperator3D(), madness::CoulombOperator(), e(), F, inner(), madness::norm2(), omega, madness::print(), psi(), madness::Function< T, NDIM >::scale(), madness::Function< T, NDIM >::truncate(), V(), F::x, and F::y.

Referenced by main().

◆ main()

◆ rifunction()

double rifunction ( const coord_3d & r)

◆ V()

double V ( const coord_3d & r)
static

References e(), and R.

Variable Documentation

◆ k

const long k = 8
static

◆ L

const double L = 64.0*R
static

◆ R

const double R = 1.4
static

◆ thresh

const double thresh = 1e-5
static