FreeFOAM The Cross-Platform CFD Toolkit
enrichedPatch Class Reference

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

#include <dynamicMesh/enrichedPatch.H>


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 70 of file enrichedPatch.H.

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 faceListenrichedFaces () const
 Return enriched faces.
const labelListmeshPoints () const
 Return mesh points.
const faceListlocalFaces () const
 Return local faces.
const pointFieldlocalPoints () const
 Return local points.
const labelListListpointPoints () const
 Return point-point addressing.
const Map< labelList > & masterPointFaces () const
 Master point face addressing.
const faceListcutFaces () const
 Return list of cut faces.
const labelListcutFaceMaster () const
 Return cut face master list.
const labelListcutFaceSlave () 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.

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 138 of file enrichedPatch.C.

Definition at line 172 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 85 of file enrichedPatchPointMap.C.

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

Return map of points.

Definition at line 96 of file enrichedPatchPointMap.C.

Map<label>& pointMergeMap ( )
inline

Return map of point merges.

Definition at line 223 of file enrichedPatch.H.

const Map<label>& pointMergeMap ( ) const
inline

Return map of point merges.

Definition at line 229 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 421 of file enrichedPatchFaces.C.

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

const Foam::labelList & meshPoints ( ) const

Return mesh points.

Definition at line 180 of file enrichedPatch.C.

const Foam::faceList & localFaces ( ) const

Return local faces.

Definition at line 191 of file enrichedPatch.C.

const Foam::pointField & localPoints ( ) const

Return local points.

Definition at line 202 of file enrichedPatch.C.

const Foam::labelListList & pointPoints ( ) const

Return point-point addressing.

Definition at line 213 of file enrichedPatch.C.

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

Master point face addressing.

Definition at line 154 of file enrichedPatchMasterPoints.C.

const Foam::faceList & cutFaces ( ) const

Return list of cut faces.

Definition at line 618 of file enrichedPatchCutFaces.C.

const Foam::labelList & cutFaceMaster ( ) const

Return cut face master list.

Definition at line 629 of file enrichedPatchCutFaces.C.

const Foam::labelList & cutFaceSlave ( ) const

Return cut face slave list.

Definition at line 640 of file enrichedPatchCutFaces.C.

bool checkSupport ( ) const

Check if the patch is fully supported.

Definition at line 224 of file enrichedPatch.C.

References Foam::endl(), forAll, and WarningIn.

void writeOBJ ( const fileName fName) const

Debugging: dump graphical representation to obj format file.

Definition at line 253 of file enrichedPatch.C.

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


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