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

A cellMatcher for hex cells (cellModel::HEX). More...

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

Public Member Functions

 hexMatcher ()
 
 ~hexMatcher ()=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 hex cells (cellModel::HEX).

See also
cellMatcher, cellModel
Source files

Definition at line 50 of file hexMatcher.H.

Constructor & Destructor Documentation

◆ hexMatcher()

Definition at line 93 of file hexMatcher.C.

◆ ~hexMatcher()

~hexMatcher ( )
default

Member Function Documentation

◆ test() [1/2]

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

Definition at line 80 of file hexMatcher.C.

References Foam::checkFaceSizeMatch().

Referenced by topoCellLooper::cut(), hexMatcher::isA(), and directionInfo::updateCell().

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 85 of file hexMatcher.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 hexMatcher.H.

◆ nFacePerCell()

virtual label nFacePerCell ( ) const
inlinevirtual

Implements cellMatcher.

Definition at line 101 of file hexMatcher.H.

◆ nMaxVertPerFace()

virtual label nMaxVertPerFace ( ) const
inlinevirtual

Implements cellMatcher.

Definition at line 106 of file hexMatcher.H.

◆ faceHashValue()

Foam::label faceHashValue ( ) const
virtual

Implements cellMatcher.

Definition at line 295 of file hexMatcher.C.

◆ faceSizeMatch()

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

Implements cellMatcher.

Definition at line 302 of file hexMatcher.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 108 of file hexMatcher.C.

References 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 hexMatcher.H.

References hexMatcher::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 hexMatcher.H.

References mesh, and hexMatcher::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 312 of file hexMatcher.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: