Read pro-STAR vrt/cel/bnd files. The protected data in meshReader are filled. More...


Public Member Functions | |
| STARCD (const fileName &prefix, const objectRegistry &, const scalar scaleFactor=1.0) | |
| Construct from case name. More... | |
| virtual | ~STARCD () |
| Destructor. More... | |
Public Member Functions inherited from meshReader | |
| meshReader (const fileName &, const scalar scaleFactor=1.0) | |
| Construct from fileName. More... | |
| virtual | ~meshReader () |
| 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 &, IOstream::streamFormat fmt=IOstream::BINARY) const |
| Write mesh. More... | |
Static Public Attributes | |
| static bool | keepSolids = false |
| Keep solids (default false) More... | |
Protected Types | |
| enum | cellType { starcdFluidType = 1, starcdSolidType = 2, starcdBaffleType = 3, starcdShellType = 4, starcdLineType = 5, starcdPointType = 6 } |
| enum | shapeType { starcdPoint = 1, starcdLine = 2, starcdShell = 3, starcdHex = 11, starcdPrism = 12, starcdTet = 13, starcdPyr = 14, starcdPoly = 255 } |
Protected Member Functions | |
| virtual bool | readGeometry (const scalar scaleFactor=1.0) |
| Read the mesh from the file(s) More... | |
| void | readPoints (const fileName &, const scalar scaleFactor) |
| Read points from file. More... | |
| virtual void | readCells (const fileName &) |
| Read cell connectivities from file. More... | |
| void | cullPoints () |
| Remove unused points. More... | |
| void | readBoundary (const fileName &) |
| Read boundary (cell/face) definitions. More... | |
| void | readAux (const objectRegistry &) |
| Read auxiliary data from constant/{boundaryRegion,cellTable}. More... | |
Static Protected Member Functions | |
| static void | readToNewline (IFstream &) |
| Read and discard to newline. More... | |
| static bool | readHeader (IFstream &, word fileSignature) |
| Read header. More... | |
Protected Attributes | |
| cellShapeList | cellShapes_ |
| Cell shapes. More... | |
| labelList | mapToFoamPointId_ |
| Point labels (imported Point numbering not necessarily contiguous) More... | |
| labelList | mapToFoamCellId_ |
| Cell labels (imported Cell numbering not necessarily contiguous) More... | |
| boundaryRegion | boundaryRegion_ |
| Boundary region data. More... | |
Protected Attributes inherited from meshReader | |
| 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... | |
| 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... | |
Static Protected Attributes | |
| static const char *const | defaultBoundaryName |
| static const char *const | defaultSolidBoundaryName |
| static const int | starToFoamFaceAddr [4][6] |
| Face addressing from pro-STAR faces -> OpenFOAM faces. More... | |
Static Protected Attributes inherited from meshReader | |
| static const cellModel * | unknownModel |
| Pointers to cell shape models. More... | |
| static const cellModel * | tetModel |
| static const cellModel * | pyrModel |
| static const cellModel * | prismModel |
| static const cellModel * | hexModel |
Additional Inherited Members | |
Static Public Member Functions inherited from meshReader | |
| static void | warnDuplicates (const word &context, const wordList &) |
| Warn about repeated names. More... | |
Read pro-STAR vrt/cel/bnd files. The protected data in meshReader are filled.
Starting with pro-STAR version 4, the files have become easier to read.
Definition at line 61 of file STARCDMeshReader.H.
|
protected |
| Enumerator | |
|---|---|
| starcdFluidType | |
| starcdSolidType | |
| starcdBaffleType | |
| starcdShellType | |
| starcdLineType | |
| starcdPointType | |
Definition at line 129 of file STARCDMeshReader.H.
|
protected |
| Enumerator | |
|---|---|
| starcdPoint | |
| starcdLine | |
| starcdShell | |
| starcdHex | |
| starcdPrism | |
| starcdTet | |
| starcdPyr | |
| starcdPoly | |
Definition at line 139 of file STARCDMeshReader.H.
| STARCD | ( | const fileName & | prefix, |
| const objectRegistry & | registry, | ||
| const scalar | scaleFactor = 1.0 |
||
| ) |
Construct from case name.
Definition at line 1056 of file STARCDMeshReader.C.
References STARCD::readAux().

|
virtual |
Destructor.
Definition at line 1073 of file STARCDMeshReader.C.
|
protectedvirtual |
Read the mesh from the file(s)
Implements meshReader.
Definition at line 1042 of file STARCDMeshReader.C.
References STARCD::cullPoints(), meshReader::geometryFile_, STARCD::readBoundary(), STARCD::readCells(), and STARCD::readPoints().

