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

#include <ncmesh.hpp>

Public Types

enum  : char {
  X = 1, Y = 2, Z = 4, XY = 3,
  XZ = 5, YZ = 6, XYZ = 7
}
 

Public Member Functions

 Refinement ()=default
 
 Refinement (int index, int type=Refinement::XYZ)
 

Public Attributes

int index
 Mesh element number. More...
 
char ref_type
 refinement XYZ bit mask (7 = full isotropic) More...
 

Detailed Description

Represents the index of an element to refine, plus a refinement type. The refinement type is needed for anisotropic refinement of quads and hexes. Bits 0,1 and 2 of 'ref_type' specify whether the element should be split in the X, Y and Z directions, respectively (Z is ignored for quads).

Definition at line 35 of file ncmesh.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : char
Enumerator
XY 
XZ 
YZ 
XYZ 

Definition at line 37 of file ncmesh.hpp.

Constructor & Destructor Documentation

◆ Refinement() [1/2]

mfem::Refinement::Refinement ( )
default

◆ Refinement() [2/2]

mfem::Refinement::Refinement ( int  index,
int  type = Refinement::XYZ 
)
inline

Definition at line 43 of file ncmesh.hpp.

Member Data Documentation

◆ index

int mfem::Refinement::index

Mesh element number.

Definition at line 38 of file ncmesh.hpp.

◆ ref_type

char mfem::Refinement::ref_type

refinement XYZ bit mask (7 = full isotropic)

Definition at line 39 of file ncmesh.hpp.


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