MADNESS 0.10.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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 >:
Collaboration graph
[legend]

Public Types

typedef Vector< double, NDIMcoordT
 

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>
static 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)

◆ offset

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

◆ radius

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

◆ tightness

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

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