Chombo + EB
3.0
|
#include <FaceIndex.H>
Public Member Functions | |
FaceIndex (const VolIndex &a_vof1, const VolIndex &a_vof2, const int &a_direction) | |
FaceIndex (const VolIndex &a_vof1, const VolIndex &a_vof2) | |
void | define (const VolIndex &a_vof1, const VolIndex &a_vof2, const int &a_direction) |
void | define (const VolIndex &a_vof1, const VolIndex &a_vof2) |
FaceIndex () | |
FaceIndex (const FaceIndex &a_facein) | |
void | define (const FaceIndex &a_facein) |
~FaceIndex () | |
FaceIndex & | operator= (const FaceIndex &a_facein) |
bool | operator== (const FaceIndex &a_facein) const |
bool | operator!= (const FaceIndex &a_facein) const |
const int & | direction () const |
const bool & | isDefined () const |
const bool & | isBoundary () const |
const int & | cellIndex (const Side::LoHiSide &a_sd) const |
const IntVect & | gridIndex (const Side::LoHiSide &a_sd) const |
VolIndex | getVoF (const Side::LoHiSide &a_sd) const |
int | faceSign (const VolIndex &a_vof) const |
Public Member Functions inherited from BaseIndex | |
BaseIndex () | |
virtual | ~BaseIndex () |
Static Public Member Functions | |
static int | initializeOffsets () |
Static Public Attributes | |
static size_t | lo_offset |
static size_t | hi_offset |
static size_t | rest_offset |
Private Attributes | |
IntVect | m_loiv |
the intvect of the low vof More... | |
IntVect | m_hiiv |
the intvect of the high vof More... | |
int | m_loIndex |
int | m_hiIndex |
int | m_direction |
direction of the face. More... | |
bool | m_isDefined |
bool | m_isBoundary |
Friends | |
bool | operator< (const FaceIndex &f1, const FaceIndex &f2) |
ostream & | operator<< (ostream &out, const FaceIndex &fi) |
FaceIndex is a very lightweight object used to distinguish faces. It has two VolIndex (s) and a direction and a way to access them.
if both cellindexes of the vofs are >= 0, then the face is interior. otherwise the face is a boundary face.
FaceIndex::FaceIndex | ( | ) |
FaceIndex::FaceIndex | ( | const FaceIndex & | a_facein | ) |
FaceIndex::~FaceIndex | ( | ) |
void FaceIndex::define | ( | const VolIndex & | a_vof1, |
const VolIndex & | a_vof2, | ||
const int & | a_direction | ||
) |
if both cellindexes of the vofs are >= 0, then the face is interior. otherwise the face is a boundary face.
Shorthand define. First determine if they are neighbors then find the direction to pass to full define
void FaceIndex::define | ( | const FaceIndex & | a_facein | ) |
bool FaceIndex::operator== | ( | const FaceIndex & | a_facein | ) | const |
bool FaceIndex::operator!= | ( | const FaceIndex & | a_facein | ) | const |
const int& FaceIndex::direction | ( | ) | const |
Referenced by MiniIFFAB< Real >::operator()(), and BaseIFFAB< FaceStencil >::operator()().
const bool& FaceIndex::isDefined | ( | ) | const |
const bool& FaceIndex::isBoundary | ( | ) | const |
Referenced by BaseIFFAB< FaceStencil >::getLocalVecIndex().
const int& FaceIndex::cellIndex | ( | const Side::LoHiSide & | a_sd | ) | const |
return cell index of the vof on the a_sd side. returns -1 if that side of the face is outside the domain (boundary face case).
Referenced by BaseIFFAB< FaceStencil >::getLocalVecIndex().
const IntVect& FaceIndex::gridIndex | ( | const Side::LoHiSide & | a_sd | ) | const |
return grid index of the vof on the a_sd side. may be inside or ouside domain.
Referenced by MiniIFFAB< Real >::copy(), BaseIFFAB< FaceStencil >::getIndex(), BaseIFFAB< FaceStencil >::getLocalVecIndex(), BaseEBFaceFAB< Real >::offset(), BaseIFFAB< FaceStencil >::operator()(), BaseEBFaceFAB< Real >::operator()(), and BaseIFFAB< FaceStencil >::useThisFace().
VolIndex FaceIndex::getVoF | ( | const Side::LoHiSide & | a_sd | ) | const |
manufactures the appropriate volindex.
int FaceIndex::faceSign | ( | const VolIndex & | a_vof | ) | const |
a_vof needs to be one of the two vofs connected by this face Standing on a_vof, face opens toward the other vof returns 1 if face opens toward positive axis returns -1 if face opens toward negative axis returns 0 if a_vof is not one of the member vofs.
|
static |
Lexicographic
Friend of class FaceIndex
|
friend |
|
static |
|
static |
|
static |
|
private |
the intvect of the low vof
Referenced by operator<().
|
private |
the intvect of the high vof
Referenced by operator<().
|
private |
The index of the low vof. This = -1 if the face is set to be a boundary face on the low side of the domain.
Referenced by operator<().
|
private |
The index of the high vof. This = -1 if the face is set to be a boundary face on the high side of the domain.
Referenced by operator<().
|
private |
direction of the face.
Referenced by operator<().
|
private |
true if one of the define functions has been called.
|
private |
true if the face is constructed using the boundary face constructor
Referenced by operator<().