Chombo + EB
3.0
|
VoF-centered stencil. More...
#include <Stencils.H>
Public Member Functions | |
VoFStencil () | |
virtual | ~VoFStencil () |
void | clear () |
void | add (const VolIndex &vof, const Real &weight, int ivar=0) |
virtual int | size () const |
const VolIndex & | vof (int i) const |
virtual BaseIndex & | index (int i) const |
virtual const Real & | weight (int i) const |
virtual Real & | weight (int i) |
virtual const int & | variable (int i) const |
virtual int & | variable (int i) |
VoFStencil & | operator+= (const VoFStencil &a_vofsten) |
void | operator*= (const Real &scaling) |
VoFStencil & | operator= (const VoFStencil &a_vofsten) |
VoFStencil (const VoFStencil &a_vofstenin) | |
void | setAllVariables (int a_var) |
Public Member Functions inherited from BaseStencil | |
BaseStencil () | |
virtual | ~BaseStencil () |
Protected Attributes | |
Vector< VolIndex > | vofs |
the VoFs More... | |
Vector< Real > | weights |
the weights More... | |
Vector< int > | variables |
VoF-centered stencil.
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.
VoFStencil::VoFStencil | ( | ) |
default constructor. makes empty vectors.
|
virtual |
VoFStencil::VoFStencil | ( | const VoFStencil & | a_vofstenin | ) |
void VoFStencil::clear | ( | ) |
Referenced by BaseDomainBC::getFluxStencil().
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.
|
inlinevirtual |
|
inline |
access a VoF
|
inlinevirtual |
Implements BaseStencil.
References BaseStencil::variable(), and BaseStencil::weight().
|
inlinevirtual |
access a weight
Implements BaseStencil.
|
inlinevirtual |
access a weight
References CH_assert, and linearSize().
|
virtual |
Implements BaseStencil.
|
virtual |
VoFStencil& VoFStencil::operator+= | ( | const VoFStencil & | a_vofsten | ) |
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.
void VoFStencil::operator*= | ( | const Real & | scaling | ) |
VoFStencil& VoFStencil::operator= | ( | const VoFStencil & | a_vofsten | ) |
|
inline |
|
protected |