MADNESS 0.10.1
madness::spherical_box< NDIM > Struct Template Reference

an 2-dimensional smooth mask that is 1 inside the radius and 0 outside More...

#include <masks_and_boxes.h>

Collaboration diagram for madness::spherical_box< NDIM >:

Public Types

typedef Vector< double, NDIM > coordT

Public Member Functions

 spherical_box (const double r, const double deviation, const coordT o={0.0, 0.0, 0.0}, const coordT B_dir={0.0, 0.0, 1.0})
double operator() (const coordT &xyz) const

Static Public Member Functions

static double compute_tightness (const double deviation_at_dot_8_radius)
 compute the tightness parameter given the deviation at 0.8 radius

Public Attributes

const coordT B_direction =coordT(0.0)
const coordT offset =coordT(0.0)
const double radius
const double tightness =11.5

Detailed Description

template<std::size_t NDIM>
struct madness::spherical_box< NDIM >

an 2-dimensional smooth mask that is 1 inside the radius and 0 outside

Member Typedef Documentation

◆ coordT

template<std::size_t NDIM>
typedef Vector<double,NDIM> madness::spherical_box< NDIM >::coordT

Constructor & Destructor Documentation

◆ spherical_box()

template<std::size_t NDIM>
madness::spherical_box< NDIM >::spherical_box ( const double r,
const double deviation,
const coordT o = {0.0,0.0,0.0},
const coordT B_dir = {0.0,0.0,1.0} )
inline

Member Function Documentation

◆ compute_tightness()

template<std::size_t NDIM>
double madness::spherical_box< NDIM >::compute_tightness ( const double deviation_at_dot_8_radius)
inlinestatic

compute the tightness parameter given the deviation at 0.8 radius

◆ operator()()

template<std::size_t NDIM>
double madness::spherical_box< NDIM >::operator() ( const coordT & xyz) const
inline

Member Data Documentation

◆ B_direction

template<std::size_t NDIM>
const coordT madness::spherical_box< NDIM >::B_direction =coordT(0.0)

Referenced by operator()().

◆ offset

template<std::size_t NDIM>
const coordT madness::spherical_box< NDIM >::offset =coordT(0.0)

Referenced by operator()().

◆ radius

template<std::size_t NDIM>
const double madness::spherical_box< NDIM >::radius

Referenced by operator()().

◆ tightness

template<std::size_t NDIM>
const double madness::spherical_box< NDIM >::tightness =11.5

Referenced by operator()().


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