DerivStencil Class Reference
class to encapsulate the operations to create derivs on irreg stencils
More...
#include <DerivStencil.H>
Collaboration diagram for DerivStencil:
[legend]List of all members.
Detailed Description
class to encapsulate the operations to create derivs on irreg stencils
DerivStencil is meant to be used to encapsulate the information necessary to take finite difference derivatives at a point in space. Every point in the stencil has a weight. You add them (the boxarrayindex and the weight) at the same time and you can manipulate the weights enmasse by real number operations. Stencils may not interact with each other with the same sort of arithmetic because that would bring up issues as to what to do when there is incomplete intersection between the stencils.
Constructor & Destructor Documentation
DerivStencil::DerivStencil |
( |
|
) |
|
|
|
default constructor; creates empty vectors |
|
copy constructor; sets *this = a_dsin |
Member Function Documentation
void DerivStencil::accumulate |
( |
const IntVect & |
a_iv, |
|
|
Real |
a_weight |
|
) |
|
|
|
add another set if the IntVect is not in the stencil already. \ Add the weight to the existing weight otherwise** |
void DerivStencil::clear |
( |
|
) |
|
|
void DerivStencil::define |
( |
|
) |
|
|
const IntVect& DerivStencil::getIndex |
( |
int |
a_ivec |
) |
const |
|
const Real& DerivStencil::getWeight |
( |
int |
a_ivec |
) |
const |
|
bool DerivStencil::isDefined |
( |
|
) |
const [inline] |
|
|
return true if any define function been called. |
|
Multiply each weight by a_facin does nothing if vectors are of zero length |
|
add a_facin to each weight does nothing if vectors are of zero length |
|
subtract a_facin from each weight does nothing if vectors are of zero length |
|
divide each weight by a_denom does nothing if vectors are of zero length. Be advised --- This function does no checking to see if a_denom is close to zero. |
int DerivStencil::size |
( |
|
) |
const |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Wed Jun 2 13:58:31 2004 for Chombo&INSwithParticles by
1.3.2