MADNESS
version 0.9
|
Use a Gaussian for the surface function and the corresponding erf for the domain mask. More...
#include <sdf_domainmask.h>
Public Member Functions | |
GaussianDomainMask (double epsilon) | |
Constructor for the domain mask. More... | |
double | mask (double d) const |
Value of characteristic function at normal distance d from the surface. More... | |
double | dmask (double d) const |
Derivative of characteristic function with respect to the normal distance. More... | |
double | surface (double d) const |
Value of surface function at distance d normal to surface. More... | |
double | dsurface (double d) const |
Value of d(surface)/ddistance. More... | |
virtual | ~GaussianDomainMask () |
Public Member Functions inherited from madness::DomainMaskInterface | |
virtual | ~DomainMaskInterface () |
Protected Attributes | |
const double | epsilon |
The width of the transition region. More... | |
Use a Gaussian for the surface function and the corresponding erf for the domain mask.
|
inline |
Constructor for the domain mask.
[in] | epsilon | The effective width of the surface |
|
inlinevirtual |
|
inlinevirtual |
Derivative of characteristic function with respect to the normal distance.
[in] | d | The signed distance |
Implements madness::DomainMaskInterface.
References epsilon, mpfr::exp(), mpfr::fabs(), madness::constants::pi, and sqrt().
|
inlinevirtual |
Value of d(surface)/ddistance.
[in] | d | The signed distance |
Implements madness::DomainMaskInterface.
References epsilon, mpfr::exp(), madness::constants::pi, and sqrt().
|
inlinevirtual |
Value of characteristic function at normal distance d from the surface.
[in] | d | The signed distance. Negative is inside,'' positive is outside.'' |
Implements madness::DomainMaskInterface.
References mpfr::erf(), and sqrt().
Referenced by TipMolecule::operator()().
|
inlinevirtual |
Value of surface function at distance d normal to surface.
[in] | d | The signed distance |
Implements madness::DomainMaskInterface.
References epsilon, mpfr::exp(), madness::constants::pi, and sqrt().
Referenced by TipMolecule::operator()().
|
protected |
The width of the transition region.
Referenced by dmask(), dsurface(), and surface().