Public Member Functions | Static Public Member Functions | List of all members
pyrMatcher Class Reference

A cellMatcher for pyr cells (cellModel::PYR) More...

Inheritance diagram for pyrMatcher:
Inheritance graph
[legend]
Collaboration diagram for pyrMatcher:
Collaboration graph
[legend]

Public Member Functions

 pyrMatcher ()
 
 ~pyrMatcher ()=default
 
virtual label nVertPerCell () const
 
virtual label nFacePerCell () const
 
virtual label nMaxVertPerFace () const
 
virtual label faceHashValue () const
 
virtual bool faceSizeMatch (const faceList &, const labelList &) const
 
virtual bool matchShape (const bool checkOnly, const faceList &faces, const labelList &faceOwner, const label celli, const labelList &myFaces)
 
virtual bool isA (const faceList &faces)
 
virtual bool isA (const primitiveMesh &mesh, const label celli)
 
virtual bool matches (const primitiveMesh &mesh, const label celli, cellShape &shape)
 
- Public Member Functions inherited from cellMatcher
 cellMatcher (const label vertPerCell, const label facePerCell, const label maxVertPerFace, const word &cellModelName)
 
virtual ~cellMatcher ()=default
 
const Map< label > & localPoint () const
 
const faceListlocalFaces () const
 
const labelListfaceSize () const
 
const labelListpointMap () const
 
const labelListfaceMap () const
 
const labelListedgeFaces () const
 
const labelListListpointFaceIndex () const
 
const labelListvertLabels () const
 
const labelListfaceLabels () const
 
const cellModelmodel () const
 
void write (Ostream &os) const
 

Static Public Member Functions

static bool test (const UList< face > &faces)
 
static bool test (const primitiveMesh &mesh, const label celli)
 

Additional Inherited Members

- Protected Member Functions inherited from cellMatcher
label calcLocalFaces (const faceList &faces, const labelList &myFaces)
 
void calcEdgeAddressing (const label numVert)
 
void calcPointFaceIndex ()
 
label otherFace (const label numVert, const label v0, const label v1, const label localFacei) const
 
 cellMatcher (const cellMatcher &)=delete
 
cellMatcheroperator= (const cellMatcher &)=delete
 
- Static Protected Member Functions inherited from cellMatcher
static label edgeKey (const label numVert, const label v0, const label v1)
 
static label nextVert (const label, const label, const bool)
 
- Protected Attributes inherited from cellMatcher
Map< label > localPoint_
 
faceList localFaces_
 
labelList faceSize_
 
labelList pointMap_
 
labelList faceMap_
 
labelList edgeFaces_
 
labelListList pointFaceIndex_
 
labelList vertLabels_
 
labelList faceLabels_
 
const word cellModelName_
 
const cellModelcellModelPtr_
 

Detailed Description

A cellMatcher for pyr cells (cellModel::PYR)

See also
cellMatcher, cellModel
Source files

Definition at line 50 of file pyrMatcher.H.

Constructor & Destructor Documentation

◆ pyrMatcher()

Definition at line 120 of file pyrMatcher.C.

◆ ~pyrMatcher()

~pyrMatcher ( )
default

Member Function Documentation

◆ test() [1/2]

bool test ( const UList< face > &  faces)
static

Definition at line 107 of file pyrMatcher.C.

References Foam::checkFaceSizeMatch().

Referenced by pyrMatcher::isA().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test() [2/2]

bool test ( const primitiveMesh mesh,
const label  celli 
)
static

Definition at line 112 of file pyrMatcher.C.

References primitiveMesh::cells(), Foam::checkFaceSizeMatch(), polyMesh::faces(), and mesh.

Here is the call graph for this function:

◆ nVertPerCell()

virtual label nVertPerCell ( ) const
inlinevirtual

Implements cellMatcher.

Definition at line 96 of file pyrMatcher.H.

◆ nFacePerCell()

virtual label nFacePerCell ( ) const
inlinevirtual

Implements cellMatcher.

Definition at line 101 of file pyrMatcher.H.

◆ nMaxVertPerFace()

virtual label nMaxVertPerFace ( ) const
inlinevirtual

Implements cellMatcher.

Definition at line 106 of file pyrMatcher.H.

◆ faceHashValue()

Foam::label faceHashValue ( ) const
virtual

Implements cellMatcher.

Definition at line 290 of file pyrMatcher.C.

◆ faceSizeMatch()

bool faceSizeMatch ( const faceList meshFaces,
const labelList cellFaces 
) const
virtual

Implements cellMatcher.

Definition at line 297 of file pyrMatcher.C.

References Foam::checkFaceSizeMatch().

Here is the call graph for this function:

◆ matchShape()

bool matchShape ( const bool  checkOnly,
const faceList faces,
const labelList faceOwner,
const label  celli,
const labelList myFaces 
)
virtual

Implements cellMatcher.

Definition at line 135 of file pyrMatcher.C.

References forAll, and Foam::meshTools::otherFace().

Here is the call graph for this function:

◆ isA() [1/2]

virtual bool isA ( const faceList faces)
inlinevirtual

Implements cellMatcher.

Definition at line 124 of file pyrMatcher.H.

References pyrMatcher::test().

Here is the call graph for this function:

◆ isA() [2/2]

virtual bool isA ( const primitiveMesh mesh,
const label  celli 
)
inlinevirtual

Implements cellMatcher.

Definition at line 129 of file pyrMatcher.H.

References mesh, and pyrMatcher::test().

Here is the call graph for this function:

◆ matches()

bool matches ( const primitiveMesh mesh,
const label  celli,
cellShape shape 
)
virtual

Implements cellMatcher.

Definition at line 307 of file pyrMatcher.C.

References primitiveMesh::cells(), polyMesh::faceOwner(), polyMesh::faces(), mesh, and cellShape::reset().

Here is the call graph for this function:

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