#include <PolynomialDelta.H>
Inheritance diagram for PolynomialDelta:
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 DiscreteDeltaFn * | clone () 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 Real * | getCoeffs () 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 |
The parameter epsilon defines the spreading radius of the discrete delta fn.
|
constructor
|
|
constructor with radius -- calls corresponding define fn.
|
|
destructor
|
|
make a copy of this delta function
Implements DiscreteDeltaFn. |
|
returns the kernel_{ij} at radius r
Implements DiscreteDeltaFn. |
|
returns laplacian(delta) at radius r
Implements DiscreteDeltaFn. |
|
define function
Implements DiscreteDeltaFn. |
|
|
|
returns epsilon
Implements DiscreteDeltaFn. |
|
evaluate the delta function at the given radius
Implements DiscreteDeltaFn. |
|
|
|
returns the integral from 0 to radius of delta
Implements DiscreteDeltaFn. |
|
|
|
|
|
set coefficients for polynomial
|
|
|
|
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. |
|
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. |
|
polynomial coefficients
|
|
radius of numerical delta function
|
|
what we multiply the polynomial by for normalization
|
|
|