FIREMeshReader Class Reference

Read AVL/FIRE fpma, fpmb files. More...

Inheritance diagram for FIREMeshReader:
[legend]
Collaboration diagram for FIREMeshReader:
[legend]

Public Member Functions

 FIREMeshReader (const fileName &, const scalar scaleFactor=1.0)
 Construct by reading file, optionally with scaling. More...
 
virtual ~FIREMeshReader ()=default
 Destructor. More...
 
virtual autoPtr< polyMeshmesh (const objectRegistry &)
 Create and return polyMesh. More...
 
- Public Member Functions inherited from meshReader
 meshReader (const fileName &, const scalar scaling=1.0)
 Construct from fileName. More...
 
virtual ~meshReader ()=default
 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 &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const
 Write mesh. More...
 

Protected Member Functions

 FIREMeshReader (const FIREMeshReader &)=delete
 No copy construct. More...
 
void operator= (const FIREMeshReader &)=delete
 No copy assignment. More...
 
virtual bool readGeometry (const scalar scaleFactor=1.0)
 Read the mesh from the file(s) More...
 
void readPoints (ISstream &, const scalar scaleFactor=1.0)
 Read points from file. More...
 
void readFaces (ISstream &)
 Read points from file. More...
 
void readCells (ISstream &)
 Read cell connectivities from file. More...
 
void readSelections (ISstream &)
 Read cell/face selections from file. More...
 
void reorganize ()
 
void addPatches (polyMesh &) const
 
virtual bool readGeometry (const scalar scaleFactor=1.0)=0
 Subclasses are required to supply this information. More...
 
- Protected Member Functions inherited from FIRECore
 FIRECore ()=default
 Construct null. More...
 

Protected Attributes

labelList owner_
 
labelList neigh_
 
labelList faceZoneId_
 
wordList faceNames_
 
- 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...
 
labelList patchStarts_
 Polyhedral mesh boundary patch start indices and dimensions. More...
 
labelList patchSizes_
 
label nInternalFaces_
 Number of internal faces for polyMesh. More...
 
faceList meshFaces_
 Global face list for polyMesh. 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...
 

Additional Inherited Members

- Public Types inherited from FIRECore
enum  selectionType { cellSelection = 2 , faceSelection = 3 }
 Selection Types. More...
 
enum  shapeType {
  fireLine = 1 , fireTri = 2 , fireQuad = 3 , fireTet = 4 ,
  fireHex = 5 , firePyr = 6 , firePrism = 8
}
 Shape-Type for FIRE (FLMA) files. More...
 
enum  fileExt3d { POLY_ASCII , POLY_BINARY , POLY_ASCII_Z , POLY_BINARY_Z }
 Enumeration defining the file extensions for 3D types. More...
 
typedef int32_t fireInt_t
 Integer type (binary format) More...
 
typedef double fireReal_t
 Float type (binary format) More...
 
- Static Public Member Functions inherited from meshReader
static void warnDuplicates (const word &context, const wordList &)
 Warn about repeated names. More...
 
- Static Public Member Functions inherited from FIRECore
static fileName fireFileName (const fileName &baseName, const enum fileExt3d)
 Resolve base file-name for the given file-type. More...
 
static label getFireLabel (ISstream &)
 Get an integer (ascii or binary) More...
 
static point getFirePoint (ISstream &)
 Get an point x/y/z (ascii or binary) More...
 
static std::string getFireString (ISstream &)
 Extract a string (ascii or binary) More...
 
static void putFireLabel (OSstream &, const label)
 Write an integer (ascii or binary) More...
 
static void putFireLabels (OSstream &, const labelUList &)
 Write multiple integers (ascii or binary) More...
 
static void putFireLabels (OSstream &, const label count, const label start)
 Write an on-the-fly list of integers (ascii or binary) More...
 
static void putFirePoint (OSstream &, const point &)
 Write a point x/y/z (ascii or binary) More...
 
static void putFireString (OSstream &, const std::string &)
 Write a string (ascii or binary) More...
 
- Static Protected Member Functions inherited from FIRECore
static label readPoints (ISstream &, pointField &)
 Read points. More...
 
