Go to the documentation of this file.
59 Ostream&
operator<<(Ostream& os,
const faceZone& zn);
73 void setFlipMap(
const bool val);
79 void operator=(
const faceZone&) =
delete;
160 const bool flipMapValue,
171 const bool flipMapValue,
278 label
whichFace(
const label globalCellID)
const;
305 const bool flipMapValue
321 const bool flipMapValue
static autoPtr< T > New(Args &&... args)
Construct autoPtr of T with forwarding arguments.
virtual void clearAddressing()
Clear addressing.
static const char *const labelsName
The name associated with the zone-labels dictionary entry.
friend Ostream & operator<<(Ostream &os, const faceZone &zn)
Ostream Operator.
A class for handling words, derived from Foam::string.
void checkAddressing() const
Check addressing.
const labelList & meshEdges() const
Return global edge index for local edges.
const faceZoneMesh & zoneMesh_
Reference to zone list.
virtual void resetAddressing(const labelUList &addr, const bool flipMapValue)
Reset addressing - use uniform flip map value.
Base class for mesh zones.
TypeName("faceZone")
Runtime type information.
virtual ~faceZone()
Destructor.
labelList * masterCellsPtr_
Master cell layer.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
primitiveFacePatch * patchPtr_
Primitive patch made out of correctly flipped faces.
A subset of mesh faces organised as a primitive patch.
virtual bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
boolList flipMap_
Flip map for all faces in the zone.
declareRunTimeSelectionTable(autoPtr, faceZone, dictionary,(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm),(name, dict, index, zm))
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes in topology.
const labelList & slaveCells() const
Return labels of slave cells.
const faceZoneMesh & zoneMesh() const
Return zoneMesh reference.
labelList * slaveCellsPtr_
Slave cell layer.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void movePoints(const pointField &pts)
Correct patch after moving points.
label whichFace(const label globalCellID) const
Helper function to re-direct to zone::localID(...)
const word & name() const
Return name.
labelList * mePtr_
Global edge addressing.
virtual bool checkParallelSync(const bool report=false) const
Check whether all procs have faces synchronised.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const labelList & masterCells() const
const primitiveFacePatch & operator()() const
Return reference to primitive patch.
void calcCellLayers() const
Calculate master and slave face layer.
void calcFaceZonePatch() const
Build primitive patch.
virtual void writeDict(Ostream &os) const
Write dictionary.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual void write(Ostream &os) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static autoPtr< faceZone > New(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm)
autoPtr< List< T > > clone() const
Clone.
const boolList & flipMap() const
Return face flip map.
label index() const
Return the index of this zone in zone list.
virtual autoPtr< faceZone > clone(const faceZoneMesh &zm) const
Construct and return a clone, resetting the zone mesh.
A list of faces which address into the list of points.