Go to the documentation of this file.
43 #include "primitivePatch.H"
56 class polyBoundaryMesh;
60 Ostream&
operator<<(Ostream&,
const polyPatch&);
148 const word& patchType
163 const word& patchType
179 const word& patchType
201 const word& patchType
276 const word& patchType,
298 const word& patchType,
TypeName("patch")
Runtime type information.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from string.
virtual void movePoints(PstreamBuffers &, const pointField &p)
Correct patches after moving points.
friend Ostream & operator<<(Ostream &, const polyPatch &)
A class for managing temporary objects.
virtual void clearAddressing()
Clear addressing.
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))
A List obtained as a section of another List.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
virtual void clearGeom()
Clear geometry.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
label start_
Start label of this patch in the polyMesh face list.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
const polyBoundaryMesh & boundaryMesh_
Reference to boundary mesh.
const UIndirectList< T > patchInternalList(const UList< T > &internalValues) const
Extract face cell data.
Pre-declare related SubField type.
List< word > wordList
A List of words.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
Identifies patch by name, patch index and physical type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
const wordList & inGroups() const
Return the optional groups patch belongs to.
void operator=(const polyPatch &)
Assignment.
labelList::subList * faceCellsPtr_
face-cell addressing
A patch is a list of labels that address the faces in the global face list.
const word & physicalType() const
Return the optional physical type of the patch.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
Ostream & operator<<(Ostream &, const edgeMesh &)
static wordList constraintTypes()
Return a list of all the constraint patch types.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
SubList< T > subList
Declare type of subList.
A list of keyword definitions, which are a keyword followed by any number of values (e....
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.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
const labelUList & faceCells() const
Return face-cell addressing.
label start() const
Return start label of this patch in the polyMesh face list.
virtual ~polyPatch()
Destructor.
virtual autoPtr< polyPatch > clone(const polyBoundaryMesh &bm) const
Construct and return a clone, resetting the boundary mesh.
tmp< vectorField > faceCellCentres() const
Return face cell centres.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
polyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
label whichFace(const label l) const
Return label of face in patch from global face label.
const List< T >::subList patchSlice(const UList< T > &l) const
Slice list to patch.
const vectorField::subField faceCentres() const
Return face centres.
Macros to ease declaration of run-time selection tables.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const vectorField::subField faceAreas() const
Return face normals.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
labelList * mePtr_
Global edge addressing.
const Field< T >::subField patchSlice(const Field< T > &l) const
Slice Field to patch.
SubField< Type > subField
Declare type of subField.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
const labelList & meshEdges() const
Return global edge index for local edges.
const word & name() const
Return name.
label index() const
Return the index of this patch in the boundaryMesh.
A list of faces which address into the list of points.
static int disallowGenericPolyPatch
Debug switch to disallow the use of genericPolyPatch.