Public Member Functions | Private Member Functions | Private Attributes
walkPatch Class Reference

Collection of static functions to do various simple patch related things. More...

Collaboration diagram for walkPatch:
Collaboration graph
[legend]

Public Member Functions

 ClassName ("walkPatch")
 
 walkPatch (const primitivePatch &pp, const labelList &faceZone, const bool reverse, const label faceI, const label enterVertI, boolList &visited)
 Construct from components. More...
 
const dynamicLabelList & visitOrder () const
 
const dynamicLabelList & indexInFace () const
 
 ClassName ("walkPatch")
 
 walkPatch (const primitivePatch &pp, const labelList &faceZone, const bool reverse, const label faceI, const label enterVertI, boolList &visited)
 Construct from components. More...
 
const DynamicList< label > & visitOrder () const
 
const DynamicList< label > & indexInFace () const
 

Private Member Functions

label getNeighbour (const label faceI, const label fp, const label v0, const label v1) const
 Get other face using v0, v1. Returns -1 if none. More...
 
void faceToFace (const labelList &changedFaces, const labelList &enterVerts, labelList &nbrFaces, labelList &nbrEnterVerts)
 Gets labels of changed faces and enterVertices on faces. More...
 
 walkPatch (const walkPatch &)
 Disallow default bitwise copy construct. More...
 
void operator= (const walkPatch &)
 Disallow default bitwise assignment. More...
 
label getNeighbour (const label faceI, const label fp, const label v0, const label v1) const
 Get other face using v0, v1. Returns -1 if none. More...
 
void faceToFace (const labelList &changedFaces, const labelList &enterVerts, labelList &nbrFaces, labelList &nbrEnterVerts)
 Gets labels of changed faces and enterVertices on faces. More...
 
 walkPatch (const walkPatch &)
 Disallow default bitwise copy construct. More...
 
void operator= (const walkPatch &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const primitivePatchpp_
 Reference to patch to walk on. More...
 
const labelListfaceZone_
 Reference to zones. More...
 
const bool reverse_
 How to walk through faces. More...
 
boolListvisited_
 Reference to list to mark off visited faces. More...
 
dynamicLabelList visitOrder_
 
dynamicLabelList indexInFace_
 
DynamicList< labelvisitOrder_
 
DynamicList< labelindexInFace_
 

Detailed Description

Collection of static functions to do various simple patch related things.

Source files

Source files

Definition at line 49 of file walkPatch.H.

Constructor & Destructor Documentation

◆ walkPatch() [1/4]

walkPatch ( const walkPatch )
private

Disallow default bitwise copy construct.

◆ walkPatch() [2/4]

walkPatch ( const primitivePatch pp,
const labelList faceZone,
const bool  reverse,
const label  faceI,
const label  enterVertI,
boolList visited 
)

Construct from components.

Definition at line 189 of file walkPatch.C.

◆ walkPatch() [3/4]

walkPatch ( const walkPatch )
private

Disallow default bitwise copy construct.

◆ walkPatch() [4/4]

walkPatch ( const primitivePatch pp,
const labelList faceZone,
const bool  reverse,
const label  faceI,
const label  enterVertI,
boolList visited 
)

Construct from components.

Member Function Documentation

◆ getNeighbour() [1/2]

Foam::label getNeighbour ( const label  faceI,
const label  fp,
const label  v0,
const label  v1 
) const
private

Get other face using v0, v1. Returns -1 if none.

Definition at line 39 of file walkPatch.C.

References Foam::abort(), Foam::constant::electromagnetic::e, Foam::FatalError, FatalErrorIn, forAll, and List::size().

Here is the call graph for this function:

◆ faceToFace() [1/2]

void faceToFace ( const labelList changedFaces,
const labelList enterVerts,
labelList nbrFaces,
labelList nbrEnterVerts 
)
private

Gets labels of changed faces and enterVertices on faces.

Returns labels of faces changed and enterVertices on them.

Definition at line 128 of file walkPatch.C.

References List::append(), f(), Foam::findIndex(), forAll, and List::setSize().

Here is the call graph for this function:

◆ operator=() [1/2]

void operator= ( const walkPatch )
private

Disallow default bitwise assignment.

◆ ClassName() [1/2]

ClassName ( "walkPatch"  )

◆ visitOrder() [1/2]

const dynamicLabelList& visitOrder ( ) const
inline

Definition at line 124 of file walkPatch.H.

References walkPatch::visitOrder_.

◆ indexInFace() [1/2]

const dynamicLabelList& indexInFace ( ) const
inline

Definition at line 129 of file walkPatch.H.

References walkPatch::indexInFace_.

◆ getNeighbour() [2/2]

label getNeighbour ( const label  faceI,
const label  fp,
const label  v0,
const label  v1 
) const
private

Get other face using v0, v1. Returns -1 if none.

◆ faceToFace() [2/2]

void faceToFace ( const labelList changedFaces,
const labelList enterVerts,
labelList nbrFaces,
labelList nbrEnterVerts 
)
private

Gets labels of changed faces and enterVertices on faces.

Returns labels of faces changed and enterVertices on them.

◆ operator=() [2/2]

void operator= ( const walkPatch )
private

Disallow default bitwise assignment.

◆ ClassName() [2/2]

ClassName ( "walkPatch"  )

◆ visitOrder() [2/2]

const DynamicList<label>& visitOrder ( ) const
inline

Definition at line 124 of file walkPatch.H.

References walkPatch::visitOrder_.

◆ indexInFace() [2/2]

const DynamicList<label>& indexInFace ( ) const
inline

Definition at line 129 of file walkPatch.H.

References walkPatch::indexInFace_.

Field Documentation

◆ pp_

const primitivePatch & pp_
private

Reference to patch to walk on.

Definition at line 54 of file walkPatch.H.

◆ faceZone_

const labelList & faceZone_
private

Reference to zones.

Definition at line 57 of file walkPatch.H.

◆ reverse_

const bool reverse_
private

How to walk through faces.

Definition at line 60 of file walkPatch.H.

◆ visited_

boolList & visited_
private

Reference to list to mark off visited faces.

Definition at line 63 of file walkPatch.H.

◆ visitOrder_ [1/2]

dynamicLabelList visitOrder_
private

Definition at line 67 of file walkPatch.H.

Referenced by walkPatch::visitOrder().

◆ indexInFace_ [1/2]

dynamicLabelList indexInFace_
private

Definition at line 70 of file walkPatch.H.

Referenced by walkPatch::indexInFace().

◆ visitOrder_ [2/2]

DynamicList<label> visitOrder_
private

Definition at line 67 of file walkPatch.H.

◆ indexInFace_ [2/2]

DynamicList<label> indexInFace_
private

Definition at line 70 of file walkPatch.H.


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