56 class polyBoundaryMesh;
60 Ostream&
operator<<(Ostream&,
const polyPatch&);
154 const word& patchType
169 const word& patchType
185 const word& patchType
195 const word& patchType
244 const word& patchType,
266 const word& patchType,
SubField< Type > subField
Declare type of subField.
SubList< T > subList
Declare type of subList.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
autoPtr< PrimitivePatch< SubList< face >, const pointField & > > clone() const
Construct and return a clone.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
Pre-declare related SubField type.
A List obtained as a section of another List.
A List with indirect addressing.
label size() const
Return the number of elements in the UList.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Identifies patch by name, patch index and physical type.
label index() const
Return the index of this patch in the boundaryMesh.
const word & name() const
Return name.
A patch is a list of labels that address the faces in the global face list.
static wordList constraintTypes()
Return a list of all the constraint patch types.
label whichFace(const label l) const
Return label of face in patch from global face label.
const vectorField::subField faceAreas() const
Return face areas.
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.
const UIndirectList< T > patchInternalList(const UList< T > &internalValues) const
Extract face cell data.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
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))
virtual void rename(const wordList &newNames)
Reset the patch name.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
virtual void clearGeom()
Clear geometry.
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
label start() const
Return start label of this patch in the polyMesh face list.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
const vectorField::subField faceCentres() const
Return face centres.
const List< T >::subList patchSlice(const UList< T > &l) const
Slice list to patch.
virtual void movePoints(const pointField &p)
Correct patches after moving points.
virtual ~polyPatch()
Destructor.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
void operator=(const polyPatch &)
Assignment.
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.
virtual void clearAddressing()
Clear addressing.
virtual void initTopoChange(PstreamBuffers &)
Initialise the 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.
static int disallowGenericPolyPatch
Debug switch to disallow the use of genericPolyPatch.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
tmp< vectorField > faceCellCentres() const
Return face cell centres.
const scalarField::subField magFaceAreas() const
Return face area magnitudes.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
friend Ostream & operator<<(Ostream &, const polyPatch &)
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
const labelUList & faceCells() const
Return face-cell addressing.
const labelList & meshEdges() const
Return global edge index for local edges.
A class for managing temporary objects.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
Macros to ease declaration of run-time selection tables.
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...