Core routines used when reading/writing PROSTAR vrt/cel/bnd files. More...
Public Types | |
enum | fileHeader { HEADER_CEL, HEADER_VRT, HEADER_BND } |
enum | fileExt { CEL_FILE, VRT_FILE, BND_FILE, INP_FILE } |
enum | matlType { 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 Public Member Functions | |
static fileName | starFileName (const fileName &baseName, const enum fileExt ext) |
static void | removeFiles (const fileName &baseName) |
static label | readPoints (IFstream &is, List< point > &points, List< label > &ids) |
static void | writePoints (Ostream &os, const UList< point > &points, const scalar scaleFactor=1.0) |
Static Public Attributes | |
static const char *const | defaultBoundaryName |
static const char *const | defaultSolidBoundaryName |
Protected Member Functions | |
STARCDCore ()=default | |
Static Protected Member Functions | |
static bool | readHeader (IFstream &is, const enum fileHeader header) |
static void | writeHeader (Ostream &os, const enum fileHeader header) |
Static Protected Attributes | |
static const Map< FixedList< int, 6 > > | starToFoamFaceAddr |
static const Map< FixedList< int, 6 > > | foamToStarFaceAddr |
Core routines used when reading/writing PROSTAR vrt/cel/bnd files.
Definition at line 55 of file STARCDCore.H.
enum fileHeader |
Enumerator | |
---|---|
HEADER_CEL | |
HEADER_VRT | |
HEADER_BND |
Definition at line 62 of file STARCDCore.H.
enum fileExt |
Enumerator | |
---|---|
CEL_FILE | |
VRT_FILE | |
BND_FILE | |
INP_FILE |
Definition at line 70 of file STARCDCore.H.
enum matlType |
Enumerator | |
---|---|
starcdFluidType | |
starcdSolidType | |
starcdBaffleType | |
starcdShellType | |
starcdLineType | |
starcdPointType |
Definition at line 79 of file STARCDCore.H.
enum shapeType |
Enumerator | |
---|---|
starcdPoint | |
starcdLine | |
starcdShell | |
starcdHex | |
starcdPrism | |
starcdTet | |
starcdPyr | |
starcdPoly |
Definition at line 90 of file STARCDCore.H.
|
protecteddefault |
|
staticprotected |
Definition at line 115 of file STARCDCore.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), Foam::Info, IFstream::name(), Foam::nl, and Foam::readToNewline().
Referenced by STARCDMeshReader::readCells().
|
staticprotected |
Definition at line 149 of file STARCDCore.C.
References Foam::nl, and os().
|
static |
Definition at line 170 of file STARCDCore.C.
Referenced by STARCDCore::removeFiles().
|
static |
Definition at line 179 of file STARCDCore.C.
References STARCDCore::BND_FILE, STARCDCore::CEL_FILE, STARCDCore::INP_FILE, Foam::rm(), STARCDCore::starFileName(), and STARCDCore::VRT_FILE.
Referenced by STARCDMeshWriter::write().
Definition at line 189 of file STARCDCore.C.
References DynamicList::append(), DynamicList::clear(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), token::isLabel(), token::labelToken(), Foam::max(), IFstream::name(), points, ISstream::read(), List::transfer(), x, and y.
|
static |
Definition at line 238 of file STARCDCore.C.
References Foam::nl, os(), p, points, and Foam::writeHeader().
|
static |
Definition at line 104 of file STARCDCore.H.
|
static |
Definition at line 108 of file STARCDCore.H.
|
staticprotected |
Definition at line 125 of file STARCDCore.H.
Referenced by STARCDMeshReader::readBoundary().
|
staticprotected |
Definition at line 129 of file STARCDCore.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.