This class supports creating polyMeshes with baffles. More...
#include <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 scaling=1.0) | |
| Construct from fileName. | |
| virtual | ~meshReader ()=default |
| Destructor. | |
| virtual autoPtr< polyMesh > | mesh (const objectRegistry &) |
| Create and return polyMesh. | |
| void | writeAux (const objectRegistry &) const |
| Write auxiliary information. | |
| void | writeMesh (const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::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. | |
| labelList | patchStarts_ |
| Polyhedral mesh boundary patch start indices and dimensions. | |
| labelList | patchSizes_ |
| label | nInternalFaces_ |
| Number of internal faces for polyMesh. | |
| faceList | meshFaces_ |
| Global face list for polyMesh. | |
| 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. | |
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 PROSTAR data).
The meshReader supports cellTable information (see new user's guide entry).
Definition at line 64 of file meshReader.H.
| meshReader | ( | const fileName & | fileOrPrefix, |
| const scalar | scaling = 1.0 ) |
Construct from fileName.
Definition at line 146 of file meshReader.C.
References baffleFaces_, boundaryIds_, cellFaces_, cellTable_, cellTableId_, geometryFile_, meshFaces_, nInternalFaces_, origCellId_, patchNames_, patchPhysicalTypes_, patchSizes_, patchStarts_, patchTypes_, points_, and scaleFactor_.
|
virtualdefault |
Destructor.
References IOstreamOption::BINARY.
|
protectedpure virtual |
Subclasses are required to supply this information.
Implemented in ensightMeshReader, FIREMeshReader, and STARCDMeshReader.
Referenced by mesh().

Warn about repeated names.
Definition at line 29 of file meshReaderAux.C.
References Foam::endl(), HashTable< T, Key, Hash >::find(), forAllConstIters, Foam::Info, HashTable< T, Key, Hash >::insert(), Foam::nl, and UList< T >::size().
Referenced by mesh().


|
virtual |
Create and return polyMesh.
Reimplemented in FIREMeshReader.
Definition at line 74 of file meshReader.C.
References IOobjectOption::AUTO_WRITE, TimePaths::constant(), polyMesh::defaultRegion, Foam::endl(), Foam::Info, mesh(), meshFaces_, meshPtr, autoPtr< T >::New(), nInternalFaces_, IOobjectOption::NO_READ, points_, readGeometry(), objectRegistry::time(), and warnDuplicates().
Referenced by mesh(), and writeMesh().


| void writeAux | ( | const objectRegistry & | registry | ) | const |
Write auxiliary information.
Definition at line 138 of file meshReaderAux.C.
References IOstreamOption::ASCII, IOstreamOption::BINARY, cellTable_, cellTableId_, and origCellId_.
Referenced by writeMesh().

| void writeMesh | ( | const polyMesh & | mesh, |
| IOstreamOption | streamOpt = IOstreamOption(IOstreamOption::BINARY) ) const |
Write mesh.
Definition at line 119 of file meshReader.C.
References Foam::endl(), Foam::Info, mesh(), and writeAux().

|
protected |
Referenced filename.
Definition at line 261 of file meshReader.H.
Referenced by meshReader(), FIREMeshReader::readGeometry(), and STARCDMeshReader::readGeometry().
|
protected |
Geometry scaling.
Definition at line 266 of file meshReader.H.
Referenced by FIREMeshReader::mesh(), and meshReader().
|
protected |
Points supporting the mesh.
Definition at line 271 of file meshReader.H.
Referenced by STARCDMeshReader::cullPoints(), FIREMeshReader::mesh(), mesh(), meshReader(), FIREMeshReader::readPoints(), and STARCDMeshReader::readPoints().
|
protected |
Lookup original Cell number for a given cell.
Definition at line 276 of file meshReader.H.
Referenced by meshReader(), STARCDMeshReader::readCells(), and writeAux().
|
protected |
Identify boundary faces by cells and their faces.
for each patch
Definition at line 283 of file meshReader.H.
Referenced by meshReader(), and STARCDMeshReader::readBoundary().
|
protected |
Boundary patch types.
Definition at line 288 of file meshReader.H.
Referenced by meshReader(), and STARCDMeshReader::readBoundary().
|
protected |
Boundary patch names.
Definition at line 293 of file meshReader.H.
Referenced by FIREMeshReader::addPatches(), meshReader(), STARCDMeshReader::readBoundary(), and FIREMeshReader::reorganize().
|
protected |
Boundary patch physical types.
Definition at line 298 of file meshReader.H.
Referenced by meshReader(), and STARCDMeshReader::readBoundary().
|
protected |
Polyhedral mesh boundary patch start indices and dimensions.
Definition at line 303 of file meshReader.H.
Referenced by FIREMeshReader::addPatches(), meshReader(), and FIREMeshReader::reorganize().
|
protected |
Definition at line 304 of file meshReader.H.
Referenced by FIREMeshReader::addPatches(), meshReader(), and FIREMeshReader::reorganize().
|
protected |
Number of internal faces for polyMesh.
Definition at line 309 of file meshReader.H.
Referenced by FIREMeshReader::addPatches(), mesh(), meshReader(), and FIREMeshReader::reorganize().
|
protected |
Global face list for polyMesh.
Definition at line 314 of file meshReader.H.
Referenced by FIREMeshReader::mesh(), mesh(), meshReader(), FIREMeshReader::readCells(), FIREMeshReader::readFaces(), FIREMeshReader::readSelections(), and FIREMeshReader::reorganize().
|
protected |
List of faces for every cell.
Definition at line 319 of file meshReader.H.
Referenced by STARCDMeshReader::cullPoints(), meshReader(), and STARCDMeshReader::readCells().
|
protected |
List of each baffle face.
Definition at line 324 of file meshReader.H.
Referenced by STARCDMeshReader::cullPoints(), meshReader(), and STARCDMeshReader::readCells().
|
protected |
Cell table id for each cell.
Definition at line 329 of file meshReader.H.
Referenced by FIREMeshReader::mesh(), meshReader(), FIREMeshReader::readCells(), STARCDMeshReader::readCells(), FIREMeshReader::readSelections(), and writeAux().
|
protected |
Cell table persistent data saved as a dictionary.
Definition at line 334 of file meshReader.H.
Referenced by FIREMeshReader::mesh(), meshReader(), STARCDMeshReader::readAux(), STARCDMeshReader::readCells(), FIREMeshReader::readSelections(), and writeAux().