Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
STARCDMeshReader Class Reference

Read PROSTAR vrt/cel/bnd files. The protected data in meshReader are filled. More...

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

Public Member Functions

 STARCDMeshReader (const fileName &prefix, const objectRegistry &registry, const scalar scaleFactor=1.0, const bool keepSolids=false)
 
virtual ~STARCDMeshReader ()=default
 
- Public Member Functions inherited from meshReader
 meshReader (const fileName &, const scalar scaling=1.0)
 
virtual ~meshReader ()=default
 
virtual autoPtr< polyMeshmesh (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 &)
 
- Protected Member Functions inherited from STARCDCore
 STARCDCore ()=default
 

Protected Attributes

cellShapeList cellShapes_
 
labelList mapToFoamPointId_
 
labelList mapToFoamCellId_
 
boundaryRegion boundaryRegion_
 
- Protected Attributes inherited from meshReader
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 Public Member Functions inherited from meshReader
static void warnDuplicates (const word &context, const wordList &)
 
- Protected Types inherited from STARCDCore
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 Protected Member Functions inherited from STARCDCore
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 Protected Attributes inherited from STARCDCore
static const Map< FixedList< int, 6 > > starToFoamFaceAddr
 
static const Map< FixedList< int, 6 > > foamToStarFaceAddr
 
static const char *const defaultBoundaryName
 
static const char *const defaultSolidBoundaryName
 

Detailed Description

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

Source files

Definition at line 64 of file STARCDMeshReader.H.

Constructor & Destructor Documentation

◆ STARCDMeshReader()

STARCDMeshReader ( const fileName prefix,
const objectRegistry registry,
const scalar  scaleFactor = 1.0,
const bool  keepSolids = false 
)

Definition at line 1029 of file STARCDMeshReader.C.

◆ ~STARCDMeshReader()

virtual ~STARCDMeshReader ( )
virtualdefault

Member Function Documentation

◆ readGeometry()

bool readGeometry ( const scalar  scaleFactor = 1.0)
protectedvirtual

Implements meshReader.

Definition at line 1005 of file STARCDMeshReader.C.

References STARCDCore::BND_FILE, STARCDCore::CEL_FILE, and STARCDCore::VRT_FILE.

◆ readPoints()

Foam::label readPoints ( const fileName inputName,
const scalar  scaleFactor 
)
protected

◆ readCells()

void readCells ( const fileName inputName)
protectedvirtual

◆ cullPoints()

void cullPoints ( )
protected

Definition at line 946 of file STARCDMeshReader.C.

References Foam::endl(), f(), forAll, Foam::Info, Foam::inplaceRenumber(), Foam::inplaceReorder(), and nPoints.

Here is the call graph for this function:

◆ readBoundary()

void readBoundary ( const fileName inputName)
protected

◆ readAux()

void readAux ( const objectRegistry registry)
protected

Definition at line 55 of file STARCDMeshReader.C.

Member Data Documentation

◆ cellShapes_

cellShapeList cellShapes_
protected

Definition at line 80 of file STARCDMeshReader.H.

Referenced by STARCDMeshReader::readCells().

◆ mapToFoamPointId_

labelList mapToFoamPointId_
protected

Definition at line 83 of file STARCDMeshReader.H.

Referenced by STARCDMeshReader::readCells().

◆ mapToFoamCellId_

labelList mapToFoamCellId_
protected

Definition at line 86 of file STARCDMeshReader.H.

Referenced by STARCDMeshReader::readCells().

◆ boundaryRegion_

boundaryRegion boundaryRegion_
protected

Definition at line 89 of file STARCDMeshReader.H.


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