OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

cellLooper Class Reference

Inheritance diagram for cellLooper:

Inheritance graph
[legend]
Collaboration diagram for cellLooper:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 78 of file cellLooper.H.


Public Member Functions

 TypeName ("cellLooper")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, cellLooper, word,(const polyMesh &mesh),(mesh))
 cellLooper (const polyMesh &mesh)
 Construct from components.
autoPtr< cellLooper > clone () const
 Clone.
virtual ~cellLooper ()
virtual bool cut (const vector &refDir, const label cellI, const boolList &vertIsCut, const boolList &edgeIsCut, const scalarField &edgeWeight, labelList &loop, scalarField &loopWeights) const =0
 Create cut along circumference of cellI. Gets current mesh cuts.
virtual bool cut (const plane &cutPlane, const label cellI, const boolList &vertIsCut, const boolList &edgeIsCut, const scalarField &edgeWeight, labelList &loop, scalarField &loopWeights) const =0
 Same but now also base point of cut provided (instead of always.

Static Public Member Functions

static autoPtr< cellLooper > New (const word &type, const polyMesh &mesh)
 Return a reference to the selected cellLooper.

Protected Member Functions

labelList getVertFacesNonEdge (const label cellI, const label edgeI, const label vertI) const
 Get faces (on cell) connected to vertI which are not using edgeI.
label getFirstVertEdge (const label faceI, const label vertI) const
 Get first edge connected to vertI and on faceI.
labelList getVertEdgesNonFace (const label cellI, const label faceI, const label vertI) const
 Get edges (on cell) connected to vertI which are not on faceI.
label getMisAlignedEdge (const vector &refDir, const label cellI) const
 Return edge from cellEdges that is most perpendicular.

Constructor & Destructor Documentation

cellLooper ( const polyMesh &  mesh  ) 

Construct from components.

virtual ~cellLooper (  )  [virtual]


Member Function Documentation

labelList getVertFacesNonEdge ( const label  cellI,
const label  edgeI,
const label  vertI 
) const [protected]

Get faces (on cell) connected to vertI which are not using edgeI.

label getFirstVertEdge ( const label  faceI,
const label  vertI 
) const [protected]

Get first edge connected to vertI and on faceI.

labelList getVertEdgesNonFace ( const label  cellI,
const label  faceI,
const label  vertI 
) const [protected]

Get edges (on cell) connected to vertI which are not on faceI.

label getMisAlignedEdge ( const vector &  refDir,
const label  cellI 
) const [protected]

Return edge from cellEdges that is most perpendicular.

to refinement direction.

TypeName ( "cellLooper"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
cellLooper  ,
word  ,
(const polyMesh &mesh)  ,
(mesh)   
)

autoPtr<cellLooper> clone (  )  const [inline]

Clone.

Definition at line 156 of file cellLooper.H.

static autoPtr<cellLooper> New ( const word &  type,
const polyMesh &  mesh 
) [static]

Return a reference to the selected cellLooper.

virtual bool cut ( const vector &  refDir,
const label  cellI,
const boolList &  vertIsCut,
const boolList &  edgeIsCut,
const scalarField &  edgeWeight,
labelList &  loop,
scalarField &  loopWeights 
) const [pure virtual]

Create cut along circumference of cellI. Gets current mesh cuts.

vertIsCut, edgeIsCut, edgeWeight). Cut along circumference is expressed as cellVertCut, cellEdgeToWeight. Returns true if succesfull. Still might not be compatible with existing cuts but this should be handled by caller).

Implemented in geomCellLooper, hexCellLooper, and topoCellLooper.

virtual bool cut ( const plane &  cutPlane,
const label  cellI,
const boolList &  vertIsCut,
const boolList &  edgeIsCut,
const scalarField &  edgeWeight,
labelList &  loop,
scalarField &  loopWeights 
) const [pure virtual]

Same but now also base point of cut provided (instead of always.

cell centre)

Implemented in geomCellLooper, hexCellLooper, and topoCellLooper.


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