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

hexCellLooper Class Reference

Implementation of cellLooper. More...

Inheritance diagram for hexCellLooper:
Collaboration diagram for hexCellLooper:

List of all members.


Public Member Functions

 TypeName ("hexCellLooper")
 Runtime type information.
 hexCellLooper (const polyMesh &mesh)
 Construct from components.
virtual ~hexCellLooper ()
virtual bool cut (const vector &refDir, const label cellI, const boolList &vertIsCut, const boolList &edgeIsCut, const scalarField &edgeWeight, labelList &loop, scalarField &loopWeights) const
 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
 Same but now also base point of cut provided (instead of always.

Protected Attributes

const cellModel & hex_
 Reference to hex cell shape.

Detailed Description

Implementation of cellLooper.

This one walks hexes in a topological way:

  • cross edge to other face
  • cross face by walking edge-point-edge across to reach the other side. (edges are always cut through the middle)

For anything else (tet, prism, .. poly) it will use geomCellLooper (which does a purely geometric cut using a plane through cell centre)

Source files

Definition at line 56 of file hexCellLooper.H.


Constructor & Destructor Documentation

hexCellLooper ( const polyMesh &  mesh  ) 

Construct from components.

Definition at line 152 of file hexCellLooper.C.

~hexCellLooper (  )  [virtual]

Definition at line 161 of file hexCellLooper.C.


Member Function Documentation

TypeName ( "hexCellLooper"   ) 

Runtime type information.

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

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

Cut along circumference is expressed as loop of cuts plus weights for cuts along edges (only valid for edge cuts). Return true if successful cut.

Reimplemented from geomCellLooper.

Reimplemented in topoCellLooper.

Definition at line 168 of file hexCellLooper.C.

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

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

cell centre)

Reimplemented from geomCellLooper.

Reimplemented in topoCellLooper.

Definition at line 273 of file hexCellLooper.C.


Member Data Documentation

const cellModel& hex_ [protected]

Reference to hex cell shape.

Definition at line 66 of file hexCellLooper.H.


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