boundaryCutter Class Reference

Does modifications to boundary faces. More...

Public Member Functions

 ClassName ("boundaryCutter")
 Runtime type information. More...
 
 boundaryCutter (const polyMesh &mesh)
 Construct from mesh. More...
 
 ~boundaryCutter ()=default
 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 EdgeMap< labelList > & 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...
 

Detailed Description

Does modifications to boundary faces.

Does

  • move boundary points
  • split boundary edges (multiple per edge if necessary)
  • face-centre decomposes boundary faces
  • diagonal split of boundary faces
Source files

Definition at line 68 of file boundaryCutter.H.

Constructor & Destructor Documentation

◆ boundaryCutter()

boundaryCutter ( const polyMesh mesh)
explicit

Construct from mesh.

Definition at line 388 of file boundaryCutter.C.

◆ ~boundaryCutter()

~boundaryCutter ( )
default

Destructor.

Member Function Documentation

◆ ClassName()

ClassName ( "boundaryCutter"  )

Runtime type information.

◆ setRefinement()

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 398 of file boundaryCutter.C.

References Foam::abort(), DynamicList< T, SizeMin >::append(), DynamicList< T, SizeMin >::clear(), Foam::diag(), e, Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, HashTable< T, Key, Hash >::find(), UList< T >::find(), forAll, forAllConstIters, HashTable< T, Key, Hash >::found(), HashTable< T, Key, Hash >::insert(), face::nextLabel(), patchID, Foam::Pout, List< T >::resize(), polyTopoChange::setAction(), List< T >::setSize(), DynamicList< T, SizeMin >::shrink(), HashTable< T, Key, Hash >::size(), UList< T >::size(), and zoneID.

Here is the call graph for this function:

◆ updateMesh()

void updateMesh ( const mapPolyMesh morphMap)

Force recalculation of locally stored data on topological change.

Definition at line 825 of file boundaryCutter.C.

References e, UList< T >::end(), forAll, forAllConstIters, HashTable< T, Key, Hash >::insert(), newPointi, mapPolyMesh::reverseFaceMap(), mapPolyMesh::reversePointMap(), List< T >::setSize(), and UList< T >::size().

Here is the call graph for this function:

◆ edgeAddedPoints()

const EdgeMap< labelList > & edgeAddedPoints ( ) const
inline

Per edge a sorted list (start to end) of added points.

Definition at line 164 of file boundaryCutter.H.

◆ faceAddedPoint()

const Map< label > & faceAddedPoint ( ) const
inline

Per face the mid point added.

Definition at line 170 of file boundaryCutter.H.


The documentation for this class was generated from the following files: