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