Go to the documentation of this file.
57 class polyBoundaryMesh;
62 Ostream&
operator<<(Ostream&,
const polyPatch&);
147 const word& patchType
162 const word& patchType
178 const word& patchType
200 const word& patchType
271 (*
this, bm,
index, mapAddressing, newStart);
280 const word& patchType,
300 const word& patchType,
449 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.
virtual bool masterImplicit() const
Return implicit master.
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.
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
virtual void newInternalProcFaces(label &, label &) const
Return number of new internal of this polyPatch faces.
labelRange operator()(const polyPatch &pp) const
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
virtual word neighbRegionID() const
Return neighbour region name.
const UIndirectList< T > patchInternalList(const UList< T > &internalValues) const
Extract face cell data.
SubField is a Field obtained as a section of another Field, without its own allocation....
List< word > wordList
A List of words.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
Identifies a patch by name and index, with optional physical type and group information.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
const wordList & inGroups() const noexcept
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.
virtual const labelUList & nbrCells() const
Return nbrCells.
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 pointer to a new patch created on freestore from components.
virtual void write(Ostream &os) const
Write the polyPatch data as a dictionary.
OBJstream os(runTime.globalPath()/outputName)
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
label index() const noexcept
The index of this patch in the boundaryMesh.
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.
virtual label neighbPolyPatchID() const
Return nbr patchID.
Macros to ease declaration of run-time selection tables.
const vectorField::subField faceAreas() const
Return face normals.
virtual refPtr< labelListList > mapCollocatedFaces() const
Return mapped collocated faces.
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.
virtual autoPtr< polyPatch > clone(const labelList &faceCells) const
Construct and return a clone, setting faceCells.
A List with indirect addressing.
SubField< Type > subField
Declare type of subField.
virtual void movePoints(const Field< point_type > &)
Correct patch after moving points.
const word & name() const noexcept
The patch name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
static const UList< T > & null()
Return a UList reference to a nullObject.
const labelList & meshEdges() const
Return global edge index for local edges.
const word & physicalType() const noexcept
The (optional) physical type of the patch.
Smooth ATC in cells next to a set of patches supplied by type.
A class for managing references or pointers (no reference counting)
A list of faces which address into the list of points.
static int disallowGenericPolyPatch
Debug switch to disallow the use of genericPolyPatch.