FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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

#include <conversion/meshReader.H>


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.

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

Constructor & Destructor Documentation

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

Construct from fileName.

Definition at line 195 of file meshReader.C.

~meshReader (  ) [virtual]

Destructor.

Definition at line 225 of file meshReader.C.

References Foam::deleteDemandDrivenData().


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]
Foam::autoPtr< Foam::polyMesh > mesh ( const objectRegistry &   registry  ) [virtual]

Create and return polyMesh.

Definition at line 120 of file meshReader.C.

References polyMesh::addPatches(), polyMesh::defaultRegion, Foam::endl(), Foam::Info, mesh, and Foam::xferMove().

void writeAux ( const objectRegistry &   registry  ) const

Write auxiliary information.

Definition at line 147 of file meshReaderAux.C.

References IOstream::ASCII, and IOstream::BINARY.

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

Member Data Documentation

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

Pointers to cell shape models.

Definition at line 243 of file meshReader.H.

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

Definition at line 244 of file meshReader.H.

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

Definition at line 245 of file meshReader.H.

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

Definition at line 246 of file meshReader.H.

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

Definition at line 247 of file meshReader.H.

fileName geometryFile_ [protected]

Referenced filename.

Definition at line 250 of file meshReader.H.

scalar scaleFactor_ [protected]

Geometry scaling.

Definition at line 253 of file meshReader.H.

pointField points_ [protected]

Points supporting the mesh.

Definition at line 256 of file meshReader.H.

labelList origCellId_ [protected]

Lookup original Cell number for a given cell.

Definition at line 259 of file meshReader.H.

Identify boundary faces by cells and their faces.

for each patch

Definition at line 263 of file meshReader.H.

wordList patchTypes_ [protected]

Boundary patch types.

Definition at line 266 of file meshReader.H.

wordList patchNames_ [protected]

Boundary patch names.

Definition at line 269 of file meshReader.H.

Boundary patch physical types.

Definition at line 272 of file meshReader.H.

faceListList cellFaces_ [protected]

List of faces for every cell.

Definition at line 275 of file meshReader.H.

faceList baffleFaces_ [protected]

List of each baffle face.

Definition at line 278 of file meshReader.H.

labelList cellTableId_ [protected]

Cell table id for each cell.

Definition at line 281 of file meshReader.H.

cellTable cellTable_ [protected]

Cell table persistent data saved as a dictionary.

Definition at line 284 of file meshReader.H.


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