Go to the documentation of this file.
39 #ifndef polyMeshFilter_H
40 #define polyMeshFilter_H
void checkMeshFacesAndRelaxEdges(const polyMesh &newMesh, const labelList &oldToNewMesh, const PackedBoolList &isErrorPoint, const labelList &pointErrorCount)
Given the new points that are part of bad faces, and a map from the.
const fvMesh & mesh_
Reference to the original mesh.
autoPtr< fvMesh > newMeshPtr_
Copy of the original mesh to perform the filtering on.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
void checkMeshEdgesAndRelaxEdges(const polyMesh &newMesh, const labelList &oldToNewMesh, const PackedBoolList &isErrorPoint, const labelList &pointErrorCount)
Given the new points that are part of bad faces, and a map from the.
ClassName("polyMeshFilter")
Runtime type information.
void updateOldToNewPointMap(const labelList &currToNew, labelList &origToCurrentPointMap) const
Maintain a map of the original mesh points to the latest version of.
void mapOldMeshFaceFieldToNewMesh(const polyMesh &newMesh, const labelList &faceMap, scalarField &newMeshFaceFilterFactor) const
Update faceFilterFactor_ for the new mesh based upon the movement.
~polyMeshFilter()
Destructor.
void operator=(const polyMeshFilter &)
Disallow default bitwise assignment.
Mesh consisting of general polyhedral cells.
scalarField faceFilterFactor_
The face filter factor for each face.
label filterFacesLoop(const label nOriginalBadFaces)
label filterEdges(polyMesh &newMesh, scalarField &newMeshMinEdgeLen, labelList &origToCurrentPointMap)
Remove the edges and faces of a polyMesh whilst satisfying the given mesh quality criteria.
void printScalarFieldStats(const string desc, const scalarField &fld) const
Print min/mean/max data for a field.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
polyMeshFilter(const polyMeshFilter &)
Disallow default bitwise copy construct.
Pre-declare SubField and related Field type.
void updatePointErrorCount(const PackedBoolList &isErrorPoint, const labelList &oldToNewMesh, labelList &pointErrorCount) const
Increment pointErrorCount for points attached to a bad face.
const autoPtr< fvMesh > & filteredMesh() const
Return reference to the filtered mesh. Does not check if the.
label filter(const label nOriginalBadFaces)
Filter edges and faces.
static void updateSets(const mapPolyMesh &map)
scalarField minEdgeLen_
The minimum edge length for each edge.
labelList originalPointPriority_
Original point priorities. If a point has a higher priority than.
Class to store the settings for the polyMeshFilter class.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Mesh data needed to do the Finite Volume discretisation.
const autoPtr< labelList > & pointPriority() const
Return the new pointPriority list.
autoPtr< labelList > pointPriority_
Point priority associated with the new mesh.
void mapOldMeshEdgeFieldToNewMesh(const polyMesh &newMesh, const labelList &pointMap, scalarField &newMeshMinEdgeLen) const
Update minEdgeLen_ for the new mesh based upon the movement of the.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static void copySets(const polyMesh &oldMesh, const polyMesh &newMesh)
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static autoPtr< fvMesh > copyMesh(const fvMesh &mesh)
Return a copy of an fvMesh.
void updatePointPriorities(const polyMesh &newMesh, const labelList &pointMap)
label filterFaces(polyMesh &newMesh, scalarField &newMeshFaceFilterFactor, labelList &origToCurrentPointMap)