Loading...
Searching...
No Matches
polyMeshFilter Class Reference

Remove the edges and faces of a polyMesh whilst satisfying the given mesh quality criteria. More...

#include <polyMeshFilter.H>

Inheritance diagram for polyMeshFilter:
Collaboration diagram for polyMeshFilter:

Public Member Functions

 ClassName ("polyMeshFilter")
 Runtime type information.
 polyMeshFilter (const fvMesh &mesh)
 Construct from fvMesh.
 polyMeshFilter (const fvMesh &mesh, const labelList &pointPriority)
 Construct from fvMesh and a label list of point priorities.
 polyMeshFilter (const fvMesh &mesh, const labelList &pointPriority, const dictionary &dict)
 Construct from fvMesh and a label list of point priorities.
 ~polyMeshFilter ()=default
 Destructor.
const autoPtr< fvMesh > & filteredMesh () const
 Return reference to the filtered mesh. Does not check if the.
const autoPtr< labelList > & pointPriority () const
 Return the new pointPriority list.
label filter (const label nOriginalBadFaces)
 Filter edges and faces.
label filter (const faceSet &fSet)
 Filter all faces that are in the face set.
label filterEdges (const label nOriginalBadFaces)
 Filter edges only.

Static Public Member Functions

static autoPtr< fvMeshcopyMesh (const fvMesh &mesh)
 Return a copy of an fvMesh.
static void copySets (const polyMesh &oldMesh, const polyMesh &newMesh)
 Copy loaded topoSets from the old mesh to the new mesh.
static void updateSets (const mapPolyMesh &map)
 Update the loaded topoSets.

Detailed Description

Remove the edges and faces of a polyMesh whilst satisfying the given mesh quality criteria.

Works on a copy of the mesh.

Source files

Definition at line 61 of file polyMeshFilter.H.

Constructor & Destructor Documentation

◆ polyMeshFilter() [1/3]

polyMeshFilter ( const fvMesh & mesh)
explicit

Construct from fvMesh.

Definition at line 888 of file polyMeshFilter.C.

References Foam::Info, Foam::labelMin, mesh, nPoints, polyMeshFilterSettings::polyMeshFilterSettings(), Foam::system(), and polyMeshFilterSettings::writeSettings().

Here is the call graph for this function:

◆ polyMeshFilter() [2/3]

polyMeshFilter ( const fvMesh & mesh,
const labelList & pointPriority )

Construct from fvMesh and a label list of point priorities.

Definition at line 915 of file polyMeshFilter.C.

References Foam::Info, mesh, pointPriority(), polyMeshFilterSettings::polyMeshFilterSettings(), Foam::system(), and polyMeshFilterSettings::writeSettings().

Here is the call graph for this function:

◆ polyMeshFilter() [3/3]

polyMeshFilter ( const fvMesh & mesh,
const labelList & pointPriority,
const dictionary & dict )

Construct from fvMesh and a label list of point priorities.

Definition at line 945 of file polyMeshFilter.C.

References dict, Foam::Info, mesh, pointPriority(), polyMeshFilterSettings::polyMeshFilterSettings(), and polyMeshFilterSettings::writeSettings().

Here is the call graph for this function:

◆ ~polyMeshFilter()

~polyMeshFilter ( )
default

Destructor.

References mesh.

Member Function Documentation

◆ ClassName()

ClassName ( "polyMeshFilter" )

Runtime type information.

References dict, mesh, and pointPriority().

Here is the call graph for this function:

◆ filteredMesh()

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 1115 of file polyMeshFilter.C.

◆ pointPriority()

const Foam::autoPtr< Foam::labelList > & pointPriority ( ) const

Return the new pointPriority list.

Definition at line 1122 of file polyMeshFilter.C.

Referenced by ClassName(), polyMeshFilter(), and polyMeshFilter().

Here is the caller graph for this function:

◆ copyMesh()

Foam::autoPtr< Foam::fvMesh > copyMesh ( const fvMesh & mesh)
static

Return a copy of an fvMesh.

Definition at line 63 of file polyMeshFilter.C.

References mapPolyMesh::hasMotionPoints(), polyTopoChange::makeMesh(), mesh, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, mapPolyMesh::preMotionPoints(), and IOobjectOption::READ_IF_PRESENT.

Referenced by filterEdges().

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

◆ copySets()

void copySets ( const polyMesh & oldMesh,
const polyMesh & newMesh )
static

Copy loaded topoSets from the old mesh to the new mesh.

Definition at line 51 of file polyMeshFilter.C.

◆ updateSets()

void updateSets ( const mapPolyMesh & map)
static

Update the loaded topoSets.

Definition at line 43 of file polyMeshFilter.C.

◆ filter() [1/2]

Foam::label filter ( const label nOriginalBadFaces)

Filter edges and faces.

Definition at line 966 of file polyMeshFilter.C.

References polyMeshFilterSettings::initialFaceLengthFactor(), and polyMeshFilterSettings::minLen().

Here is the call graph for this function:

◆ filter() [2/2]

Foam::label filter ( const faceSet & fSet)

Filter all faces that are in the face set.

Definition at line 975 of file polyMeshFilter.C.

References forAll, topoSet::found(), polyMeshFilterSettings::initialFaceLengthFactor(), and polyMeshFilterSettings::minLen().

Here is the call graph for this function:

◆ filterEdges()


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