83 name_ = newNames[index_];
89 index_ =
findIndex(newToOldIndex, index_);
112 faceCellsPtr_(nullptr),
138 faceCellsPtr_(nullptr),
162 faceCellsPtr_(nullptr),
189 faceCellsPtr_(nullptr),
199 boundaryMesh_(
p.boundaryMesh_),
200 faceCellsPtr_(nullptr),
217 return boundaryMesh_;
223 return boundaryMesh_.mesh();
229 return patchSlice(
mesh().faceCentres());
235 return patchSlice(
mesh().faceAreas());
241 return patchSlice(
mesh().magFaceAreas());
253 const labelUList& faceCells = this->faceCells();
257 cc[facei] = gcc[faceCells[facei]];
270 patchSlice(
mesh().faceOwner())
274 return *faceCellsPtr_;
352 patchIdentifier::operator=(
p);
363 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.
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Identifies patch by name, patch index and physical type.
void write(Ostream &) const
Write patchIdentifier as a dictionary.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
const vectorField::subField faceAreas() const
Return face areas.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
void reset(const label size, const label start)
Reset the size and start of the patch.
virtual void rename(const wordList &newNames)
Reset the patch name.
const polyMesh & mesh() const
Return mesh reference.
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.
polyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
Construct from components.
virtual ~polyPatch()
Destructor.
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.
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.
const vectorField & cellCentres() const
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
List< label > labelList
A List of labels.
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)
SubList< face > faceSubList
void deleteDemandDrivenData(DataType *&dataPtr)
defineRunTimeSelectionTable(fvConstraint, dictionary)
Field< vector > vectorField
Specialisation of Field<T> for vector.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
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)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.