faceCoupleInfo Class Reference

Container for information needed to couple to meshes. When constructed from two meshes and a list of coupled faces returns the mapping between points. More...

Public Member Functions

 ClassName ("faceCoupleInfo")
 Runtime type information. More...
 
 faceCoupleInfo (const polyMesh &masterMesh, const labelList &masterAddressing, const polyMesh &slaveMesh, const labelList &slaveAddressing)
 Construct from meshes and subset of mesh faces (i.e.,. More...
 
 ~faceCoupleInfo ()
 Destructor. More...
 
const indirectPrimitivePatchmasterPatch () const
 Addressing engine for coupled faces on mesh0. More...
 
const indirectPrimitivePatchslavePatch () const
 Addressing engine for coupled faces on mesh1. More...
 
const labelListmasterToCouplePoints () const
 Access master-to-couple point addressing. More...
 
const labelListslaveToCouplePoints () const
 Access slave-to-couple point addressing. More...
 
labelListList coupleToMasterPoints () const
 Generate couple-to-master point addressing. More...
 
labelListList coupleToSlavePoints () const
 Generate couple-to-slave point addressing. More...
 
const face coupleFace (const label coupleFacei) const
 Return a coupled face. More...
 
template<template< class > class FaceList>
Foam::pointField calcFaceCentres (const FaceList< face > &faces, const pointField &points, const label start, const label size)
 
template<template< class > class FaceList>
Foam::pointField calcFacePointAverages (const FaceList< face > &faces, const pointField &points, const label start, const label size)
 

Detailed Description

Container for information needed to couple to meshes. When constructed from two meshes and a list of coupled faces returns the mapping between points.

Source files

Definition at line 54 of file faceCoupleInfo.H.

Constructor & Destructor Documentation

◆ faceCoupleInfo()

faceCoupleInfo ( const polyMesh masterMesh,
const labelList masterAddressing,
const polyMesh slaveMesh,
const labelList slaveAddressing 
)

Construct from meshes and subset of mesh faces (i.e.,.

indirectPrimitivePatch addressing). Faces should be supplied in order and the points within them should be ordered (i.e., coupled faces should have the same zero-point and opposite orientations).

Definition at line 167 of file faceCoupleInfo.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, PrimitivePatch< FaceList, PointField >::localFaces(), faceCoupleInfo::masterPatch(), Foam::min(), primitiveMesh::nInternalFaces(), Foam::nl, nPoints, UList< T >::rcIndex(), List< T >::size(), and faceCoupleInfo::slavePatch().

Here is the call graph for this function:

◆ ~faceCoupleInfo()

Destructor.

Definition at line 279 of file faceCoupleInfo.C.

Member Function Documentation

◆ ClassName()

ClassName ( "faceCoupleInfo"  )

Runtime type information.

◆ masterPatch()

const indirectPrimitivePatch& masterPatch ( ) const
inline

Addressing engine for coupled faces on mesh0.

Definition at line 149 of file faceCoupleInfo.H.

Referenced by faceCoupleInfo::coupleFace(), and faceCoupleInfo::faceCoupleInfo().

Here is the caller graph for this function:

◆ slavePatch()

const indirectPrimitivePatch& slavePatch ( ) const
inline

Addressing engine for coupled faces on mesh1.

Definition at line 155 of file faceCoupleInfo.H.

Referenced by faceCoupleInfo::faceCoupleInfo().

Here is the caller graph for this function:

◆ masterToCouplePoints()

const labelList& masterToCouplePoints ( ) const
inline

Access master-to-couple point addressing.

Definition at line 161 of file faceCoupleInfo.H.

Referenced by faceCoupleInfo::coupleFace().

Here is the caller graph for this function:

◆ slaveToCouplePoints()

const labelList& slaveToCouplePoints ( ) const
inline

Access slave-to-couple point addressing.

Definition at line 167 of file faceCoupleInfo.H.

◆ coupleToMasterPoints()

labelListList coupleToMasterPoints ( ) const
inline

Generate couple-to-master point addressing.

Definition at line 173 of file faceCoupleInfo.H.

References Foam::invertOneToMany().

Here is the call graph for this function:

◆ coupleToSlavePoints()

labelListList coupleToSlavePoints ( ) const
inline

Generate couple-to-slave point addressing.

Definition at line 179 of file faceCoupleInfo.H.

References Foam::invertOneToMany().

Here is the call graph for this function:

◆ coupleFace()

const face coupleFace ( const label  coupleFacei) const
inline

Return a coupled face.

Definition at line 185 of file faceCoupleInfo.H.

References faceCoupleInfo::masterPatch(), faceCoupleInfo::masterToCouplePoints(), and Foam::renumber().

Here is the call graph for this function:

◆ calcFaceCentres()

Foam::pointField calcFaceCentres ( const FaceList< face > &  faces,
const pointField points,
const label  start,
const label  size 
)

Definition at line 32 of file faceCoupleInfoTemplates.C.

References forAll, and points.

◆ calcFacePointAverages()

Foam::pointField calcFacePointAverages ( const FaceList< face > &  faces,
const pointField points,
const label  start,
const label  size 
)

Definition at line 53 of file faceCoupleInfoTemplates.C.

References forAll, points, List< T >::size(), and Foam::Zero.

Here is the call graph for this function:

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