Read AVL/FIRE fpma, fpmb files. More...
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< polyMesh > | mesh (const objectRegistry &) |
Create and return polyMesh. More... | |
![]() | |
meshReader (const fileName &, const scalar scaling=1.0) | |
Construct from fileName. More... | |
virtual | ~meshReader ()=default |
Destructor. 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 |
![]() | |
FIRECore ()=default | |
Construct null. More... | |
Protected Attributes | |
labelList | owner_ |
labelList | neigh_ |
labelList | faceZoneId_ |
wordList | faceNames_ |
![]() | |
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 | |
![]() | |
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 void | warnDuplicates (const word &context, const wordList &) |
Warn about repeated names. More... | |
![]() | |
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 label | readPoints (ISstream &, pointField &) |
Read points. More... | |
![]() | |
static const Enum< fileExt3d > | file3dExtensions |
Read AVL/FIRE fpma, fpmb files.
Definition at line 61 of file FIREMeshReader.H.
|
protecteddelete |
No copy construct.
FIREMeshReader | ( | const fileName & | name, |
const scalar | scaleFactor = 1.0 |
||
) |
Construct by reading file, optionally with scaling.
Definition at line 462 of file FIREMeshReader.C.
|
virtualdefault |
Destructor.
|
protecteddelete |
No copy assignment.
|
protectedvirtual |
Read the mesh from the file(s)
Implements meshReader.
Definition at line 377 of file FIREMeshReader.C.
References Foam::abort(), IOstreamOption::ASCII, IOstreamOption::BINARY, Foam::FatalError, FatalErrorInFunction, FIRECore::file3dExtensions, Enum< EnumType >::found(), Foam::nl, FIRECore::POLY_ASCII, and FIRECore::POLY_BINARY.
|
protected |
Read points from file.
Definition at line 37 of file FIREMeshReader.C.
References Foam::endl(), Foam::Info, and n.
|
protected |
Read points from file.
Definition at line 53 of file FIREMeshReader.C.
References Foam::abort(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, forAll, FIRECore::getFireLabel(), Foam::Info, meshReader::meshFaces_, ISstream::name(), and List< T >::setSize().
|
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.
|
protected |
Read cell/face selections from file.
Definition at line 136 of file FIREMeshReader.C.
References DynamicList< T, SizeMin >::append(), cellId, FIRECore::cellSelection, Foam::BitOps::count(), Foam::endl(), faceId(), FIRECore::faceSelection, Foam::Info, Foam::name(), and word::validate().
|
protected |
– neigh_.setSize(nInternalFaces_);
Definition at line 203 of file FIREMeshReader.C.
References Foam::endl(), forAll, Foam::Info, Foam::inplaceReorder(), nPatches, and Foam::pos().
|
protected |
Definition at line 343 of file FIREMeshReader.C.
References Foam::endl(), forAll, Foam::Info, mesh, and word::null.
|
virtual |
Create and return polyMesh.
Reimplemented from meshReader.
Definition at line 423 of file FIREMeshReader.C.
References IOobject::AUTO_WRITE, polyMesh::defaultRegion, Foam::endl(), Foam::Info, mesh, meshPtr, autoPtr< T >::New(), and IOobject::NO_READ.
|
protected |
Definition at line 71 of file FIREMeshReader.H.
|
protected |
Definition at line 72 of file FIREMeshReader.H.
|
protected |
Definition at line 74 of file FIREMeshReader.H.
|
protected |
Definition at line 75 of file FIREMeshReader.H.