OpenFOAM logo
Open Source CFD Toolkit

cellClassification Class Reference

Inheritance diagram for cellClassification:

Inheritance graph
[legend]
Collaboration diagram for cellClassification:

Collaboration graph
[legend]
List of all members.

Public Types

enum  cType { NOTSET, INSIDE, OUTSIDE, CUT }
 Type of cell. More...
enum  pointStatus { UNSET, MESH, NONMESH, MIXED }
 Enumeration defining the whether points are use by cells of. More...

Public Member Functions

 ClassName ("cellClassification")
 cellClassification (const polyMesh &mesh, const meshSearch &meshQuery, const triSurfaceSearch &surfQuery, const pointField &outsidePoints)
 Construct from mesh and surface and point(s) on outside.
 cellClassification (const polyMesh &mesh, const labelList &cellType)
 Construct from mesh and type for every cell.
 cellClassification (const cellClassification &)
 Construct as copy.
const polyMeshmesh () const
label trimCutCells (const label nLayers, const label meshType, const label fillType)
label growSurface (const label meshType, const label fillType)
 Sets vertex neighbours of meshType cells to fillType.
label fillHangingCells (const label meshType, const label fillType, const label maxIter)
 Find hanging cells (cells with all points on outside) and set their.
label fillRegionEdges (const label meshType, const label fillType, const label maxIter)
 Find regionEdges and fill one neighbour. Iterate until nothing.
label fillRegionPoints (const label meshType, const label fillType, const label maxIter)
 Find regionPoints and fill all neighbours. Iterate until nothing.
void writeStats (Ostream &os) const
 Write statistics on cell types to Ostream.
void operator= (const cellClassification &)

Member Enumeration Documentation

enum cType
 

Type of cell.

Enumeration values:
NOTSET 
INSIDE 
OUTSIDE 
CUT 

Definition at line 133 of file cellClassification.H.

enum pointStatus
 

Enumeration defining the whether points are use by cells of.

a certain type.

Enumeration values:
UNSET 
MESH 
NONMESH 
MIXED 

Definition at line 146 of file cellClassification.H.


Constructor & Destructor Documentation

cellClassification const polyMesh mesh,
const meshSearch meshQuery,
const triSurfaceSearch surfQuery,
const pointField outsidePoints
 

Construct from mesh and surface and point(s) on outside.

cellClassification const polyMesh mesh,
const labelList cellType
 

Construct from mesh and type for every cell.

Used to be able to reuse filling routines below.

cellClassification const cellClassification  ) 
 

Construct as copy.


Member Function Documentation

ClassName "cellClassification"   ) 
 

label fillHangingCells const label  meshType,
const label  fillType,
const label  maxIter
 

Find hanging cells (cells with all points on outside) and set their.

type to fillType. Iterate until nothing changed. Returns total number of cells changed (in all iterations)

label fillRegionEdges const label  meshType,
const label  fillType,
const label  maxIter
 

Find regionEdges and fill one neighbour. Iterate until nothing.

changes. Returns total number of cells changed.

label fillRegionPoints const label  meshType,
const label  fillType,
const label  maxIter
 

Find regionPoints and fill all neighbours. Iterate until nothing.

changes. Returns total number of cells changed.

label growSurface const label  meshType,
const label  fillType
 

Sets vertex neighbours of meshType cells to fillType.

const polyMesh& mesh  )  const [inline]
 

Definition at line 236 of file cellClassification.H.

References Foam::label.

void operator= const cellClassification  ) 
 

label trimCutCells const label  nLayers,
const label  meshType,
const label  fillType
 

void writeStats Ostream os  )  const
 

Write statistics on cell types to Ostream.


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