Core routines used when reading/writing pro-STAR vrt/cel/bnd files. More...

Public Member Functions | |
| STARCDCore () | |
| Construct null. More... | |
Static Public Member Functions | |
| static bool | readPoints (IFstream &, pointField &, labelList &ids) |
| Read points from a (.vrt) file. More... | |
| static void | writePoints (Ostream &, const pointField &) |
| Write header and points to (.vrt) file. More... | |
Protected Types | |
| enum | cellType { starcdFluidType = 1 , starcdSolidType = 2 , starcdBaffleType = 3 , starcdShellType = 4 , starcdLineType = 5 , starcdPointType = 6 } |
| enum | shapeType { starcdPoint = 1 , starcdLine = 2 , starcdShell = 3 , starcdHex = 11 , starcdPrism = 12 , starcdTet = 13 , starcdPyr = 14 , starcdPoly = 255 } |
Static Protected Member Functions | |
| static bool | readHeader (IFstream &, const word &fileSignature) |
| Read header. More... | |
| static void | writeHeader (Ostream &, const word &fileType) |
| Write header for fileType (CELL|VERTEX|BOUNDARY) More... | |
Core routines used when reading/writing pro-STAR vrt/cel/bnd files.
Definition at line 52 of file STARCDCore.H.
|
protected |
| Enumerator | |
|---|---|
| starcdFluidType | |
| starcdSolidType | |
| starcdBaffleType | |
| starcdShellType | |
| starcdLineType | |
| starcdPointType | |
Definition at line 67 of file STARCDCore.H.
|
protected |
| Enumerator | |
|---|---|
| starcdPoint | |
| starcdLine | |
| starcdShell | |
| starcdHex | |
| starcdPrism | |
| starcdTet | |
| starcdPyr | |
| starcdPoly | |
Definition at line 77 of file STARCDCore.H.
| STARCDCore | ( | ) |
Construct null.
Definition at line 34 of file STARCDCore.C.
Read header.
Definition at line 40 of file STARCDCore.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, ISstream::getLine(), IOstream::good(), Foam::Info, and IFstream::name().

Write header for fileType (CELL|VERTEX|BOUNDARY)
Definition at line 74 of file STARCDCore.C.
References Foam::endl(), and Foam::nl.

|
static |
Read points from a (.vrt) file.
The file format is as follows:
Line 1:
PROSTAR_VERTEX newline
Line 2:
{version} 0 0 0 0 0 0 0 newline
Body:
{vertexId} {x} {y} {z} newline
Definition at line 95 of file STARCDCore.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), IFstream::name(), points, List< T >::transfer(), x, and y.

|
static |
Write header and points to (.vrt) file.
Definition at line 137 of file STARCDCore.C.
References Ostream::flush(), forAll, Foam::nl, Ostream::precision(), IOstream::setf(), and Foam::vtkWriteOps::writeHeader().
