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