Go to the documentation of this file.
30 #include "primitiveMesh.H"
101 && constraintType(patchType)
102 &&
findIndex(inGroups(), patchType) == -1
105 inGroups().
append(patchType);
117 const word& physicalType,
140 const word& patchType
162 && constraintType(patchType)
163 &&
findIndex(inGroups(), patchType) == -1
166 inGroups().
append(patchType);
237 mapAddressing.
size(),
254 boundaryMesh_(
p.boundaryMesh_),
278 wordList cTypes(dictionaryConstructorTablePtr_->size());
284 dictionaryConstructorTable::iterator cstrIter =
285 dictionaryConstructorTablePtr_->begin();
286 cstrIter != dictionaryConstructorTablePtr_->end();
290 if (constraintType(cstrIter.key()))
292 cTypes[i++] = cstrIter.key();
304 return boundaryMesh_;
327 const vectorField& gcc = boundaryMesh_.mesh().cellCentres();
329 const labelUList& faceCells = this->faceCells();
333 cc[facei] = gcc[faceCells[facei]];
350 return *faceCellsPtr_;
414 patchIdentifier::operator=(
p);
425 os.
check(
"Ostream& operator<<(Ostream& os, const polyPatch& p");
virtual const pointField & points() const
Return raw points.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from string.
List< label > labelList
A List of labels.
virtual void movePoints(PstreamBuffers &, const pointField &p)
Correct patches after moving points.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
virtual void clearAddressing()
Clear addressing.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
A List obtained as a section of another List.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
virtual void clearGeom()
Clear geometry.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
labelList meshEdges(const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
Return labels of patch edges in the global edge list using.
PrimitivePatch< face, SubList, const pointField & > primitivePatch
Foam::primitivePatch.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
Abstract base class for point-mesh patch fields.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Pre-declare related SubField type.
void deleteDemandDrivenData(DataPtr &dataPtr)
Identifies patch by name, patch index and physical type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
void append(const T &)
Append an element at the end of the list.
void operator=(const polyPatch &)
Assignment.
A patch is a list of labels that address the faces in the global face list.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
const polyMesh & mesh() const
Return the mesh reference.
Ostream & operator<<(Ostream &, const edgeMesh &)
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.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
Macros for easy insertion into run-time selection tables.
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.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
SubList< face > faceSubList
tmp< vectorField > faceCellCentres() const
Return face cell centres.
void setSize(const label)
Reset size of List.
polyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
virtual const faceList & faces() const
Return raw faces.
const vectorField::subField faceCentres() const
Return face centres.
void operator=(const PrimitivePatch< Face, FaceList, PointField, PointType > &)
Assignment.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const vectorField::subField faceAreas() const
Return face normals.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static const word null
An empty word.
label readLabel(Istream &is)
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
void clearPatchMeshAddr()
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label size() const
Return the number of elements in the UList.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
const labelList & meshEdges() const
Return global edge index for local edges.
defineTypeNameAndDebug(combustionModel, 0)
void write(Ostream &) const
Write patchIdentifier as a dictionary.
word name(const complex &)
Return a string representation of a complex.
A list of faces which address into the list of points.
static int disallowGenericPolyPatch
Debug switch to disallow the use of genericPolyPatch.