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 64 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 563 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 582 of file removeFaces.C.
References Foam::abort(), List< T >::append(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::min(), List< T >::setSize(), 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 763 of file removeFaces.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), f(), PrimitivePatch< FaceList, PointField >::faceNormals(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::invertOneToMany(), Foam::labelI, Foam::labelMin, Foam::mag(), OSstream::name(), IOobject::name(), Foam::nl, patches, patchID, Foam::Pout, polyTopoChange::setAction(), polyPatch::start(), syncTools::swapFaceList(), syncTools::syncEdgeList(), syncTools::syncPointList(), WarningInFunction, polyBoundaryMesh::whichPatch(), regIOobject::write(), Foam::meshTools::writeOBJ(), and zoneID.
|
inline |
Force recalculation of locally stored data on topological change.
Definition at line 210 of file removeFaces.H.
|
inline |
Force recalculation of locally stored data for mesh distribution.
Definition at line 214 of file removeFaces.H.