Go to the documentation of this file.
57 class polyBoundaryMesh;
62 Ostream&
operator<<(Ostream&,
const polyPatch&);
150 const word& patchType
165 const word& patchType
181 const word& patchType
203 const word& patchType
263 (*
this, bm,
index, mapAddressing, newStart);
273 const word& patchType,
295 const word& patchType,
401 inline label
whichFace(
const label l)
const
TypeName("patch")
Runtime type information.
static autoPtr< T > New(Args &&... args)
Construct autoPtr of T with forwarding arguments.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from Foam::string.
virtual void movePoints(PstreamBuffers &, const pointField &p)
Correct patches after moving points.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
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 bool changeTopology() const
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.
Direct mesh changes based on v1.3 polyTopoChange syntax.
label offset() const
The offset where this patch starts in the boundary face list.
tmp< scalarField > areaFraction() const
labelRange operator()(const polyPatch &pp) const
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
const UIndirectList< T > patchInternalList(const UList< T > &internalValues) const
Extract face cell data.
SubField is a Field obtained as a section of another Field.
List< word > wordList
A List of words.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
Identifies a patch by name, patch index and physical type.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
const wordList & inGroups() const
The (optional) groups that the patch belongs to.
void operator=(const polyPatch &)
Assignment.
A patch is a list of labels that address the faces in the global face list.
labelRange range() const
Return start/size range of this patch.
const word & physicalType() const
The (optional) physical type of the patch.
A range or interval of labels defined by a start and a size.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
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.
Conversion/extraction to labelRange operation (functor).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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.
const vectorField::subField faceAreas() const
Return face normals.
const Field< T >::subField patchSlice(const Field< T > &l) const
Slice Field to patch.
virtual bool setTopology(polyTopoChange &)
Collect topology changes in a polyTopoChange object.
A List with indirect addressing.
SubField< Type > subField
Declare type of subField.
virtual void movePoints(const Field< point_type > &)
Correct patch after moving points.
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
The patch name.
label index() const
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.