libMesh::WendlandRBF< SpaceDim, Continuity > Class Template Reference

#include <radial_basis_functions.h>

Public Member Functions

 WendlandRBF (const Real r_cut=1.)
 
Real operator() (Real) const
 
template<>
Real operator() (Real rad) const
 
template<>
Real operator() (Real rad) const
 
template<>
Real operator() (Real rad) const
 
template<>
Real operator() (Real rad) const
 

Private Attributes

const Real _rcut
 

Detailed Description

template<unsigned int SpaceDim, unsigned int Continuity>
class libMesh::WendlandRBF< SpaceDim, Continuity >

Simple radial basis function. Constructor. Evaluate the radial basis function at the reqested location. Wendland's compactly supported Radial Basis Functions.

Definition at line 71 of file radial_basis_functions.h.

Constructor & Destructor Documentation

template<unsigned int SpaceDim, unsigned int Continuity>
libMesh::WendlandRBF< SpaceDim, Continuity >::WendlandRBF ( const Real  r_cut = 1.)
inline

Constructor.

Definition at line 81 of file radial_basis_functions.h.

81  :
82  _rcut (r_cut)
83  { libmesh_experimental(); }

Member Function Documentation

template<unsigned int SpaceDim, unsigned int Continuity>
Real libMesh::WendlandRBF< SpaceDim, Continuity >::operator() ( Real  ) const
inline

Evaluate the radial basis function at the reqested location.

Definition at line 88 of file radial_basis_functions.h.

88 { libmesh_not_implemented(); return 0.; }
template<>
Real libMesh::WendlandRBF< 3, 0 >::operator() ( Real  rad) const
inline

Definition at line 97 of file radial_basis_functions.h.

98  {
99  if (rad > _rcut) return 0.;
100 
101  rad /= _rcut;
102 
103  return Utility::pow<2>(1.-rad);
104  }
template<>
Real libMesh::WendlandRBF< 3, 2 >::operator() ( Real  rad) const
inline

Definition at line 108 of file radial_basis_functions.h.

109  {
110  if (rad > _rcut) return 0.;
111 
112  rad /= _rcut;
113 
114  return Utility::pow<4>(1.-rad)*(4.*rad + 1.);
115  }
template<>
Real libMesh::WendlandRBF< 3, 4 >::operator() ( Real  rad) const
inline

Definition at line 119 of file radial_basis_functions.h.

120  {
121  if (rad > _rcut) return 0.;
122 
123  rad /= _rcut;
124 
125  return Utility::pow<6>(1.-rad)*((35.*rad + 18.)*rad + 3.);
126  }
template<>
Real libMesh::WendlandRBF< 3, 8 >::operator() ( Real  rad) const
inline

Definition at line 130 of file radial_basis_functions.h.

131  {
132  if (rad > _rcut) return 0.;
133 
134  rad /= _rcut;
135 
136  return Utility::pow<8>(1.-rad)*(((32.*rad + 25.)*rad + 8.)*rad + 1.);
137  }

Member Data Documentation

template<unsigned int SpaceDim, unsigned int Continuity>
const Real libMesh::WendlandRBF< SpaceDim, Continuity >::_rcut
private

Definition at line 74 of file radial_basis_functions.h.


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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:30 UTC

Hosted By:
SourceForge.net Logo