MFEM  v4.6.0
Finite element discretization library
Public Member Functions | Public Attributes | List of all members
mfem::NCMesh::Face Struct Reference

#include <ncmesh.hpp>

Inheritance diagram for mfem::NCMesh::Face:
[legend]
Collaboration diagram for mfem::NCMesh::Face:
[legend]

Public Member Functions

 Face ()
 
bool Boundary () const
 
bool Unused () const
 
void RegisterElement (int e)
 
void ForgetElement (int e)
 
int GetSingleElement () const
 Return one of elem[0] or elem[1] and make sure the other is -1. More...
 

Public Attributes

int attribute
 boundary element attribute, -1 if internal face More...
 
int index
 face number in the Mesh More...
 
int elem [2]
 up to 2 elements sharing the face More...
 
- Public Attributes inherited from mfem::Hashed4
int p1
 
int p2
 
int p3
 
int next
 

Detailed Description

Similarly to nodes, faces can be accessed by hashing their four vertex node IDs. A face knows about the one or two elements that are using it. A face that is not on the boundary and only has one element referencing it is either a master or a slave face.

Definition at line 461 of file ncmesh.hpp.

Constructor & Destructor Documentation

◆ Face()

mfem::NCMesh::Face::Face ( )
inline

Definition at line 467 of file ncmesh.hpp.

Member Function Documentation

◆ Boundary()

bool mfem::NCMesh::Face::Boundary ( ) const
inline

Definition at line 469 of file ncmesh.hpp.

◆ ForgetElement()

void mfem::NCMesh::Face::ForgetElement ( int  e)

Definition at line 428 of file ncmesh.cpp.

◆ GetSingleElement()

int mfem::NCMesh::Face::GetSingleElement ( ) const

Return one of elem[0] or elem[1] and make sure the other is -1.

Definition at line 443 of file ncmesh.cpp.

◆ RegisterElement()

void mfem::NCMesh::Face::RegisterElement ( int  e)

Definition at line 421 of file ncmesh.cpp.

◆ Unused()

bool mfem::NCMesh::Face::Unused ( ) const
inline

Definition at line 470 of file ncmesh.hpp.

Member Data Documentation

◆ attribute

int mfem::NCMesh::Face::attribute

boundary element attribute, -1 if internal face

Definition at line 463 of file ncmesh.hpp.

◆ elem

int mfem::NCMesh::Face::elem[2]

up to 2 elements sharing the face

Definition at line 465 of file ncmesh.hpp.

◆ index

int mfem::NCMesh::Face::index

face number in the Mesh

Definition at line 464 of file ncmesh.hpp.


The documentation for this struct was generated from the following files: