MADNESS 0.10.1
sdf_domainmask.h File Reference

Defines abstract interfaces and concrete classes signed distance functions and domain masks. More...

#include <madness/mra/mra.h>
Include dependency graph for sdf_domainmask.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  madness::DomainMaskInterface
 The interface for masking functions defined by signed distance functions. More...
class  madness::DomainMaskSDFFunctor< NDIM >
 Framework for combining a signed distance function (sdf) with a domain mask to produce MADNESS functions. More...
class  madness::GaussianDomainMask
 Use a Gaussian for the surface function and the corresponding erf for the domain mask. More...
class  madness::SignedDFInterface< NDIM >
 The interface for a signed distance function (sdf). More...

Namespaces

namespace  madness
 Namespace for all elements and tools of MADNESS.

Functions

virtual madness::~LLRVDomainMask ()
double madness::dmask (double d) const
 Derivative of characteristic function with respect to the normal distance.
double madness::dsurface (double d) const
 Value of d(surface)/ddistance.
 madness::LLRVDomainMask (double epsilon)
 Provides the Li-Lowengrub-Ratz-Voight (LLRV) domain mask characteristic functions.
double madness::mask (double d) const
 Value of characteristic function at normal distance d from the surface.
double madness::surface (double d) const
 Value of surface function at distance d normal to surface.

Variables

template<std::size_t NDIM>
const int madness::DomainMaskSDFFunctor< NDIM >::DMASK = 3
template<std::size_t NDIM>
const int madness::DomainMaskSDFFunctor< NDIM >::DSURFACE = 5
template<std::size_t NDIM>
const int madness::DomainMaskSDFFunctor< NDIM >::MASK = 1
template<std::size_t NDIM>
const int madness::DomainMaskSDFFunctor< NDIM >::MASK_COMPLEMENT = 2
template<std::size_t NDIM>
const int madness::DomainMaskSDFFunctor< NDIM >::SURFACE = 4

Detailed Description

Defines abstract interfaces and concrete classes signed distance functions and domain masks.

Interfaces for a signed distance function (sdf) and a domain mask are made. The original conception of these interfaces was for doing shapes and interior boundary conditions in MADNESS; however, the interfaces were abstracted for other applications.

The domain mask builds on a sdf such that $0 <=  \mbox{mask(sdf)} <= 1$ for smooth switching between domains. That said, a mask needs a sdf.

A general-purpose functor is given that combines a sdf and mask to produce MADNESS functions for various entities including

  • The domain mask (trace is the volume)
  • The gradient of mask (related to the surface)
  • The surface (trace is the surface area)
  • The normal derivative of the surface