Does modifications to boundary faces. More...
Public Member Functions | |
ClassName ("boundaryCutter") | |
Runtime type information. More... | |
boundaryCutter (const polyMesh &mesh) | |
Construct from mesh. More... | |
~boundaryCutter () | |
Destructor. More... | |
void | setRefinement (const Map< point > &pointToPos, const Map< List< point > > &edgeToCuts, const Map< labelPair > &faceToSplit, const Map< point > &faceToFeaturePoint, polyTopoChange &meshMod) |
Do actual cutting with cut description. Inserts mesh changes. More... | |
void | updateMesh (const mapPolyMesh &) |
Force recalculation of locally stored data on topological change. More... | |
const HashTable< labelList, edge, Hash< edge > > & | edgeAddedPoints () const |
Per edge a sorted list (start to end) of added points. More... | |
const Map< label > & | faceAddedPoint () const |
Per face the mid point added. More... | |
Private Member Functions | |
void | getFaceInfo (const label faceI, label &patchID, label &zoneID, label &zoneFlip) const |
Get patch and zone info for face. More... | |
face | addEdgeCutsToFace (const label faceI, const Map< labelList > &) const |
Add cuts of edges to face. More... | |
bool | splitFace (const label faceI, const Map< point > &pointToPos, const Map< labelList > &edgeToAddedPoints, polyTopoChange &meshMod) const |
Splits faces with multiple cut edges. Return true if anything split. More... | |
void | addFace (const label faceI, const face &newFace, bool &modifiedFace, polyTopoChange &meshMod) const |
Add/modify faceI for new vertices. More... | |
boundaryCutter (const boundaryCutter &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const boundaryCutter &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const polyMesh & | mesh_ |
Reference to mesh. More... | |
HashTable< labelList, edge, Hash< edge > > | edgeAddedPoints_ |
Per edge sorted (start to end) list of points added. More... | |
Map< label > | faceAddedPoint_ |
Per face the mid point added. More... | |
Does modifications to boundary faces.
Definition at line 65 of file boundaryCutter.H.
|
private |
Disallow default bitwise copy construct.
boundaryCutter | ( | const polyMesh & | mesh | ) |
Construct from mesh.
Definition at line 389 of file boundaryCutter.C.
~boundaryCutter | ( | ) |
Destructor.
Definition at line 399 of file boundaryCutter.C.
|
private |
Get patch and zone info for face.
Definition at line 51 of file boundaryCutter.C.
References faceZone::flipMap(), and faceZone::whichFace().
|
private |
Add cuts of edges to face.
Definition at line 81 of file boundaryCutter.C.
References DynamicList::append(), Foam::endl(), f(), Foam::meshTools::findEdge(), forAll, forAllReverse, Foam::nl, Foam::Pout, and List::transfer().
|
private |
Splits faces with multiple cut edges. Return true if anything split.
Definition at line 203 of file boundaryCutter.C.
References Foam::abort(), DynamicList::append(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, Foam::meshTools::findEdge(), forAll, Foam::Pout, List::size(), List::transfer(), and Foam::Warning.
|
private |
Add/modify faceI for new vertices.
Definition at line 144 of file boundaryCutter.C.
References polyTopoChange::setAction().
|
private |
Disallow default bitwise assignment.
ClassName | ( | "boundaryCutter" | ) |
Runtime type information.
void setRefinement | ( | const Map< point > & | pointToPos, |
const Map< List< point > > & | edgeToCuts, | ||
const Map< labelPair > & | faceToSplit, | ||
const Map< point > & | faceToFeaturePoint, | ||
polyTopoChange & | meshMod | ||
) |
Do actual cutting with cut description. Inserts mesh changes.
into meshMod. pointToPos : new position for selected points edgeToCuts : per edge set of points that need to be introduced faceToSplit : per face the diagonal split faceToFeaturePoint : per face the feature point. Triangulation around this feature point.
Definition at line 406 of file boundaryCutter.C.
References Foam::abort(), DynamicList::append(), DynamicList::clear(), Foam::diag(), Foam::e, Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, forAllConstIter(), face::nextLabel(), Foam::Pout, List::resize(), polyTopoChange::setAction(), List::setSize(), DynamicList::shrink(), and List::size().
void updateMesh | ( | const mapPolyMesh & | morphMap | ) |
Force recalculation of locally stored data on topological change.
Definition at line 832 of file boundaryCutter.C.
References Foam::e, forAll, forAllConstIter(), HashTable::insert(), mapPolyMesh::reverseFaceMap(), mapPolyMesh::reversePointMap(), List::setSize(), and List::size().
Per edge a sorted list (start to end) of added points.
Definition at line 161 of file boundaryCutter.H.
References boundaryCutter::edgeAddedPoints_.
Per face the mid point added.
Definition at line 168 of file boundaryCutter.H.
References boundaryCutter::faceAddedPoint_.
|
private |
Reference to mesh.
Definition at line 70 of file boundaryCutter.H.
Per edge sorted (start to end) list of points added.
Definition at line 73 of file boundaryCutter.H.
Referenced by boundaryCutter::edgeAddedPoints().
Per face the mid point added.
Definition at line 76 of file boundaryCutter.H.
Referenced by boundaryCutter::faceAddedPoint().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.