- Static Protected Attributes inherited from FIRECore
static const Enum< fileExt3dfile3dExtensions
 

Detailed Description

Read AVL/FIRE fpma, fpmb files.

Note
Does not handle compressed versions (fpmaz, fpmbz) of these files.
Source files

Definition at line 61 of file FIREMeshReader.H.

Constructor & Destructor Documentation

◆ FIREMeshReader() [1/2]

FIREMeshReader ( const FIREMeshReader )
protecteddelete

No copy construct.

◆ FIREMeshReader() [2/2]

FIREMeshReader ( const fileName name,
const scalar  scaleFactor = 1.0 
)

Construct by reading file, optionally with scaling.

Definition at line 461 of file FIREMeshReader.C.

◆ ~FIREMeshReader()

virtual ~FIREMeshReader ( )
virtualdefault

Destructor.

Member Function Documentation

◆ operator=()

void operator= ( const FIREMeshReader )
protecteddelete

No copy assignment.

◆ readGeometry()

bool readGeometry ( const scalar  scaleFactor = 1.0)
protectedvirtual

Read the mesh from the file(s)

Implements meshReader.

Definition at line 377 of file FIREMeshReader.C.

References Foam::abort(), STLCore::ASCII, STLCore::BINARY, Foam::FatalError, FatalErrorInFunction, FIRECore::file3dExtensions, Enum< EnumType >::found(), Foam::nl, FIRECore::POLY_ASCII, and FIRECore::POLY_BINARY.

Here is the call graph for this function:

◆ readPoints()

void readPoints ( ISstream is,
const scalar  scaleFactor = 1.0 
)
protected

Read points from file.

Definition at line 36 of file FIREMeshReader.C.

References Foam::endl(), Foam::Info, n, meshReader::points_, and FIRECore::readPoints().

Here is the call graph for this function:

◆ readFaces()

void readFaces ( ISstream is)
protected

Read points from file.

Definition at line 53 of file FIREMeshReader.C.

References Foam::abort(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, ISstream::name(), and nFaces().

Here is the call graph for this function:

◆ readCells()

void readCells ( ISstream is)
protected

Read cell connectivities from file.

Definition at line 85 of file FIREMeshReader.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::Info, ISstream::name(), and Foam::Warning.

Here is the call graph for this function:

◆ readSelections()

void readSelections ( ISstream is)
protected

Read cell/face selections from file.

Definition at line 136 of file FIREMeshReader.C.

References DynamicList< T, SizeMin >::append(), cellId, FIRECore::cellSelection, Foam::endl(), faceId(), Foam::Info, Foam::name(), and kkLOmega::validate().

Here is the call graph for this function:

◆ reorganize()

void reorganize ( )
protected

– neigh_.setSize(nInternalFaces_);

Definition at line 203 of file FIREMeshReader.C.

References List< T >::clear(), Foam::endl(), forAll, Foam::Info, Foam::inplaceReorder(), nPatches, and Foam::pos().

Here is the call graph for this function:

◆ addPatches()

void addPatches ( polyMesh mesh) const
protected

Definition at line 343 of file FIREMeshReader.C.

References Foam::endl(), forAll, Foam::Info, and mesh.

Here is the call graph for this function:

◆ mesh()

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

Create and return polyMesh.

Reimplemented from meshReader.

Definition at line 422 of file FIREMeshReader.C.

References IOobject::AUTO_WRITE, polyMesh::defaultRegion, Foam::endl(), Foam::Info, mesh, meshPtr, Time::New(), and IOobject::NO_READ.

Here is the call graph for this function:

Member Data Documentation

◆ owner_

labelList owner_
protected

Definition at line 71 of file FIREMeshReader.H.

◆ neigh_

labelList neigh_
protected

Definition at line 72 of file FIREMeshReader.H.

◆ faceZoneId_

labelList faceZoneId_
protected

Definition at line 74 of file FIREMeshReader.H.

◆ faceNames_

wordList faceNames_
protected

Definition at line 75 of file FIREMeshReader.H.


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