like meshCutter but also removes non-anchor side of cell. More...
Public Member Functions | |
ClassName ("meshCutAndRemove") | |
Runtime type information. More... | |
meshCutAndRemove (const polyMesh &mesh) | |
Construct from mesh. More... | |
meshCutAndRemove (const meshCutAndRemove &)=delete | |
Disallow default bitwise copy construction. More... | |
void | setRefinement (const label exposedPatchi, const cellCuts &cuts, const labelList &cutPatch, polyTopoChange &meshMod) |
Do actual cutting with cut description. Inserts mesh changes. More... | |
void | topoChange (const polyTopoChangeMap &) |
Force recalculation of locally stored data on topological change. More... | |
const Map< label > & | addedFaces () const |
Faces added. Per split cell label of added face. More... | |
const HashTable< label, edge, Hash< edge > > & | addedPoints () const |
Points added. Per split edge label of added point. More... | |
void | operator= (const meshCutAndRemove &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from edgeVertex | |
edgeVertex (const polyMesh &mesh) | |
Construct from mesh. More... | |
edgeVertex (const edgeVertex &)=delete | |
Disallow default bitwise copy construction. More... | |
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. More... | |
Ostream & | writeCuts (Ostream &os, const labelList &, const scalarField &) const |
Write cut descriptions to Ostream. More... | |
void | operator= (const edgeVertex &)=delete |
Disallow default bitwise assignment. More... | |
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. More... | |
static void | updateLabels (const labelList &map, Map< label > &) |
Update map from map. Used to update cell/face labels. More... | |
static void | updateLabels (const labelList &map, labelHashSet &) |
Update map from map. Used to update cell/face labels. More... | |
static bool | isEdge (const primitiveMesh &mesh, const label eVert) |
Is eVert an edge? More... | |
static label | getEdge (const primitiveMesh &mesh, const label eVert) |
Convert eVert to edge label. More... | |
static label | getVertex (const primitiveMesh &mesh, const label eVert) |
Convert eVert to vertex label. More... | |
static label | vertToEVert (const primitiveMesh &mesh, const label vertI) |
Convert pointi to eVert. More... | |
static label | edgeToEVert (const primitiveMesh &mesh, const label edgeI) |
Convert edgeI to eVert. More... | |
static point | coord (const primitiveMesh &, const label cut, const scalar weight) |
Return coordinate of cut (uses weight if edgeCut) More... | |
static label | cutPairToEdge (const primitiveMesh &, const label cut0, const label cut1) |
Find mesh edge (or -1) between two cuts. More... | |
like meshCutter but also removes non-anchor side of cell.
Definition at line 60 of file meshCutAndRemove.H.
meshCutAndRemove | ( | const polyMesh & | mesh | ) |
Construct from mesh.
Definition at line 564 of file meshCutAndRemove.C.
References meshCutAndRemove::setRefinement().
|
delete |
Disallow default bitwise copy construction.
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 575 of file meshCutAndRemove.C.
References Foam::abort(), polyMesh::boundaryMesh(), cellCuts::cellAnchorPoints(), cellCuts::cellLoops(), primitiveMesh::cellPoints(), HashTable< T, Key, Hash >::clear(), primitiveMesh::edgeFaces(), cellCuts::edgeIsCut(), primitiveMesh::edges(), cellCuts::edgeWeight(), edge::end(), Foam::endl(), f1, polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), cellCuts::faceSplitCut(), Foam::FatalError, FatalErrorInFunction, forAll, forAllConstIter, edgeVertex::getEdge(), edgeVertex::getVertex(), HashTable< T, Key, Hash >::insert(), edgeVertex::isEdge(), edgeVertex::mesh(), Foam::nl, cellCuts::nLoops(), nPoints, cellCuts::pointIsCut(), polyMesh::points(), Foam::Pout, HashTable< T, Key, Hash >::resize(), Foam::reverse(), polyTopoChange::setAction(), UPtrList< T >::size(), List< T >::size(), HashTable< T, Key, Hash >::size(), edge::start(), polyBoundaryMesh::whichPatch(), and edgeVertex::writeCuts().
Referenced by meshCutAndRemove::meshCutAndRemove().
void topoChange | ( | const polyTopoChangeMap & | map | ) |
Force recalculation of locally stored data on topological change.
Definition at line 1267 of file meshCutAndRemove.C.
References edge::end(), Foam::endl(), forAllConstIter, Foam::Pout, polyTopoChangeMap::reverseCellMap(), polyTopoChangeMap::reverseFaceMap(), polyTopoChangeMap::reversePointMap(), HashTable< T, Key, Hash >::size(), edge::start(), and HashTable< T, Key, Hash >::transfer().
Faces added. Per split cell label of added face.
Definition at line 215 of file meshCutAndRemove.H.
References meshCutAndRemove::addedPoints(), and meshCutAndRemove::operator=().
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 223 of file meshCutAndRemove.H.
Referenced by meshCutAndRemove::addedFaces().
|
delete |
Disallow default bitwise assignment.
Referenced by meshCutAndRemove::addedFaces().