Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
meshReader Class Referenceabstract

This class supports creating polyMeshes with baffles. More...

Inheritance diagram for meshReader:
Inheritance graph
[legend]
Collaboration diagram for meshReader:
Collaboration graph
[legend]

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. More...
 
virtual ~meshReader ()
 Destructor. More...
 
virtual autoPtr< polyMeshmesh (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 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...
 
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 cellModelunknownModel
 Pointers to cell shape models. More...
 
static const cellModeltetModel
 
static const cellModelpyrModel
 
static const cellModelprismModel
 
static const cellModelhexModel
 

Detailed Description

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).

Note
The boundary definitions are given as cell/face.
Source files

Definition at line 73 of file meshReader.H.

Constructor & Destructor Documentation

◆ meshReader()

meshReader ( const fileName fileOrPrefix,
const scalar  scaleFactor = 1.0 
)

Construct from fileName.

Definition at line 196 of file meshReader.C.

◆ ~meshReader()

~meshReader ( )
virtual

Destructor.

Definition at line 226 of file meshReader.C.

References Foam::deleteDemandDrivenData().

Here is the call graph for this function:

Member Function Documentation

◆ readGeometry()

virtual bool readGeometry ( const scalar  scaleFactor = 1.0)
protectedpure virtual

Subclasses are required to supply this information.

Implemented in STARCD.

Referenced by meshReader::mesh().

Here is the caller graph for this function:

◆ warnDuplicates()

void warnDuplicates ( const word context,
const wordList list 
)
static

◆ mesh()

Foam::autoPtr< Foam::polyMesh > mesh ( const objectRegistry registry)
virtual

◆ writeAux()

void writeAux ( const objectRegistry registry) const

Write auxiliary information.

Definition at line 148 of file meshReaderAux.C.

References IOstream::ASCII, IOstream::BINARY, meshReader::cellTable_, meshReader::cellTableId_, meshReader::origCellId_, and cellTable::writeDict().

Referenced by meshReader::writeMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMesh()

void writeMesh ( const polyMesh mesh,
IOstream::streamFormat  fmt = IOstream::BINARY 
) const

Member Data Documentation

◆ unknownModel

const Foam::cellModel * unknownModel
staticprotected
Initial value:

Pointers to cell shape models.

Definition at line 243 of file meshReader.H.

Referenced by STARCD::readCells().

◆ tetModel

const Foam::cellModel * tetModel
staticprotected
Initial value:

Definition at line 244 of file meshReader.H.

Referenced by STARCD::readBoundary(), and STARCD::readCells().

◆ pyrModel

const Foam::cellModel * pyrModel
staticprotected
Initial value:

Definition at line 245 of file meshReader.H.

Referenced by STARCD::readBoundary(), and STARCD::readCells().

◆ prismModel

const Foam::cellModel * prismModel
staticprotected
Initial value:

Definition at line 246 of file meshReader.H.

Referenced by STARCD::readBoundary(), and STARCD::readCells().

◆ hexModel

const Foam::cellModel * hexModel
staticprotected
Initial value:

Definition at line 247 of file meshReader.H.

Referenced by STARCD::readBoundary(), and STARCD::readCells().

◆ geometryFile_

fileName geometryFile_
protected

Referenced filename.

Definition at line 250 of file meshReader.H.

Referenced by STARCD::readGeometry().

◆ scaleFactor_

scalar scaleFactor_
protected

Geometry scaling.

Definition at line 253 of file meshReader.H.

◆ points_

pointField points_
protected

Points supporting the mesh.

Definition at line 256 of file meshReader.H.

Referenced by STARCD::cullPoints(), meshReader::mesh(), and STARCD::readPoints().

◆ origCellId_

labelList origCellId_
protected

Lookup original Cell number for a given cell.

Definition at line 259 of file meshReader.H.

Referenced by STARCD::readCells(), and meshReader::writeAux().

◆ boundaryIds_

List<List<cellFaceIdentifier> > boundaryIds_
protected

Identify boundary faces by cells and their faces.

for each patch

Definition at line 263 of file meshReader.H.

Referenced by STARCD::readBoundary(), and meshReader::writeMesh().

◆ patchTypes_

wordList patchTypes_
protected

Boundary patch types.

Definition at line 266 of file meshReader.H.

Referenced by STARCD::readBoundary().

◆ patchNames_

wordList patchNames_
protected

Boundary patch names.

Definition at line 269 of file meshReader.H.

Referenced by STARCD::readBoundary().

◆ patchPhysicalTypes_

wordList patchPhysicalTypes_
protected

Boundary patch physical types.

Definition at line 272 of file meshReader.H.

Referenced by STARCD::readBoundary().

◆ cellFaces_

faceListList cellFaces_
protected

List of faces for every cell.

Definition at line 275 of file meshReader.H.

Referenced by STARCD::cullPoints(), STARCD::readCells(), and meshReader::writeMesh().

◆ baffleFaces_

faceList baffleFaces_
protected

List of each baffle face.

Definition at line 278 of file meshReader.H.

Referenced by STARCD::cullPoints(), STARCD::readCells(), and meshReader::writeMesh().

◆ cellTableId_

labelList cellTableId_
protected

Cell table id for each cell.

Definition at line 281 of file meshReader.H.

Referenced by STARCD::readCells(), and meshReader::writeAux().

◆ cellTable_

cellTable cellTable_
protected

Cell table persistent data saved as a dictionary.

Definition at line 284 of file meshReader.H.

Referenced by STARCD::readAux(), STARCD::readCells(), and meshReader::writeAux().


The documentation for this class was generated from the following files: