|
MADNESS 0.10.1
|
Framework for combining a signed distance function (sdf) with a domain mask to produce MADNESS functions. More...
#include <sdf_domainmask.h>


Public Member Functions | |
| DomainMaskSDFFunctor (std::shared_ptr< DomainMaskInterface > mask, std::shared_ptr< SignedDFInterface< NDIM > > sdf) | |
| Constructor for mask/sdf functor. | |
| DomainMaskSDFFunctor (std::shared_ptr< DomainMaskInterface > mask, std::shared_ptr< SignedDFInterface< NDIM > > sdf, int _mswitch) | |
| Constructor for mask/sdf function specifying the desired function (mask, surface, etc.). | |
| virtual | ~DomainMaskSDFFunctor () |
| double | operator() (const Vector< double, NDIM > &x) const |
| Uses the functor interface to make a MADNESS function. | |
| void | setMaskFunction (int _mswitch) |
| Toggles which function from DomainMaskInterface to use when making the MADNESS function. | |
| Public Member Functions inherited from madness::FunctionFunctorInterface< double, NDIM > | |
| FunctionFunctorInterface () | |
| virtual | ~FunctionFunctorInterface () |
| virtual coeffT | coeff (const keyT &) const |
| virtual void | operator() (const Vector< double *, 1 > &, double *, int) const |
| virtual bool | provides_coeff () const |
| does this functor directly provide sum coefficients? or only function values? | |
| virtual bool | screened (const Vector< double, NDIM > &, const Vector< double, NDIM > &) 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 &, const Tensor< double > &) const |
Static Public Attributes | |
| static const int | DMASK |
Use the dmask() function in mask. | |
| static const int | DSURFACE |
Use the dsurface() function in mask. | |
| static const int | MASK |
Use the mask() function in mask. | |
| static const int | MASK_COMPLEMENT |
Get the complement of mask(). | |
| static const int | SURFACE |
Use the surface() function in mask. | |
Private Member Functions | |
| DomainMaskSDFFunctor () | |
| Bury the default constructor. | |
Private Attributes | |
| std::shared_ptr< DomainMaskInterface > | mask |
| The domain mask to use. | |
| int | mswitch |
| Which masking function to use (mask, surface, etc.). | |
| std::shared_ptr< SignedDFInterface< NDIM > > | sdf |
| The signed distance function. | |
Additional Inherited Members | |
| Public Types inherited from madness::FunctionFunctorInterface< double, NDIM > | |
| typedef GenTensor< double > | coeffT |
| typedef Key< NDIM > | keyT |
| typedef double | value_type |
| Public Attributes inherited from madness::FunctionFunctorInterface< double, NDIM > | |
| Level | special_level_ |
Framework for combining a signed distance function (sdf) with a domain mask to produce MADNESS functions.
This interface provides functor functionality to produce MADNESS functions for
The functor defaults to the domain mask; however, member functions can toggle between the other options.
|
inlineprivate |
Bury the default constructor.
|
inline |
|
inline |
Constructor for mask/sdf function specifying the desired function (mask, surface, etc.).
| mask | Pointer to the domain mask | |
| sdf | Pointer to the signed distance function | |
| [in] | _mswitch | Which function to use (MASK, DMASK, SURFACE, DSURFACE, or MASK_COMPLEMENT) |
References DMASK, DSURFACE, madness::error(), MASK, mask, MASK_COMPLEMENT, mswitch, sdf, and SURFACE.
|
inlinevirtual |
|
inline |
Uses the functor interface to make a MADNESS function.
| x | Point to compute value |
References DMASK, DSURFACE, madness::error(), MASK, mask, MASK_COMPLEMENT, mswitch, sdf, and SURFACE.
|
inline |
Toggles which function from DomainMaskInterface to use when making the MADNESS function.
| _mswitch | The function to use (should be MASK, DMASK, SURFACE, DSURFACE, or MASK_COMPLEMENT) |
References DMASK, DSURFACE, madness::error(), MASK, MASK_COMPLEMENT, mswitch, and SURFACE.
Referenced by main().
|
static |
Use the dmask() function in mask.
Referenced by DomainMaskSDFFunctor(), operator()(), and setMaskFunction().
|
static |
Use the dsurface() function in mask.
Referenced by DomainMaskSDFFunctor(), operator()(), and setMaskFunction().
|
static |
Use the mask() function in mask.
Referenced by DomainMaskSDFFunctor(), DomainMaskSDFFunctor(), operator()(), and setMaskFunction().
|
private |
The domain mask to use.
Referenced by DomainMaskSDFFunctor(), DomainMaskSDFFunctor(), and operator()().
|
static |
Get the complement of mask().
Referenced by DomainMaskSDFFunctor(), operator()(), and setMaskFunction().
|
private |
Which masking function to use (mask, surface, etc.).
Referenced by DomainMaskSDFFunctor(), DomainMaskSDFFunctor(), operator()(), and setMaskFunction().
|
private |
The signed distance function.
Referenced by DomainMaskSDFFunctor(), DomainMaskSDFFunctor(), and operator()().
|
static |
Use the surface() function in mask.
Referenced by DomainMaskSDFFunctor(), main(), operator()(), and setMaskFunction().