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,
279 label
whichFace(
const label globalCellID)
const;
306 const bool flipMapValue
322 const bool flipMapValue
autoPtr< List< label > > clone() const
Clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of faces which address into the list of points.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
virtual void resetAddressing(const labelUList &addr, const bool flipMapValue)
Reset addressing - use uniform flip map value.
label whichFace(const label globalCellID) const
Helper function to re-direct to zone::localID(...)
const labelList & masterCells() const
const boolList & flipMap() const noexcept
Return face flip map.
const primitiveFacePatch & operator()() const
Return reference to primitive patch.
virtual autoPtr< faceZone > clone(const labelUList &addr, const boolUList &fm, const label index, const faceZoneMesh &zm) const
static const char *const labelsName
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes in topology.
virtual void clearAddressing()
Clear addressing.
declareRunTimeSelectionTable(autoPtr, faceZone, dictionary,(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm),(name, dict, index, zm))
virtual ~faceZone()
Destructor.
static autoPtr< faceZone > New(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm)
virtual void writeDict(Ostream &os) const
Write dictionary.
virtual autoPtr< faceZone > clone(const faceZoneMesh &zm) const
Construct and return a clone, resetting the zone mesh.
virtual void movePoints(const pointField &pts)
Correct patch after moving points.
friend Ostream & operator<<(Ostream &os, const faceZone &zn)
Ostream Operator.
const faceZoneMesh & zoneMesh() const noexcept
Return reference to the zone mesh.
virtual bool checkParallelSync(const bool report=false) const
Check whether all procs have faces synchronised.
TypeName("faceZone")
Runtime type information.
const labelList & slaveCells() const
Return labels of slave cells.
const labelList & meshEdges() const
Return global edge index for local edges.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from Foam::string.
label index() const noexcept
The index of this zone in the zone list.
const word & name() const noexcept
The zone name.
Base class for mesh zones.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.