# PolynomialDelta Class Reference

Instantiation of discrete delta function using a polynomial. More...

`#include <PolynomialDelta.H>`

Inheritance diagram for PolynomialDelta:

[legend]
Collaboration diagram for PolynomialDelta:

[legend]
List of all members.

## Public Member Functions

PolynomialDelta ()
constructor

PolynomialDelta (Real a_epsilon)
constructor with radius -- calls corresponding define fn.

virtual ~PolynomialDelta ()
destructor

virtual void define (Real a_epsilon)
define function

virtual Real epsilon () const
returns epsilon

virtual DiscreteDeltaFnclone () const
make a copy of this delta function

virtual Real evaluateDelta (Real a_radius) const
evaluate the delta function at the given radius

virtual Real integralDelta (Real a_radius) const
returns the integral from 0 to radius of delta

virtual Real computeK (RealVect &a_radius, int a_idir, int a_jdir) const
returns the kernel_{ij} at radius r

virtual void sumForce (FArrayBox &a_sum, const RealVect &a_force, const Box &a_box, const RealVect &a_position, const RealVect &a_origin, Real a_dx)
returns sum_j force_j kernel_ij over a box

virtual void sumForce (FArrayBox &a_sum, const RealVect &a_force, const Box &a_box, int a_dir, int a_destComp, const RealVect &a_position, const RealVect &a_origin, Real a_dx)
returns sum_j force_j kernel_ij over a box

virtual Real computeLapDelta (Real a_radius) const

void setCoeffs (const Vector< Real > &a_coeffs)
set coefficients for polynomial

void setCoeff (Real a_coeff, int n)
Vector< RealgetCoeffs () const

## Protected Member Functions

void setDefaultValues ()
void defineFactor ()

## Protected Attributes

Vector< Realm_coeffs
polynomial coefficients

Real m_epsilon

Real m_factor
what we multiply the polynomial by for normalization

## Detailed Description

Instantiation of discrete delta function using a polynomial.

The parameter epsilon defines the spreading radius of the discrete delta fn.

## Constructor & Destructor Documentation

 PolynomialDelta::PolynomialDelta ( )
 constructor

 PolynomialDelta::PolynomialDelta ( Real a_epsilon )
 constructor with radius -- calls corresponding define fn.

 virtual PolynomialDelta::~PolynomialDelta ( ) ` [virtual]`
 destructor

## Member Function Documentation

 virtual DiscreteDeltaFn* PolynomialDelta::clone ( ) const` [virtual]`
 make a copy of this delta function Implements DiscreteDeltaFn.

 virtual Real PolynomialDelta::computeK ( RealVect & a_radius, int a_idir, int a_jdir ) const` [virtual]`
 returns the kernel_{ij} at radius r Implements DiscreteDeltaFn.

 virtual Real PolynomialDelta::computeLapDelta ( Real a_radius ) const` [virtual]`
 returns laplacian(delta) at radius r Implements DiscreteDeltaFn.

 virtual void PolynomialDelta::define ( Real a_epsilon ) ` [virtual]`
 define function Implements DiscreteDeltaFn.

 void PolynomialDelta::defineFactor ( ) ` [protected]`

 virtual Real PolynomialDelta::epsilon ( ) const` [inline, virtual]`
 returns epsilon Implements DiscreteDeltaFn.

 virtual Real PolynomialDelta::evaluateDelta ( Real a_radius ) const` [virtual]`
 evaluate the delta function at the given radius Implements DiscreteDeltaFn.

 Vector PolynomialDelta::getCoeffs ( ) const

 virtual Real PolynomialDelta::integralDelta ( Real a_radius ) const` [virtual]`
 returns the integral from 0 to radius of delta Implements DiscreteDeltaFn.

 void PolynomialDelta::setCoeff ( Real a_coeff, int n )

 void PolynomialDelta::setCoeffs ( const Vector< Real > & a_coeffs )
 set coefficients for polynomial

 void PolynomialDelta::setDefaultValues ( ) ` [protected]`

 virtual void PolynomialDelta::sumForce ( FArrayBox & a_sum, const RealVect & a_force, const Box & a_box, int a_dir, int a_destComp, const RealVect & a_position, const RealVect & a_origin, Real a_dx ) ` [virtual]`
 returns sum_j force_j kernel_ij over a box this version computes a single (idir) component and places it in the destComp component of a_sum. this is done over a box for effeciency. Implements DiscreteDeltaFn.

 virtual void PolynomialDelta::sumForce ( FArrayBox & a_sum, const RealVect & a_force, const Box & a_box, const RealVect & a_position, const RealVect & a_origin, Real a_dx ) ` [virtual]`
 returns sum_j force_j kernel_ij over a box sum is a SpaceDim-component fab which will contain the sum this is done over a box for effeciency. Implements DiscreteDeltaFn.

## Member Data Documentation

 Vector PolynomialDelta::m_coeffs` [protected]`
 polynomial coefficients

 Real PolynomialDelta::m_epsilon` [protected]`
 Real PolynomialDelta::m_factor` [protected]`