like meshCutter but also removes non-anchor side of cell. More...
#include <dynamicMesh/meshCutAndRemove.H>
like meshCutter but also removes non-anchor side of cell.
Definition at line 61 of file meshCutAndRemove.H.
Inheritance diagram for meshCutAndRemove:
Collaboration diagram for meshCutAndRemove:Public Member Functions | |
| ClassName ("meshCutAndRemove") | |
| Runtime type information. | |
| meshCutAndRemove (const polyMesh &mesh) | |
| Construct from mesh. | |
| void | setRefinement (const label exposedPatchI, const cellCuts &cuts, const labelList &cutPatch, polyTopoChange &meshMod) |
| Do actual cutting with cut description. Inserts mesh changes. | |
| void | updateMesh (const mapPolyMesh &) |
| Force recalculation of locally stored data on topological change. | |
| const Map< label > & | addedFaces () const |
| Faces added. Per split cell label of added face. | |
| const HashTable< label, edge, Hash< edge > > & | addedPoints () const |
| Points added. Per split edge label of added point. | |
Public Member Functions inherited from edgeVertex | |
| edgeVertex (const polyMesh &mesh) | |
| Construct from mesh. | |
| const polyMesh & | mesh () const |
| bool | isEdge (const label eVert) const |
| label | getEdge (const label eVert) const |
| label | getVertex (const label eVert) const |
| label | vertToEVert (const label vertI) const |
| label | edgeToEVert (const label edgeI) const |
| point | coord (const label cut, const scalar weight) const |
| label | cutPairToEdge (const label cut0, const label cut1) const |
| Ostream & | writeCut (Ostream &os, const label cut, const scalar) const |
| Write cut description to Ostream. | |
| Ostream & | writeCuts (Ostream &os, const labelList &, const scalarField &) const |
| Write cut descriptions to Ostream. | |
Additional Inherited Members | |
Static Public Member Functions inherited from edgeVertex | |
| static void | updateLabels (const labelList &map, List< refineCell > &) |
| Update refine list from map. Used to update cell/face labels. | |
| static void | updateLabels (const labelList &map, Map< label > &) |
| Update map from map. Used to update cell/face labels. | |
| static void | updateLabels (const labelList &map, labelHashSet &) |
| Update map from map. Used to update cell/face labels. | |
| static bool | isEdge (const primitiveMesh &mesh, const label eVert) |
| is eVert an edge? | |
| static label | getEdge (const primitiveMesh &mesh, const label eVert) |
| convert eVert to edge label | |
| static label | getVertex (const primitiveMesh &mesh, const label eVert) |
| convert eVert to vertex label | |
| static label | vertToEVert (const primitiveMesh &mesh, const label vertI) |
| Convert pointI to eVert. | |
| static label | edgeToEVert (const primitiveMesh &mesh, const label edgeI) |
| Convert edgeI to eVert. | |
| static point | coord (const primitiveMesh &, const label cut, const scalar weight) |
| Return coordinate of cut (uses weight if edgeCut) | |
| static label | cutPairToEdge (const primitiveMesh &, const label cut0, const label cut1) |
| Find mesh edge (or -1) between two cuts. | |
| meshCutAndRemove | ( | const polyMesh & | mesh | ) |
Construct from mesh.
Definition at line 579 of file meshCutAndRemove.C.
| ClassName | ( | "meshCutAndRemove" | ) |
Runtime type information.
| void setRefinement | ( | const label | exposedPatchI, |
| const cellCuts & | cuts, | ||
| const labelList & | cutPatch, | ||
| polyTopoChange & | meshMod | ||
| ) |
Do actual cutting with cut description. Inserts mesh changes.
into meshMod. cuts: all loops and topological information cutPatch: for every cell that has loop the patch number exposedPatch: patch for other exposed faces
Definition at line 590 of file meshCutAndRemove.C.
References Foam::abort(), HashTable< T, Key, Hash >::begin(), polyMesh::boundaryMesh(), cellCuts::cellAnchorPoints(), cellCuts::cellLoops(), primitiveMesh::cellPoints(), primitiveMesh::edgeFaces(), cellCuts::edgeIsCut(), primitiveMesh::edges(), cellCuts::edgeWeight(), edge::end(), HashTable< T, Key, Hash >::end(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), cellCuts::faceSplitCut(), Foam::FatalError, FatalErrorIn, forAll, forAllConstIter, mesh, Foam::nl, cellCuts::nLoops(), nPoints, cellCuts::pointIsCut(), polyMesh::points(), Foam::Pout, Foam::reverse(), polyTopoChange::setAction(), List< T >::size(), PtrList< T >::size(), edge::start(), v1, and polyBoundaryMesh::whichPatch().
| void updateMesh | ( | const mapPolyMesh & | map | ) |
Force recalculation of locally stored data on topological change.
Definition at line 1307 of file meshCutAndRemove.C.
References HashTable< T, Key, Hash >::begin(), edge::end(), Foam::endl(), Foam::Pout, mapPolyMesh::reverseCellMap(), mapPolyMesh::reverseFaceMap(), mapPolyMesh::reversePointMap(), and edge::start().
|
inline |
Faces added. Per split cell label of added face.
Definition at line 220 of file meshCutAndRemove.H.
Points added. Per split edge label of added point.
(note: fairly useless across topology changes since one of the points of the edge will probably disappear)
Definition at line 228 of file meshCutAndRemove.H.