Read AVL/FIRE fpma, fpmb files. More...
#include <FIREMeshReader.H>


Public Member Functions | |
| FIREMeshReader (const fileName &, const scalar scaleFactor=1.0) | |
| Construct by reading file, optionally with scaling. | |
| virtual | ~FIREMeshReader ()=default |
| Destructor. | |
| virtual autoPtr< polyMesh > | mesh (const objectRegistry &) |
| Create and return polyMesh. | |
| Public Member Functions inherited from meshReader | |
| meshReader (const fileName &, const scalar scaling=1.0) | |
| Construct from fileName. | |
| virtual | ~meshReader ()=default |
| Destructor. | |
| void | writeAux (const objectRegistry &) const |
| Write auxiliary information. | |
| void | writeMesh (const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const |
| Write mesh. | |
Protected Member Functions | |
| FIREMeshReader (const FIREMeshReader &)=delete | |
| No copy construct. | |
| void | operator= (const FIREMeshReader &)=delete |
| No copy assignment. | |
| virtual bool | readGeometry (const scalar scaleFactor=1.0) |
| Read the mesh from the file(s). | |
| void | readPoints (ISstream &, const scalar scaleFactor=1.0) |
| Read points from file. | |
| void | readFaces (ISstream &) |
| Read points from file. | |
| void | readCells (ISstream &) |
| Read cell connectivities from file. | |
| void | readSelections (ISstream &) |
| Read cell/face selections from file. | |
| void | reorganize () |
| void | addPatches (polyMesh &) const |
| Protected Member Functions inherited from FIRECore | |
| FIRECore ()=default | |
| Construct null. | |
Protected Attributes | |
| labelList | owner_ |
| labelList | neigh_ |
| labelList | faceZoneId_ |
| wordList | faceNames_ |
| Protected Attributes inherited from meshReader | |
| 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. | |
| labelList | patchStarts_ |
| Polyhedral mesh boundary patch start indices and dimensions. | |
| labelList | patchSizes_ |
| label | nInternalFaces_ |
| Number of internal faces for polyMesh. | |
| faceList | meshFaces_ |
| Global face list for polyMesh. | |
| 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. | |
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). | |
| typedef double | fireReal_t |
| Float type (binary format). | |
| Static Public Member Functions inherited from meshReader | |
| static void | warnDuplicates (const word &context, const wordList &) |
| Warn about repeated names. | |
| 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. | |
| static label | getFireLabel (ISstream &) |
| Get an integer (ascii or binary). | |
| static point | getFirePoint (ISstream &) |
| Get an point x/y/z (ascii or binary). | |
| static std::string | getFireString (ISstream &) |
| Extract a string (ascii or binary). | |
| static void | putFireLabel (OSstream &, const label) |
| Write an integer (ascii or binary). | |
| static void | putFireLabels (OSstream &, const labelUList &) |
| Write multiple integers (ascii or binary). | |
| static void | putFireLabels (OSstream &, const label count, const label start) |
| Write an on-the-fly list of integers (ascii or binary). | |
| static void | putFirePoint (OSstream &, const point &) |
| Write a point x/y/z (ascii or binary). | |
| static void | putFireString (OSstream &, const std::string &) |
| Write a string (ascii or binary). | |
| Static Protected Member Functions inherited from FIRECore | |
| static label | readPoints (ISstream &, pointField &) |
| Read points. | |
| Static Protected Attributes inherited from FIRECore | |
| static const Enum< fileExt3d > | file3dExtensions |
Read AVL/FIRE fpma, fpmb files.
Definition at line 57 of file FIREMeshReader.H.
|
protecteddelete |
No copy construct.
References FIREMeshReader().
Referenced by FIREMeshReader(), and operator=().


| FIREMeshReader | ( | const fileName & | name, |
| const scalar | scaleFactor = 1.0 ) |
Construct by reading file, optionally with scaling.
Definition at line 460 of file FIREMeshReader.C.
References faceNames_, faceZoneId_, Foam::name(), neigh_, and owner_.

