101 && constraintType(patchType)
102 &&
findIndex(inGroups(), patchType) == -1
105 inGroups().append(patchType);
116 const word& patchType
138 && constraintType(patchType)
139 &&
findIndex(inGroups(), patchType) == -1
142 inGroups().append(patchType);
213 mapAddressing.
size(),
230 boundaryMesh_(p.boundaryMesh_),
254 wordList cTypes(dictionaryConstructorTablePtr_->size());
260 dictionaryConstructorTable::iterator cstrIter =
261 dictionaryConstructorTablePtr_->begin();
262 cstrIter != dictionaryConstructorTablePtr_->end();
268 cTypes[i++] = cstrIter.key();
280 return boundaryMesh_;
308 cc[facei] = gcc[faceCells[facei]];
325 return *faceCellsPtr_;
389 patchIdentifier::operator=(p);
400 os.
check(
"Ostream& operator<<(Ostream& os, const polyPatch& p");
const vectorField::subField faceAreas() const
Return face normals.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
#define forAll(list, i)
Loop across all elements in list.
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const List< T >::subList patchSlice(const UList< T > &l) const
Slice list to patch.
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.
Identifies patch by name, patch index and physical type.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
SubList< label > subList
Declare type of subList.
virtual void clearAddressing()
Clear addressing.
Pre-declare related SubField type.
void operator=(const PrimitivePatch< Face, FaceList, PointField, PointType > &)
Assignment.
void clearPatchMeshAddr()
Macros for easy insertion into run-time selection tables.
virtual void clearGeom()
Clear geometry.
virtual const pointField & points() const
Return raw points.
const labelListList & pointEdges() const
Return point-edge addressing.
virtual void movePoints(PstreamBuffers &, const pointField &p)
Correct patches after moving 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.
label start() const
Return start label of this patch in the polyMesh face list.
A class for handling words, derived from string.
virtual ~polyPatch()
Destructor.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
static const word null
An empty word.
const vectorField & cellCentres() const
List< label > labelList
A List of labels.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
polyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
const polyMesh & mesh() const
Return the mesh reference.
label readLabel(Istream &is)
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 labelList & meshEdges() const
Return global edge index for local edges.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
PrimitivePatch< face, SubList, const pointField & > primitivePatch
Addressing for a faceList slice.
static wordList constraintTypes()
Return a list of all the constraint patch types.
label size() const
Return the number of elements in the UList.
void setSize(const label)
Reset size of List.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
const labelUList & faceCells() const
Return face-cell addressing.
Ostream & operator<<(Ostream &, const ensightPart &)
SubList< face > faceSubList
Field< vector > vectorField
Specialisation of Field<T> for vector.
const vectorField::subField faceCentres() const
Return face centres.
tmp< vectorField > faceCellCentres() const
Return face cell centres.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
T & ref() const
Return non-const reference or generate a fatal error.
virtual const faceList & faces() const
Return raw faces.
void deleteDemandDrivenData(DataPtr &dataPtr)
void write(Ostream &) const
Write patchIdentifier as a dictionary.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
labelList meshEdges(const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
Return labels of patch edges in the global edge list using.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.