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

#include <ncmesh.hpp>

Public Member Functions

 Element (Geometry::Type geom, int attr)
 
Geometry::Type Geom () const
 
bool IsLeaf () const
 

Public Attributes

char geom
 Geometry::Type of the element (char for storage only) More...
 
char ref_type
 bit mask of X,Y,Z refinements (bits 0,1,2 respectively) More...
 
char tet_type
 tetrahedron split type, currently always 0 More...
 
char flag
 generic flag/marker, can be used by algorithms More...
 
int index
 element number in the Mesh, -1 if refined More...
 
int rank
 processor number (ParNCMesh), -1 if undefined/unknown More...
 
int attribute
 
union {
   int   node [MaxElemNodes]
 element corners (if ref_type == 0) More...
 
   int   child [MaxElemChildren]
 2-10 children (if ref_type != 0) More...
 
}; 
 
int parent
 parent element, -1 if this is a root element, -2 if free'd More...
 

Detailed Description

This is an element in the refinement hierarchy. Each element has either been refined and points to its children, or is a leaf and points to its vertex nodes.

Definition at line 483 of file ncmesh.hpp.

Constructor & Destructor Documentation

◆ Element()

mfem::NCMesh::Element::Element ( Geometry::Type  geom,
int  attr 
)

Definition at line 460 of file ncmesh.cpp.

Member Function Documentation

◆ Geom()

Geometry::Type mfem::NCMesh::Element::Geom ( ) const
inline

Definition at line 501 of file ncmesh.hpp.

◆ IsLeaf()

bool mfem::NCMesh::Element::IsLeaf ( ) const
inline

Definition at line 502 of file ncmesh.hpp.

Member Data Documentation

◆ @16

union { ... }

◆ attribute

int mfem::NCMesh::Element::attribute

Definition at line 491 of file ncmesh.hpp.

◆ child

int mfem::NCMesh::Element::child[MaxElemChildren]

2-10 children (if ref_type != 0)

Definition at line 495 of file ncmesh.hpp.

◆ flag

char mfem::NCMesh::Element::flag

generic flag/marker, can be used by algorithms

Definition at line 488 of file ncmesh.hpp.

◆ geom

char mfem::NCMesh::Element::geom

Geometry::Type of the element (char for storage only)

Definition at line 485 of file ncmesh.hpp.

◆ index

int mfem::NCMesh::Element::index

element number in the Mesh, -1 if refined

Definition at line 489 of file ncmesh.hpp.

◆ node

int mfem::NCMesh::Element::node[MaxElemNodes]

element corners (if ref_type == 0)

Definition at line 494 of file ncmesh.hpp.

◆ parent

int mfem::NCMesh::Element::parent

parent element, -1 if this is a root element, -2 if free'd

Definition at line 497 of file ncmesh.hpp.

◆ rank

int mfem::NCMesh::Element::rank

processor number (ParNCMesh), -1 if undefined/unknown

Definition at line 490 of file ncmesh.hpp.

◆ ref_type

char mfem::NCMesh::Element::ref_type

bit mask of X,Y,Z refinements (bits 0,1,2 respectively)

Definition at line 486 of file ncmesh.hpp.

◆ tet_type

char mfem::NCMesh::Element::tet_type

tetrahedron split type, currently always 0

Definition at line 487 of file ncmesh.hpp.


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