|
virtualdefault |
Destructor.
|
protecteddelete |
|
protectedvirtual |
Read the mesh from the file(s).
Implements meshReader.
Definition at line 376 of file FIREMeshReader.C.
References Foam::abort(), IOstreamOption::ASCII, IOstreamOption::BINARY, Foam::FatalError, FatalErrorInFunction, FIRECore::file3dExtensions, meshReader::geometryFile_, Foam::nl, FIRECore::POLY_ASCII, FIRECore::POLY_BINARY, readCells(), readFaces(), readPoints(), and readSelections().
Referenced by mesh().


|
protected |
Read points from file.
Definition at line 29 of file FIREMeshReader.C.
References Foam::endl(), Foam::Info, n, meshReader::points_, and FIRECore::readPoints().
Referenced by readGeometry().


|
protected |
Read points from file.
Definition at line 46 of file FIREMeshReader.C.
References Foam::abort(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, forAll, FIRECore::getFireLabel(), Foam::Info, meshReader::meshFaces_, and ISstream::name().
Referenced by readGeometry().


|
protected |
Read cell connectivities from file.
Definition at line 78 of file FIREMeshReader.C.
References Foam::abort(), meshReader::cellTableId_, Foam::endl(), Foam::FatalError, FatalErrorInFunction, FIRECore::getFireLabel(), Foam::Info, meshReader::meshFaces_, ISstream::name(), neigh_, owner_, and Foam::Warning.
Referenced by readGeometry().


|
protected |
Read cell/face selections from file.
Definition at line 129 of file FIREMeshReader.C.
References DynamicList< T, SizeMin >::append(), cellId, FIRECore::cellSelection, meshReader::cellTable_, meshReader::cellTableId_, Foam::endl(), faceId(), faceNames_, FIRECore::faceSelection, faceZoneId_, FIRECore::getFireLabel(), FIRECore::getFireString(), Foam::Info, meshReader::meshFaces_, Foam::name(), and word::validate().
Referenced by readGeometry().


|
protected |
– neigh_.setSize(nInternalFaces_);
Definition at line 196 of file FIREMeshReader.C.
References Foam::endl(), faceNames_, faceZoneId_, forAll, Foam::Info, Foam::inplaceReorder(), meshReader::meshFaces_, neigh_, meshReader::nInternalFaces_, nPatches, owner_, meshReader::patchNames_, meshReader::patchSizes_, meshReader::patchStarts_, and Foam::pos().
Referenced by mesh().


|
protected |
Definition at line 338 of file FIREMeshReader.C.
References Foam::endl(), forAll, Foam::Info, mesh(), meshReader::nInternalFaces_, word::null, meshReader::patchNames_, meshReader::patchSizes_, meshReader::patchStarts_, and PtrList< T >::set().
Referenced by mesh().


|
virtual |
Create and return polyMesh.
Reimplemented from meshReader.
Definition at line 421 of file FIREMeshReader.C.
References addPatches(), IOobjectOption::AUTO_WRITE, meshReader::cellTable_, meshReader::cellTableId_, polyMesh::defaultRegion, Foam::endl(), Foam::Info, mesh(), meshReader::meshFaces_, meshPtr, neigh_, autoPtr< T >::New(), IOobjectOption::NO_READ, owner_, meshReader::points_, readGeometry(), reorganize(), and meshReader::scaleFactor_.
Referenced by addPatches(), and mesh().


|
protected |
Definition at line 67 of file FIREMeshReader.H.
Referenced by FIREMeshReader(), mesh(), readCells(), and reorganize().
|
protected |
Definition at line 68 of file FIREMeshReader.H.
Referenced by FIREMeshReader(), mesh(), readCells(), and reorganize().
|
protected |
Definition at line 70 of file FIREMeshReader.H.
Referenced by FIREMeshReader(), readSelections(), and reorganize().
|
protected |
Definition at line 71 of file FIREMeshReader.H.
Referenced by FIREMeshReader(), readSelections(), and reorganize().