Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | 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
 

Public Member Functions

 meshReader (const fileName &, const scalar scaling=1.0)
 
virtual ~meshReader ()=default
 
virtual autoPtr< polyMeshmesh (const objectRegistry &)
 
void writeAux (const objectRegistry &) const
 
void writeMesh (const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

fileName geometryFile_
 
scalar scaleFactor_
 
pointField points_
 
labelList origCellId_
 
List< List< cellFaceIdentifier > > boundaryIds_
 
wordList patchTypes_
 
wordList patchNames_
 
wordList patchPhysicalTypes_
 
labelList patchStarts_
 
labelList patchSizes_
 
label nInternalFaces_
 
faceList meshFaces_
 
faceListList cellFaces_
 
faceList baffleFaces_
 
labelList cellTableId_
 
cellTable cellTable_
 

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 PROSTAR 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 64 of file meshReader.H.

Constructor & Destructor Documentation

◆ meshReader()

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

Definition at line 145 of file meshReader.C.

◆ ~meshReader()

virtual ~meshReader ( )
virtualdefault

Member Function Documentation

◆ readGeometry()

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

Implemented in STARCDMeshReader, and FIREMeshReader.

◆ warnDuplicates()

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

Definition at line 30 of file meshReaderAux.C.

References Foam::endl(), HashTable::find(), forAllConstIters(), Foam::Info, HashTable::insert(), and Foam::nl.

Here is the call graph for this function:

◆ mesh()

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

◆ writeAux()

void writeAux ( const objectRegistry registry) const

Definition at line 138 of file meshReaderAux.C.

References IOstreamOption::ASCII, and IOstreamOption::BINARY.

◆ writeMesh()

void writeMesh ( const polyMesh mesh,
IOstreamOption  streamOpt = IOstreamOption(IOstreamOption::BINARY) 
) const

Definition at line 118 of file meshReader.C.

References Foam::endl(), Foam::Info, mesh, polyMesh::removeFiles(), and fvMesh::writeObject().

Here is the call graph for this function:

Member Data Documentation

◆ geometryFile_

fileName geometryFile_
protected

Definition at line 206 of file meshReader.H.

◆ scaleFactor_

scalar scaleFactor_
protected

Definition at line 209 of file meshReader.H.

◆ points_

pointField points_
protected

Definition at line 212 of file meshReader.H.

◆ origCellId_

labelList origCellId_
protected

Definition at line 215 of file meshReader.H.

Referenced by STARCDMeshReader::readCells().

◆ boundaryIds_

List<List<cellFaceIdentifier> > boundaryIds_
protected

Definition at line 219 of file meshReader.H.

◆ patchTypes_

wordList patchTypes_
protected

Definition at line 222 of file meshReader.H.

◆ patchNames_

wordList patchNames_
protected

Definition at line 225 of file meshReader.H.

◆ patchPhysicalTypes_

wordList patchPhysicalTypes_
protected

Definition at line 228 of file meshReader.H.

◆ patchStarts_

labelList patchStarts_
protected

Definition at line 231 of file meshReader.H.

◆ patchSizes_

labelList patchSizes_
protected

Definition at line 232 of file meshReader.H.

◆ nInternalFaces_

label nInternalFaces_
protected

Definition at line 235 of file meshReader.H.

◆ meshFaces_

faceList meshFaces_
protected

Definition at line 238 of file meshReader.H.

Referenced by FIREMeshReader::readFaces().

◆ cellFaces_

faceListList cellFaces_
protected

Definition at line 241 of file meshReader.H.

Referenced by STARCDMeshReader::readCells().

◆ baffleFaces_

faceList baffleFaces_
protected

Definition at line 244 of file meshReader.H.

Referenced by STARCDMeshReader::readCells().

◆ cellTableId_

labelList cellTableId_
protected

Definition at line 247 of file meshReader.H.

Referenced by STARCDMeshReader::readCells().

◆ cellTable_

cellTable cellTable_
protected

Definition at line 250 of file meshReader.H.

Referenced by STARCDMeshReader::readCells().


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