Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PolynomialDelta Class Reference

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

#include <PolynomialDelta.H>

Inheritance diagram for PolynomialDelta:

Inheritance graph
[legend]
Collaboration diagram for PolynomialDelta:

Collaboration graph
[legend]
List of all members.

Public Methods

 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) const
 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) const
 returns sum_j force_j kernel_ij over a box

virtual Real computeLapDelta (Real a_radius) const
 returns laplacian(delta) at radius r

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

void setCoeff (Real a_coeff, int n)
const RealgetCoeffs () const
int numCoeffs () const

Protected Methods

void setDefaultValues ()
void defineFactor ()

Protected Attributes

Real m_coeffs [NUM_POLY_COEFFS]
 polynomial coefficients

int m_numCoeffs
Real m_epsilon
 radius of numerical delta function

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.

const Real* PolynomialDelta::getCoeffs   const
 

virtual Real PolynomialDelta::integralDelta Real    a_radius const [virtual]
 

returns the integral from 0 to radius of delta

Implements DiscreteDeltaFn.

int PolynomialDelta::numCoeffs   const [inline]
 

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
const [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
const [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

Real PolynomialDelta::m_coeffs[NUM_POLY_COEFFS] [protected]
 

polynomial coefficients

Real PolynomialDelta::m_epsilon [protected]
 

radius of numerical delta function

Real PolynomialDelta::m_factor [protected]
 

what we multiply the polynomial by for normalization

int PolynomialDelta::m_numCoeffs [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 17:56:28 2005 for Chombo&INSwithParticles by doxygen1.2.16