MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::NCMesh::NCList Struct Reference

Lists all edges/faces in the nonconforming mesh. More...

#include <ncmesh.hpp>

Collaboration diagram for mfem::NCMesh::NCList:
[legend]

Classes

struct  MeshIdAndType
 

Public Types

enum class  MeshIdType : char { CONFORMING , MASTER , SLAVE , UNRECOGNIZED }
 

Public Member Functions

void OrientedPointMatrix (const Slave &slave, DenseMatrix &oriented_matrix) const
 
MeshIdAndType GetMeshIdAndType (int index) const
 Return a mesh id and type for a given nc index.
 
MeshIdType GetMeshIdType (int index) const
 Return a face type for a given nc index.
 
bool CheckMeshIdType (int index, MeshIdType type) const
 Given an index, check if this is a certain face type.
 
void Clear ()
 Erase the contents of the conforming, master and slave arrays.
 
bool Empty () const
 Whether the NCList is empty.
 
long TotalSize () const
 The total size of the component arrays in the NCList.
 
long MemoryUsage () const
 
 ~NCList ()
 

Public Attributes

Array< MeshIdconforming
 All MeshIds corresponding to conformal faces.
 
Array< Mastermasters
 All MeshIds corresponding to master faces.
 
Array< Slaveslaves
 All MeshIds corresponding to slave faces.
 
Array< DenseMatrix * > point_matrices [Geometry::NumGeom]
 List of unique point matrices for each slave geometry.
 

Detailed Description

Lists all edges/faces in the nonconforming mesh.

Definition at line 229 of file ncmesh.hpp.

Member Enumeration Documentation

◆ MeshIdType

enum class mfem::NCMesh::NCList::MeshIdType : char
strong

Particular MeshId type, used for allowing static casting to the appropriate child type after searching the NCList. UNRECOGNIZED denotes that an instance is not known within the NCList, meaning that it does not play a part in NC mechanics. This can be because the index did not exist in the original Mesh, or because the entry is a boundary face, whose NC status is always conforming.

Enumerator
CONFORMING 
MASTER 
SLAVE 
UNRECOGNIZED 

Definition at line 247 of file ncmesh.hpp.

Constructor & Destructor Documentation

◆ ~NCList()

mfem::NCMesh::NCList::~NCList ( )
inline

Definition at line 283 of file ncmesh.hpp.

Member Function Documentation

◆ CheckMeshIdType()

bool mfem::NCMesh::NCList::CheckMeshIdType ( int index,
MeshIdType type ) const

Given an index, check if this is a certain face type.

Definition at line 3537 of file ncmesh.cpp.

◆ Clear()

void mfem::NCMesh::NCList::Clear ( )

Erase the contents of the conforming, master and slave arrays.

Definition at line 3490 of file ncmesh.cpp.

◆ Empty()

bool mfem::NCMesh::NCList::Empty ( ) const
inline

Whether the NCList is empty.

Definition at line 269 of file ncmesh.hpp.

◆ GetMeshIdAndType()

NCMesh::NCList::MeshIdAndType mfem::NCMesh::NCList::GetMeshIdAndType ( int index) const

Return a mesh id and type for a given nc index.

Definition at line 3509 of file ncmesh.cpp.

◆ GetMeshIdType()

NCMesh::NCList::MeshIdType mfem::NCMesh::NCList::GetMeshIdType ( int index) const

Return a face type for a given nc index.

Definition at line 3529 of file ncmesh.cpp.

◆ MemoryUsage()

long mfem::NCMesh::NCList::MemoryUsage ( ) const

The memory usage of the three public arrays. Does not account for the inverse index.

Definition at line 6341 of file ncmesh.cpp.

◆ OrientedPointMatrix()

void mfem::NCMesh::NCList::OrientedPointMatrix ( const Slave & slave,
DenseMatrix & oriented_matrix ) const

Definition at line 3468 of file ncmesh.cpp.

◆ TotalSize()

long mfem::NCMesh::NCList::TotalSize ( ) const
inline

The total size of the component arrays in the NCList.

Definition at line 276 of file ncmesh.hpp.

Member Data Documentation

◆ conforming

Array<MeshId> mfem::NCMesh::NCList::conforming

All MeshIds corresponding to conformal faces.

Definition at line 231 of file ncmesh.hpp.

◆ masters

Array<Master> mfem::NCMesh::NCList::masters

All MeshIds corresponding to master faces.

Definition at line 232 of file ncmesh.hpp.

◆ point_matrices

Array<DenseMatrix*> mfem::NCMesh::NCList::point_matrices[Geometry::NumGeom]

List of unique point matrices for each slave geometry.

Definition at line 236 of file ncmesh.hpp.

◆ slaves

Array<Slave> mfem::NCMesh::NCList::slaves

All MeshIds corresponding to slave faces.

Definition at line 233 of file ncmesh.hpp.


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