56 class polyBoundaryMesh;
60 Ostream&
operator<<(Ostream&,
const polyPatch&);
154 const word& patchType
156 (name, size, start, index, bm, patchType)
169 const word& patchType
171 (name, dict, index, bm, patchType)
185 const word& patchType
195 const word& patchType
246 new polyPatch(*
this, bm, index, newSize, newStart)
262 new polyPatch(*
this, bm, index, mapAddressing, newStart)
273 const word& patchType,
295 const word& patchType,
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const UIndirectList< T > patchInternalList(const UList< T > &internalValues) const
Extract face cell data.
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.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
friend Ostream & operator<<(Ostream &, const polyPatch &)
SubList< T > subList
Declare type of subList.
virtual void clearAddressing()
Clear addressing.
virtual autoPtr< PrimitivePatch< FaceList, PointField > > clone() const
Construct and return a clone.
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 write(Ostream &) const
Write the polyPatch data as a dictionary.
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))
A list of faces which address into the list of points.
A List obtained as a section of another List.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
const labelUList & faceCells() const
Return face-cell addressing.
A class for handling words, derived from string.
virtual ~polyPatch()
Destructor.
virtual void rename(const wordList &newNames)
Reset the patch name.
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
tmp< vectorField > faceCellCentres() const
Return face cell centres.
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 vectorField::subField faceAreas() const
Return face areas.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
const labelList & meshEdges() const
Return global edge index for local edges.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
static wordList constraintTypes()
Return a list of all the constraint patch types.
const scalarField::subField magFaceAreas() const
Return face area magnitudes.
virtual void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
A List with indirect addressing.
label start() const
Return start label of this patch in the polyMesh face list.
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.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
const List< T >::subList patchSlice(const UList< T > &l) const
Slice list to patch.
label whichFace(const label l) const
Return label of face in patch from global face label.
const vectorField::subField faceCentres() const
Return face centres.