105 return (cell >= 0 && face >= 0);
111 return (cell < 0 || face < 0);
119 return (cell != cf.
cell || face != cf.
face);
124 return (cell == cf.
cell && face == cf.
face);
135 os <<
"(" << cf.cell <<
"/" << cf.face <<
")";
151 label nInternalFaces_;
176 void calcPointCells()
const;
181 void createPolyCells();
184 void addPolyBoundaryFace
187 const label cellFaceId,
188 const label nCreatedFaces
192 void addPolyBoundaryFace
195 const label nCreatedFaces
206 void createPolyBoundary();
213 void clearExtraStorage();
218 void writeMeshLabelList
221 const word& propertyName,
285 virtual bool readGeometry(
const scalar scaleFactor = 1.0) = 0;
static const cellModel * tetModel
Hashing function class, shared by all the derived classes.
bool operator!=(const cellFaceIdentifier &cf) const
List< List< cellFaceIdentifier > > boundaryIds_
Identify boundary faces by cells and their faces.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
wordList patchPhysicalTypes_
Boundary patch physical types.
A class for handling file names.
virtual bool readGeometry(const scalar scaleFactor=1.0)=0
Subclasses are required to supply this information.
wordList patchTypes_
Boundary patch types.
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
Identify cell faces in terms of cell Id and face Id.
static const cellModel * prismModel
void writeMesh(const polyMesh &, IOstream::streamFormat fmt=IOstream::BINARY) const
Write mesh.
const dimensionedScalar & c
Speed of light in a vacuum.
pointField points_
Points supporting the mesh.
static const cellModel * unknownModel
Pointers to cell shape models.
labelList origCellId_
Lookup original Cell number for a given cell.
wordList patchNames_
Boundary patch names.
bool used() const
Used if cell or face are non-negative.
A class for handling words, derived from string.
virtual ~meshReader()
Destructor.
meshReader(const fileName &, const scalar scaleFactor=1.0)
Construct from fileName.
streamFormat
Enumeration for the format of data in the stream.
static const cellModel * pyrModel
An STL-conforming hash table.
The cellTable persistent data saved as a Map<dictionary>.
virtual autoPtr< polyMesh > mesh(const objectRegistry &)
Create and return polyMesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool operator==(const cellFaceIdentifier &cf) const
cellFaceIdentifier()
Construct null.
scalar scaleFactor_
Geometry scaling.
cellTable cellTable_
Cell table persistent data saved as a dictionary.
fileName geometryFile_
Referenced filename.
faceList baffleFaces_
List of each baffle face.
static const cellModel * hexModel
labelList cellTableId_
Cell table id for each cell.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
void writeAux(const objectRegistry &) const
Write auxiliary information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
Registry of regIOobjects.
faceListList cellFaces_
List of faces for every cell.
bool unused() const
Unused if cell or face are negative.
This class supports creating polyMeshes with baffles.
void operator=(const meshReader &)=delete
Disallow default bitwise assignment.