Core routines used when reading/writing AVL/FIRE files. More...
#include <FIRECore.H>


Public Types | |
| 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 | |
| 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). | |
Protected Member Functions | |
| FIRECore ()=default | |
| Construct null. | |
Static Protected Member Functions | |
| static label | readPoints (ISstream &, pointField &) |
| Read points. | |
Static Protected Attributes | |
| static const Enum< fileExt3d > | file3dExtensions |
Core routines used when reading/writing AVL/FIRE files.
Definition at line 55 of file FIRECore.H.
| typedef int32_t fireInt_t |
Integer type (binary format).
Definition at line 99 of file FIRECore.H.
| typedef double fireReal_t |
Float type (binary format).
Definition at line 104 of file FIRECore.H.
| enum selectionType |
| enum shapeType |
Shape-Type for FIRE (FLMA) files.
| Enumerator | |
|---|---|
| fireLine | |
| fireTri | |
| fireQuad | |
| fireTet | |
| fireHex | |
| firePyr | |
| firePrism | |
Definition at line 73 of file FIRECore.H.
| enum fileExt3d |
Enumeration defining the file extensions for 3D types.
| Enumerator | |
|---|---|
| POLY_ASCII | |
| POLY_BINARY | |
| POLY_ASCII_Z | |
| POLY_BINARY_Z | |
Definition at line 87 of file FIRECore.H.
|
protecteddefault |
Construct null.
|
staticprotected |
Read points.
This is the first thing to do when reading FPMA,FPMB,FLMA files. Return the number of points read.
The file format is as follows:
* NUMBER_OF_VERTICES * x0 y0 z0 x1 y1 z1 ... xN-1 yN-1 zN-1 *
Definition at line 40 of file FIRECore.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, getFireLabel(), getFirePoint(), n, ISstream::name(), and points.
Referenced by FIREMeshReader::readPoints().


|
static |
Resolve base file-name for the given file-type.
Definition at line 71 of file FIRECore.C.
References file3dExtensions.
Referenced by FIREMeshWriter::write().

|
static |
Get an integer (ascii or binary).
Definition at line 81 of file FIRECore.C.
References IOstreamOption::BINARY, IOstreamOption::format(), Foam::readLabel(), ISstream::stdStream(), and ISstream::syncState().
Referenced by FIREMeshReader::readCells(), FIREMeshReader::readFaces(), readPoints(), and FIREMeshReader::readSelections().


|
static |
Get an point x/y/z (ascii or binary).
Definition at line 103 of file FIRECore.C.
References IOstreamOption::BINARY, IOstreamOption::format(), ISstream::stdStream(), ISstream::syncState(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by readPoints().


|
static |
Extract a string (ascii or binary).
Definition at line 133 of file FIRECore.C.
References IOstreamOption::BINARY, IOstreamOption::format(), ISstream::getLine(), Foam::pos(), s(), ISstream::stdStream(), and ISstream::syncState().
Referenced by FIREMeshReader::readSelections().


|
static |
Write an integer (ascii or binary).
Definition at line 198 of file FIRECore.C.
References IOstreamOption::BINARY, and os().
Referenced by FLMAsurfaceFormat< Face >::write().


|
static |
Write multiple integers (ascii or binary).
Definition at line 223 of file FIRECore.C.
References IOstreamOption::BINARY, forAll, os(), and UList< T >::size().
Referenced by FLMAsurfaceFormat< Face >::write().


|
static |
Write an on-the-fly list of integers (ascii or binary).
Definition at line 264 of file FIRECore.C.
References IOstreamOption::BINARY, and os().

Write a point x/y/z (ascii or binary).
Definition at line 307 of file FIRECore.C.
References IOstreamOption::BINARY, os(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by FLMAsurfaceFormat< Face >::write().


|
static |
Write a string (ascii or binary).
Definition at line 338 of file FIRECore.C.
References IOstreamOption::BINARY, and os().
Referenced by FLMAsurfaceFormat< Face >::write().


|
staticprotected |
Definition at line 111 of file FIRECore.H.
Referenced by fireFileName(), FIREMeshReader::readGeometry(), and FIREMeshWriter::write().