84 name_ = newNames[index_];
90 index_ =
findIndex(newToOldIndex, index_);
103 const word& patchType
114 faceCellsPtr_(
nullptr),
120 && constraintType(patchType)
121 &&
findIndex(inGroups(), patchType) == -1
124 inGroups().append(patchType);
135 const word& patchType
151 faceCellsPtr_(
nullptr),
157 && constraintType(patchType)
158 &&
findIndex(inGroups(), patchType) == -1
161 inGroups().append(patchType);
185 faceCellsPtr_(
nullptr),
212 faceCellsPtr_(
nullptr),
232 mapAddressing.
size(),
239 faceCellsPtr_(
nullptr),
249 boundaryMesh_(p.boundaryMesh_),
250 faceCellsPtr_(nullptr),
273 wordList cTypes(dictionaryConstructorTablePtr_->size());
279 dictionaryConstructorTable::iterator cstrIter =
280 dictionaryConstructorTablePtr_->begin();
281 cstrIter != dictionaryConstructorTablePtr_->end();
287 cTypes[i++] = cstrIter.key();
299 return boundaryMesh_;
333 cc[facei] = gcc[faceCells[facei]];
350 return *faceCellsPtr_;
414 patchIdentifier::operator=(p);
425 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.
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 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 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.
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
void write(Ostream &) const
Write patchIdentifier as a dictionary.
static wordList constraintTypes()
Return a list of all the constraint patch types.
virtual void movePoints(const pointField &p)
Correct patches after moving points.
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.