enrichedPatch Class Reference

The enriched patch contains a double set of faces from the two sides of the sliding interface before the cutting. More...

Public Member Functions

 ClassName ("enrichedPatch")
 
 enrichedPatch (const primitiveFacePatch &masterPatch, const primitiveFacePatch &slavePatch, const labelUList &slavePointPointHits, const labelUList &slavePointEdgeHits, const UList< objectHit > &slavePointFaceHits)
 Construct from components. More...
 
 ~enrichedPatch ()=default
 Destructor. More...
 
const Map< point > & pointMap () const
 Return map of points. More...
 
Map< point > & pointMap ()
 Return non-const access to point map to add points. More...
 
const Map< label > & pointMergeMap () const
 Return map of point merges. More...
 
Map< label > & pointMergeMap ()
 Return map of point merges. More...
 
void calcEnrichedFaces (const labelListList &pointsIntoMasterEdges, const labelListList &pointsIntoSlaveEdges, const pointField &projectedSlavePoints)
 Calculate enriched faces. More...
 
const faceListenrichedFaces () const
 Return enriched faces. More...
 
const labelListmeshPoints () const
 Return mesh points. More...
 
const faceListlocalFaces () const
 Return local faces. More...
 
const pointFieldlocalPoints () const
 Return local points. More...
 
const labelListListpointPoints () const
 Return point-point addressing. More...
 
const Map< labelList > & masterPointFaces () const
 Master point face addressing. More...
 
const faceListcutFaces () const
 Return list of cut faces. More...
 
const labelListcutFaceMaster () const
 Return cut face master list. More...
 
const labelListcutFaceSlave () const
 Return cut face slave list. More...
 
bool checkSupport () const
 Check if the patch is fully supported. More...
 
void writeOBJ (const fileName &fName) const
 Debugging: dump graphical representation to obj format file. More...
 

Detailed Description

The enriched patch contains a double set of faces from the two sides of the sliding interface before the cutting.

The patch basically consists of two over-lapping sets of faces sitting on a common point support, where every edge may be shared by more than 2 faces. The patch points are collected in a map. Additional information needed for cutting is the point insertion into every edge of master and slave.

Note: If new points are created during master-slave edge cutting, they should be registered with the pointMap.

Source files

Definition at line 69 of file enrichedPatch.H.

Constructor & Destructor Documentation

◆ enrichedPatch()

enrichedPatch ( const primitiveFacePatch masterPatch,
const primitiveFacePatch slavePatch,
const labelUList slavePointPointHits,
const labelUList slavePointEdgeHits,
const UList< objectHit > &  slavePointFaceHits 
)

Construct from components.

Definition at line 131 of file enrichedPatch.C.

◆ ~enrichedPatch()

~enrichedPatch ( )
default

Destructor.

Member Function Documentation

◆ ClassName()

ClassName ( "enrichedPatch"  )

◆ pointMap() [1/2]

const Foam::Map< Foam::point > & pointMap ( ) const
inline

Return map of points.

Definition at line 30 of file enrichedPatchI.H.

◆ pointMap() [2/2]

Foam::Map< Foam::point > & pointMap ( )
inline

Return non-const access to point map to add points.

Definition at line 41 of file enrichedPatchI.H.

◆ pointMergeMap() [1/2]

const Foam::Map< Foam::label > & pointMergeMap ( ) const
inline

Return map of point merges.

Definition at line 52 of file enrichedPatchI.H.

◆ pointMergeMap() [2/2]

Foam::Map< Foam::label > & pointMergeMap ( )
inline

Return map of point merges.

Definition at line 58 of file enrichedPatchI.H.

◆ calcEnrichedFaces()

void calcEnrichedFaces ( const labelListList pointsIntoMasterEdges,
const labelListList pointsIntoSlaveEdges,
const pointField projectedSlavePoints 
)

Calculate enriched faces.

Definition at line 40 of file enrichedPatchFaces.C.

References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, Foam::magSqr(), Foam::max(), Foam::min(), and Foam::nl.

Here is the call graph for this function:

◆ enrichedFaces()

const Foam::faceList & enrichedFaces ( ) const

Return enriched faces.

Definition at line 387 of file enrichedPatchFaces.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ meshPoints()

const Foam::labelList & meshPoints ( ) const

Return mesh points.

Definition at line 165 of file enrichedPatch.C.

◆ localFaces()

const Foam::faceList & localFaces ( ) const

Return local faces.

Definition at line 176 of file enrichedPatch.C.

◆ localPoints()

const Foam::pointField & localPoints ( ) const

Return local points.

Definition at line 187 of file enrichedPatch.C.

◆ pointPoints()

const Foam::labelListList & pointPoints ( ) const

Return point-point addressing.

Definition at line 198 of file enrichedPatch.C.

◆ masterPointFaces()

const Foam::Map< Foam::labelList > & masterPointFaces ( ) const

Master point face addressing.

Definition at line 103 of file enrichedPatchMasterPoints.C.

◆ cutFaces()

const Foam::faceList & cutFaces ( ) const

Return list of cut faces.

Definition at line 653 of file enrichedPatchCutFaces.C.

◆ cutFaceMaster()

const Foam::labelList & cutFaceMaster ( ) const

Return cut face master list.

Definition at line 664 of file enrichedPatchCutFaces.C.

◆ cutFaceSlave()

const Foam::labelList & cutFaceSlave ( ) const

Return cut face slave list.

Definition at line 675 of file enrichedPatchCutFaces.C.

◆ checkSupport()

bool checkSupport ( ) const

Check if the patch is fully supported.

Definition at line 209 of file enrichedPatch.C.

References Foam::endl(), forAll, found, and WarningInFunction.

Here is the call graph for this function:

◆ writeOBJ()

void writeOBJ ( const fileName fName) const

Debugging: dump graphical representation to obj format file.

Definition at line 236 of file enrichedPatch.C.

References f(), Foam::nl, and Foam::meshTools::writeOBJ().

Here is the call graph for this function:

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