OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

wedgeMatcher Class Reference

A cellMatcher for wedge cells. More...

Inheritance diagram for wedgeMatcher:
Collaboration diagram for wedgeMatcher:

List of all members.


Public Member Functions

 wedgeMatcher ()
 Construct null.
 ~wedgeMatcher ()
virtual label nVertPerCell () const
virtual label nFacePerCell () const
virtual label nMaxVertPerFace () const
virtual label faceHashValue () const
 Hash value of all face sizes of this shape. Can be used for.
virtual bool faceSizeMatch (const faceList &, const labelList &) const
 Check whether number of face sizes match the shape.
virtual bool matchShape (const bool checkOnly, const faceList &faces, const labelList &faceOwner, const label cellI, const labelList &myFaces)
 Low level shape recognition. Return true if matches.
virtual bool isA (const primitiveMesh &mesh, const label cellI)
 Exact match. Uses faceSizeMatch.
virtual bool isA (const faceList &)
 Exact match given all the faces forming a cell. No checks.
virtual bool matches (const primitiveMesh &mesh, const label cellI, cellShape &shape)
 Like isA but also constructs a cellShape (if shape matches).

Detailed Description

A cellMatcher for wedge cells.

See also:
cellMatcher
Source files

Definition at line 47 of file wedgeMatcher.H.


Constructor & Destructor Documentation

wedgeMatcher (  ) 

Construct null.

Definition at line 32 of file wedgeMatcher.C.

~wedgeMatcher (  ) 

Definition at line 46 of file wedgeMatcher.C.


Member Function Documentation

virtual label nVertPerCell (  )  const [inline, virtual]

Implements cellMatcher.

Definition at line 82 of file wedgeMatcher.H.

virtual label nFacePerCell (  )  const [inline, virtual]

Implements cellMatcher.

Definition at line 87 of file wedgeMatcher.H.

virtual label nMaxVertPerFace (  )  const [inline, virtual]

Implements cellMatcher.

Definition at line 92 of file wedgeMatcher.H.

Foam::label faceHashValue (  )  const [virtual]

Hash value of all face sizes of this shape. Can be used for.

quick initial recognition.

Implements cellMatcher.

Definition at line 315 of file wedgeMatcher.C.

bool faceSizeMatch ( const faceList &  ,
const labelList &   
) const [virtual]

Check whether number of face sizes match the shape.

Implements cellMatcher.

Definition at line 322 of file wedgeMatcher.C.

bool matchShape ( const bool  checkOnly,
const faceList &  faces,
const labelList &  faceOwner,
const label  cellI,
const labelList &  myFaces 
) [virtual]

Low level shape recognition. Return true if matches.

Works in detection mode only (checkOnly=true) or in exact matching. Returns true and sets vertLabels_. Needs faces, faceOwner of all faces in 'mesh' and cell number and labels of faces for this cell. cellI only used in combination with faceOwner to detect owner status.

Implements cellMatcher.

Definition at line 53 of file wedgeMatcher.C.

bool isA ( const primitiveMesh &  mesh,
const label  cellI 
) [virtual]

Exact match. Uses faceSizeMatch.

Returns true if cell matches shape exactly.

Implements cellMatcher.

Definition at line 363 of file wedgeMatcher.C.

bool isA ( const faceList &   )  [virtual]

Exact match given all the faces forming a cell. No checks.

on whether faces match up and form a closed shape.

Implements cellMatcher.

Definition at line 376 of file wedgeMatcher.C.

bool matches ( const primitiveMesh &  mesh,
const label  cellI,
cellShape &  shape 
) [virtual]

Like isA but also constructs a cellShape (if shape matches).

Implements cellMatcher.

Definition at line 391 of file wedgeMatcher.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd