Given list of faces to remove insert all the topology changes. Contains helper function to get consistent set of faces to remove. More...
Public Member Functions | |
ClassName ("removeFaces") | |
Runtime type information. More... | |
removeFaces (const polyMesh &, const scalar minCos) | |
Construct from mesh and min cos of angle for boundary faces. More... | |
label | compatibleRemoves (const labelList &inPiercedFaces, labelList &cellRegion, labelList &cellRegionMaster, labelList &outPiercedFaces) const |
Find faces including those with cells which have the same mastercell. More... | |
void | setRefinement (const labelList &piercedFaces, const labelList &cellRegion, const labelList &cellRegionMaster, polyTopoChange &) const |
Play commands into polyTopoChange to remove faces. More... | |
void | updateMesh (const mapPolyMesh &) |
Force recalculation of locally stored data on topological change. More... | |
void | distribute (const mapDistributePolyMesh &) |
Force recalculation of locally stored data for mesh distribution. More... | |
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 60 of file removeFaces.H.
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 556 of file removeFaces.C.
ClassName | ( | "removeFaces" | ) |
Runtime type information.
Foam::label compatibleRemoves | ( | const labelList & | inPiercedFaces, |
labelList & | cellRegion, | ||
labelList & | cellRegionMaster, | ||
labelList & | outPiercedFaces | ||
) | const |
Find faces including those with cells which have the same mastercell.
Given set of faces to pierce calculates:
Definition at line 575 of file removeFaces.C.
References Foam::abort(), List< T >::append(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::min(), List< T >::setSize(), UList< T >::size(), List< T >::transfer(), and Foam::Zero.
void setRefinement | ( | const labelList & | piercedFaces, |
const labelList & | cellRegion, | ||
const labelList & | cellRegionMaster, | ||
polyTopoChange & | meshMod | ||
) | const |
Play commands into polyTopoChange to remove faces.
Definition at line 756 of file removeFaces.C.
References Foam::abort(), Foam::ensightOutput::debug, Foam::constant::electromagnetic::e, Foam::endl(), f(), PrimitivePatch< FaceList, PointField >::faceNormals(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::invertOneToMany(), Foam::labelMin, Foam::mag(), OSstream::name(), IOobject::name(), Foam::nl, patches, patchID, Foam::Pout, polyTopoChange::setAction(), UList< T >::size(), polyPatch::start(), syncTools::swapFaceList(), syncTools::syncEdgeList(), syncTools::syncPointList(), WarningInFunction, polyBoundaryMesh::whichPatch(), regIOobject::write(), and Foam::meshTools::writeOBJ().
|
inline |
Force recalculation of locally stored data on topological change.
Definition at line 244 of file removeFaces.H.
|
inline |
Force recalculation of locally stored data for mesh distribution.
Definition at line 250 of file removeFaces.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.