This class supports creating polyMeshes with baffles. More...
#include <conversion/meshReader.H>
This class supports creating polyMeshes with baffles.
The derived classes are responsible for providing the protected data. This implementation is somewhat messy, but could/should be restructured to provide a more generalized reader (at the moment it has been written for converting pro-STAR data).
The meshReader supports cellTable information (see new user's guide entry).
Definition at line 73 of file meshReader.H.
Classes | |
class | cellFaceIdentifier |
Identify cell faces in terms of cell Id and face Id. More... |
Public Member Functions | |
meshReader (const fileName &, const scalar scaleFactor=1.0) | |
Construct from fileName. | |
virtual | ~meshReader () |
Destructor. | |
virtual autoPtr< polyMesh > | mesh (const objectRegistry &) |
Create and return polyMesh. | |
void | writeAux (const objectRegistry &) const |
Write auxiliary information. | |
void | writeMesh (const polyMesh &, IOstream::streamFormat fmt=IOstream::BINARY) const |
Write mesh. |
Static Public Member Functions | |
static void | warnDuplicates (const word &context, const wordList &) |
Warn about repeated names. |
Protected Member Functions | |
virtual bool | readGeometry (const scalar scaleFactor=1.0)=0 |
Subclasses are required to supply this information. |
Protected Attributes | |
fileName | geometryFile_ |
Referenced filename. | |
scalar | scaleFactor_ |
Geometry scaling. | |
pointField | points_ |
Points supporting the mesh. | |
labelList | origCellId_ |
Lookup original Cell number for a given cell. | |
List< List< cellFaceIdentifier > > | boundaryIds_ |
Identify boundary faces by cells and their faces. | |
wordList | patchTypes_ |
Boundary patch types. | |
wordList | patchNames_ |
Boundary patch names. | |
wordList | patchPhysicalTypes_ |
Boundary patch physical types. | |
faceListList | cellFaces_ |
List of faces for every cell. | |
faceList | baffleFaces_ |
List of each baffle face. | |
labelList | cellTableId_ |
Cell table id for each cell. | |
cellTable | cellTable_ |
Cell table persistent data saved as a dictionary. |
Static Protected Attributes | |
static const cellModel * | unknownModel |
Pointers to cell shape models. | |
static const cellModel * | tetModel |
static const cellModel * | pyrModel |
static const cellModel * | prismModel |
static const cellModel * | hexModel |
meshReader | ( | const fileName & | fileOrPrefix, |
const scalar | scaleFactor = 1.0 |
||
) |
Construct from fileName.
Definition at line 195 of file meshReader.C.
|
virtual |
|
protectedpure virtual |
Subclasses are required to supply this information.
Implemented in STARCD.
Warn about repeated names.
Definition at line 34 of file meshReaderAux.C.
References HashTable< T, Key, Hash >::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, forAllConstIter, Foam::Info, HashTable< T, Key, Hash >::insert(), Foam::nl, and List< T >::size().
|
virtual |
Create and return polyMesh.
Definition at line 120 of file meshReader.C.
References polyMesh::addPatches(), polyMesh::defaultRegion, Foam::endl(), Foam::Info, mesh, and Foam::xferMove().
void writeAux | ( | const objectRegistry & | registry | ) | const |
Write auxiliary information.
Definition at line 147 of file meshReaderAux.C.
References IOstream::ASCII, and IOstream::BINARY.
void writeMesh | ( | const polyMesh & | mesh, |
IOstream::streamFormat | fmt = IOstream::BINARY |
||
) | const |
Write mesh.
Definition at line 163 of file meshReader.C.
References IOstream::currentVersion, Foam::endl(), Foam::Info, polyMesh::removeFiles(), IOstream::UNCOMPRESSED, and objectRegistry::writeObject().
|
staticprotected |
Pointers to cell shape models.
Definition at line 243 of file meshReader.H.
|
staticprotected |
Definition at line 244 of file meshReader.H.
|
staticprotected |
Definition at line 245 of file meshReader.H.
|
staticprotected |
Definition at line 246 of file meshReader.H.
|
staticprotected |
Definition at line 247 of file meshReader.H.
|
protected |
Referenced filename.
Definition at line 250 of file meshReader.H.
|
protected |
Geometry scaling.
Definition at line 253 of file meshReader.H.
|
protected |
Points supporting the mesh.
Definition at line 256 of file meshReader.H.
|
protected |
Lookup original Cell number for a given cell.
Definition at line 259 of file meshReader.H.
|
protected |
Identify boundary faces by cells and their faces.
for each patch
Definition at line 263 of file meshReader.H.
|
protected |
Boundary patch types.
Definition at line 266 of file meshReader.H.
|
protected |
Boundary patch names.
Definition at line 269 of file meshReader.H.
|
protected |
Boundary patch physical types.
Definition at line 272 of file meshReader.H.
|
protected |
List of faces for every cell.
Definition at line 275 of file meshReader.H.
|
protected |
List of each baffle face.
Definition at line 278 of file meshReader.H.
|
protected |
Cell table id for each cell.
Definition at line 281 of file meshReader.H.
|
protected |
Cell table persistent data saved as a dictionary.
Definition at line 284 of file meshReader.H.