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 indirectPrimitivePatch & | masterPatch () const |
Addressing engine for coupled faces on mesh0. More... | |
const indirectPrimitivePatch & | slavePatch () const |
Addressing engine for coupled faces on mesh1. More... | |
const labelList & | masterToCouplePoints () const |
Access master-to-couple point addressing. More... | |
const labelList & | slaveToCouplePoints () 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) |
Container for information needed to couple to meshes. When constructed from two meshes and a list of coupled faces returns the mapping between points.
Definition at line 54 of file faceCoupleInfo.H.
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 168 of file faceCoupleInfo.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::min(), primitiveMesh::nInternalFaces(), Foam::nl, nPoints, UList< T >::rcIndex(), and List< T >::size().
~faceCoupleInfo | ( | ) |
Destructor.
Definition at line 279 of file faceCoupleInfo.C.
ClassName | ( | "faceCoupleInfo" | ) |
Runtime type information.
|
inline |
Addressing engine for coupled faces on mesh0.
Definition at line 149 of file faceCoupleInfo.H.
Referenced by polyMeshAdder::add(), and faceCoupleInfo::coupleFace().
|
inline |
Addressing engine for coupled faces on mesh1.
Definition at line 155 of file faceCoupleInfo.H.
|
inline |
Access master-to-couple point addressing.
Definition at line 161 of file faceCoupleInfo.H.
Referenced by faceCoupleInfo::coupleFace().
|
inline |
Access slave-to-couple point addressing.
Definition at line 167 of file faceCoupleInfo.H.
|
inline |
Generate couple-to-master point addressing.
Definition at line 173 of file faceCoupleInfo.H.
References Foam::invertOneToMany().
|
inline |
Generate couple-to-slave point addressing.
Definition at line 179 of file faceCoupleInfo.H.
References Foam::invertOneToMany().
Return a coupled face.
Definition at line 185 of file faceCoupleInfo.H.
References faceCoupleInfo::masterPatch(), faceCoupleInfo::masterToCouplePoints(), and Foam::renumber().
Foam::pointField calcFaceCentres | ( | const FaceList< face > & | faces, |
const pointField & | points, | ||
const label | start, | ||
const label | size | ||
) |
Definition at line 33 of file faceCoupleInfoTemplates.C.
References forAll.
Foam::pointField calcFacePointAverages | ( | const FaceList< face > & | faces, |
const pointField & | points, | ||
const label | start, | ||
const label | size | ||
) |
Definition at line 54 of file faceCoupleInfoTemplates.C.
References forAll, List< T >::size(), and Foam::Zero.