84 name_ = newNames[index_];
90 index_ =
findIndex(newToOldIndex, index_);
103 const word& patchType
114 faceCellsPtr_(nullptr),
135 const word& patchType
151 faceCellsPtr_(nullptr),
185 faceCellsPtr_(nullptr),
212 faceCellsPtr_(nullptr),
222 boundaryMesh_(
p.boundaryMesh_),
223 faceCellsPtr_(nullptr),
246 wordList cTypes(dictionaryConstructorTablePtr_->size());
252 dictionaryConstructorTable::iterator cstrIter =
253 dictionaryConstructorTablePtr_->begin();
254 cstrIter != dictionaryConstructorTablePtr_->end();
258 if (constraintType(cstrIter.key()))
260 cTypes[i++] = cstrIter.key();
272 return boundaryMesh_;
278 return patchSlice(boundaryMesh().mesh().faceCentres());
284 return patchSlice(boundaryMesh().mesh().faceAreas());
290 return patchSlice(boundaryMesh().mesh().magFaceAreas());
300 const vectorField& gcc = boundaryMesh_.mesh().cellCentres();
302 const labelUList& faceCells = this->faceCells();
306 cc[facei] = gcc[faceCells[facei]];
319 patchSlice(boundaryMesh().mesh().faceOwner())
323 return *faceCellsPtr_;
336 boundaryMesh().mesh().edges(),
337 boundaryMesh().mesh().pointEdges()
387 patchIdentifier::operator=(
p);
398 os.
check(
"Ostream& operator<<(Ostream& os, const polyPatch& p");
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
SubList< label > subList
Declare type of subList.
void append(const T &)
Append an element at the end of the list.
void setSize(const label)
Reset size of List.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
labelList meshEdges(const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
Return labels of patch edges in the global edge list using.
void operator=(const PrimitivePatch< SubList< face >, const pointField & > &)
Assignment operator.
void clearPatchMeshAddr()
Buffers for inter-processor communications streams (UOPstream, UIPstream).
Pre-declare related SubField type.
A List obtained as a section of another List.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Identifies patch by name, patch index and physical type.
void write(Ostream &) const
Write patchIdentifier as a dictionary.
const wordList & inGroups() const
Return the optional groups patch belongs to.
Abstract base class for point-mesh patch fields.
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.
const vectorField::subField faceAreas() const
Return face areas.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void rename(const wordList &newNames)
Reset the patch name.
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.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
const vectorField::subField faceCentres() const
Return face centres.
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 bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
virtual void clearAddressing()
Clear addressing.
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.
tmp< vectorField > faceCellCentres() const
Return face cell centres.
const scalarField::subField magFaceAreas() const
Return face area magnitudes.
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.
virtual bool write(const bool write=true) const
Write using setting from DB.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
static const word null
An empty word.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
List< label > labelList
A List of labels.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const bool)
Return a word representation of a bool.
void deleteDemandDrivenData(DataType *&dataPtr)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
defineTypeNameAndDebug(combustionModel, 0)
Field< vector > vectorField
Specialisation of Field<T> for vector.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.