Remove the edges and faces of a polyMesh whilst satisfying the given mesh quality criteria. More...
Public Member Functions | |
ClassName ("polyMeshFilter") | |
Runtime type information. More... | |
polyMeshFilter (const fvMesh &mesh) | |
Construct from fvMesh. More... | |
polyMeshFilter (const fvMesh &mesh, const labelList &pointPriority) | |
Construct from fvMesh and a label list of point priorities. More... | |
polyMeshFilter (const fvMesh &mesh, const labelList &pointPriority, const dictionary &dict) | |
Construct from fvMesh and a label list of point priorities. More... | |
~polyMeshFilter () | |
Destructor. More... | |
const autoPtr< fvMesh > & | filteredMesh () const |
Return reference to the filtered mesh. Does not check if the. More... | |
const autoPtr< labelList > & | pointPriority () const |
Return the new pointPriority list. More... | |
label | filter (const label nOriginalBadFaces) |
Filter edges and faces. More... | |
label | filter (const faceSet &fSet) |
Filter all faces that are in the face set. More... | |
label | filterEdges (const label nOriginalBadFaces) |
Filter edges only. More... | |
Static Public Member Functions | |
static autoPtr< fvMesh > | copyMesh (const fvMesh &mesh) |
Return a copy of an fvMesh. More... | |
static void | copySets (const polyMesh &oldMesh, const polyMesh &newMesh) |
Copy loaded topoSets from the old mesh to the new mesh. More... | |
static void | updateSets (const mapPolyMesh &map) |
Update the loaded topoSets. More... | |
Remove the edges and faces of a polyMesh whilst satisfying the given mesh quality criteria.
Definition at line 62 of file polyMeshFilter.H.
|
explicit |
Construct from fvMesh.
Definition at line 892 of file polyMeshFilter.C.
References Foam::Info, and polyMeshFilterSettings::writeSettings().
polyMeshFilter | ( | const fvMesh & | mesh, |
const labelList & | pointPriority | ||
) |
Construct from fvMesh and a label list of point priorities.
Definition at line 920 of file polyMeshFilter.C.
References Foam::Info, and polyMeshFilterSettings::writeSettings().
polyMeshFilter | ( | const fvMesh & | mesh, |
const labelList & | pointPriority, | ||
const dictionary & | dict | ||
) |
Construct from fvMesh and a label list of point priorities.
Definition at line 950 of file polyMeshFilter.C.
References Foam::Info, and polyMeshFilterSettings::writeSettings().
~polyMeshFilter | ( | ) |
Destructor.
Definition at line 970 of file polyMeshFilter.C.
ClassName | ( | "polyMeshFilter" | ) |
Runtime type information.
const Foam::autoPtr< Foam::fvMesh > & filteredMesh | ( | ) | const |
Return reference to the filtered mesh. Does not check if the.
mesh has actually been filtered.
Definition at line 1125 of file polyMeshFilter.C.
const Foam::autoPtr< Foam::labelList > & pointPriority | ( | ) | const |
Return the new pointPriority list.
Definition at line 1132 of file polyMeshFilter.C.
|
static |
Return a copy of an fvMesh.
Definition at line 67 of file polyMeshFilter.C.
References polyTopoChange::changeMesh(), edgeCollapser::checkMeshQuality(), collapseEdge(), Foam::decrIndent(), Foam::e, primitiveMesh::edges(), edge::end(), Foam::endl(), f(), Foam::faceMap(), mapPolyMesh::faceMap(), Pair< Type >::first(), fld(), forAll, mapPolyMesh::hasMotionPoints(), Foam::identity(), Foam::incrIndent(), Foam::indent(), Foam::Info, Foam::labelMax, Foam::labelMin, polyTopoChange::makeMesh(), Foam::max(), Foam::min(), polyMesh::movePoints(), fvMesh::name(), primitiveMesh::nEdges(), newPointi, primitiveMesh::nFaces(), Foam::nl, IOobject::NO_READ, IOobject::NO_WRITE, primitiveMesh::nPoints(), mapPolyMesh::pointMap(), mapPolyMesh::preMotionPoints(), Foam::reduce(), Foam::returnReduce(), mapPolyMesh::reversePointMap(), Pair< Type >::second(), List< T >::size(), edge::start(), Foam::sum(), syncTools::syncEdgeList(), syncTools::syncFaceList(), syncTools::syncPointList(), fvMesh::time(), List< T >::transfer(), and polyMesh::updateMesh().
Referenced by polyMeshFilter::filterEdges().
Copy loaded topoSets from the old mesh to the new mesh.
Definition at line 56 of file polyMeshFilter.C.
|
static |
Update the loaded topoSets.
Definition at line 47 of file polyMeshFilter.C.
Foam::label filter | ( | const label | nOriginalBadFaces | ) |
Filter edges and faces.
Definition at line 976 of file polyMeshFilter.C.
References polyMeshFilterSettings::initialFaceLengthFactor(), polyMeshFilterSettings::minLen(), primitiveMesh::nEdges(), primitiveMesh::nFaces(), and List< T >::resize().
Foam::label filter | ( | const faceSet & | fSet | ) |
Filter all faces that are in the face set.
Definition at line 985 of file polyMeshFilter.C.
References forAll, HashTable< T, Key, Hash >::found(), polyMeshFilterSettings::initialFaceLengthFactor(), polyMeshFilterSettings::minLen(), primitiveMesh::nEdges(), primitiveMesh::nFaces(), and List< T >::resize().
Foam::label filterEdges | ( | const label | nOriginalBadFaces | ) |
Filter edges only.
Definition at line 1003 of file polyMeshFilter.C.
References edgeCollapser::checkMeshQuality(), polyMeshFilterSettings::controlMeshQuality(), polyMeshFilter::copyMesh(), PackedList< nBits >::count(), Foam::decrIndent(), Foam::endl(), Foam::identity(), Foam::incrIndent(), Foam::indent(), Foam::Info, Foam::labelMax, polyMeshFilterSettings::maxIterations(), polyMeshFilterSettings::meshQualityCoeffDict(), polyMeshFilterSettings::minLen(), primitiveMesh::nEdges(), Foam::nl, primitiveMesh::nPoints(), List< T >::resize(), and Foam::returnReduce().