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

cellClassification Class Reference

Inheritance diagram for cellClassification:

Inheritance graph
[legend]
Collaboration diagram for cellClassification:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 123 of file cellClassification.H.


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 polyMesh & mesh () 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.

Enumerator:
NOTSET 
INSIDE 
OUTSIDE 
CUT 

Definition at line 133 of file cellClassification.H.

Enumeration defining the whether points are use by cells of.

a certain type.

Enumerator:
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.

Construct as copy.


Member Function Documentation

ClassName ( "cellClassification"   ) 

const polyMesh& mesh (  )  const [inline]

Definition at line 236 of file cellClassification.H.

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.

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.

void writeStats ( Ostream &  os  )  const

Write statistics on cell types to Ostream.

void operator= ( const cellClassification &   ) 


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