Public Types | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
FIRECore Class Reference

Core routines used when reading/writing AVL/FIRE files. More...

Inheritance diagram for FIRECore:
Inheritance graph
[legend]
Collaboration diagram for FIRECore:
Collaboration graph
[legend]

Public Types

enum  selectionType { cellSelection = 2, faceSelection = 3 }
 
enum  shapeType {
  fireLine = 1, fireTri = 2, fireQuad = 3, fireTet = 4,
  fireHex = 5, firePyr = 6, firePrism = 8
}
 
enum  fileExt3d { POLY_ASCII, POLY_BINARY, POLY_ASCII_Z, POLY_BINARY_Z }
 
typedef int32_t fireInt_t
 
typedef double fireReal_t
 

Static Public Member Functions

static fileName fireFileName (const fileName &baseName, const enum fileExt3d)
 
static label getFireLabel (ISstream &)
 
static point getFirePoint (ISstream &)
 
static std::string getFireString (ISstream &)
 
static void putFireLabel (OSstream &, const label)
 
static void putFireLabels (OSstream &, const labelUList &)
 
static void putFireLabels (OSstream &, const label count, const label start)
 
static void putFirePoint (OSstream &, const point &)
 
static void putFireString (OSstream &, const std::string &)
 

Protected Member Functions

 FIRECore ()=default
 

Static Protected Member Functions

static label readPoints (ISstream &, pointField &)
 

Static Protected Attributes

static const Enum< fileExt3dfile3dExtensions
 

Detailed Description

Core routines used when reading/writing AVL/FIRE files.

Source files

Definition at line 56 of file FIRECore.H.

Member Typedef Documentation

◆ fireInt_t

typedef int32_t fireInt_t

Definition at line 92 of file FIRECore.H.

◆ fireReal_t

typedef double fireReal_t

Definition at line 95 of file FIRECore.H.

Member Enumeration Documentation

◆ selectionType

Enumerator
cellSelection 
faceSelection 

Definition at line 63 of file FIRECore.H.

◆ shapeType

enum shapeType
Enumerator
fireLine 
fireTri 
fireQuad 
fireTet 
fireHex 
firePyr 
firePrism 

Definition at line 70 of file FIRECore.H.

◆ fileExt3d

enum fileExt3d
Enumerator
POLY_ASCII 
POLY_BINARY 
POLY_ASCII_Z 
POLY_BINARY_Z 

Definition at line 82 of file FIRECore.H.

Constructor & Destructor Documentation

◆ FIRECore()

FIRECore ( )
protecteddefault

Member Function Documentation

◆ readPoints()

Foam::label readPoints ( ISstream is,
pointField points 
)
staticprotected

Definition at line 41 of file FIRECore.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, n, ISstream::name(), and points.

Here is the call graph for this function:

◆ fireFileName()

Foam::fileName fireFileName ( const fileName baseName,
const enum fileExt3d  ext 
)
static

Definition at line 72 of file FIRECore.C.

Referenced by FIREMeshWriter::write().

Here is the caller graph for this function:

◆ getFireLabel()

Foam::label getFireLabel ( ISstream is)
static

Definition at line 81 of file FIRECore.C.

References IOstreamOption::BINARY, IOstreamOption::format(), Foam::readLabel(), and ISstream::stdStream().

Referenced by FIREMeshReader::readFaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFirePoint()

Foam::point getFirePoint ( ISstream is)
static

Definition at line 102 of file FIRECore.C.

References IOstreamOption::BINARY, IOstreamOption::format(), ISstream::stdStream(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ getFireString()

std::string getFireString ( ISstream is)
static

Definition at line 131 of file FIRECore.C.

References IOstreamOption::BINARY, IOstreamOption::format(), ISstream::getLine(), Foam::pos(), s, and ISstream::stdStream().

Here is the call graph for this function:

◆ putFireLabel()

void putFireLabel ( OSstream os,
const label  value 
)
static

Definition at line 195 of file FIRECore.C.

References IOstreamOption::BINARY, and os().

Here is the call graph for this function:

◆ putFireLabels() [1/2]

void putFireLabels ( OSstream os,
const labelUList lst 
)
static

Definition at line 218 of file FIRECore.C.

References IOstreamOption::BINARY, forAll, os(), and UList::size().

Here is the call graph for this function:

◆ putFireLabels() [2/2]

void putFireLabels ( OSstream os,
const label  count,
const label  start 
)
static

Definition at line 257 of file FIRECore.C.

References IOstreamOption::BINARY, Foam::BitOps::count(), and os().

Here is the call graph for this function:

◆ putFirePoint()

void putFirePoint ( OSstream os,
const point value 
)
static

Definition at line 298 of file FIRECore.C.

References IOstreamOption::BINARY, os(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ putFireString()

void putFireString ( OSstream os,
const std::string &  value 
)
static

Definition at line 327 of file FIRECore.C.

References IOstreamOption::BINARY, and os().

Here is the call graph for this function:

Member Data Documentation

◆ file3dExtensions

const Foam::Enum< Foam::fileFormats::FIRECore::fileExt3d > file3dExtensions
staticprotected

Definition at line 102 of file FIRECore.H.

Referenced by FIREMeshReader::readGeometry(), and FIREMeshWriter::write().


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