OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

enrichedPatch Class Reference

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

Collaboration diagram for enrichedPatch:

List of all members.


Public Member Functions

 ClassName ("enrichedPatch")
 enrichedPatch (const primitiveFacePatch &masterPatch, const primitiveFacePatch &slavePatch, const labelList &slavePointPointHits, const labelList &slavePointEdgeHits, const List< objectHit > &slavePointFaceHits)
 Construct from components.
 ~enrichedPatch ()
Map< point > & pointMap ()
 Return non-const access to point map to add points.
const Map< point > & pointMap () const
 Return map of points.
Map< label > & pointMergeMap ()
 Return map of point merges.
const Map< label > & pointMergeMap () const
 Return map of point merges.
void calcEnrichedFaces (const labelListList &pointsIntoMasterEdges, const labelListList &pointsIntoSlaveEdges, const pointField &projectedSlavePoints)
 Calculate enriched faces.
const faceList & enrichedFaces () const
 Return enriched faces.
const labelList & meshPoints () const
 Return mesh points.
const faceList & localFaces () const
 Return local faces.
const pointField & localPoints () const
 Return local points.
const labelListList & pointPoints () const
 Return point-point addressing.
const Map< labelList > & masterPointFaces () const
 Master point face addressing.
const faceList & cutFaces () const
 Return list of cut faces.
const labelList & cutFaceMaster () const
 Return cut face master list.
const labelList & cutFaceSlave () const
 Return cut face slave list.
bool checkSupport () const
 Check if the patch is fully supported.
void writeOBJ (const fileName &) const
 Debugging: dump graphical representation to obj format file.

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 registred with the pointMap.

Source files

Definition at line 65 of file enrichedPatch.H.


Constructor & Destructor Documentation

enrichedPatch ( const primitiveFacePatch &  masterPatch,
const primitiveFacePatch &  slavePatch,
const labelList &  slavePointPointHits,
const labelList &  slavePointEdgeHits,
const List< objectHit > &  slavePointFaceHits 
)

Construct from components.

Definition at line 131 of file enrichedPatch.C.

~enrichedPatch (  ) 

Definition at line 165 of file enrichedPatch.C.


Member Function Documentation

ClassName ( "enrichedPatch"   ) 

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

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

Definition at line 78 of file enrichedPatchPointMap.C.

Referenced by enrichedPatch::calcEnrichedFaces().

Here is the caller graph for this function:

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

Return map of points.

Definition at line 89 of file enrichedPatchPointMap.C.

Map<label>& pointMergeMap (  )  [inline]

Return map of point merges.

Definition at line 222 of file enrichedPatch.H.

Referenced by enrichedPatch::calcEnrichedFaces().

Here is the caller graph for this function:

const Map<label>& pointMergeMap (  )  const [inline]

Return map of point merges.

Definition at line 228 of file enrichedPatch.H.

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

const Foam::faceList & enrichedFaces (  )  const

Return enriched faces.

Definition at line 414 of file enrichedPatchFaces.C.

Referenced by enrichedPatch::calcEnrichedFaces().

Here is the caller graph for this function:

const Foam::labelList & meshPoints (  )  const

Return mesh points.

Definition at line 173 of file enrichedPatch.C.

const Foam::faceList & localFaces (  )  const

Return local faces.

Definition at line 184 of file enrichedPatch.C.

const Foam::pointField & localPoints (  )  const

Return local points.

Definition at line 195 of file enrichedPatch.C.

const Foam::labelListList & pointPoints (  )  const

Return point-point addressing.

Definition at line 206 of file enrichedPatch.C.

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

Master point face addressing.

Definition at line 143 of file enrichedPatchMasterPoints.C.

const Foam::faceList & cutFaces (  )  const

Return list of cut faces.

Definition at line 611 of file enrichedPatchCutFaces.C.

const Foam::labelList & cutFaceMaster (  )  const

Return cut face master list.

Definition at line 622 of file enrichedPatchCutFaces.C.

const Foam::labelList & cutFaceSlave (  )  const

Return cut face slave list.

Definition at line 633 of file enrichedPatchCutFaces.C.

bool checkSupport (  )  const

Check if the patch is fully supported.

Definition at line 217 of file enrichedPatch.C.

Referenced by enrichedPatch::calcEnrichedFaces().

Here is the caller graph for this function:

void writeOBJ ( const fileName &  fName  )  const

Debugging: dump graphical representation to obj format file.

Definition at line 246 of file enrichedPatch.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd