OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

meshReader Class Reference

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

Inheritance diagram for meshReader:
Collaboration diagram for meshReader:

List of all members.


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.
virtual ~meshReader ()
 Destructor.
virtual autoPtr< polyMesh > mesh (const objectRegistry &)
 Create and return polyMesh.
void writeAux (const objectRegistry &) const
 Write auxiliary information.
void writeMesh (const polyMesh &, IOstream::streamFormat fmt=IOstream::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.
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.

Static Protected Attributes

static const cellModel * unknownModel
 Pointers to cell shape models.
static const cellModel * tetModel
static const cellModel * pyrModel
static const cellModel * prismModel
static const cellModel * hexModel

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


Constructor & Destructor Documentation

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

Construct from fileName.

Definition at line 187 of file meshReader.C.

~meshReader (  )  [virtual]

Destructor.

Definition at line 217 of file meshReader.C.


Member Function Documentation

virtual bool readGeometry ( const scalar  scaleFactor = 1.0  )  [protected, pure virtual]

Subclasses are required to supply this information.

Implemented in STARCD.

void warnDuplicates ( const word &  context,
const wordList &  list 
) [static]

Warn about repeated names.

Definition at line 26 of file meshReaderAux.C.

References HashTable< T, Key, Hash >::end(), Foam::endl(), forAll, forAllConstIter, Foam::Info, HashTable< T, Key, Hash >::insert(), and Foam::nl.

Here is the call graph for this function:

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

Create and return polyMesh.

Definition at line 112 of file meshReader.C.

void writeAux ( const objectRegistry &  registry  )  const

Write auxiliary information.

Definition at line 139 of file meshReaderAux.C.

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

Write mesh.

Definition at line 155 of file meshReader.C.


Member Data Documentation

const Foam::cellModel * unknownModel [static, protected]

Initial value:

Pointers to cell shape models.

Definition at line 245 of file meshReader.H.

Referenced by STARCD::readCells().

const Foam::cellModel * tetModel [static, protected]

Initial value:

Definition at line 246 of file meshReader.H.

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

const Foam::cellModel * pyrModel [static, protected]

Initial value:

Definition at line 247 of file meshReader.H.

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

const Foam::cellModel * prismModel [static, protected]

Initial value:

Definition at line 248 of file meshReader.H.

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

const Foam::cellModel * hexModel [static, protected]

Initial value:

Definition at line 249 of file meshReader.H.

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

fileName geometryFile_ [protected]

Referenced filename.

Definition at line 252 of file meshReader.H.

scalar scaleFactor_ [protected]

Geometry scaling.

Definition at line 255 of file meshReader.H.

pointField points_ [protected]

Points supporting the mesh.

Definition at line 258 of file meshReader.H.

Referenced by STARCD::readPoints().

labelList origCellId_ [protected]

Lookup original Cell number for a given cell.

Definition at line 261 of file meshReader.H.

Referenced by STARCD::readCells().

Identify boundary faces by cells and their faces.

for each patch

Definition at line 267 of file meshReader.H.

Referenced by STARCD::readBoundary().

wordList patchTypes_ [protected]

Boundary patch types.

Definition at line 270 of file meshReader.H.

Referenced by STARCD::readBoundary().

wordList patchNames_ [protected]

Boundary patch names.

Definition at line 273 of file meshReader.H.

Referenced by STARCD::readBoundary().

Boundary patch physical types.

Definition at line 276 of file meshReader.H.

Referenced by STARCD::readBoundary().

faceListList cellFaces_ [protected]

List of faces for every cell.

Definition at line 279 of file meshReader.H.

Referenced by STARCD::readCells().

faceList baffleFaces_ [protected]

List of each baffle face.

Definition at line 282 of file meshReader.H.

Referenced by STARCD::readCells().

labelList cellTableId_ [protected]

Cell table id for each cell.

Definition at line 285 of file meshReader.H.

Referenced by STARCD::readCells().

cellTable cellTable_ [protected]

Cell table persistent data saved as a dictionary.

Definition at line 288 of file meshReader.H.

Referenced by STARCD::readCells().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd