This class supports creating polyMeshes with baffles. More...
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. More... | |
virtual | ~meshReader ()=default |
Destructor. More... | |
virtual autoPtr< polyMesh > | mesh (const objectRegistry &) |
Create and return polyMesh. More... | |
void | writeAux (const objectRegistry &) const |
Write auxiliary information. More... | |
void | writeMesh (const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const |
Write mesh. More... | |
Static Public Member Functions | |
static void | warnDuplicates (const word &context, const wordList &) |
Warn about repeated names. More... | |
Protected Member Functions | |
virtual bool | readGeometry (const scalar scaleFactor=1.0)=0 |
Subclasses are required to supply this information. More... | |
Protected Attributes | |
fileName | geometryFile_ |
Referenced filename. More... | |
scalar | scaleFactor_ |
Geometry scaling. More... | |
pointField | points_ |
Points supporting the mesh. More... | |
labelList | origCellId_ |
Lookup original Cell number for a given cell. More... | |
List< List< cellFaceIdentifier > > | boundaryIds_ |
Identify boundary faces by cells and their faces. More... | |
wordList | patchTypes_ |
Boundary patch types. More... | |
wordList | patchNames_ |
Boundary patch names. More... | |
wordList | patchPhysicalTypes_ |
Boundary patch physical types. More... | |
labelList | patchStarts_ |
Polyhedral mesh boundary patch start indices and dimensions. More... | |
labelList | patchSizes_ |
label | nInternalFaces_ |
Number of internal faces for polyMesh. More... | |
faceList | meshFaces_ |
Global face list for polyMesh. More... | |
faceListList | cellFaces_ |
List of faces for every cell. More... | |
faceList | baffleFaces_ |
List of each baffle face. More... | |
labelList | cellTableId_ |
Cell table id for each cell. More... | |
cellTable | cellTable_ |
Cell table persistent data saved as a dictionary. More... | |
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 147 of file meshReader.C.
|
virtualdefault |
Destructor.
|
protectedpure virtual |
Subclasses are required to supply this information.
Implemented in ensightMeshReader, STARCDMeshReader, and FIREMeshReader.
Warn about repeated names.
Definition at line 30 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().
|
virtual |
Create and return polyMesh.
Reimplemented in FIREMeshReader.
Definition at line 75 of file meshReader.C.
References polyMesh::addPatches(), IOobjectOption::AUTO_WRITE, polyMesh::boundaryMesh(), TimePaths::constant(), polyMesh::defaultRegion, Foam::endl(), Foam::Info, mesh, meshPtr, polyBoundaryMesh::names(), autoPtr< T >::New(), IOobjectOption::NO_READ, and objectRegistry::time().
void writeAux | ( | const objectRegistry & | registry | ) | const |
Write auxiliary information.
Definition at line 138 of file meshReaderAux.C.
References IOstreamOption::ASCII, and IOstreamOption::BINARY.
void writeMesh | ( | const polyMesh & | mesh, |
IOstreamOption | streamOpt = IOstreamOption(IOstreamOption::BINARY) |
||
) | const |
Write mesh.
Definition at line 120 of file meshReader.C.
References Foam::endl(), Foam::Info, mesh, polyMesh::removeFiles(), and fvMesh::writeObject().
|
protected |
Referenced filename.
Definition at line 261 of file meshReader.H.
|
protected |
Geometry scaling.
Definition at line 266 of file meshReader.H.
|
protected |
Points supporting the mesh.
Definition at line 271 of file meshReader.H.
|
protected |
Lookup original Cell number for a given cell.
Definition at line 276 of file meshReader.H.
Referenced by STARCDMeshReader::readCells().
|
protected |
Identify boundary faces by cells and their faces.
for each patch
Definition at line 283 of file meshReader.H.
|
protected |
Boundary patch types.
Definition at line 288 of file meshReader.H.
|
protected |
Boundary patch names.
Definition at line 293 of file meshReader.H.
|
protected |
Boundary patch physical types.
Definition at line 298 of file meshReader.H.
|
protected |
Polyhedral mesh boundary patch start indices and dimensions.
Definition at line 303 of file meshReader.H.
|
protected |
Definition at line 304 of file meshReader.H.
|
protected |
Number of internal faces for polyMesh.
Definition at line 309 of file meshReader.H.
|
protected |
Global face list for polyMesh.
Definition at line 314 of file meshReader.H.
Referenced by FIREMeshReader::readFaces().
|
protected |
List of faces for every cell.
Definition at line 319 of file meshReader.H.
Referenced by STARCDMeshReader::readCells().
|
protected |
List of each baffle face.
Definition at line 324 of file meshReader.H.
Referenced by STARCDMeshReader::readCells().
|
protected |
Cell table id for each cell.
Definition at line 329 of file meshReader.H.
Referenced by STARCDMeshReader::readCells().
|
protected |
Cell table persistent data saved as a dictionary.
Definition at line 334 of file meshReader.H.
Referenced by STARCDMeshReader::readCells().