78 name_ = newNames[index_];
84 index_ =
findIndex(newToOldIndex, index_);
108 faceCellsPtr_(
nullptr),
114 && constraintType(patchType)
115 &&
findIndex(inGroups(), patchType) == -1
118 inGroups().append(patchType);
129 const word& patchType
145 faceCellsPtr_(
nullptr),
151 && constraintType(patchType)
152 &&
findIndex(inGroups(), patchType) == -1
155 inGroups().append(patchType);
179 faceCellsPtr_(
nullptr),
206 faceCellsPtr_(
nullptr),
226 mapAddressing.
size(),
233 faceCellsPtr_(
nullptr),
243 boundaryMesh_(p.boundaryMesh_),
244 faceCellsPtr_(nullptr),
267 wordList cTypes(dictionaryConstructorTablePtr_->size());
273 dictionaryConstructorTable::iterator cstrIter =
274 dictionaryConstructorTablePtr_->begin();
275 cstrIter != dictionaryConstructorTablePtr_->end();
281 cTypes[i++] = cstrIter.key();
293 return boundaryMesh_;
327 cc[facei] = gcc[faceCells[facei]];
344 return *faceCellsPtr_;
408 patchIdentifier::operator=(p);
419 os.
check(
"Ostream& operator<<(Ostream& os, const polyPatch& p");
const labelListList & pointEdges() const
Return point-edge addressing.
#define forAll(list, i)
Loop across all elements in list.
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.
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 bool check(const char *operation) const
Check IOstream status for given operation.
Identifies patch by name, patch index and physical type.
T & ref() const
Return non-const reference or generate a fatal error.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
SubList< label > subList
Declare type of subList.
virtual void clearAddressing()
Clear addressing.
Pre-declare related SubField type.
void clearPatchMeshAddr()
Macros for easy insertion into run-time selection tables.
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.
virtual const pointField & points() const
Return raw points.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
Abstract base class for point-mesh patch fields.
A list of faces which address into the list of points.
A List obtained as a section of another List.
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.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
static const word null
An empty word.
const polyMesh & mesh() const
Return the mesh reference.
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
tmp< vectorField > faceCellCentres() const
Return face cell centres.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
List< label > labelList
A List of labels.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
virtual const faceList & faces() const
Return raw faces.
polyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
const vectorField & cellCentres() const
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.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
const labelList & meshEdges() const
Return global edge index for local edges.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
Addressing for a faceList slice.
void write(Ostream &) const
Write patchIdentifier as a dictionary.
static wordList constraintTypes()
Return a list of all the constraint patch types.
void setSize(const label)
Reset size of List.
const scalarField::subField magFaceAreas() const
Return face area magnitudes.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
labelList meshEdges(const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
Return labels of patch edges in the global edge list using.
label start() const
Return start label of this patch in the polyMesh face list.
Ostream & operator<<(Ostream &, const ensightPart &)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
SubList< face > faceSubList
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
label size() const
Return the number of elements in the UList.
void deleteDemandDrivenData(DataPtr &dataPtr)
void operator=(const PrimitivePatch< FaceList, PointField > &)
Assignment operator.
const List< T >::subList patchSlice(const UList< T > &l) const
Slice list to patch.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const vectorField::subField faceCentres() const
Return face centres.