MADNESS 0.10.1
Public Member Functions | Private Attributes | List of all members
madness::SAPFunctor Class Reference

#include <potentialmanager.h>

Inheritance diagram for madness::SAPFunctor:
Inheritance graph
[legend]
Collaboration diagram for madness::SAPFunctor:
Collaboration graph
[legend]

Public Member Functions

 SAPFunctor (const Atom &atom, double smoothing_param, const BoundaryConditions< 3 > &bc=FunctionDefaults< 3 >::get_bc(), const Tensor< double > &cell=FunctionDefaults< 3 >::get_cell(), int special_level=15)
 
double operator() (const coord_3d &x) const
 
- Public Member Functions inherited from madness::FunctionFunctorInterface< double, 3 >
 FunctionFunctorInterface ()
 
virtual ~FunctionFunctorInterface ()
 
virtual coeffT coeff (const keyT &) const
 
virtual void operator() (const Vector< double *, 1 > &xvals, double *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 2 > &xvals, double *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 3 > &xvals, double *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 4 > &xvals, double *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 5 > &xvals, double *fvals, int npts) const
 
virtual void operator() (const Vector< double *, 6 > &xvals, double *fvals, int npts) const
 
virtual double operator() (const Vector< double, NDIM > &x) const=0
 You should implement this to return f(x)
 
virtual bool provides_coeff () const
 does this functor directly provide sum coefficients? or only function values?
 
virtual bool screened (const Vector< double, NDIM > &c1, const Vector< double, NDIM > &c2) const
 Can we screen this function based on the bounding box information?
 
void set_length_scale (double lo)
 adapt the special level to resolve the smallest length scale
 
virtual Level special_level () const
 Override this to change the minimum level of refinement at special points (default is 6)
 
virtual std::vector< Vector< double, NDIM > > special_points () const
 Override this to return list of special points to be refined more deeply.
 
virtual bool supports_vectorized () const
 Does the interface support a vectorized operator()?
 
virtual coeffT values (const keyT &key, const Tensor< double > &tensor) const
 

Private Attributes

const Atomatom
 
BoundaryConditions< 3 > bc_
 
Tensor< double > cell
 
double smoothing_param
 
int special_level_ = 15
 
std::vector< coord_3dspecial_points_
 

Additional Inherited Members

- Public Types inherited from madness::FunctionFunctorInterface< double, 3 >
typedef GenTensor< double > coeffT
 
typedef Key< NDIMkeyT
 
typedef double value_type
 
- Public Attributes inherited from madness::FunctionFunctorInterface< double, 3 >
Level special_level_
 

Constructor & Destructor Documentation

◆ SAPFunctor()

madness::SAPFunctor::SAPFunctor ( const Atom atom,
double  smoothing_param,
const BoundaryConditions< 3 > &  bc = FunctionDefaults<3>::get_bc(),
const Tensor< double > &  cell = FunctionDefaults<3>::get_cell(),
int  special_level = 15 
)

Generic constructor, can handle open and periodic boundaries

Parameters
moleculeatoms
smoothing_paramcontrols smoothness of 1/r potential.
bcboundary conditions
cellsimulation cell (unit cell, if periodic)
special_levelthe initial refinement level

References atom, and madness::Atom::get_coords().

Member Function Documentation

◆ operator()()

double madness::SAPFunctor::operator() ( const coord_3d x) const

Member Data Documentation

◆ atom

const Atom& madness::SAPFunctor::atom
private

Referenced by SAPFunctor(), and operator()().

◆ bc_

BoundaryConditions<3> madness::SAPFunctor::bc_
private

Referenced by operator()().

◆ cell

Tensor<double> madness::SAPFunctor::cell
private

Referenced by operator()().

◆ smoothing_param

double madness::SAPFunctor::smoothing_param
private

Referenced by operator()().

◆ special_level_

int madness::SAPFunctor::special_level_ = 15
private

◆ special_points_

std::vector<coord_3d> madness::SAPFunctor::special_points_
private

The documentation for this class was generated from the following files: