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

hexRef8 Class Reference

Collaboration diagram for hexRef8:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 71 of file hexRef8.H.


Public Member Functions

 ClassName ("hexRef8")
 Runtime type information.
 hexRef8 (const polyMesh &mesh)
 Construct from mesh, read_if_present refinement data.
 hexRef8 (const polyMesh &mesh, const labelList &cellLevel, const labelList &pointLevel, const refinementHistory &history)
 Construct from mesh and un/refinement data.
 hexRef8 (const polyMesh &mesh, const labelList &cellLevel, const labelList &pointLevel)
 Construct from mesh and refinement data.
const labelIOList & cellLevel () const
const labelIOList & pointLevel () const
const refinementHistory & history () const
labelList cellPoints (const label cellI) const
 Helper:get points of a cell without using cellPoints addressing.
labelList consistentRefinement (const labelList &cellsToRefine, const bool maxSet) const
 Given valid mesh and current cell level and proposed.
labelList consistentSlowRefinement (const label maxFaceDiff, const labelList &cellsToRefine, const labelList &facesToCheck, const label maxPointDiff, const labelList &pointsToCheck) const
 Like consistentRefinement but slower:.
labelListList setRefinement (const labelList &cells, polyTopoChange &)
 Insert refinement. All selected cells will be split into 8.
void updateMesh (const mapPolyMesh &)
 Update local numbering for changed mesh.
void subset (const labelList &pointMap, const labelList &faceMap, const labelList &cellMap)
 Update local numbering for subsetted mesh.
void distribute (const mapDistributePolyMesh &)
 Update local numbering for mesh redistribution.
void checkMesh () const
 Debug: Check coupled mesh for correctness.
void checkRefinementLevels (const label maxPointDiff, const labelList &pointsToCheck) const
 Debug: Check 2:1 consistency across faces.
labelList getSplitPoints () const
 Return the points at the centre of top-level split cells.
labelList consistentUnrefinement (const labelList &pointsToUnrefine, const bool maxSet) const
 Given proposed.
void setUnrefinement (const labelList &splitPointLabels, polyTopoChange &)
 Remove some refinement. Needs to be supplied output of.
void setInstance (const fileName &inst)
bool write () const
 Force writing refinement+history to polyMesh directory.

Constructor & Destructor Documentation

hexRef8 ( const polyMesh &  mesh  ) 

Construct from mesh, read_if_present refinement data.

(from write below)

hexRef8 ( const polyMesh &  mesh,
const labelList &  cellLevel,
const labelList &  pointLevel,
const refinementHistory &  history 
)

Construct from mesh and un/refinement data.

hexRef8 ( const polyMesh &  mesh,
const labelList &  cellLevel,
const labelList &  pointLevel 
)

Construct from mesh and refinement data.


Member Function Documentation

ClassName ( "hexRef8"   ) 

Runtime type information.

const labelIOList& cellLevel (  )  const [inline]

Definition at line 357 of file hexRef8.H.

const labelIOList& pointLevel (  )  const [inline]

Definition at line 362 of file hexRef8.H.

const refinementHistory& history (  )  const [inline]

Definition at line 367 of file hexRef8.H.

labelList cellPoints ( const label  cellI  )  const

Helper:get points of a cell without using cellPoints addressing.

labelList consistentRefinement ( const labelList &  cellsToRefine,
const bool  maxSet 
) const

Given valid mesh and current cell level and proposed.

cells to refine calculate any clashes (due to 2:1) and return ok list of cells to refine. Either adds cells to refine to set (maxSet = true) or removes cells to refine (maxSet = false)

labelList consistentSlowRefinement ( const label  maxFaceDiff,
const labelList &  cellsToRefine,
const labelList &  facesToCheck,
const label  maxPointDiff,
const labelList &  pointsToCheck 
) const

Like consistentRefinement but slower:.

  • specify number of cells between consecutive refinement levels (consistentRefinement equivalent to 1)
  • specify max level difference between point-connected cells. (-1 to disable) Note that with normal 2:1 limitation (maxFaceDiff=1) there can be 8:1 size difference across point connected cells so maxPointDiff allows you to make that less. cellsToRefine : cells we're thinking about refining. It will extend this set. All refinement levels will be at least maxFaceDiff layers thick. facesToCheck : additional faces where to implement the maxFaceDiff thickness (usually only boundary faces)

labelListList setRefinement ( const labelList &  cells,
polyTopoChange &   
)

Insert refinement. All selected cells will be split into 8.

Returns per element in cells the 8 cells they were split into. Guarantees that the 0th element is the original cell label. Mapping: -split cells: 7 new ones get added from original -split faces: original gets modified; 3 new ones get added from original -added internal faces: added from original cell face(if that was internal) or created out-of-nothing (so will not get mapped!). Note: could make this inflate from point but that will allocate interpolation. -points added to split edge: added from edge start() -midpoints added: added from cellPoints[0].

void updateMesh ( const mapPolyMesh &   ) 

Update local numbering for changed mesh.

void subset ( const labelList &  pointMap,
const labelList &  faceMap,
const labelList &  cellMap 
)

Update local numbering for subsetted mesh.

Gets new-to-old maps. Not compatible with unrefinement.

void distribute ( const mapDistributePolyMesh &   ) 

Update local numbering for mesh redistribution.

void checkMesh (  )  const

Debug: Check coupled mesh for correctness.

void checkRefinementLevels ( const label  maxPointDiff,
const labelList &  pointsToCheck 
) const

Debug: Check 2:1 consistency across faces.

maxPointDiff==-1 : only check 2:1 across faces maxPointDiff!=-1 : check point-connected cells.

labelList getSplitPoints (  )  const

Return the points at the centre of top-level split cells.

that can be unsplit.

labelList consistentUnrefinement ( const labelList &  pointsToUnrefine,
const bool  maxSet 
) const

Given proposed.

splitPoints to unrefine according to calculate any clashes (due to 2:1) and return ok list of points to unrefine. Either adds points to refine to set (maxSet = true) or removes points to refine (maxSet = false)

void setUnrefinement ( const labelList &  splitPointLabels,
polyTopoChange &   
)

Remove some refinement. Needs to be supplied output of.

consistentUnrefinement. Only call if undoable set. All 8 pointCells of a split point will be combined into the lowest numbered cell of those 8.

void setInstance ( const fileName &  inst  ) 

bool write (  )  const

Force writing refinement+history to polyMesh directory.


The documentation for this class was generated from the following file:
  • src/dynamicMesh/polyTopoChange/polyTopoChange/hexRef8.H
Copyright © 2000-2007 OpenCFD Ltd