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 polyMesh & | mesh () const |
const labelIOList & | cellLevel () const |
const labelIOList & | pointLevel () const |
const refinementHistory & | history () 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 cellShapeList & | cellShapes () 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 &) |
Refinement of (split) hexes using polyTopoChange.
Definition at line 1920 of file hexRef8.C.
References Foam::abort(), refinementHistory::active(), hexRef8::checkMesh(), hexRef8::checkRefinementLevels(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, primitiveMesh::nCells(), primitiveMesh::nPoints(), IOobject::objectPath(), refinementHistory::read(), IOobject::READ_IF_PRESENT, IOobject::readOpt(), IOobject::typeHeaderOk(), and refinementHistory::visibleCells().
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.
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.
ClassName | ( | "hexRef8" | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 409 of file hexRef8.H.
References dimensioned::value().
Foam::label faceLevel | ( | const label | facei | ) | const |
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().
Definition at line 437 of file hexRef8.H.
References hexRef8::consistentRefinement().
Foam::labelList consistentSlowRefinement | ( | const label | maxFaceDiff, |
const labelList & | cellsToRefine, | ||
const labelList & | facesToCheck, | ||
const label | maxPointDiff, | ||
const labelList & | pointsToCheck | ||
) | const |
Definition at line 2301 of file hexRef8.C.
References Foam::abort(), DynamicList::append(), DynamicList::clear(), Foam::BitOps::count(), refinementData::count(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::findIndices(), forAll, forAllConstIters(), FaceCellWave< Type, TrackingData >::iterate(), Foam::labelMin, Foam::mag(), Foam::max(), Foam::nl, Foam::Pout, Foam::reduce(), DynamicList::setCapacity(), FaceCellWave< Type, TrackingData >::setFaceInfo(), DynamicList::shrink(), syncTools::swapBoundaryFaceList(), syncTools::syncPointList(), refinementData::updateFace(), and Foam::Zero.
Foam::labelList consistentSlowRefinement2 | ( | const label | maxFaceDiff, |
const labelList & | cellsToRefine, | ||
const labelList & | facesToCheck | ||
) | const |
Definition at line 2785 of file hexRef8.C.
References Foam::abort(), DynamicList::append(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::findIndices(), forAll, HashSet::insert(), Foam::nl, IOobject::objectPath(), Foam::Pout, FaceCellWave< Type, TrackingData >::propagationTol(), Foam::reduce(), DynamicList::shrink(), bitSet::test(), and regIOobject::write().
Foam::labelListList setRefinement | ( | const labelList & | cells, |
polyTopoChange & | meshMod | ||
) |
Definition at line 3185 of file hexRef8.C.
References Foam::abort(), DynamicList::append(), Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, forAll, HashSet::insert(), Foam::labelMax, Foam::labelMin, Foam::max(), Foam::min(), OFstream::name(), Foam::nl, IOobject::objectPath(), Foam::Pout, bitSet::set(), polyTopoChange::setAction(), List::setSize(), syncTools::swapBoundaryFaceList(), syncTools::syncBoundaryFacePositions(), syncTools::syncEdgeList(), syncTools::syncEdgePositions(), syncTools::syncFaceList(), bitSet::test(), List::transfer(), bitSet::unset(), regIOobject::write(), Foam::meshTools::writeOBJ(), and Foam::Zero.
void updateMesh | ( | const mapPolyMesh & | map | ) |
void storeData | ( | const labelList & | pointsToStore, |
const labelList & | facesToStore, | ||
const labelList & | cellsToStore | ||
) |
Definition at line 4199 of file hexRef8.C.
References List::clear(), and forAll.
void updateMesh | ( | const mapPolyMesh & | map, |
const Map< label > & | pointsToRestore, | ||
const Map< label > & | facesToRestore, | ||
const Map< label > & | cellsToRestore | ||
) |
Definition at line 4238 of file hexRef8.C.
References Foam::abort(), mapPolyMesh::cellMap(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, forAllConstIters(), newPointi, mapPolyMesh::nOldCells(), mapPolyMesh::nOldPoints(), mapPolyMesh::pointMap(), Foam::Pout, Foam::reorder(), mapPolyMesh::reverseCellMap(), mapPolyMesh::reversePointMap(), and List::transfer().
Definition at line 4428 of file hexRef8.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::faceMap(), Foam::FatalError, FatalErrorInFunction, forAll, newPointi, Foam::nl, Foam::Pout, List::transfer(), and WarningInFunction.
void distribute | ( | const mapDistributePolyMesh & | map | ) |
Definition at line 4511 of file hexRef8.C.
References Foam::expressions::patchExpr::debug, mapDistributePolyMesh::distributeCellData(), mapDistributePolyMesh::distributePointData(), Foam::endl(), and Foam::Pout.
void checkMesh | ( | ) | const |
Definition at line 4539 of file hexRef8.C.
References Foam::abort(), polyPatch::coupled(), Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, forAll, HashTable::insert(), Foam::mag(), patchIdentifier::name(), IOstream::name(), patches, Foam::Pout, polyPatch::start(), and syncTools::swapBoundaryFaceList().
Referenced by hexRef8::hexRef8().
void checkRefinementLevels | ( | const label | maxPointDiff, |
const labelList & | pointsToCheck | ||
) | const |
Definition at line 4748 of file hexRef8.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::labelMax, Foam::labelMin, Foam::mag(), Foam::max(), Foam::nl, Foam::Pout, syncTools::swapBoundaryFaceList(), syncTools::syncPointList(), and Foam::Zero.
Referenced by hexRef8::hexRef8().
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.
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.
Foam::labelList consistentUnrefinement | ( | const labelList & | pointsToUnrefine, |
const bool | maxSet | ||
) | const |
Definition at line 5264 of file hexRef8.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, PackedList::get(), Foam::Pout, Foam::reduce(), bitSet::set(), syncTools::swapBoundaryFaceList(), bitSet::test(), and bitSet::unset().
void setUnrefinement | ( | const labelList & | splitPointLabels, |
polyTopoChange & | meshMod | ||
) |
Definition at line 5487 of file hexRef8.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, HashSet::insert(), Foam::min(), Foam::nl, IOobject::objectPath(), pFaces, Foam::Pout, and regIOobject::write().
void setInstance | ( | const fileName & | inst | ) |
Definition at line 1727 of file hexRef8.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.
Definition at line 5688 of file hexRef8.C.
References refinementHistory::removeFiles().
|
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().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.