|
protected |
Read points from file.
Original Point number for a given vertex
might need again in the future labelList origPointId(nPoints); origPointId = -1;
Definition at line 119 of file STARCDMeshReader.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::Info, STARCD::mapToFoamPointId_, Foam::max(), nPoints, meshReader::points_, STARCD::readHeader(), List< T >::setSize(), x, and y.
Referenced by STARCD::readAux(), and STARCD::readGeometry().


|
protectedvirtual |
Read cell connectivities from file.
Definition at line 244 of file STARCDMeshReader.C.
References Foam::abort(), meshReader::baffleFaces_, meshReader::cellFaces_, STARCD::cellShapes_, meshReader::cellTable_, meshReader::cellTableId_, List< T >::clear(), face::collapse(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, HashTable< T, Key, Hash >::found(), meshReader::hexModel, Foam::Info, STARCD::keepSolids, STARCD::mapToFoamCellId_, STARCD::mapToFoamPointId_, Foam::max(), n, Foam::nl, meshReader::origCellId_, meshReader::prismModel, meshReader::pyrModel, STARCD::readHeader(), STARCD::readToNewline(), cellTable::setMaterial(), cellTable::setName(), List< T >::setSize(), List< T >::size(), STARCD::starcdBaffleType, STARCD::starcdFluidType, STARCD::starcdHex, STARCD::starcdPoly, STARCD::starcdPrism, STARCD::starcdPyr, STARCD::starcdShellType, STARCD::starcdSolidType, STARCD::starcdTet, meshReader::tetModel, and meshReader::unknownModel.
Referenced by STARCD::readGeometry().


|
protected |
Remove unused points.
Definition at line 982 of file STARCDMeshReader.C.
References meshReader::baffleFaces_, meshReader::cellFaces_, Foam::endl(), forAll, Foam::Info, Foam::inplaceRenumber(), Foam::inplaceReorder(), nPoints, meshReader::points_, List< T >::setSize(), and List< T >::size().
Referenced by STARCD::readGeometry().


|
protected |
Read boundary (cell/face) definitions.
Definition at line 635 of file STARCDMeshReader.C.
References meshReader::boundaryIds_, STARCD::boundaryRegion_, cellId, STARCD::cellShapes_, List< T >::clear(), STARCD::defaultBoundaryName, HashTableCore::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, forAllIter, HashTable< T, Key, Hash >::found(), IOstream::good(), meshReader::hexModel, Foam::identity(), cellModel::index(), Foam::Info, Foam::inplaceReorder(), HashTable< T, Key, Hash >::insert(), STARCD::mapToFoamCellId_, Foam::max(), Foam::name(), nPatches, patchi, meshReader::patchNames_, meshReader::patchPhysicalTypes_, meshReader::patchTypes_, meshReader::prismModel, meshReader::pyrModel, STARCD::readHeader(), List< T >::setSize(), List< T >::size(), Foam::sortedOrder(), STARCD::starToFoamFaceAddr, and meshReader::tetModel.
Referenced by STARCD::readGeometry().


|
protected |
Read auxiliary data from constant/{boundaryRegion,cellTable}.
Definition at line 98 of file STARCDMeshReader.C.
References STARCD::boundaryRegion_, meshReader::cellTable_, boundaryRegion::readDict(), cellTable::readDict(), and STARCD::readPoints().
Referenced by STARCD::STARCD().


|
staticprotected |
Read and discard to newline.
Definition at line 57 of file STARCDMeshReader.C.
Referenced by STARCD::readCells(), and STARCD::readHeader().

Read header.
Definition at line 68 of file STARCDMeshReader.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), Foam::Info, IFstream::name(), and STARCD::readToNewline().
Referenced by STARCD::readBoundary(), STARCD::readCells(), and STARCD::readPoints().


|
staticprotected |
Definition at line 70 of file STARCDMeshReader.H.
Referenced by STARCD::readBoundary().
|
staticprotected |
Definition at line 71 of file STARCDMeshReader.H.
|
staticprotected |
Face addressing from pro-STAR faces -> OpenFOAM faces.
Definition at line 74 of file STARCDMeshReader.H.
Referenced by STARCD::readBoundary().
|
protected |
Cell shapes.
Definition at line 77 of file STARCDMeshReader.H.
Referenced by STARCD::readBoundary(), and STARCD::readCells().
|
protected |
Point labels (imported Point numbering not necessarily contiguous)
Definition at line 80 of file STARCDMeshReader.H.
Referenced by STARCD::readCells(), and STARCD::readPoints().
|
protected |
Cell labels (imported Cell numbering not necessarily contiguous)
Definition at line 83 of file STARCDMeshReader.H.
Referenced by STARCD::readBoundary(), and STARCD::readCells().
|
protected |
Boundary region data.
Definition at line 86 of file STARCDMeshReader.H.
Referenced by STARCD::readAux(), and STARCD::readBoundary().
|
static |
Keep solids (default false)
Definition at line 157 of file STARCDMeshReader.H.
Referenced by STARCD::readCells().
1.8.11