A patch is a list of labels that address the faces in the global face list. More...
Public Member Functions | |
TypeName ("patch") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, polyPatch, word,(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType),(name, size, start, index, bm, patchType)) | |
declareRunTimeSelectionTable (autoPtr, polyPatch, dictionary,(const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType),(name, dict, index, bm, patchType)) | |
polyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType) | |
Construct from components. More... | |
polyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &physicalType, const wordList &inGroups) | |
Construct from components. More... | |
polyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType) | |
Construct from dictionary. More... | |
polyPatch (const polyPatch &, const polyBoundaryMesh &) | |
Construct as copy, resetting the boundary mesh. More... | |
polyPatch (const polyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart) | |
Construct given the original patch and resetting the. More... | |
polyPatch (const polyPatch &pp, const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) | |
Construct given the original patch and a map. More... | |
polyPatch (const polyPatch &) | |
Construct as copy. More... | |
virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm) const |
Construct and return a clone, resetting the boundary mesh. More... | |
virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart) const |
Construct and return a clone, resetting the face list. More... | |
virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) const |
Construct and return a clone, resetting the face list. More... | |
virtual | ~polyPatch () |
Destructor. More... | |
label | start () const |
Return start label of this patch in the polyMesh face list. More... | |
const polyBoundaryMesh & | boundaryMesh () const |
Return boundaryMesh reference. More... | |
virtual bool | coupled () const |
Return true if this patch is geometrically coupled (i.e. faces and. More... | |
template<class T > | |
const UIndirectList< T > | patchInternalList (const UList< T > &internalValues) const |
Extract face cell data. More... | |
template<class T > | |
const List< T >::subList | patchSlice (const UList< T > &l) const |
Slice list to patch. More... | |
template<class T > | |
const Field< T >::subField | patchSlice (const Field< T > &l) const |
Slice Field to patch. More... | |
virtual void | write (Ostream &) const |
Write the polyPatch data as a dictionary. More... | |
const vectorField::subField | faceCentres () const |
Return face centres. More... | |
const vectorField::subField | faceAreas () const |
Return face normals. More... | |
tmp< vectorField > | faceCellCentres () const |
Return face cell centres. More... | |
const labelUList & | faceCells () const |
Return face-cell addressing. More... | |
const labelList & | meshEdges () const |
Return global edge index for local edges. More... | |
virtual void | clearAddressing () |
Clear addressing. More... | |
label | whichFace (const label l) const |
Return label of face in patch from global face label. More... | |
virtual void | initOrder (PstreamBuffers &, const primitivePatch &) const |
Initialize ordering for primitivePatch. Does not. More... | |
virtual bool | order (PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const |
Return new ordering for primitivePatch. More... | |
void | operator= (const polyPatch &) |
Assignment. More... | |
![]() | |
patchIdentifier (const word &name, const label index, const word &physicalType=word::null, const wordList &inGroups=wordList()) | |
Construct from components. More... | |
patchIdentifier (const word &name, const dictionary &, const label index) | |
Construct from dictionary. More... | |
patchIdentifier (const patchIdentifier &, const label index) | |
Construct from geometric patch, resetting the index. More... | |
virtual | ~patchIdentifier () |
Destructor. More... | |
const word & | name () const |
Return name. More... | |
word & | name () |
Return name for modification. More... | |
const word & | physicalType () const |
Return the optional physical type of the patch. More... | |
word & | physicalType () |
Return the optional physical type of the patch for modification. More... | |
label | index () const |
Return the index of this patch in the boundaryMesh. More... | |
label & | index () |
Return the index of this patch in the boundaryMesh for modification. More... | |
const wordList & | inGroups () const |
Return the optional groups patch belongs to. More... | |
wordList & | inGroups () |
Return the optional groups patch belongs to for modification. More... | |
bool | inGroup (const word &) const |
Test if in group. More... | |
void | write (Ostream &) const |
Write patchIdentifier as a dictionary. More... | |
![]() | |
PrimitivePatch (const FaceList< Face > &faces, const Field< PointType > &points) | |
Construct from components. More... | |
PrimitivePatch (FaceList< Face > &faces, Field< PointType > &points, const bool reUse) | |
Construct from components, reuse storage. More... | |
PrimitivePatch (const PrimitivePatch< Face, FaceList, PointField, PointType > &) | |
Construct as copy. More... | |
virtual | ~PrimitivePatch () |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
const Field< PointType > & | points () const |
Return reference to global points. More... | |
label | nPoints () const |
Return number of points supporting patch faces. More... | |
label | nEdges () const |
Return number of edges in patch. More... | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. More... | |
label | nInternalEdges () const |
Number of internal edges. More... | |
bool | isInternalEdge (const label edgeI) const |
Is internal edge? More... | |
const labelList & | boundaryPoints () const |
Return list of boundary points,. More... | |
const labelListList & | faceFaces () const |
Return face-face addressing. More... | |
const labelListList & | edgeFaces () const |
Return edge-face addressing. More... | |
const labelListList & | faceEdges () const |
Return face-edge addressing. More... | |
const labelListList & | pointEdges () const |
Return point-edge addressing. More... | |
const labelListList & | pointFaces () const |
Return point-face addressing. More... | |
const List< Face > & | localFaces () const |
Return patch faces addressing into local point list. More... | |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. More... | |
const Map< label > & | meshPointMap () const |
Mesh point map. Given the global point index find its. More... | |
const Field< PointType > & | localPoints () const |
Return pointField of points in patch. More... | |
const labelList & | localPointOrder () const |
Return orders the local points for most efficient search. More... | |
label | whichPoint (const label gp) const |
Given a global point index, return the local point. More... | |
label | whichEdge (const edge &e) const |
Given an edge in local point labels, return its index. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
Return labels of patch edges in the global edge list using. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
Return labels of patch edges in the global edge list using. More... | |
const Field< PointType > & | faceCentres () const |
Return face centres for patch. More... | |
const Field< PointType > & | faceNormals () const |
Return face normals for patch. More... | |
const Field< PointType > & | pointNormals () const |
Return point normals for patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const |
Project vertices of patch onto another patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const |
Project vertices of patch onto another patch. More... | |
const labelListList & | edgeLoops () const |
Return list of closed loops of boundary vertices. More... | |
surfaceTopo | surfaceType () const |
Calculate surface type formed by patch. More... | |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=NULL) const |
Check surface formed by patch for manifoldness (see above). More... | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=NULL) const |
Checks primitivePatch for faces sharing point but not edge. More... | |
void | writeVTK (const fileName &name) const |
Write VTK patch. More... | |
void | writeVTKNormals (const fileName &name) const |
Write VTK patch normals. More... | |
virtual void | movePoints (const Field< PointType > &) |
Correct patch after moving points. More... | |
void | operator= (const PrimitivePatch< Face, FaceList, PointField, PointType > &) |
Assignment. More... | |
PrimitivePatch (const FaceList< Face > &faces, const Field< PointType > &points) | |
Construct from components. More... | |
PrimitivePatch (const Xfer< FaceList< Face > > &faces, const Xfer< List< PointType > > &points) | |
Construct from components. More... | |
PrimitivePatch (FaceList< Face > &faces, Field< PointType > &points, const bool reUse) | |
Construct from components, reuse storage. More... | |
PrimitivePatch (const PrimitivePatch< Face, FaceList, PointField, PointType > &) | |
Construct as copy. More... | |
virtual | ~PrimitivePatch () |
Destructor. More... | |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
const Field< PointType > & | points () const |
Return reference to global points. More... | |
label | nPoints () const |
Return number of points supporting patch faces. More... | |
label | nEdges () const |
Return number of edges in patch. More... | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. More... | |
label | nInternalEdges () const |
Number of internal edges. More... | |
bool | isInternalEdge (const label edgeI) const |
Is internal edge? More... | |
const labelList & | boundaryPoints () const |
Return list of boundary points,. More... | |
const labelListList & | faceFaces () const |
Return face-face addressing. More... | |
const labelListList & | edgeFaces () const |
Return edge-face addressing. More... | |
const labelListList & | faceEdges () const |
Return face-edge addressing. More... | |
const labelListList & | pointEdges () const |
Return point-edge addressing. More... | |
const labelListList & | pointFaces () const |
Return point-face addressing. More... | |
const List< Face > & | localFaces () const |
Return patch faces addressing into local point list. More... | |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. They are constructed. More... | |
const Map< label > & | meshPointMap () const |
Mesh point map. Given the global point index find its. More... | |
const Field< PointType > & | localPoints () const |
Return pointField of points in patch. More... | |
const labelList & | localPointOrder () const |
Return orders the local points for most efficient search. More... | |
label | whichPoint (const label gp) const |
Given a global point index, return the local point index. More... | |
label | whichEdge (const edge &) const |
Given an edge in local point labels, return its. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
Return labels of patch edges in the global edge list using. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
Return labels of patch edges in the global edge list using. More... | |
const Field< PointType > & | faceCentres () const |
Return face centres for patch. More... | |
const Field< PointType > & | faceNormals () const |
Return face normals for patch. More... | |
const Field< PointType > & | pointNormals () const |
Return point normals for patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
Project vertices of patch onto another patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
Project vertices of patch onto another patch. More... | |
const labelListList & | edgeLoops () const |
Return list of closed loops of boundary vertices. More... | |
surfaceTopo | surfaceType () const |
Calculate surface type formed by patch. More... | |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=NULL) const |
Check surface formed by patch for manifoldness (see above). More... | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=NULL) const |
Checks primitivePatch for faces sharing point but not edge. More... | |
virtual void | movePoints (const Field< PointType > &) |
Correct patch after moving points. More... | |
void | operator= (const PrimitivePatch< Face, FaceList, PointField, PointType > &) |
Assignment. More... | |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
Static Public Member Functions | |
static autoPtr< polyPatch > | New (const word &patchType, const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm) |
Return a pointer to a new patch created on freestore from. More... | |
static autoPtr< polyPatch > | New (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm) |
Return a pointer to a new patch created on freestore from. More... | |
static autoPtr< polyPatch > | New (const word &patchType, const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm) |
Return a pointer to a new patch created on freestore from. More... | |
static bool | constraintType (const word &pt) |
Return true if the given type is a constraint type. More... | |
static wordList | constraintTypes () |
Return a list of all the constraint patch types. More... | |
![]() | |
static void | writeVTK (const fileName &name, const FaceListType &faces, const Field< PointType > &points) |
Write generic VTK patch, HJ, 14/Jan/2009. More... | |
static void | writeVTKNormals (const fileName &name, const FaceListType &faces, const Field< PointType > &points) |
Write generic VTK patch normals, HJ, 14/Jan/2009. More... | |
Static Public Attributes | |
static int | disallowGenericPolyPatch |
Debug switch to disallow the use of genericPolyPatch. More... | |
Protected Member Functions | |
virtual void | initGeometry (PstreamBuffers &) |
Initialise the calculation of the patch geometry. More... | |
virtual void | calcGeometry (PstreamBuffers &) |
Calculate the patch geometry. More... | |
virtual void | initMovePoints (PstreamBuffers &, const pointField &) |
Initialise the patches for moving points. More... | |
virtual void | movePoints (PstreamBuffers &, const pointField &p) |
Correct patches after moving points. More... | |
virtual void | initUpdateMesh (PstreamBuffers &) |
Initialise the update of the patch topology. More... | |
virtual void | updateMesh (PstreamBuffers &) |
Update of the patch topology. More... | |
virtual void | clearGeom () |
Clear geometry. More... | |
virtual void | movePoints (const Field< PointType > &) |
Inherit movePoints from primitivePatch. More... | |
virtual void | movePoints (const Field< PointType > &) |
Inherit movePoints from primitivePatch. More... | |
Private Attributes | |
label | start_ |
Start label of this patch in the polyMesh face list. More... | |
const polyBoundaryMesh & | boundaryMesh_ |
Reference to boundary mesh. More... | |
labelList::subList * | faceCellsPtr_ |
face-cell addressing More... | |
labelList * | mePtr_ |
Global edge addressing. More... | |
Friends | |
class | polyBoundaryMesh |
Ostream & | operator<< (Ostream &, const polyPatch &) |
Additional Inherited Members | |
![]() | |
enum | surfaceTopo { MANIFOLD, OPEN, ILLEGAL, MANIFOLD, OPEN, ILLEGAL } |
Enumeration defining the surface type. Used in check routines. More... | |
enum | surfaceTopo { MANIFOLD, OPEN, ILLEGAL, MANIFOLD, OPEN, ILLEGAL } |
Enumeration defining the surface type. Used in check routines. More... | |
typedef Face | FaceType |
typedef FaceList< Face > | FaceListType |
typedef PointField | PointFieldType |
typedef Face | FaceType |
typedef FaceList< Face > | FaceListType |
typedef PointField | PointFieldType |
A patch is a list of labels that address the faces in the global face list.
The patch can calculate its own edges based on the global faces. Patch also contains all addressing between the faces.
Definition at line 66 of file polyPatch.H.
polyPatch | ( | const word & | name, |
const label | size, | ||
const label | start, | ||
const label | index, | ||
const polyBoundaryMesh & | bm, | ||
const word & | patchType | ||
) |
Construct from components.
Definition at line 78 of file polyPatch.C.
References Foam::findIndex(), and word::null.
Referenced by polyPatch::clone().
polyPatch | ( | const word & | name, |
const label | size, | ||
const label | start, | ||
const label | index, | ||
const polyBoundaryMesh & | bm, | ||
const word & | physicalType, | ||
const wordList & | inGroups | ||
) |
Construct from components.
Definition at line 111 of file polyPatch.C.
polyPatch | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index, | ||
const polyBoundaryMesh & | bm, | ||
const word & | patchType | ||
) |
Construct from dictionary.
Definition at line 135 of file polyPatch.C.
References List::append(), Foam::findIndex(), and word::null.
polyPatch | ( | const polyPatch & | pp, |
const polyBoundaryMesh & | bm | ||
) |
Construct as copy, resetting the boundary mesh.
Definition at line 172 of file polyPatch.C.
polyPatch | ( | const polyPatch & | pp, |
const polyBoundaryMesh & | bm, | ||
const label | index, | ||
const label | newSize, | ||
const label | newStart | ||
) |
Construct given the original patch and resetting the.
face list and boundary mesh information
Definition at line 196 of file polyPatch.C.
polyPatch | ( | const polyPatch & | pp, |
const polyBoundaryMesh & | bm, | ||
const label | index, | ||
const labelUList & | mapAddressing, | ||
const label | newStart | ||
) |
Construct given the original patch and a map.
Definition at line 223 of file polyPatch.C.
Construct as copy.
Definition at line 249 of file polyPatch.C.
|
virtual |
Destructor.
Definition at line 262 of file polyPatch.C.
|
inlineprotectedvirtual |
Initialise the calculation of the patch geometry.
Reimplemented in coupledPolyPatch, oldCyclicPolyPatch, cyclicPolyPatch, cyclicAMIPolyPatch, cyclicACMIPolyPatch, processorPolyPatch, processorCyclicPolyPatch, mappedPolyPatch, mappedWallPolyPatch, regionCoupledPolyPatch, and regionCoupledWallPolyPatch.
Definition at line 100 of file polyPatch.H.
Referenced by regionCoupledPolyPatch::initGeometry(), regionCoupledWallPolyPatch::initGeometry(), mappedPolyPatch::initGeometry(), mappedWallPolyPatch::initGeometry(), cyclicAMIPolyPatch::initGeometry(), cyclicPolyPatch::initGeometry(), and oldCyclicPolyPatch::initGeometry().
|
inlineprotectedvirtual |
Calculate the patch geometry.
Reimplemented in coupledPolyPatch, cyclicPolyPatch, oldCyclicPolyPatch, cyclicAMIPolyPatch, cyclicACMIPolyPatch, processorPolyPatch, wedgePolyPatch, processorCyclicPolyPatch, mappedPolyPatch, mappedWallPolyPatch, regionCoupledWallPolyPatch, and symmetryPlanePolyPatch.
Definition at line 104 of file polyPatch.H.
Referenced by regionCoupledWallPolyPatch::calcGeometry(), mappedPolyPatch::calcGeometry(), and mappedWallPolyPatch::calcGeometry().
|
inlineprotectedvirtual |
Initialise the patches for moving points.
Reimplemented in cyclicAMIPolyPatch, cyclicACMIPolyPatch, regionCoupledPolyPatch, coupledPolyPatch, cyclicPolyPatch, oldCyclicPolyPatch, processorPolyPatch, processorCyclicPolyPatch, mappedPolyPatch, mappedWallPolyPatch, and regionCoupledWallPolyPatch.
Definition at line 108 of file polyPatch.H.
Referenced by regionCoupledPolyPatch::initMovePoints(), regionCoupledWallPolyPatch::initMovePoints(), mappedPolyPatch::initMovePoints(), mappedWallPolyPatch::initMovePoints(), cyclicAMIPolyPatch::initMovePoints(), oldCyclicPolyPatch::initMovePoints(), and cyclicPolyPatch::initMovePoints().
|
protectedvirtual |
Correct patches after moving points.
Reimplemented in cyclicAMIPolyPatch, cyclicACMIPolyPatch, regionCoupledPolyPatch, coupledPolyPatch, cyclicPolyPatch, oldCyclicPolyPatch, processorPolyPatch, processorCyclicPolyPatch, mappedPolyPatch, mappedWallPolyPatch, and regionCoupledWallPolyPatch.
Definition at line 57 of file polyPatch.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::movePoints(), and p.
Referenced by processorPolyPatch::initMovePoints(), regionCoupledPolyPatch::movePoints(), regionCoupledWallPolyPatch::movePoints(), mappedPolyPatch::movePoints(), mappedWallPolyPatch::movePoints(), cyclicAMIPolyPatch::movePoints(), oldCyclicPolyPatch::movePoints(), and cyclicPolyPatch::movePoints().
|
inlineprotectedvirtual |
Initialise the update of the patch topology.
Reimplemented in coupledPolyPatch, cyclicPolyPatch, oldCyclicPolyPatch, cyclicAMIPolyPatch, processorPolyPatch, cyclicACMIPolyPatch, processorCyclicPolyPatch, mappedPolyPatch, mappedWallPolyPatch, regionCoupledWallPolyPatch, and regionCoupledPolyPatch.
Definition at line 115 of file polyPatch.H.
Referenced by regionCoupledPolyPatch::initUpdateMesh(), regionCoupledWallPolyPatch::initUpdateMesh(), mappedPolyPatch::initUpdateMesh(), mappedWallPolyPatch::initUpdateMesh(), processorPolyPatch::initUpdateMesh(), cyclicAMIPolyPatch::initUpdateMesh(), oldCyclicPolyPatch::initUpdateMesh(), and cyclicPolyPatch::initUpdateMesh().
|
protectedvirtual |
Update of the patch topology.
Reimplemented in coupledPolyPatch, cyclicPolyPatch, oldCyclicPolyPatch, cyclicAMIPolyPatch, processorPolyPatch, cyclicACMIPolyPatch, processorCyclicPolyPatch, mappedPolyPatch, mappedWallPolyPatch, regionCoupledWallPolyPatch, and regionCoupledPolyPatch.
Definition at line 62 of file polyPatch.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::clearGeom().
Referenced by regionCoupledPolyPatch::updateMesh(), regionCoupledWallPolyPatch::updateMesh(), mappedPolyPatch::updateMesh(), mappedWallPolyPatch::updateMesh(), processorPolyPatch::updateMesh(), cyclicAMIPolyPatch::updateMesh(), oldCyclicPolyPatch::updateMesh(), and cyclicPolyPatch::updateMesh().
|
protectedvirtual |
Clear geometry.
Reimplemented in cyclicAMIPolyPatch, and cyclicACMIPolyPatch.
Definition at line 69 of file polyPatch.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::clearGeom().
Referenced by cyclicAMIPolyPatch::clearGeom().
TypeName | ( | "patch" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
polyPatch | , | ||
word | , | ||
(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType) | , | ||
(name, size, start, index, bm, patchType) | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
polyPatch | , | ||
dictionary | , | ||
(const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType) | , | ||
(name, dict, index, bm, patchType) | |||
) |
|
inlinevirtual |
Construct and return a clone, resetting the boundary mesh.
Reimplemented in cyclicPolyPatch, cyclicAMIPolyPatch, oldCyclicPolyPatch, cyclicACMIPolyPatch, processorCyclicPolyPatch, processorPolyPatch, mappedPolyPatch, mappedWallPolyPatch, immersedBoundaryPolyPatch, cyclicPeriodicAMIPolyPatch, mappedVariableThicknessWallPolyPatch, regionCoupledWallPolyPatch, regionCoupledPolyPatch, wedgePolyPatch, cyclicSlipPolyPatch, nonuniformTransformCyclicPolyPatch, symmetryPlanePolyPatch, genericPolyPatch, symmetryPolyPatch, emptyPolyPatch, and wallPolyPatch.
Definition at line 231 of file polyPatch.H.
References polyPatch::polyPatch().
Referenced by fvMeshTools::addPatch(), polyDualMesh::calcDual(), changeFrontBackPatches(), filterPatches(), main(), boundaryMesh::patchify(), and domainDecomposition::writeDecomposition().
|
inlinevirtual |
Construct and return a clone, resetting the face list.
and boundary mesh
Reimplemented in cyclicPolyPatch, cyclicAMIPolyPatch, oldCyclicPolyPatch, cyclicACMIPolyPatch, processorCyclicPolyPatch, processorPolyPatch, mappedPolyPatch, mappedWallPolyPatch, immersedBoundaryPolyPatch, cyclicPeriodicAMIPolyPatch, mappedVariableThicknessWallPolyPatch, regionCoupledWallPolyPatch, regionCoupledPolyPatch, wedgePolyPatch, nonuniformTransformCyclicPolyPatch, cyclicSlipPolyPatch, symmetryPlanePolyPatch, genericPolyPatch, symmetryPolyPatch, emptyPolyPatch, and wallPolyPatch.
Definition at line 239 of file polyPatch.H.
References patchIdentifier::index(), and polyPatch::polyPatch().
|
inlinevirtual |
Construct and return a clone, resetting the face list.
and boundary mesh
Reimplemented in cyclicPolyPatch, cyclicAMIPolyPatch, processorCyclicPolyPatch, cyclicACMIPolyPatch, processorPolyPatch, mappedWallPolyPatch, mappedPolyPatch, cyclicPeriodicAMIPolyPatch, mappedVariableThicknessWallPolyPatch, regionCoupledWallPolyPatch, regionCoupledPolyPatch, nonuniformTransformCyclicPolyPatch, cyclicSlipPolyPatch, wedgePolyPatch, symmetryPlanePolyPatch, genericPolyPatch, symmetryPolyPatch, emptyPolyPatch, and wallPolyPatch.
Definition at line 255 of file polyPatch.H.
References patchIdentifier::index(), and polyPatch::polyPatch().
|
static |
Return a pointer to a new patch created on freestore from.
components
Definition at line 32 of file polyPatchNew.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::name(), and Foam::nl.
Referenced by meshRefinement::appendPatch(), thermalBaffleFvPatchScalarField::createPatchMesh(), extrudePatchMesh::extrudePatchMesh(), main(), fvMeshTools::newMesh(), boundaryMesh::patchify(), meshReader::polyBoundaryPatches(), and fvMeshDistribute::receiveMesh().
|
static |
Return a pointer to a new patch created on freestore from.
dictionary
Definition at line 78 of file polyPatchNew.C.
References dict, Foam::endl(), Foam::Info, Foam::name(), and Foam::compressible::New().
|
static |
Return a pointer to a new patch created on freestore from.
dictionary
Definition at line 100 of file polyPatchNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::Info, Foam::name(), and Foam::nl.
|
inline |
Return start label of this patch in the polyMesh face list.
Definition at line 312 of file polyPatch.H.
References polyPatch::start_.
Referenced by preservePatchesConstraint::add(), polyTopoChange::addMesh(), fvMeshTools::addPatch(), meshRefinement::addPatch(), linearValveLayersFvMesh::addZonesAndModifiers(), linearValveFvMesh::addZonesAndModifiers(), mixerFvMesh::addZonesAndModifiers(), singleCellFvMesh::agglomerateMesh(), cellToFaceStencil::allCoupledFacesPatch(), cellToCellStencil::allCoupledFacesPatch(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), searchableSurfaceToFaceZone::applyToSet(), attachDetach::attachInterface(), InteractionLists< typename CloudType::parcelType >::buildInteractionLists(), volPointInterpolation::calcBoundaryAddressing(), decompositionMethod::calcCellCells(), CFCFaceToCellStencil::calcCellStencil(), isoSurface::calcCutTypes(), polyDualMesh::calcDual(), CFCCellToCellStencil::calcFaceBoundaryData(), CFCFaceToCellStencil::calcFaceBoundaryData(), FECCellToFaceStencil::calcFaceStencil(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), autoSnapDriver::calcNearestFacePointProperties(), meshRefinement::calcNeighbourData(), fvMeshAdder::calcPatchMap(), globalMeshData::calcPointBoundaryFaces(), attachDetach::calcPointMatchMap(), regionSplit::calcRegionSplit(), patchCloudSet::calcSamples(), patchSeedSet::calcSamples(), isoSurfaceCell::calcSnappedPoint(), edgeCollapser::calcTargetFaceSizes(), faceHeatShading::calculate(), faceShading::calculate(), solarLoad::calculateQdiff(), solarHeatLoad::calculateQdiff(), changeFrontBackPatches(), Foam::checkCoupledPoints(), FaceCellWave< Type, int >::checkCyclic(), hexRef8::checkMesh(), nbrToCell::combine(), patchToFace::combine(), cellToFace::combine(), inverseFaceDistanceDiffusivity::correct(), particle< Type >::correctAfterParallelTransfer(), cellDistFuncs::correctBoundaryFaceCells(), globalMeshData::coupledPatch(), meshRefinement::createBaffles(), parFvFieldReconstructor::createPatchFaceMaps(), structuredDecomp::decompose(), decompositionMethod::decompose(), fvMeshDistribute::deleteProcPatches(), determineCoupledFaces(), meshToMesh::distributeCells(), fvMeshSubset::doCoupledPatches(), dumpCyclicMatch(), ensightPartFaces::ensightPartFaces(), FaceCellWave< Type, int >::enterDomain(), extractSurface(), faceCoupleInfo::faceLabels(), polyMeshTools::faceOrthogonality(), mappedPatchBase::facePoints(), polyMeshTools::faceSkewness(), polyMeshTools::faceWeights(), filterPatches(), meshRefinement::findCellZoneGeometric(), meshRefinement::findCellZoneTopo(), patchProbes::findElements(), mappedPatchBase::findSamples(), meshRefinement::freeStandingBaffleFaces(), meshRefinement::freeStandingBaffles(), isoSurface::generateTriPoints(), meshRefinement::getChangedFaces(), FaceCellWave< Type, int >::getChangedPatchFaces(), removeCells::getExposedFaces(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), combineFaces::getMergeSets(), isoSurface::getNeighbour(), fvMeshDistribute::getNeighbourData(), externalDisplacementMeshMover::getPatch(), patchWave::getValues(), patchDataWave< TransferType >::getValues(), FaceCellWave< Type, int >::handleAMICyclicPatches(), particle< Type >::hitCyclicAMIPatch(), FreeStream< CloudType >::inflow(), thermalBaffleModel::init(), singleLayerRegion::initialise(), regionModel1D::initialise(), directionalPressureGradientExplicitSource::initialise(), effectivenessHeatExchangerSource::initialise(), fluxSummary::initialiseCellZoneAndDirection(), fluxSummary::initialiseFaceZone(), fluxSummary::initialiseFaceZoneAndDirection(), sampledPatchInternalField::interpolateField(), sampledPatch::interpolateField(), isoSurface::isoSurface(), FaceCellWave< Type, int >::leaveDomain(), main(), meshRefinement::makeConsistentFaceIndex(), meshRefinement::makePatch(), fvMeshAdder::MapSurfaceField(), fvMeshAdder::MapVolField(), meshRefinement::markFacesOnProblemCells(), regionToCell::markRegionFaces(), Foam::mergeAndWrite(), FaceCellWave< Type, int >::mergeFaceInfo(), meshRefinement::mergePatchFaces(), meshRefinement::mergePatchFacesUndo(), polyMeshAdder::mergePrimitives(), nearestPatch(), meshRefinement::nearestPatch(), sampledTriSurfaceMesh::nonCoupledboundaryTree(), combine< Type, TrackingData >::operator()(), patchFaces(), boundaryMesh::patchify(), fvMeshDistribute::printMeshInfo(), domainDecomposition::processInterCyclics(), directions::propagateDirection(), boundaryMesh::read(), structuredRenumber::renumber(), autoSnapDriver::repatchToSurface(), meshRefinement::selectSeparatedCoupledFaces(), patchWave::setChangedFaces(), patchDataWave< TransferType >::setChangedFaces(), smoothDelta::setChangedFaces(), rotorDiskSource::setFaceArea(), faceSource::setFaceZoneFaces(), fvMeshSubset::setLargeCellSubset(), MRFZone::setMRFFaces(), removeCells::setRefinement(), perfectInterface::setRefinement(), removeFaces::setRefinement(), cellDistFuncs::smallestDist(), Foam::fvc::smooth(), Foam::fvc::spread(), fvPatch::start(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), Foam::fvc::sweep(), syncTools::syncBoundaryFaceList(), syncTools::syncFaceList(), meshRefinement::testSyncBoundaryFaceList(), cyclicPolyPatch::transformGlobalFace(), extendedUpwindCellToFaceStencil::transportStencils(), triSurfaceTools::triangulateFaceCentre(), sampledPatch::update(), solarLoad::updateDirectHitRadiation(), solarHeatLoad::updateDirectHitRadiation(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), polyMeshTools::volRatio(), wallLayerCells::wallLayerCells(), streamLineBase::wallPatch(), boundaryMesh::whichPatch(), polyBoundaryMesh::whichPatch(), regionSizeDistribution::write(), domainDecomposition::writeDecomposition(), and meshRefinement::zonify().
const Foam::polyBoundaryMesh & boundaryMesh | ( | ) | const |
Return boundaryMesh reference.
Definition at line 302 of file polyPatch.C.
Referenced by InteractionLists< typename CloudType::parcelType >::buildInteractionLists(), mappedPatchBase::calcMapping(), viewFactor::calculate(), meshToMesh::calculatePatchAMIs(), solarLoad::calculateQdiff(), solarHeatLoad::calculateQdiff(), processorPolyPatch::comm(), meshToMesh::constructFromCuttingPatches(), patchPatchDist::correct(), fvMeshDistribute::deleteProcPatches(), mappedPatchBase::facePoints(), coupleGroupIdentifier::findOtherPatchID(), isoSurface::getNeighbour(), FaceCellWave< Type, int >::handleAMICyclicPatches(), PointEdgeWave< Type, TrackingData >::handleCyclicPatches(), FaceCellWave< Type, int >::handleCyclicPatches(), mappedVariableThicknessWallFvPatch::makeDeltaCoeffs(), regionModel::nbrCoupledPatchID(), cyclicPolyPatch::neighbPatch(), cyclicAMIPolyPatch::neighbPatchName(), wallBoundedParticle::patchInteraction(), processorCyclicPolyPatch::referPatch(), processorCyclicPolyPatch::referPatchID(), regionCoupledBase::resetAMI(), cyclicPeriodicAMIPolyPatch::syncTransforms(), and particle< Type >::trackToFace().
|
inlinevirtual |
Return true if this patch is geometrically coupled (i.e. faces and.
points correspondence)
Reimplemented in cyclicAMIPolyPatch, coupledPolyPatch, processorPolyPatch, and regionCoupledPolyPatch.
Definition at line 322 of file polyPatch.H.
Referenced by singleCellFvMesh::agglomerateMesh(), cellToFaceStencil::allCoupledFacesPatch(), cellToCellStencil::allCoupledFacesPatch(), searchableSurfaceToFaceZone::applyToSet(), decompositionMethod::calcCellCells(), CFCFaceToCellStencil::calcFaceBoundaryData(), CFCCellToCellStencil::calcFaceBoundaryData(), FECCellToFaceStencil::calcFaceStencil(), cellToFaceStencil::calcFaceStencil(), autoSnapDriver::calcNearestFacePointProperties(), meshRefinement::calcNeighbourData(), globalMeshData::calcPointBoundaryFaces(), isoSurfaceCell::calcSnappedPoint(), edgeCollapser::calcTargetFaceSizes(), faceShading::calculate(), faceHeatShading::calculate(), solarLoad::calculate(), solarHeatLoad::calculate(), hexRef8::checkMesh(), nbrToCell::combine(), cellToFace::combine(), globalPoints::countPatchPoints(), regionCoupledWallFvPatch::coupled(), fvPatch::coupled(), facePointPatch::coupled(), globalMeshData::coupledPatch(), meshRefinement::createBaffles(), decompositionMethod::decompose(), autoLayerDriver::doLayers(), polyMeshTools::faceOrthogonality(), polyMeshTools::faceSkewness(), polyMeshTools::faceWeights(), meshRefinement::findCellZoneGeometric(), meshRefinement::findCellZoneTopo(), fvMeshDistribute::findNonEmptyPatch(), meshRefinement::freeStandingBaffles(), isoSurface::generateTriPoints(), removeCells::getExposedFaces(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), combineFaces::getMergeSets(), fvMeshDistribute::getNeighbourData(), fluxSummary::initialiseCellZoneAndDirection(), globalPoints::initOwnPoints(), isoSurface::isoSurface(), meshRefinement::makeConsistentFaceIndex(), meshRefinement::markFacesOnProblemCells(), Foam::mergeAndWrite(), meshRefinement::mergePatchFaces(), meshRefinement::mergePatchFacesUndo(), sampledTriSurfaceMesh::nonCoupledboundaryTree(), patchInteractionDataList::patchInteractionDataList(), smoothDelta::setChangedFaces(), rotorDiskSource::setFaceArea(), MRFZone::setMRFFaces(), removeCells::setRefinement(), regionToCell::shrinkRegions(), Foam::fvc::smooth(), Foam::fvc::spread(), Foam::fvc::sweep(), extendedUpwindCellToFaceStencil::transportStencils(), medialAxisMeshMover::update(), cellToFaceStencil::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), polyMeshTools::volRatio(), and meshRefinement::zonify().
|
static |
Return true if the given type is a constraint type.
Definition at line 270 of file polyPatch.C.
Referenced by meshToMesh::constructFromCuttingPatches(), meshToMesh::constructNoCuttingPatches(), and meshRefinement::meshedPatches().
|
static |
Return a list of all the constraint patch types.
Definition at line 276 of file polyPatch.C.
References List::setSize().
|
inline |
Extract face cell data.
Definition at line 336 of file polyPatch.H.
References polyPatch::faceCells().
Referenced by FaceCellWave< Type, int >::handleAMICyclicPatches().
Slice list to patch.
Definition at line 345 of file polyPatch.H.
References polyPatch::start_.
Referenced by sampledCuttingPlane::createGeometry(), FaceCellWave< Type, int >::handleAMICyclicPatches(), and isoSurface::isoSurface().
|
virtual |
Write the polyPatch data as a dictionary.
Reimplemented in cyclicAMIPolyPatch, cyclicPolyPatch, processorCyclicPolyPatch, coupledPolyPatch, processorPolyPatch, cyclicACMIPolyPatch, oldCyclicPolyPatch, mappedWallPolyPatch, mappedVariableThicknessWallPolyPatch, mappedPolyPatch, immersedBoundaryPolyPatch, cyclicPeriodicAMIPolyPatch, regionCoupledPolyPatch, regionCoupledWallPolyPatch, and genericPolyPatch.
Definition at line 382 of file polyPatch.C.
References token::END_STATEMENT, Foam::nl, Foam::type(), patchIdentifier::write(), and Ostream::writeKeyword().
Referenced by regionCoupledWallPolyPatch::write(), regionCoupledPolyPatch::write(), immersedBoundaryPolyPatch::write(), mappedPolyPatch::write(), mappedWallPolyPatch::write(), and coupledPolyPatch::write().
const Foam::vectorField::subField faceCentres | ( | ) | const |
Return face centres.
Definition at line 308 of file polyPatch.C.
References mesh.
Referenced by meshToMesh0::calcAddressing(), meshRefinement::calcNeighbourData(), cyclicAMIPolyPatch::calcTransforms(), cyclicPolyPatch::calcTransforms(), faceHeatShading::calculate(), faceShading::calculate(), Foam::checkCoupledPoints(), inverseFaceDistanceDiffusivity::correct(), FaceCellWave< Type, int >::handleAMICyclicPatches(), FreeStream< CloudType >::inflow(), forces::initialiseBins(), patchTransformedInterpolation::interpolate(), patchWave::setChangedFaces(), patchDataWave< TransferType >::setChangedFaces(), canopySource::setPatchLanduse(), autoSnapDriver::smoothPatchDisplacement(), and movingWallVelocityFvPatchVectorField::updateCoeffs().
const Foam::vectorField::subField faceAreas | ( | ) | const |
Return face normals.
Definition at line 314 of file polyPatch.C.
References mesh.
Referenced by meshRefinement::calcNeighbourData(), DSMCParcel::hitWallPatch(), FreeStream< CloudType >::inflow(), singleLayerRegion::initialise(), cyclicACMIPolyPatch::initPatchFaceAreas(), regionModel1D::moveMesh(), cyclicACMIPolyPatch::nonOverlapPatchID(), cyclicACMIPolyPatch::resetAMI(), cyclicACMIPolyPatch::setNeighbourFaceAreas(), cyclicACMIFvPatch::updateAreas(), patchInjectionBase::updateMesh(), and dsmcFields::write().
Foam::tmp< Foam::vectorField > faceCellCentres | ( | ) | const |
Return face cell centres.
Definition at line 321 of file polyPatch.C.
References forAll.
Referenced by nearWallFields::calcAddressing().
const Foam::labelUList & faceCells | ( | ) | const |
Return face-cell addressing.
Definition at line 340 of file polyPatch.C.
References mesh.
Referenced by preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), attachDetach::attachInterface(), Cloud< streamLineParticle >::calcCellWallFaces(), meshRefinement::calcNeighbourData(), edgeCollapser::calcTargetFaceSizes(), solarLoad::calculateQdiff(), solarHeatLoad::calculateQdiff(), patchInjection::correct(), particle< Type >::correctAfterParallelTransfer(), structuredDecomp::decompose(), domainDecomposition::decomposeMesh(), autoLayerDriver::doLayers(), regionSizeDistribution::findPatchRegions(), fvMeshDistribute::getNeighbourData(), singleLayerRegion::initialise(), regionModel::initialise(), patchTransformedInterpolation::interpolate(), regionToCell::markRegionFaces(), Foam::mergeAndWrite(), polyPatch::patchInternalList(), autoLayerDriver::printLayerData(), domainDecomposition::processInterCyclics(), SLTSDdtScheme< Type >::relaxedDiag(), structuredRenumber::renumber(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), activeBaffleVelocityFvPatchVectorField::updateCoeffs(), activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs(), solarLoad::updateDirectHitRadiation(), solarHeatLoad::updateDirectHitRadiation(), patchInjectionBase::updateMesh(), solarLoad::updateSkyDiffusiveRadiation(), solarHeatLoad::updateSkyDiffusiveRadiation(), and autoLayerDriver::writeLayerData().
const Foam::labelList & meshEdges | ( | ) | const |
Return global edge index for local edges.
Definition at line 354 of file polyPatch.C.
References mesh, and PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges().
Referenced by polyDualMesh::collectPatchInternalFace(), polyDualMesh::collectPatchSideFace(), and polyDualMesh::dualPatch().
|
virtual |
Clear addressing.
Definition at line 373 of file polyPatch.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::clearPatchMeshAddr(), PrimitivePatch< Face, FaceList, PointField, PointType >::clearTopology(), and Foam::deleteDemandDrivenData().
Return label of face in patch from global face label.
Definition at line 389 of file polyPatch.H.
References polyPatch::start_.
Referenced by MaxwellianThermal< CloudType >::correct(), MixedDiffuseSpecular< CloudType >::correct(), LocalInteraction< CloudType >::correct(), FacePostProcessing< CloudType >::FacePostProcessing(), particle< Type >::hitCyclicPatch(), DSMCParcel::hitWallPatch(), directionalPressureGradientExplicitSource::initialise(), effectivenessHeatExchangerSource::initialise(), fluxSummary::initialiseFaceZone(), fluxSummary::initialiseFaceZoneAndDirection(), fvMeshSubset::interpolate(), KinematicCloud< CloudType >::patchData(), ParticleErosion< CloudType >::postPatch(), faceSource::setFaceZoneFaces(), and ThermoSurfaceFilm< CloudType >::transferParcel().
|
virtual |
Initialize ordering for primitivePatch. Does not.
refer to *this (except for name() and type() etc.)
Reimplemented in coupledPolyPatch, cyclicPolyPatch, cyclicAMIPolyPatch, processorCyclicPolyPatch, cyclicACMIPolyPatch, processorPolyPatch, and oldCyclicPolyPatch.
Definition at line 391 of file polyPatch.C.
|
virtual |
Return new ordering for primitivePatch.
Ordering is -faceMap: for every face index of the new face -rotation:for every new face the clockwise shift of the original face. Return false if nothing changes (faceMap is identity, rotation is 0), true otherwise.
Reimplemented in coupledPolyPatch, cyclicAMIPolyPatch, cyclicPolyPatch, processorCyclicPolyPatch, processorPolyPatch, cyclicACMIPolyPatch, and oldCyclicPolyPatch.
Definition at line 396 of file polyPatch.C.
void operator= | ( | const polyPatch & | p | ) |
Assignment.
Definition at line 410 of file polyPatch.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::operator=(), and p.
|
protected |
Inherit movePoints from primitivePatch.
Definition at line 187 of file PrimitivePatchTemplate.C.
|
protected |
Inherit movePoints from primitivePatch.
|
friend |
Definition at line 97 of file polyPatch.H.
|
private |
Start label of this patch in the polyMesh face list.
Definition at line 74 of file polyPatch.H.
Referenced by polyPatch::patchSlice(), polyPatch::start(), and polyPatch::whichFace().
|
private |
Reference to boundary mesh.
Definition at line 77 of file polyPatch.H.
|
mutableprivate |
face-cell addressing
Definition at line 83 of file polyPatch.H.
|
mutableprivate |
Global edge addressing.
Definition at line 86 of file polyPatch.H.
|
static |
Debug switch to disallow the use of genericPolyPatch.
Definition at line 131 of file polyPatch.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.