43 #ifndef Foam_faceZone_H 44 #define Foam_faceZone_H 94 void setFlipMap(
const bool val);
97 void calcFaceZonePatch()
const;
100 void calcCellLayers()
const;
103 void checkAddressing()
const;
110 void operator=(
const faceZone&) =
delete;
158 const bool flipMapValue,
169 const bool flipMapValue,
251 static autoPtr<faceZone>
New 254 const dictionary&
dict,
279 label
whichFace(
const label globalCellID)
const;
306 const bool flipMapValue
322 const bool flipMapValue
static autoPtr< faceZone > New(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm)
Return a pointer to a new face zone created on freestore from dictionary.
virtual void movePoints(const pointField &pts)
Correct patch after moving points.
ZoneMesh< faceZone, polyMesh > faceZoneMesh
A ZoneMesh with the type faceZone.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual ~faceZone()
Destructor.
const labelList & masterCells() const
Return labels of master cells (cells next to the master face zone in the prescribed direction) ...
virtual bool checkParallelSync(const bool report=false) const
Check whether all procs have faces synchronised.
label whichFace(const label globalCellID) const
Helper function to re-direct to zone::localID(...)
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A list of faces which address into the list of points.
const faceZoneMesh & zoneMesh() const noexcept
Return reference to the zone mesh.
virtual void resetAddressing(const labelUList &addr, const bool flipMapValue)
Reset addressing - use uniform flip map value.
Base class for mesh zones.
A class for handling words, derived from Foam::string.
virtual void writeDict(Ostream &os) const
Write dictionary.
const labelList & meshEdges() const
Return global edge index for local edges.
virtual void write(Ostream &os) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label index() const noexcept
The index of this zone in the zone list.
OBJstream os(runTime.globalPath()/outputName)
const labelList & slaveCells() const
Return labels of slave cells.
virtual void clearAddressing()
Clear addressing.
static const char *const labelsName
The name associated with the zone-labels dictionary entry ("faceLabels")
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes in topology.
const word & name() const noexcept
The zone name.
virtual bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
friend Ostream & operator<<(Ostream &os, const faceZone &zn)
Ostream Operator.
autoPtr< List< label > > clone() const
Clone.
const boolList & flipMap() const noexcept
Return face flip map.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
declareRunTimeSelectionTable(autoPtr, faceZone, dictionary,(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm),(name, dict, index, zm))
A subset of mesh faces organised as a primitive patch.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
TypeName("faceZone")
Runtime type information.
const primitiveFacePatch & operator()() const
Return reference to primitive patch.