#include <Stencils.H>
Collaboration diagram for VoFStencil:
Public Methods | |
VoFStencil () | |
~VoFStencil () | |
void | clear () |
void | add (const VolIndex &vof, const Real &weight) |
int | size () const |
const VolIndex & | vof (int i) const |
const Real & | weight (int i) const |
VoFStencil & | operator+= (const VoFStencil &a_vofsten) |
void | operator *= (const Real &scaling) |
VoFStencil & | operator= (const VoFStencil &a_vofsten) |
VoFStencil (const VoFStencil &a_vofstenin) | |
bool | isDefined () const |
Protected Attributes | |
bool | m_isDefined |
Vector< VolIndex > | vofs |
the VoFs | |
Vector< Real > | weights |
the weights |
This stencil is a fundamental tool for building eb applications by making the ability to cache stencil information. This object consists of a vector of VoFs and a vector of weights.
|
default constructor. makes empty vectors. |
|
|
|
|
|
add a VoF to the Stencil, with it's associated weight it is required that all VoFs are in the same EBIndexSpace If the vof is already in the stencil, add the weights. |
|
|
|
|
|
|
|
add all faces and weights of inputs to this. If a vof is already in the stencil, add the weights. only addition is well-defined here as far as arithmatic operations are concerned. |
|
|
|
number of VoFs in the Stencil |
|
access a VoF |
|
access a weight |
|
|
|
the VoFs
|
|
the weights
|