MADNESS 0.10.1
Classes | Functions | Variables
newsolver.cc File Reference
#include <madness/mra/mra.h>
#include <madness/mra/operator.h>
#include <madness/mra/nonlinsol.h>
Include dependency graph for newsolver.cc:

Classes

struct  allocator
 
struct  F
 

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

static double guess ( const coord_3d r)
static

References e(), and R.

Referenced by main().

◆ inner()

double inner ( const F a,
const F b 
)

References a, b, and madness::inner().

◆ iterate_excite()

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 
)

◆ iterate_ground()

double iterate_ground ( World world,
NonlinearSolver solver,
real_function_3d V,
real_function_3d psi,
double &  eps 
)

◆ 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(), madness::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()

int main ( int  argc,
char **  argv 
)

◆ rifunction()

double rifunction ( const coord_3d r)

Referenced by main().

◆ V()

static double V ( const coord_3d r)
static

References e(), and R.

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

Variable Documentation

◆ k

const long k = 8
static

Referenced by main().

◆ L

const double L = 64.0*R
static

Referenced by main().

◆ R

const double R = 1.4
static

Referenced by guess(), main(), and V().

◆ thresh

const double thresh = 1e-5
static

Referenced by main().