OpenFOAM logo
Open Source CFD Toolkit

cellCuts Class Reference

Inheritance diagram for cellCuts:

Inheritance graph
[legend]
Collaboration diagram for cellCuts:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClassName ("cellCuts")
 Runtime type information.
 cellCuts (const polyMesh &mesh, const labelList &cutCells, const labelList &meshVerts, const labelList &meshEdges, const scalarField &meshEdgeWeights)
 Construct from cells to cut and pattern of cuts.
 cellCuts (const polyMesh &mesh, const labelList &meshVerts, const labelList &meshEdges, const scalarField &meshEdgeWeights)
 Construct from pattern of cuts. Detect cells to cut.
 cellCuts (const polyMesh &mesh, const labelList &cellLabels, const labelListList &cellLoops, const List< scalarField > &cellEdgeWeights)
 Construct from complete cellLoops through specified cells.
 cellCuts (const polyMesh &mesh, const cellLooper &cellCutter, const List< refineCell > &refCells)
 Construct from list of cells to cut and direction to cut in.
 cellCuts (const polyMesh &mesh, const cellLooper &cellCutter, const labelList &cellLabels, const List< plane > &cutPlanes)
 Construct from list of cells to cut and plane to cut with and.
 cellCuts (const polyMesh &mesh, const boolList &pointIsCut, const boolList &edgeIsCut, const scalarField &edgeWeight, const Map< edge > &faceSplitCut, const labelListList &cellLoops, const label nLoops, const labelListList &cellAnchorPoints)
 Construct from components.
 ~cellCuts ()
void clearOut ()
 Clear out demand driven storage.
const boolListpointIsCut () const
 Is mesh point cut.
const boolListedgeIsCut () const
 Is edge cut.
const scalarFieldedgeWeight () const
 If edge is cut gives weight (ratio between start() and end()).
const labelListListfaceCuts () const
 Cuts per existing face (includes those along edge of face).
const Map< edge > & faceSplitCut () const
 Gives for split face the two cuts that split the face into two.
const labelListListcellLoops () const
 For each cut cell the cut along the circumference.
label nLoops () const
 Number of valid cell loops.
const labelListListcellAnchorPoints () const
 For each cut cell the points on the 'anchor' side of the cell.
pointField loopPoints (const label cellI) const
 Returns coordinates of points on loop for given cell.
labelList nonAnchorPoints (const labelList &cellPoints, const labelList &anchorPoints, const labelList &loop) const
 Invert anchor point selection.
void flip (const label cellI)
 Flip loop for cellI. Updates anchor points as well.
void flipLoopOnly (const label cellI)
 Flip loop for cellI. Does not update anchors. Use with care.
void writeOBJ (Ostream &os, const pointField &loopPoints, label &vertI) const
 debugging:Write list of cuts to stream in OBJ format
void writeOBJ (Ostream &os) const
 debugging:Write all of cuts to stream in OBJ format
void writeCellOBJ (const fileName &dir, const label cellI) const
 debugging:Write edges of cell and loop

Constructor & Destructor Documentation

cellCuts const polyMesh mesh,
const labelList cutCells,
const labelList meshVerts,
const labelList meshEdges,
const scalarField meshEdgeWeights
 

Construct from cells to cut and pattern of cuts.

cellCuts const polyMesh mesh,
const labelList meshVerts,
const labelList meshEdges,
const scalarField meshEdgeWeights
 

Construct from pattern of cuts. Detect cells to cut.

cellCuts const polyMesh mesh,
const labelList cellLabels,
const labelListList cellLoops,
const List< scalarField > &  cellEdgeWeights
 

Construct from complete cellLoops through specified cells.

Checks for consistency. Constructs cut-cut addressing and cellAnchorPoints.

cellCuts const polyMesh mesh,
const cellLooper cellCutter,
const List< refineCell > &  refCells
 

Construct from list of cells to cut and direction to cut in.

(always through cell centre) and celllooper.

cellCuts const polyMesh mesh,
const cellLooper cellCutter,
const labelList cellLabels,
const List< plane > &  cutPlanes
 

Construct from list of cells to cut and plane to cut with and.

celllooper. (constructor above always cuts through cell centre)

cellCuts const polyMesh mesh,
const boolList pointIsCut,
const boolList edgeIsCut,
const scalarField edgeWeight,
const Map< edge > &  faceSplitCut,
const labelListList cellLoops,
const label  nLoops,
const labelListList cellAnchorPoints
 

Construct from components.

~cellCuts  ) 
 


Member Function Documentation

const labelListList& cellAnchorPoints  )  const [inline]
 

For each cut cell the points on the 'anchor' side of the cell.

Definition at line 633 of file cellCuts.H.

const labelListList& cellLoops  )  const [inline]
 

For each cut cell the cut along the circumference.

Definition at line 621 of file cellCuts.H.

ClassName "cellCuts"   ) 
 

Runtime type information.

void clearOut  ) 
 

Clear out demand driven storage.

const boolList& edgeIsCut  )  const [inline]
 

Is edge cut.

Definition at line 590 of file cellCuts.H.

References Foam::pointField.

const scalarField& edgeWeight  )  const [inline]
 

If edge is cut gives weight (ratio between start() and end()).

Definition at line 596 of file cellCuts.H.

References Foam::labelList.

const labelListList& faceCuts  )  const [inline]
 

Cuts per existing face (includes those along edge of face).

Cuts in no particular order

Definition at line 605 of file cellCuts.H.

const Map<edge>& faceSplitCut  )  const [inline]
 

Gives for split face the two cuts that split the face into two.

Definition at line 615 of file cellCuts.H.

References Foam::label, and Foam::pointField.

void flip const label  cellI  ) 
 

Flip loop for cellI. Updates anchor points as well.

void flipLoopOnly const label  cellI  ) 
 

Flip loop for cellI. Does not update anchors. Use with care.

(only if you're sure loop orientation is wrong)

pointField loopPoints const label  cellI  )  const
 

Returns coordinates of points on loop for given cell.

Uses cellLoops_ and edgeWeight_

label nLoops  )  const [inline]
 

Number of valid cell loops.

Definition at line 627 of file cellCuts.H.

labelList nonAnchorPoints const labelList cellPoints,
const labelList anchorPoints,
const labelList loop
const
 

Invert anchor point selection.

const boolList& pointIsCut  )  const [inline]
 

Is mesh point cut.

Definition at line 584 of file cellCuts.H.

References Foam::labelListList.

void writeCellOBJ const fileName dir,
const label  cellI
const
 

debugging:Write edges of cell and loop

void writeOBJ Ostream os  )  const
 

debugging:Write all of cuts to stream in OBJ format

void writeOBJ Ostream os,
const pointField loopPoints,
label vertI
const
 

debugging:Write list of cuts to stream in OBJ format


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org