#include <faceinfo.h>
Public Member Functions | |
FaceInfo (const OrthoMesh::Cash_Face_It &face) | |
FaceInfo (const OrthoMesh::Face_It &face) | |
Public Attributes | |
Index | index |
unsigned | normal |
Index | cell1 |
Index | cell2 |
bool | at_boundary |
This class is to contain all the information of a face necessary for the computation of Fluxes at Faces. So it is used by FaceFluxFunction and all its childs.
This class is created to avoid the manutenability burden of the FaceFluxFunction childs such that it can work of faces informations of many different meshes
ATTENTION: The fields that contain adjacent cell indices are always set with valid indices. In the case that we have a face at boundary both indices contain the same value equal to the cell inside the domain
Definition at line 24 of file faceinfo.h.
FaceInfo::FaceInfo | ( | const OrthoMesh::Cash_Face_It & | face | ) | [inline] |
Definition at line 33 of file faceinfo.h.
00034 { 00035 index = face->index(); 00036 normal = face->getNormalOrientation(); 00037 face->getAdjCellIndices(cell1,cell2); 00038 if (cell1 == OrthoMesh::INVALID_INDEX) 00039 { 00040 at_boundary = true; 00041 cell1=cell2; 00042 } 00043 if (cell2 == OrthoMesh::INVALID_INDEX) 00044 { 00045 at_boundary = true; 00046 cell2=cell1; 00047 } 00048 }
FaceInfo::FaceInfo | ( | const OrthoMesh::Face_It & | face | ) | [inline] |
Definition at line 49 of file faceinfo.h.
00050 { 00051 index = face->index(); 00052 face->getAdjCellIndices(cell1,cell2); 00053 normal = face->getNormalOrientation(); 00054 if (cell1 == OrthoMesh::INVALID_INDEX) 00055 { 00056 at_boundary = true; 00057 cell1=cell2; 00058 } 00059 if (cell2 == OrthoMesh::INVALID_INDEX) 00060 { 00061 at_boundary = true; 00062 cell2=cell1; 00063 } 00064 }
Definition at line 30 of file faceinfo.h.
Definition at line 29 of file faceinfo.h.
Definition at line 29 of file faceinfo.h.
Definition at line 27 of file faceinfo.h.
unsigned FaceInfo::normal |
Definition at line 28 of file faceinfo.h.