MADNESS  0.10.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ConstantSphere Class Reference

The constant on a sphere problem. More...

#include <test_problems.h>

Inheritance diagram for ConstantSphere:
Inheritance graph
[legend]
Collaboration diagram for ConstantSphere:
Collaboration graph
[legend]

Public Member Functions

 ConstantSphere (int k, double thresh, double eps, std::string penalty_name, double penalty_prefact, double radius, Mask mask)
 
virtual std::vector< Vector< double, 3 > > check_pts () const
 A list of points where we should compare the computed solution to the exact solution. More...
 
double DirichletCond (const Vector< double, 3 > &x) const
 
double ExactSol (const Vector< double, 3 > &x) const
 
double Inhomogeneity (const Vector< double, 3 > &x) const
 
double SurfaceIntegral () const
 The surface area of the domain. More...
 
double VolumeIntegral () const
 The volume of the domain. More...
 
- Public Member Functions inherited from EmbeddedDirichlet
 EmbeddedDirichlet (double penalty_prefact, std::string penalty_name, double eps, int k, double thresh, Mask mask)
 Sets up the data for the problem-inspecific parts. More...
 
virtual ~EmbeddedDirichlet ()
 
void load_balance (World &world, const Function< double, 3 > &f) const
 Load balances using the provided Function. More...
 
double operator() (const Vector< double, 3 > &x) const
 The operator for projecting a MADNESS function. More...
 
void printout () const
 Do a standard Printout of the problem details. More...
 
- 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) More...
 
virtual bool provides_coeff () const
 does this functor directly provide sum coefficients? or only function values? More...
 
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? More...
 
void set_length_scale (double lo)
 adapt the special level to resolve the smallest length scale More...
 
virtual Level special_level ()
 Override this change level refinement for special points (default is 6) More...
 
virtual std::vector< Vector< double, NDIM > > special_points () const
 Override this to return list of special points to be refined more deeply. More...
 
virtual bool supports_vectorized () const
 Does the interface support a vectorized operator()? More...
 
virtual coeffT values (const keyT &key, const Tensor< double > &tensor) const
 

Protected Member Functions

bool isHomogeneous () const
 

Protected Attributes

double radius
 
- Protected Attributes inherited from EmbeddedDirichlet
DomainMaskInterfacedmi
 
std::string domain_mask_name
 
double eps
 
double penalty_prefact
 
std::string problem_name
 
std::string problem_specific_info
 
SignedDFInterface< 3 > * sdfi
 

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 EmbeddedDirichlet
FunctorOutput fop
 
- Public Attributes inherited from madness::FunctionFunctorInterface< double, 3 >
Level special_level_
 

Detailed Description

The constant on a sphere problem.

Constructor & Destructor Documentation

◆ ConstantSphere()

ConstantSphere::ConstantSphere ( int  k,
double  thresh,
double  eps,
std::string  penalty_name,
double  penalty_prefact,
double  radius,
Mask  mask 
)
inline

Member Function Documentation

◆ check_pts()

virtual std::vector< Vector<double, 3> > ConstantSphere::check_pts ( ) const
inlinevirtual

A list of points where we should compare the computed solution to the exact solution.

Reimplemented from EmbeddedDirichlet.

References madness::vec().

◆ DirichletCond()

double ConstantSphere::DirichletCond ( const Vector< double, 3 > &  x) const
inlinevirtual

Implements EmbeddedDirichlet.

◆ ExactSol()

double ConstantSphere::ExactSol ( const Vector< double, 3 > &  x) const
inlinevirtual

Implements EmbeddedDirichlet.

◆ Inhomogeneity()

double ConstantSphere::Inhomogeneity ( const Vector< double, 3 > &  x) const
inlinevirtual

Implements EmbeddedDirichlet.

◆ isHomogeneous()

bool ConstantSphere::isHomogeneous ( ) const
inlineprotectedvirtual

Implements EmbeddedDirichlet.

◆ SurfaceIntegral()

double ConstantSphere::SurfaceIntegral ( ) const
inlinevirtual

The surface area of the domain.

Implements EmbeddedDirichlet.

References madness::constants::pi.

◆ VolumeIntegral()

double ConstantSphere::VolumeIntegral ( ) const
inlinevirtual

The volume of the domain.

Implements EmbeddedDirichlet.

References madness::constants::pi.

Member Data Documentation

◆ radius

double ConstantSphere::radius
protected

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