|
Chombo + EB
3.0
|
VoF-centered stencil. More...
#include <VarCoefStencil.H>
Public Member Functions | |
| VarCoefStencil () | |
| ~VarCoefStencil () | |
| void | clear () |
| void | add (const VolIndex &vof, const FaceIndex &coefloc, const Real &weight, int ivar) |
| int | size () const |
| const VolIndex & | vof (int i) const |
| const FaceIndex & | coefLoc (int i) const |
| const Real & | weight (int i) const |
| Real & | weight (int i) |
| const int & | variable (int i) const |
| int & | variable (int i) |
| VarCoefStencil & | operator+= (const VarCoefStencil &a_vofsten) |
| void | operator*= (const Real &scaling) |
| VarCoefStencil & | operator= (const VarCoefStencil &a_vofsten) |
| VarCoefStencil (const VarCoefStencil &a_vofstenin) | |
| void | setAllVariables (int a_var) |
Protected Attributes | |
| Vector< VolIndex > | vofs |
| the VoFs More... | |
| Vector< Real > | weights |
| the weights More... | |
| Vector< int > | variables |
| Vector< FaceIndex > | coefLocs |
| Where the face-centered coefficients live. More... | |
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.
| VarCoefStencil::VarCoefStencil | ( | ) |
default constructor. makes empty vectors.
| VarCoefStencil::~VarCoefStencil | ( | ) |
| VarCoefStencil::VarCoefStencil | ( | const VarCoefStencil & | a_vofstenin | ) |
| void VarCoefStencil::clear | ( | ) |
| void VarCoefStencil::add | ( | const VolIndex & | vof, |
| const FaceIndex & | coefloc, | ||
| const Real & | weight, | ||
| int | ivar | ||
| ) |
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.
|
inline |
|
inline |
access a weight
References CH_assert, linearSize(), and weights.
| const int& VarCoefStencil::variable | ( | int | i | ) | const |
| int& VarCoefStencil::variable | ( | int | i | ) |
| VarCoefStencil& VarCoefStencil::operator+= | ( | const VarCoefStencil & | 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 VarCoefStencil::operator*= | ( | const Real & | scaling | ) |
| VarCoefStencil& VarCoefStencil::operator= | ( | const VarCoefStencil & | a_vofsten | ) |
|
inline |
References Vector< T >::size(), variables, and vofs.
the VoFs
Referenced by setAllVariables(), and vof().
|
protected |
Referenced by setAllVariables().
Where the face-centered coefficients live.
Referenced by coefLoc().
1.8.13