Read PROSTAR vrt/cel/bnd files. The protected data in meshReader are filled. More...
Public Member Functions | |
STARCDMeshReader (const fileName &prefix, const objectRegistry ®istry, const scalar scaleFactor=1.0, const bool keepSolids=false) | |
virtual | ~STARCDMeshReader ()=default |
![]() | |
meshReader (const fileName &, const scalar scaling=1.0) | |
virtual | ~meshReader ()=default |
virtual autoPtr< polyMesh > | mesh (const objectRegistry &) |
void | writeAux (const objectRegistry &) const |
void | writeMesh (const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const |
Protected Member Functions | |
virtual bool | readGeometry (const scalar scaleFactor=1.0) |
label | readPoints (const fileName &, const scalar scaleFactor) |
virtual void | readCells (const fileName &) |
void | cullPoints () |
void | readBoundary (const fileName &) |
void | readAux (const objectRegistry &) |
![]() | |
STARCDCore ()=default | |
Protected Attributes | |
cellShapeList | cellShapes_ |
labelList | mapToFoamPointId_ |
labelList | mapToFoamCellId_ |
boundaryRegion | boundaryRegion_ |
![]() | |
fileName | geometryFile_ |
scalar | scaleFactor_ |
pointField | points_ |
labelList | origCellId_ |
List< List< cellFaceIdentifier > > | boundaryIds_ |
wordList | patchTypes_ |
wordList | patchNames_ |
wordList | patchPhysicalTypes_ |
labelList | patchStarts_ |
labelList | patchSizes_ |
label | nInternalFaces_ |
faceList | meshFaces_ |
faceListList | cellFaces_ |
faceList | baffleFaces_ |
labelList | cellTableId_ |
cellTable | cellTable_ |
Additional Inherited Members | |
![]() | |
static void | warnDuplicates (const word &context, const wordList &) |
![]() | |
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 bool | readHeader (IFstream &is, const enum fileHeader header) |
static void | writeHeader (Ostream &os, const enum fileHeader header) |
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 const Map< FixedList< int, 6 > > | starToFoamFaceAddr |
static const Map< FixedList< int, 6 > > | foamToStarFaceAddr |
static const char *const | defaultBoundaryName |
static const char *const | defaultSolidBoundaryName |
Read PROSTAR vrt/cel/bnd files. The protected data in meshReader are filled.
Starting with PROSTAR version 4, the files have become easier to read.
Notes
Definition at line 64 of file STARCDMeshReader.H.
STARCDMeshReader | ( | const fileName & | prefix, |
const objectRegistry & | registry, | ||
const scalar | scaleFactor = 1.0 , |
||
const bool | keepSolids = false |
||
) |
Definition at line 1029 of file STARCDMeshReader.C.
|
virtualdefault |
|
protectedvirtual |
Implements meshReader.
Definition at line 1005 of file STARCDMeshReader.C.
References STARCDCore::BND_FILE, STARCDCore::CEL_FILE, and STARCDCore::VRT_FILE.
|
protected |
Definition at line 78 of file STARCDMeshReader.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), Foam::Info, token::isLabel(), token::labelToken(), Foam::max(), Foam::nl, nPoints, ISstream::read(), x, and y.
|
protectedvirtual |
Definition at line 210 of file STARCDMeshReader.C.
References Foam::abort(), meshReader::baffleFaces_, meshReader::cellFaces_, STARCDMeshReader::cellShapes_, meshReader::cellTable_, meshReader::cellTableId_, List::clear(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), STARCDCore::HEADER_CEL, cellModel::HEX, Foam::Info, token::isLabel(), token::labelToken(), STARCDMeshReader::mapToFoamCellId_, STARCDMeshReader::mapToFoamPointId_, Foam::max(), n, Foam::nl, meshReader::origCellId_, cellModel::PRISM, cellModel::ptr(), cellModel::PYR, ISstream::read(), STARCDCore::readHeader(), Foam::readToNewline(), cellModel::ref(), cellTable::setMaterial(), cellTable::setName(), List::setSize(), STARCDCore::starcdBaffleType, STARCDCore::starcdFluidType, STARCDCore::starcdHex, STARCDCore::starcdPoly, STARCDCore::starcdPrism, STARCDCore::starcdPyr, STARCDCore::starcdShellType, STARCDCore::starcdSolidType, STARCDCore::starcdTet, cellModel::TET, and cellModel::UNKNOWN.
|
protected |
Definition at line 946 of file STARCDMeshReader.C.
References Foam::endl(), f(), forAll, Foam::Info, Foam::inplaceRenumber(), Foam::inplaceReorder(), and nPoints.
|
protected |
Definition at line 601 of file STARCDMeshReader.C.
References cellId, dict, Foam::endl(), forAll, IOstream::good(), STARCDCore::HEADER_BND, cellModel::HEX, Foam::identity(), cellModel::index(), Foam::Info, Foam::stringOps::inplaceLower(), Foam::inplaceReorder(), token::isLabel(), Foam::max(), Foam::name(), nPatches, cellModel::PRISM, cellModel::PYR, ISstream::read(), cellModel::ref(), List::setSize(), Foam::sortedOrder(), STARCDCore::starcdHex, STARCDCore::starcdPrism, STARCDCore::starcdPyr, STARCDCore::starcdTet, STARCDCore::starToFoamFaceAddr, cellModel::TET, and Foam::Zero.
|
protected |
Definition at line 55 of file STARCDMeshReader.C.
|
protected |
Definition at line 80 of file STARCDMeshReader.H.
Referenced by STARCDMeshReader::readCells().
|
protected |
Definition at line 83 of file STARCDMeshReader.H.
Referenced by STARCDMeshReader::readCells().
|
protected |
Definition at line 86 of file STARCDMeshReader.H.
Referenced by STARCDMeshReader::readCells().
|
protected |
Definition at line 89 of file STARCDMeshReader.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.