Core routines used when reading/writing AVL/FIRE files. More...
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) More... | |
typedef double | fireReal_t |
Float type (binary format) More... | |
Static Public Member Functions | |
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... | |
Protected Member Functions | |
FIRECore ()=default | |
Construct null. More... | |
Static Protected Member Functions | |
static label | readPoints (ISstream &, pointField &) |
Read points. More... | |
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 41 of file FIRECore.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, n, ISstream::name(), and points.
|
static |
Resolve base file-name for the given file-type.
Definition at line 72 of file FIRECore.C.
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::readFaces().
|
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(), and ISstream::syncState().
|
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().
|
static |
Write an integer (ascii or binary)
Definition at line 199 of file FIRECore.C.
References IOstreamOption::BINARY, and os().
|
static |
Write multiple integers (ascii or binary)
Definition at line 224 of file FIRECore.C.
References IOstreamOption::BINARY, forAll, os(), and UList< T >::size().
|
static |
Write an on-the-fly list of integers (ascii or binary)
Definition at line 265 of file FIRECore.C.
References IOstreamOption::BINARY, Foam::BitOps::count(), and os().
Write a point x/y/z (ascii or binary)
Definition at line 308 of file FIRECore.C.
References IOstreamOption::BINARY, and os().
|
static |
Write a string (ascii or binary)
Definition at line 339 of file FIRECore.C.
References IOstreamOption::BINARY, and os().
|
staticprotected |
Definition at line 111 of file FIRECore.H.
Referenced by FIREMeshReader::readGeometry(), and FIREMeshWriter::write().