Given list of faces to remove insert all the topology changes. Contains helper function to get consistent set of faces to remove. More...
#include <dynamicMesh/removeFaces.H>
Given list of faces to remove insert all the topology changes. Contains helper function to get consistent set of faces to remove.
Not very well tested in parallel.
Definition at line 63 of file removeFaces.H.
Public Member Functions | |
ClassName ("removeFaces") | |
Runtime type information.
| |
removeFaces (const polyMesh &, const scalar minCos) | |
Construct from mesh and min cos of angle for boundary faces.
| |
label | compatibleRemoves (const labelList &inPiercedFaces, labelList &cellRegion, labelList &cellRegionMaster, labelList &outPiercedFaces) const |
Given set of faces to pierce calculates:
| |
void | setRefinement (const labelList &piercedFaces, const labelList &cellRegion, const labelList &cellRegionMaster, polyTopoChange &) const |
Play commands into polyTopoChange to remove faces.
| |
void | updateMesh (const mapPolyMesh &) |
Force recalculation of locally stored data on topological change.
| |
void | distribute (const mapDistributePolyMesh &) |
Force recalculation of locally stored data for mesh distribution.
|
removeFaces | ( | const polyMesh & | mesh, |
const scalar | minCos | ||
) |
Construct from mesh and min cos of angle for boundary faces.
to be considered aligned. Set to >= 1 to disable checking and always merge (if on same patch)
Definition at line 562 of file removeFaces.C.
ClassName | ( | "removeFaces" | ) |
Runtime type information.
Foam::label compatibleRemoves | ( | const labelList & | inPiercedFaces, |
labelList & | cellRegion, | ||
labelList & | cellRegionMaster, | ||
labelList & | outPiercedFaces | ||
) | const |
Given set of faces to pierce calculates:
mastercell for each region. This is the lowest numbered cell of all cells that get merged.
Definition at line 581 of file removeFaces.C.
References Foam::abort(), List< T >::append(), Foam::FatalError, FatalErrorIn, forAll, Foam::min(), List< T >::setSize(), List< T >::size(), and List< T >::transfer().
void setRefinement | ( | const labelList & | piercedFaces, |
const labelList & | cellRegion, | ||
const labelList & | cellRegionMaster, | ||
polyTopoChange & | meshMod | ||
) | const |
Play commands into polyTopoChange to remove faces.
Definition at line 771 of file removeFaces.C.
References Foam::abort(), e, Foam::endl(), f(), PrimitivePatch< Face, FaceList, PointField, PointType >::faceNormals(), Foam::FatalError, FatalErrorIn, forAll, forAllConstIter, Foam::invertOneToMany(), Foam::labelI, Foam::mag(), OSstream::name(), IOobject::name(), Foam::nl, patches, Foam::Pout, polyTopoChange::setAction(), List< T >::size(), polyPatch::start(), syncTools::swapFaceList(), syncTools::syncEdgeList(), syncTools::syncPointList(), WarningIn, polyBoundaryMesh::whichPatch(), regIOobject::write(), and Foam::meshTools::writeOBJ().
void updateMesh | ( | const mapPolyMesh & | ) | [inline]
|
Force recalculation of locally stored data on topological change.
Definition at line 208 of file removeFaces.H.
void distribute | ( | const mapDistributePolyMesh & | ) | [inline]
|
Force recalculation of locally stored data for mesh distribution.
Definition at line 212 of file removeFaces.H.