Public Member Functions | Static Public Member Functions | List of all members
hexRef8 Class Reference

Refinement of (split) hexes using polyTopoChange. More...

Public Member Functions

 ClassName ("hexRef8")
 
 hexRef8 (const polyMesh &mesh, const bool readHistory=true)
 
 hexRef8 (const polyMesh &mesh, const labelList &cellLevel, const labelList &pointLevel, const refinementHistory &history, const scalar level0Edge=-GREAT)
 
 hexRef8 (const polyMesh &mesh, const labelList &cellLevel, const labelList &pointLevel, const scalar level0Edge=-GREAT)
 
const polyMeshmesh () const
 
const labelIOListcellLevel () const
 
const labelIOListpointLevel () const
 
const refinementHistoryhistory () const
 
scalar level0EdgeLength () const
 
label faceLevel (const label facei) const
 
labelList consistentRefinement (const labelUList &cellLevel, const labelList &cellsToRefine, const bool maxSet) const
 
labelList consistentRefinement (const labelList &cellsToRefine, const bool maxSet) const
 
labelList consistentSlowRefinement (const label maxFaceDiff, const labelList &cellsToRefine, const labelList &facesToCheck, const label maxPointDiff, const labelList &pointsToCheck) const
 
labelList consistentSlowRefinement2 (const label maxFaceDiff, const labelList &cellsToRefine, const labelList &facesToCheck) const
 
labelListList setRefinement (const labelList &cells, polyTopoChange &)
 
void updateMesh (const mapPolyMesh &)
 
void storeData (const labelList &pointsToStore, const labelList &facesToStore, const labelList &cellsToStore)
 
void updateMesh (const mapPolyMesh &, const Map< label > &pointsToRestore, const Map< label > &facesToRestore, const Map< label > &cellsToRestore)
 
void subset (const labelList &pointMap, const labelList &faceMap, const labelList &cellMap)
 
void distribute (const mapDistributePolyMesh &)
 
void checkMesh () const
 
void checkRefinementLevels (const label maxPointDiff, const labelList &pointsToCheck) const
 
const cellShapeListcellShapes () const
 
labelList getSplitPoints () const
 
labelList consistentUnrefinement (const labelList &pointsToUnrefine, const bool maxSet) const
 
void setUnrefinement (const labelList &splitPointLabels, polyTopoChange &)
 
void setInstance (const fileName &inst)
 
bool write (const bool valid=true) const
 

Static Public Member Functions

static void removeFiles (const polyMesh &)
 

Detailed Description

Refinement of (split) hexes using polyTopoChange.

Source files

Definition at line 63 of file hexRef8.H.

Constructor & Destructor Documentation

◆ hexRef8() [1/3]

hexRef8 ( const polyMesh mesh,
const bool  readHistory = true 
)
explicit

◆ hexRef8() [2/3]

hexRef8 ( const polyMesh mesh,
const labelList cellLevel,
const labelList pointLevel,
const refinementHistory history,
const scalar  level0Edge = -GREAT 
)

Definition at line 2034 of file hexRef8.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ hexRef8() [3/3]

hexRef8 ( const polyMesh mesh,
const labelList cellLevel,
const labelList pointLevel,
const scalar  level0Edge = -GREAT 
)

Definition at line 2143 of file hexRef8.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

Member Function Documentation

◆ ClassName()

ClassName ( "hexRef8"  )

◆ mesh()

const polyMesh& mesh ( ) const
inline

Definition at line 388 of file hexRef8.H.

◆ cellLevel()

const labelIOList& cellLevel ( ) const
inline

Definition at line 393 of file hexRef8.H.

◆ pointLevel()

const labelIOList& pointLevel ( ) const
inline

Definition at line 398 of file hexRef8.H.

◆ history()

const refinementHistory& history ( ) const
inline

Definition at line 403 of file hexRef8.H.

◆ level0EdgeLength()

scalar level0EdgeLength ( ) const
inline

Definition at line 409 of file hexRef8.H.

References dimensioned::value().

Here is the call graph for this function:

◆ faceLevel()

Foam::label faceLevel ( const label  facei) const

Definition at line 792 of file hexRef8.C.

References f().

Here is the call graph for this function:

◆ consistentRefinement() [1/2]

Foam::labelList consistentRefinement ( const labelUList cellLevel,
const labelList cellsToRefine,
const bool  maxSet 
) const

Definition at line 2245 of file hexRef8.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Pout, and Foam::reduce().

Referenced by hexRef8::consistentRefinement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ consistentRefinement() [2/2]

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

Definition at line 437 of file hexRef8.H.

References hexRef8::consistentRefinement().

Here is the call graph for this function:

◆ consistentSlowRefinement()

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

◆ consistentSlowRefinement2()

Foam::labelList consistentSlowRefinement2 ( const label  maxFaceDiff,
const labelList cellsToRefine,
const labelList facesToCheck 
) const

◆ setRefinement()

Foam::labelListList setRefinement ( const labelList cells,
polyTopoChange meshMod 
)

◆ updateMesh() [1/2]

void updateMesh ( const mapPolyMesh map)

Definition at line 4226 of file hexRef8.C.

◆ storeData()

void storeData ( const labelList pointsToStore,
const labelList facesToStore,
const labelList cellsToStore 
)

Definition at line 4199 of file hexRef8.C.

References List::clear(), and forAll.

Here is the call graph for this function:

◆ updateMesh() [2/2]

void updateMesh ( const mapPolyMesh map,
const Map< label > &  pointsToRestore,
const Map< label > &  facesToRestore,
const Map< label > &  cellsToRestore 
)

◆ subset()

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

◆ distribute()

void distribute ( const mapDistributePolyMesh map)

◆ checkMesh()

void checkMesh ( ) const

◆ checkRefinementLevels()

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

◆ cellShapes()

const Foam::cellShapeList & cellShapes ( ) const

Definition at line 5000 of file hexRef8.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::nl, and Foam::Pout.

Here is the call graph for this function:

◆ getSplitPoints()

Foam::labelList getSplitPoints ( ) const

Definition at line 5060 of file hexRef8.C.

References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Pout, and Foam::Zero.

Here is the call graph for this function:

◆ consistentUnrefinement()

Foam::labelList consistentUnrefinement ( const labelList pointsToUnrefine,
const bool  maxSet 
) const

◆ setUnrefinement()

void setUnrefinement ( const labelList splitPointLabels,
polyTopoChange meshMod 
)

◆ setInstance()

void setInstance ( const fileName inst)

Definition at line 1727 of file hexRef8.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.

Here is the call graph for this function:

◆ write()

bool write ( const bool  valid = true) const

Definition at line 5688 of file hexRef8.C.

References refinementHistory::removeFiles().

Here is the call graph for this function:

◆ removeFiles()

void removeFiles ( const polyMesh mesh)
static

Definition at line 5708 of file hexRef8.C.

References Foam::expressions::patchExpr::debug, DebugVar, Foam::exists(), polyMesh::facesInstance(), mesh, polyMesh::meshSubDir, IOobject::path(), refinementHistory::removeFiles(), and Foam::rm().

Referenced by meshRefinement::removeFiles().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: