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