Public Member Functions | List of all members
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)
 
 ~enrichedPatch ()=default
 
const Map< point > & pointMap () const
 
Map< point > & pointMap ()
 
const Map< label > & pointMergeMap () const
 
Map< label > & pointMergeMap ()
 
void calcEnrichedFaces (const labelListList &pointsIntoMasterEdges, const labelListList &pointsIntoSlaveEdges, const pointField &projectedSlavePoints)
 
const faceListenrichedFaces () const
 
const labelListmeshPoints () const
 
const faceListlocalFaces () const
 
const pointFieldlocalPoints () const
 
const labelListListpointPoints () const
 
const Map< labelList > & masterPointFaces () const
 
const faceListcutFaces () const
 
const labelListcutFaceMaster () const
 
const labelListcutFaceSlave () const
 
bool checkSupport () const
 
void writeOBJ (const fileName &fName) const
 

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 65 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 
)

Definition at line 124 of file enrichedPatch.C.

◆ ~enrichedPatch()

~enrichedPatch ( )
default

Member Function Documentation

◆ ClassName()

ClassName ( "enrichedPatch"  )

◆ pointMap() [1/2]

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

Definition at line 23 of file enrichedPatchI.H.

◆ pointMap() [2/2]

Map<point>& pointMap ( )
inline

◆ pointMergeMap() [1/2]

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

Definition at line 45 of file enrichedPatchI.H.

◆ pointMergeMap() [2/2]

Map<label>& pointMergeMap ( )
inline

◆ calcEnrichedFaces()

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

◆ enrichedFaces()

const Foam::faceList & enrichedFaces ( ) const

Definition at line 380 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

Definition at line 158 of file enrichedPatch.C.

◆ localFaces()

const Foam::faceList & localFaces ( ) const

Definition at line 169 of file enrichedPatch.C.

◆ localPoints()

const Foam::pointField & localPoints ( ) const

Definition at line 180 of file enrichedPatch.C.

◆ pointPoints()

const Foam::labelListList & pointPoints ( ) const

Definition at line 191 of file enrichedPatch.C.

◆ masterPointFaces()

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

Definition at line 96 of file enrichedPatchMasterPoints.C.

◆ cutFaces()

const Foam::faceList & cutFaces ( ) const

Definition at line 647 of file enrichedPatchCutFaces.C.

◆ cutFaceMaster()

const Foam::labelList & cutFaceMaster ( ) const

Definition at line 658 of file enrichedPatchCutFaces.C.

◆ cutFaceSlave()

const Foam::labelList & cutFaceSlave ( ) const

Definition at line 669 of file enrichedPatchCutFaces.C.

◆ checkSupport()

bool checkSupport ( ) const

Definition at line 202 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

Definition at line 229 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: